Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
keep the review-status read-back the removed comment block used to carry
[._.]/ Adam Eivy14184eaeb982
diff --git a/server/lib/reviewerConfig.js b/server/lib/reviewerConfig.jsindex 6e3a7e697f..fa32957d44 100644--- a/server/lib/reviewerConfig.js+++ b/server/lib/reviewerConfig.js@@ -438,11 +438,12 @@ export function isOptionalReviewer(reviewer, optionalReviewers) {* True when at least one of `reviewers` is NOT marked optional — i.e. some* reviewer's verdict genuinely gates the merge.*- * The inverse ("every configured reviewer is `~opt`") is the case the merge- * gates care about: the user already declared that an unavailable or- * inconclusive verdict from these reviewers must not strand the PR, so the- * agent merges on the review loop's inconclusive-family outcomes instead of- * leaving it open for a human nobody asked.+ * The inverse ("every configured reviewer is `~opt`") is what the gates read:+ * a phase with no binding reviewer can never record `review-blocked`, and the+ * completion workflow tells such a run not to invent a blocker from a reviewer+ * that returned nothing. It does NOT license merging an `inconclusive`+ * aggregate — slashdo already excluded the optional misses from that, so one+ * that survives means `push-failed` (see `buildPostPRMergeSteps`).** Shared so the local pre-PR phase, the PR-side phase, and the completion* workflow's merge step can't disagree about which reviewers are binding.diff --git a/server/services/taskPromptDefaults/integrity.snapshot.json b/server/services/taskPromptDefaults/integrity.snapshot.jsonindex c89c27ad1b..263a0b3295 100644--- a/server/services/taskPromptDefaults/integrity.snapshot.json+++ b/server/services/taskPromptDefaults/integrity.snapshot.json@@ -10,9 +10,9 @@"better-test-quality": "ab53a477cd194a5c4fbda09d901a3775","branch-cleanup": "8fdeb4acc2749816a47ca318b6602721","branch-reconcile": "45feea1d5ccd456bb0bec5d12c373a64",- "claim-issue": "c4379f6ea933100f25af820755ed11c5",- "claim-issue-gitlab": "05f26a1372b5e59489ffb68342d2dc9a",- "claim-issue-jira": "d48e66919f155b68ef3d6fd08d0e4249",+ "claim-issue": "8afa24181b8923cfd35b5cd8e95b5bb5",+ "claim-issue-gitlab": "1c96d48a5dd85d3e9d5f442e73e3290d",+ "claim-issue-jira": "d50f6fc210461108ea2eb24692da0a06","code-quality": "6762542233cdffb86d4e2244945bf52b","code-reviewer-implement": "2e10cac7c1e1cd021d06bfddb5c1eaf2","code-reviewer-review": "27ded42013f28e7d327d8f1cc624aac1",diff --git a/server/services/taskPromptDefaults/prompts.js b/server/services/taskPromptDefaults/prompts.jsindex e69eee7330..d00706cb66 100644--- a/server/services/taskPromptDefaults/prompts.js+++ b/server/services/taskPromptDefaults/prompts.js@@ -2269,7 +2269,7 @@ Every local reviewer's fixes are already committed, so the PR opens against fini1. Push the branch: \`git push -u origin "claim/issue-\${NUM}"\`. Then confirm \`git log --oneline @{u}..HEAD\` is empty — if it isn't, a Phase 5 review fix never left the machine and the PR would be opened against a stale diff; push again before continuing.2. Open the PR with \`gh pr create\`. Summarize what shipped + a short test plan. **Choose the issue trailer deliberately:** if this PR FULLY satisfies the issue's scope, the body MUST contain \`Closes #\${NUM}\` so the merge auto-closes it. If you deliberately shipped only PART of the issue (a valuable slice, with real scope still remaining), use \`Refs #\${NUM}\` instead (NOT \`Closes\`) and add a \`## Remaining\` section listing what's left — Phase 7 reconciles the issue so it is never stranded.-2a. If Phase 5 recorded REVIEW_STATUS=review-blocked, preserve the claim markers and branch, leave the PR open, and stop before the PR-side review, CI, or merge steps. ${REVIEW_UNAVAILABLE_REPORTING_NOTE}+2a. Read the Phase 5 status back — shell variables do not survive between calls, so run REVIEW_STATUS_FILE="$(git rev-parse --git-path portos-review-status)" and source it. If REVIEW_STATUS=review-blocked, preserve the claim markers and branch, leave the PR open, and stop before the PR-side review, CI, or merge steps. ${REVIEW_UNAVAILABLE_REPORTING_NOTE}3. **Satisfy the PR-SIDE reviewers.** For each \`@<login>\` from the Phase 5 split, request the review now (\`gh pr edit <pr-number> --add-reviewer <login>\`, drop the \`@\`), poll every 5–15s for it, and address the findings — push fixes, capped at 3 rounds per reviewer. Their approval gates the merge. If the repo auto-requests a review bot when the PR opens, wait that round out and address it the same way. With no \`@<login>\` configured and no bot review appearing, this step is a no-op.**Review-stuck cleanup** (a PR-side reviewer still unsatisfied after 3 rounds): post one summarizing PR comment (\`gh pr comment\`), then run the worktree-only cleanup (\`cd {repoPath} && git worktree remove "\${WORKTREE}"\`). Leave the local branch, the open PR, the assignee, and the \`in-progress\` label in place so the human picks up cold. Do NOT run Phase 7.@@ -2447,7 +2447,7 @@ Every local reviewer's fixes are already committed, so the MR opens against fini1. Push the branch: \`git push -u origin "claim/issue-\${NUM}"\`. Then confirm \`git log --oneline @{u}..HEAD\` is empty — if it isn't, a Phase 5 review fix never left the machine and the MR would be opened against a stale diff; push again before continuing.2. Open the MR with \`glab mr create --fill --source-branch "claim/issue-\${NUM}" --target-branch "\${DEFAULT_BRANCH}" --yes\`. **Choose the issue trailer deliberately:** if this MR FULLY satisfies the issue's scope, the description MUST contain \`Closes #\${NUM}\` so the merge auto-closes it; if you deliberately shipped only PART of the issue (a valuable slice with real scope remaining), use \`Refs #\${NUM}\` instead (NOT \`Closes\`) and add a \`## Remaining\` section listing what's left — Phase 7 reconciles the issue so it is never stranded. Summarize what shipped + a short test plan (pass \`--description\` if \`--fill\` didn't capture it).-2a. If Phase 5 recorded REVIEW_STATUS=review-blocked, preserve the claim markers and branch, leave the MR open, and stop before the MR-side review, CI, or merge steps. ${REVIEW_UNAVAILABLE_REPORTING_NOTE}+2a. Read the Phase 5 status back — shell variables do not survive between calls, so run REVIEW_STATUS_FILE="$(git rev-parse --git-path portos-review-status)" and source it. If REVIEW_STATUS=review-blocked, preserve the claim markers and branch, leave the MR open, and stop before the MR-side review, CI, or merge steps. ${REVIEW_UNAVAILABLE_REPORTING_NOTE}3. **Satisfy the MR-SIDE reviewers.** For each \`@<login>\` from the Phase 5 split, request the review now (resolve \`MR_IID\` from the source branch exactly as step 5 does, then \`glab mr update "\${MR_IID}" --reviewer <login>\`, dropping the \`@\`; if glab rejects the flag, run \`glab mr update --help\` rather than guessing), poll every 5–15s, and address the findings — push fixes, capped at 3 rounds per reviewer. Their approval gates the merge. If the project auto-requests a review bot when the MR opens, wait that round out and address it the same way. With no \`@<login>\` configured and no bot review appearing, this step is a no-op.**Review-stuck cleanup** (an MR-side reviewer still unsatisfied after 3 rounds): post one summarizing MR note (\`glab mr note\`), then run the worktree-only cleanup (\`cd {repoPath} && git worktree remove "\${WORKTREE}"\`). Leave the local branch, the open MR, the assignee, and the \`in-progress\` label in place so the human picks up cold. Do NOT run Phase 7.@@ -2625,7 +2625,7 @@ The configured reviewers for this task, in order, are \`{reviewers}\`. Split the- GitHub: \`gh pr create --fill --head "claim/\${KEY}"\` (then edit the body to mention \`KEY\` if \`--fill\` didn't).- GitLab: \`glab mr create --fill --source-branch "claim/\${KEY}" --target-branch "\${DEFAULT_BRANCH}" --yes\`.Capture the MR/PR URL as \`PR_URL\`.-5a. If REVIEW_STATUS=review-blocked after the MR/PR opens, leave it unmerged, preserve the branch, and continue the required In Review transition and ticket-link steps; the MR/PR remains open for the human handoff. ${REVIEW_UNAVAILABLE_REPORTING_NOTE}+5a. Read the Phase 5 status back (REVIEW_STATUS_FILE="$(git rev-parse --git-path portos-review-status)", then source it). If REVIEW_STATUS=review-blocked after the MR/PR opens, leave it unmerged, preserve the branch, and continue the required In Review transition and ticket-link steps; the MR/PR remains open for the human handoff. ${REVIEW_UNAVAILABLE_REPORTING_NOTE}6. **Move the ticket to "In Review" — REQUIRED, not optional. Do not finish while it is still "In Progress":**- GET ${PORTOS_API_URL}/api/jira/instances/<instanceId>/tickets/<KEY>/transitions again (transitions change once In Progress).- Pick the transition whose target status best matches "In Review" (e.g. "In Review", "Code Review", "Review", "Ready for Review"); match case-insensitively.