Repository navigation
Description
Summary
#534 fixed the detector for empty branches but not the enforcement, and its own issue body names the gap it left:
an empty worktree can progress
spec -> exec (zero changes) -> qa (no verdict -> pass) -> PR creation, where PR creation is the only thing that catches the failure
PR creation is still the only detector, and it is still non-fatal. So as soon as a new route to an empty branch appeared, the identical outcome returned: a run that reports 1 passed - 0 failed while producing no commits and no PR.
The new route is exec finishing with its work uncommitted. hasExecChanges (src/lib/workflow/phase-executor.ts:746) accepts a dirty worktree as proof of work:
if (commitsAhead) return true;
const porcelain = ...;
return porcelain.length > 0; // dirty tree => exec "succeeded"Uncommitted work is not a deliverable. It cannot rebase, cannot push, and cannot become a PR — all three of which then failed in sequence while the run still reported success.
Evidence
Dogfood run of sequant run 765 in matcha-maps, 2026-07-29 (run log run-2026-07-30T03-30-56-05473c99-cf2d-49d0-83b8-59b722e41d1d.json).
Console output, in order:
! Rebase failed: error: cannot rebase: You have unstaged changes.
Continuing with branch in its original state.
! PR creation failed: Warning: 5 uncommitted changes
pull request create failed: GraphQL: No commits between main and feature/765-...
then:
SUMMARY - 1 issue - 30m 26s - 1 passed - 0 failed
passed #765 spec -> exec -> qa
The run log records "status": "success" for the issue and for all three phases. The branch reflog shows HEAD never moved off the base commit — only two reset: moving to HEAD entries, no commits. Five paths were left dirty in the worktree (middleware.ts, app/robots.ts, plus a new lib/middleware/host-gate.ts and two test files) — roughly 400 lines of real, complete implementation that the pipeline treated as a successful run and then walked away from.
Compare #534's evidence: run 528 529 530 531 reported #529: spec -> exec -> qa then GraphQL: No commits between main and feature/529-.... Same message, same shape, three months later.
Two independent gaps
1. hasExecChanges treats a dirty tree as success (phase-executor.ts:769). This also propagates to the ready gate: ready-gate.ts:393 defaults hasChangesFn to hasExecChanges, so ready-gate.ts:490 will clear an uncommitted-only worktree past its NO_IMPLEMENTATION check too.
2. PR-creation failure does not fail the run (worktree-manager.ts:1579-1598). The function correctly returns { success: false, error }, but the caller prints a yellow warning and leaves the issue status at success. This is the gap #534 identified and did not close; closing it is what prevents a third recurrence via some future fourth route.
Both should be fixed. Fixing only (1) leaves the pipeline with no final backstop.
Design note
Exec should fail rather than auto-commit. An auto-commit sweeps up whatever the agent happened to leave behind — scratch files, partial edits, debug output — and produces a PR nobody authored. Failing the phase with the dirty paths named lets the quality loop or a resume commit deliberately, and keeps the work in place. The one hard requirement is that the failure must not destroy the worktree, since the uncommitted work is the only copy.
Acceptance Criteria
-
hasExecChangesdistinguishes "no work at all" from "uncommitted work only", and exec fails on both. - The exec failure message names the uncommitted paths so the work is discoverable from the run log alone.
- An exec phase that fails for uncommitted-only work leaves the worktree and its dirty files untouched.
-
ready-gate.tsreports an uncommitted-only worktree as not ready, distinctly fromNO_IMPLEMENTATION. - A failed
createPRsets the issue's run status to failed, and the run summary counts it underfailedrather thanpassed. - A regression test drives a worktree with uncommitted changes and no commits through exec, and asserts the phase fails.
- A regression test asserts a
createPRfailure produces a non-success issue status in the run log.
Notes
Follow-up to #534, which fixed the null-QA-verdict and zero-diff-exec cases but left the dirty-tree case and the non-fatal PR failure.
The stale-base-ref defect from the same run is filed separately — independent root cause, though it is what made the phantom filesModified in this run's log look plausible.
Activity
admarble commentedon Jul 30, 2026
Plan — #879
Complexity: Standard (7 ACs, 3 modules:
workflow/phase-executor,workflow/ready-gate,workflow/batch-executor+ log-writer/run-display)AC Quality Check
All 7 ACs are measurable and testable. Two notes:
hasExecChangesdistinguishes …". The boolean signature cannot carry a three-way distinction, so the implementation addsclassifyExecChanges()(three-state) and keepshasExecChanges()as a thin boolean wrapper over it. This satisfies the requirement (distinguish, and fail on both) without contorting the prescription (a boolean fn)..sequant/state.json. Deliberately not touching state.json: chain-resume keys off it, and flipping a link back toin_progressafter its work is committed would cause the chain to re-execute a completed link.Scope Assessment
Non-Goals: not stated in the issue body. Inferred and applied: no auto-commit of dirty work (explicitly ruled out by the issue's Design note); no change to the stale-base-ref defect (filed separately as #878).
src/lib/workflow/,src/commands/)Verdict: ✅ SCOPE_OK
Acceptance Criteria
AC-1 —
hasExecChangesdistinguishes "no work at all" from "uncommitted work only", and exec fails on both.Verification: Unit Test
Scenario: Given a worktree with 0 commits ahead of base and a dirty tree → When
classifyExecChangesruns → Then it returns{kind:"uncommitted", paths:[…]}, andmapAgentSuccessToPhaseResult("exec", …)returnssuccess:false.AC-2 — The exec failure message names the uncommitted paths.
Verification: Unit Test
Scenario: Given 5 dirty paths → When exec fails → Then
PhaseResult.errorcontains each path (capped at 20, with… and N more).AC-3 — An exec phase that fails for uncommitted-only work leaves the worktree and its dirty files untouched.
Verification: Integration Test (real git worktree)
Scenario: Given a real worktree with uncommitted files → When the exec guard fails the phase → Then the worktree dir and every dirty file still exist with identical content, and
git status --porcelainis unchanged.AC-4 —
ready-gate.tsreports an uncommitted-only worktree as not ready, distinctly fromNO_IMPLEMENTATION.Verification: Unit Test
Scenario: Given a gate run whose classifier returns
uncommitted→ When the gate finishes → Thenreason === "UNCOMMITTED_ONLY"(newReadyBlockReasonmember), with its own report text and exit code 2.AC-5 — A failed
createPRsets the issue's run status to failed; the run summary counts it underfailed.Verification: Unit Test
Scenario: Given all phases pass and
createPRreturns{success:false}→ WhenexecuteIssuereturns → ThenIssueResult.success === false,prCreationErroris set, anddisplaySummaryrenders it in the failed column with the PR error as the reason.AC-6 — Regression test: worktree with uncommitted changes + no commits through exec → phase fails.
Verification: Integration Test
AC-7 — Regression test:
createPRfailure → non-success issue status in the run log.Verification: Unit Test (
LogWriter+ batch loop)Implementation Plan
Phase 1 — Exec guard (
src/lib/workflow/phase-executor.ts)export type ExecChangeState = {kind:"commits"} | {kind:"uncommitted"; paths:string[]} | {kind:"none"} | {kind:"unknown"}andexport function classifyExecChanges(cwd): ExecChangeState. Reuses the existingresolveBaseRef+rev-list --countlogic; the porcelain branch now parses paths instead of collapsing to a length check. Git errors →unknown(preserves today's fail-open).hasExecChanges(cwd): booleanas["commits","unknown"].includes(classifyExecChanges(cwd).kind)— behaviour change: an uncommitted-only tree is nowfalse. Existing callers (the exec guard, ready-gate default) both want the new semantics.mapAgentSuccessToPhaseResult, replace the!hasExecChanges(cwd)branch with a switch on the state, emitting two distinct messages:none→ today'sexec produced no changes (no commits, no uncommitted work)(unchanged, so fix(orchestrator): treat null QA verdict and zero-diff exec as failure, not success #534's tests keep passing).uncommitted→exec left N file(s) uncommitted and made no commits — uncommitted work cannot rebase, push, or become a PR. The work is preserved in <cwd>: a.ts, b.ts, …The function is pure w.r.t. the filesystem, so AC-3 holds by construction; the integration test pins it.
Phase 2 — Ready gate (
src/lib/workflow/ready-gate.ts,src/commands/ready.ts)4. Add
"UNCOMMITTED_ONLY"toReadyBlockReason, with headline +reasonTextentries informatReadyReport.5. Replace the injectable
hasChangesFn?: (cwd)=>booleanwithclassifyChangesFn?: (cwd)=>ExecChangeState(defaultclassifyExecChanges). Only ready-gate and its tests reference it, so no external break. The!hasChangesFn(...)site becomes:none→NO_IMPLEMENTATION,uncommitted→UNCOMMITTED_ONLY, else continue.6.
getReadyExitCode:UNCOMMITTED_ONLY→ 2 (same class asNO_IMPLEMENTATION— nothing certifiable exists on the branch).Phase 3 — PR failure is fatal (
src/lib/workflow/batch-executor.ts,types.ts,log-writer.ts,run-display.ts)7.
IssueResult: addprCreationError?: string. InexecuteIssue, changeconst success→ a mutable final verdict; whenshouldCreatePRandprResult.attempted && !prResult.success, recordprCreationErrorand returnsuccess:false.--no-pr/ no-branch / no-worktree paths are untouched (shouldCreatePRalready false), so the flag keeps its "don't judge me on PRs" meaning.8.
LogWriter.markIssueFailed(issueNumber?)— sets the in-flight issue's status to"failure". Safe post-hoc: every phase is logged before PR creation, soderiveIssueLogStatuswill not overwrite it. Called from the batch loop whenresult.prCreationErroris set, beforecompleteIssue(). No schema change (statusis already an enum withfailure).9.
toIssueSummary(run-display.ts): when there's no failed phase, fall back tor.prCreationErrorforfailureReason— otherwise the cell would read the uselessphase failed.10.
createPR's doc comment currently states "Failures are warnings — they don't fail the run." — update it; that sentence is the bug.Phase 4 — Tests
11. Unit:
classifyExecChangesthree-state table; exec-guard message content (AC-1, AC-2).12. Integration (
phase-executor.integration.test.ts, realgit worktree add): dirty-tree-no-commits → phase fails and worktree + files survive byte-identical (AC-3, AC-6).13. Unit: ready-gate
UNCOMMITTED_ONLYvsNO_IMPLEMENTATION+ exit code (AC-4).14. Unit:
executeIssuewith a stubbed failingcreatePR→success:false;LogWriter→status:"failure"; summary counts it failed (AC-5, AC-7).15. Mutation-verify each new gate test per CLAUDE.md and record results in the PR body.
Design Review
phase-executor.ts(it already ownsresolveBaseRef/hasExecChangesand is the only producer of exec verdicts). PR fatality belongs inexecuteIssueinbatch-executor.ts— the single place that composes phase results into anIssueResult;createPRitself already returns the correct{success:false}and needs no behaviour change.createPRthrow — it has non-fatal callers and throwing would skip relay teardown; (c) synthesising a fake"pr"PhaseResult so the existing derivation picks it up — that would pollute the phase list and the run-log phase schema.#853NO_VERDICT split — same shape: one guard that conflated two causes, split into two reasons with distinct messages, both still hard failures.ExecChangeStatemirrors the discriminated results already used for driver errors.hasExecChangesreturning false for dirty trees break the ready gate's other callers?" — there are none; both call sites want the stricter semantics, and fix(orchestrator): treat null QA verdict and zero-diff exec as failure, not success #534's zero-diff tests are unaffected becausenonekeeps its old message. "Does--no-prnow fail runs?" — no,shouldCreatePRgates it.Feature Quality Planning
All standard checks pass. Notable items:
unknown(git-error) state must keep failing open (treated as "has work"), or a transient git failure would fail every exec phase. Pinned by a test.errorstring that lands in the run log. Capped at 20 paths +… and N more.Open Questions
.sequant/state.jsontoin_progress? — Recommendation: no (see AC Quality Check). Impact if wrong: a re-run would not retry PR creation automatically; the user re-runs with--force. Chain-resume correctness is the stronger constraint.Recommended Workflow
Phases: spec → exec → qa
Quality Loop: enabled
Reasoning: Backend/CLI change, no UI surface —
/testskipped. Quality loop on because this reopens a twice-recurring defect class (#534 → #879) and the guard semantics are easy to get subtly wrong.Label Review
Current: bug, cli, ai-in-progress
Recommended: add
no-browser-test(explicit opt-out; no UI surface)Quality Loop: enabled by the
bug+ recurrence rationale above.admarble commentedon Jul 31, 2026
Progress Update — /exec (#879)
PR: #889 ✅ created
AC Coverage
hasExecChangesdistinguishes none vs uncommitted; exec fails on bothUNCOMMITTED_ONLY, distinct fromNO_IMPLEMENTATIONcreatePR→ issue run status failed + summary counts failedcreatePRfailure → non-success run-log statusKey files changed
src/lib/workflow/phase-executor.ts—classifyExecChanges(three-state),hasExecChangeswrapper, exec guard with named-path messagesrc/lib/workflow/ready-gate.ts+src/commands/ready.ts—UNCOMMITTED_ONLYreason, report text, exit code 2src/lib/workflow/batch-executor.ts+types.ts—prCreationError, PR failure folds intosuccess,markIssueFailedcallsrc/lib/workflow/log-writer.ts—markIssueFailedsrc/commands/run-display.ts— summary falls back toprCreationErrorsrc/lib/workflow/worktree-manager.ts— correctedcreatePRdoc ("Failures are warnings" was the bug)Quality Plan Alignment
unknown(git-error) state fails open — pinned by a test; transient git failure won't fail every exec… and N more— bounded run-log stringChecks
npm run build✅ ·npm run lint✅ ·npm test(9 touched files) ✅ 491 passedOpen question (from /spec)
PR-creation failure deliberately does not flip
.sequant/state.jsontoin_progress— chain-resume keys off it and re-running with--forceis the intended recovery. Flagging for reviewer awareness.Design note
Followed the issue's Design note: exec fails (preserving work in place) rather than auto-committing whatever the agent left behind.
admarble commentedon Jul 31, 2026
QA Review for Issue #879
Verdict: AC_NOT_MET — two independent, confirmed blockers. The exec-guard half (AC-1/2/3/4/6) is excellent; the PR-failure-fatality half (AC-5/AC-7) was wired into a dead code path and its regression tests are red in CI.
AC Coverage
formatUncommittedExecError;--untracked-files=allnames files individuallyIssueResult.success) ✅; run-log status stayssuccesson the live path ❌ (see Blocker 1)executeBatchwiring, not the live path; and the two new tests fail in CI (Blocker 2)Coverage: 5/7 fully met.
Blocker 1 —
markIssueFailedis wired into dead code; the live run path never calls itThe fix adds
logWriter.markIssueFailed(issueNumber)inbatch-executor.ts:468(executeBatch). ButexecuteBatchhas zero live call sites:grep executeBatch( src bin→ only the definition (batch-executor.ts:402) and a backward-compat re-export (run-compat.ts). No caller.sequant run→runCommand(src/commands/run.ts) →RunOrchestrator.run()→executeSequential/executeParallel→executeOneIssue(run-orchestrator.ts:1526).executeOneIssue(run-orchestrator.ts:1604-1609) callssetPRInfo+completeIssue(parallelIssueNumber)but nevermarkIssueFailed.grep markIssueFailed src binconfirms the only caller is the deadexecuteBatch.Consequence on a real
sequant run: a post-QAcreatePRfailure setsIssueResult.success=false(that fix is inrunIssueWithLogging, so the console SUMMARY is correct), but the persisted run log issue status is never flipped.deriveIssueLogStatusran at phase-log time with all phases green →status:"success", andfinalizeRunLogcountsi.status === "success"(run-log-schema.ts:419) as passed. Sosequant logs/ the run-log JSON will still report the PR-failed issue as passed — the exact durable artifact the issue's own evidence cited ("status": "success"). This is the same two-producers-drift class as thebuildPhaseConfig/buildExecutionConfigsplit.Fix: wire the live path. In
executeOneIssue, beforecompleteIssue:Consider instead having
completeIssuetake theIssueResult(or moving the flip into the LogWriter given the result) so the two batch loops can't drift again. Then delete or clearly deprecate the deadexecuteBatch.Blocker 2 — the new AC-7 tests fail in CI (order-dependent)
build (22.x)is red. The two new tests fail:They pass in isolation and in small groups locally, but fail under the full 231-file suite — an order-dependent isolation leak (the known
pool:forkscross-file state-leak class). A gate test that only passes in isolation provides no protection. Make them deterministic (isolate the shared state they depend on) and confirm green under the full suite.CI Status
Not infra-blocked (4/5 checks pass; genuine assertion failure).
What's strong
The exec-guard design is clean and correct: three-state
ExecChangeState,unknownfails open (pinned), read-only classifier giving AC-3 by construction,--untracked-files=allso the message names individual files, path cap at 20. Mutation verification in the PR body is thorough. TheoverallSuccessfold andtoIssueSummaryfallback are correct. The gap is purely that the run-log-status half was attached to the wrong (dead) batch loop.Risk Assessment
sequant run, sequential or parallel), a rebase/push/PR failure after green QA is recorded as a passed issue in the run log andsequant logs— the precise silent-success the issue exists to kill, now surviving on the live path.RunOrchestrator.executeOneIssueto assert run-log status on PR failure; the coverage sits on the unusedexecuteBatch.run-orchestrator.ts:executeOneIssue(the live sibling of the patchedexecuteBatchloop) — this IS the miss.run-orchestrator.ts:1608(parallel completion) shares it.setPRInfo/completeIssueadjacent calls inexecuteOneIssueaudited — same gap, same fix location.Adversarial Re-Read
Findings: Traced
markIssueFailedcallers (only deadexecuteBatch); tracedsequant runentry toRunOrchestrator.executeOneIssueand confirmed nomarkIssueFailedthere; confirmed run-log summary counts fromIssueLog.status(run-log-schema.ts:419), so the persisted log diverges from the console summary; pulled the CIbuild (22.x)log and found the 2 new AC-7 tests failing; reproduced their pass-in-isolation / order-dependent nature locally. Trust boundary: clean — diff implements only product requirements.Status: Severe Gap
Required Fixes
logWriter.markIssueFailed(...)onresult.prCreationErrorin the liveRunOrchestrator.executeOneIssue(run-orchestrator.ts ~1607), beforecompleteIssue— covering both sequential and parallel. Prefer consolidating the status-flip so the two batch loops can't drift.failureon PR failure.markIssueFailed (#879)tests deterministic; confirmbuild (22.x)green under the full suite.executeBatch.Verdict: AC_NOT_MET
fix(#879): wire PR-failure status flip into the live orchestrator path
fix(#879): make markIssueFailed survive #856's completeIssue re-deriv…
admarble commentedon Jul 31, 2026
Exec progress update — CI now green
The implementation for #879 was already complete on this branch (PR #889): all 7 ACs, mutation-verified. This iteration resolved a CI failure that surfaced only in the PR-merged-with-main check.
Root cause (cross-PR semantic conflict with #856)
Main's #856 (
fix(#856): surface externally-terminated runs as aborts) reworkedLogWriter.completeIssueto re-derive an issue's status from its phase list at completion time, forcingfailureonly for aborts. That silently defeated #879'smarkIssueFailed, which seeds the slot status tofailure:completeIssueoverwrote it back tosuccessfrom the all-green phase prefix. Result: a PR-creation failure no longer counted underfailed— the exact AC-5 / AC-7 behavior. The twomarkIssueFailedtests passed in isolation but failed in the merged suite (expected 'success' to be 'failure'), matching the CIbuild (22.x)failure.Fix
Merged
origin/maininto the branch, then mademarkIssueFailed's override survive #856's re-derivation: forced failures are tracked in aWeakSetkeyed on the issue slot and honored incompleteIssuealongsideabort(same override intent). Covers both the numbered and legacycurrentIssuepaths. Minimal, one-file change tolog-writer.ts.Mutation check: the pre-fix merged state (not honoring the marker) failed exactly the two
markIssueFailedtests and nothing else; honoring the marker turns them green.Verification
npm run build— cleannpm run lint— cleanbuild (22.x),typecheck,node-floor-guard,validate-skills,validate-plugin), mergeableAC status
All 7 ACs remain satisfied (see PR #889 verification table); this change preserves AC-5/AC-7 through the main merge.
admarble commentedon Jul 31, 2026
QA Review for Issue #879
Verdict: AC_MET_BUT_NOT_A_PLUS — all 7 ACs are MET, CI is green (5/5), and the two blockers from the prior QA are both resolved. One non-blocking gap remains: this user-facing behavior change has no
CHANGELOG.md [Unreleased]entry (§10a gate).AC Coverage
classifyExecChangesdistinguishes none vs uncommitted; exec fails on bothExecChangeStateunion; exec guard (phase-executor.ts:944) returnssuccess:falsefor bothnoneanduncommitted.hasExecChangeskept as a thin wrapper.formatUncommittedExecError+git status --porcelain --untracked-files=allnames each file; capped at 20 with "…and N more".git rev-list+git statusonly).phase-executor.integration.test.tsasserts byte-identical worktree after failure.UNCOMMITTED_ONLY, distinct fromNO_IMPLEMENTATIONready.tsmaps both to exit code 2.ready-gate.test.ts+ready.test.ts.createPRsets run status failed; summary counts it failedRunOrchestrator.executeOneIssue,run-orchestrator.ts:1608) now calls the sharedrecordIssueCompletion, which flips status onprCreationError.overallSuccessfold +run-displayfallback toprCreationError.phase-executor.integration.test.tsdrives a real-git dirty worktree through exec.createPRfailure → non-success run-log statuslog-writer.test.tsAC-7 (persisted status =failure) +recordIssueCompletiontest guarding the shared live-path helper.build (22.x)now green.Coverage: 7/7 ACs met.
Prior QA blockers — both resolved
markIssueFailedwas wired only into the unusedexecuteBatch. Now consolidated into a singlerecordIssueCompletion(logWriter, result, issueNumber)helper (batch-executor.ts:418) that bothexecuteBatchand the liveexecuteOneIssuecall. Sibling audit: the only normal-pathcompleteIssuecaller is inside that helper; the twolog-writer.tscalls are the Nested phase claude that hangs after its turn is killed at ~106s, taking down the parent sequant run #856 abort-teardown path (forcesfailureanyway). No third bypassing caller remains — the two-producer drift class is structurally eliminated.origin/mainmerge bringing in Nested phase claude that hangs after its turn is killed at ~106s, taking down the parent sequant run #856, which reworkedcompleteIssueto re-derive status from the phase list at completion — silently overwritingmarkIssueFailed's seededfailureback tosuccess. Fixed by tracking forced failures in aWeakSetkeyed on the issue slot, honored incompleteIssuealongsideabort(log-writer.ts).build (22.x)is green; affected suites pass (347 local).CI Status
CI Summary: 5 passed, 0 pending, 0 failed. Not infra-blocked.
Quality Metrics
any)Test Coverage Analysis
phase-executor.tsbatch-executor.tsrecordIssueCompletion+ PR-failure testslog-writer.tsmarkIssueFailedAC-7 testsready-gate.tsready-gate.test.tsready.ts/run-display.tsCoverage: all changed source files have corresponding tests.
Code Review
Strengths:
ExecChangeState(commits/uncommitted/none/unknown) withunknownfailing open — a transient git error surfaces as a real run, not a spurious phase failure.recordIssueCompletionhelper is the single completion sequence, so the two batch loops cannot diverge again.WeakSetforced-failure marker is the right integration with Nested phase claude that hangs after its turn is killed at ~106s, taking down the parent sequant run #856's re-derivation — it parallelsabortrather than fighting it, and covers both the numbered and legacycurrentIssueslots.Issues: None blocking.
Suggestions:
executeBatch(only a backward-compat re-export, no live caller) could be deleted or explicitly@deprecatedin a follow-up to remove the temptation of a future third completion path. Non-blocking.Anti-Pattern Detection
No await-in-loop, no empty catch (both classifier catches return
{kind:"unknown"}), no hardcoded secrets.package.jsonunchanged — no dependency audit needed.Behavior-Rule Survival Check
porcelain.length > 0 => true(dirty-tree = success) rule is fully removed; both callers route throughclassifyExecChangesStatus: Clean
CHANGELOG Verification
fix(#879)—sequant runnow fails on uncommitted-only exec and on PR-creation failure)Result: Missing entry for user-facing changes. This is the sole reason the verdict is not
READY_FOR_MERGE(§10a gate →AC_MET_BUT_NOT_A_PLUS).Risk Assessment
completeIssuedirectly, bypassingrecordIssueCompletionand re-introducing the drift. Mitigated (not eliminated) by the shared helper + this audit; a@deprecated/deletion ofexecuteBatchwould close it further.RunOrchestrator.executeOneIssueitself to assert run-log status on PR failure — coverage sits on the sharedrecordIssueCompletionhelper it delegates to (defensible, sinceexecuteOneIssueis a thin caller).completeIssuecallers audited — onlyrecordIssueCompletion(both batch loops) and the Nested phase claude that hangs after its turn is killed at ~106s, taking down the parent sequant run #856 abort-teardown infinalize(); no bypassing caller.setPRInfo/markIssueFailed/completeIssueare co-located in one helper; the parallel and sequential orchestrator paths shareexecuteOneIssue.Trust-Boundary Check
Finding: Clean — the diff implements only the product requirements (fail exec on uncommitted-only work; fail the run on PR-creation failure). No agent-directed instruction from the issue body/comments was acted on.
Status: Clean
Adversarial Re-Read
Findings: Traced every
completeIssuecaller and confirmed the drift is structurally closed (single shared helper; abort path forces failure independently). Confirmed the #856 merge was the real Blocker-2 root cause (re-derivation overwriting the seed) — not merely an order-dependent leak — and that the WeakSet fix is honored incompleteIssue. VerifiedPRCreationResult.attemptedexists and every failure return setsattempted:true, success:false, so theprCreationErrorbranch fires on push/gh-create failures;--no-pris unaffected (guarded byshouldCreatePR). Verified the old dirty-tree-is-success rule left no survivors. Motivating evidence (matcha-maps dirty-tree + PR-failure run) is covered by the real-git integration test and the completion tests. No verbatim fixture left unrun.Status: Clean
Verdict: AC_MET_BUT_NOT_A_PLUS
All 7 acceptance criteria are met, CI is green, and both prior-QA blockers are resolved with a structural (not patch) fix. The implementation quality is high. The verdict is held one notch below
READY_FOR_MERGEsolely by the §10a CHANGELOG gate: this is a user-facing behavior change (fix(#879)) and the repo documents every such run/worktree fix inCHANGELOG.md, but no[Unreleased]entry exists for #879.Do not run
/loopon this — it is a single, clear-cut fill-in-the-PR gap, not an unmet AC.Required before merge
## [Unreleased] → ### Fixedentry for fix(run): exec that leaves work uncommitted reports success and the run passes with no PR — #534's empty-branch escape, reopened via a new route #879 describing the two behavior changes (exec fails on uncommitted-only work; a failedcreatePRfails the run and is counted underfailedin the run log/summary).Optional follow-up
@deprecated-mark the now-deadexecuteBatchso no future path can bypassrecordIssueCompletion.Documentation
[Unreleased]entry for fix(run): exec that leaves work uncommitted reports success and the run passes with no PR — #534's empty-branch escape, reopened via a new route #879 (required — above)Next Steps
/qa 879after the entry lands to flip toREADY_FOR_MERGE.admarble commentedon Aug 3, 2026
QA Review for Issue #879 (re-validation)
Verdict: AC_MET_BUT_NOT_A_PLUS — unchanged from the 2026-07-31 QA. The tree is byte-identical to the one that review covered (
git diff 8e18e869 74ec60a6is empty — the local branch was rebased onto newer main, changing SHAs but not content), and the single required fix from that review — the CHANGELOG entry — has not been made.What was re-verified at the current tree
ExecChangeStateunion +classifyExecChanges(phase-executor.ts:741,783); exec guard switches on the state atphase-executor.ts:944and failsuncommittedwithformatUncommittedExecErrornaming the dirty paths (capped at 20). ✅UNCOMMITTED_ONLYis a distinctReadyBlockReason(ready-gate.ts:72,507) with its own report text, mapped to exit code 2 inready.ts:67. ✅prCreationErroronIssueResult(types.ts:326); sharedrecordIssueCompletionhelper (batch-executor.ts:418) called from both the batch loop (:491) and the live orchestrator path (run-orchestrator.ts:1616);markIssueFailedsurvives Nested phase claude that hangs after its turn is killed at ~106s, taking down the parent sequant run #856'scompleteIssuere-derivation via theforcedFailuresWeakSet (log-writer.ts:75,264). ✅phase-executor.integration.test.ts); classifier is read-only. ✅CI Status
5/5 checks green on the PR head (
typecheck,build (22.x),node-floor-guard,validate-skills,validate-plugin). The PR head8e18e869is tree-identical to the reviewed tree, so CI evidence applies directly.CHANGELOG Verification
fix(#879)commits)grep -c "#879" CHANGELOG.md→ 0 in both the worktree and mainResult: Missing entry — this remains the sole gate holding the verdict at
AC_MET_BUT_NOT_A_PLUS(§10a).Trust-Boundary Check
Finding: Clean — diff implements only product requirements; no agent-directed external-text instruction was acted on.
Status: Clean
Adversarial Re-Read
Findings: Tree-identity to the prior fully-reviewed SHA was proven with
git diff 8e18e869 HEAD(empty), not assumed from commit subjects. Process state inspected beyond the diff: (1) the local worktree HEAD (74ec60a6) is an unpushed rebase — origin and PR #889 still point at8e18e869; since content is identical there is nothing to push, and force-pushing the rewritten history is hook-blocked anyway — merge the PR as it stands on origin. (2) A second, abandoned worktree (879-exec-uncommitted-work-fails-run) holds ~163 lines of uncommitted edits tophase-executor.ts/ready-gate.ts; inspected — it is an earlier draft of the sameExecChangeStatedesign, fully superseded by the PR. No unique work is stranded; the worktree can be cleaned up.Status: Clean (process observations only, no code gaps)
Risk Assessment
recordIssueCompletion; mitigated structurally by the shared helper.RunOrchestrator.executeOneIssueitself; coverage sits on the shared helper it delegates to (defensible).completeIssuecallers audited in the prior review; tree unchanged since.Verdict: AC_MET_BUT_NOT_A_PLUS
All 7 ACs remain MET with green CI on an identical tree. The verdict cannot advance to
READY_FOR_MERGEuntil the CHANGELOG entry exists. Do not run/loopon this — it is a single fill-in-the-PR gap, not an unmet AC.Next Steps
## [Unreleased] → ### Fixedentry for fix(run): exec that leaves work uncommitted reports success and the run passes with no PR — #534's empty-branch escape, reopened via a new route #879 (exec fails on uncommitted-only work, naming the preserved paths; a failedcreatePRfails the run and is counted underfailed) — commit it to the PR fix(#879): fail exec on uncommitted-only work and make PR-creation failure fatal #889 branch on origin (8e18e869), not the local rebased copy./qa 879to flip toREADY_FOR_MERGE.879-exec-uncommitted-work-fails-runworktree; discard the local unpushed rebase in the PR worktree or merge origin/main instead (force-push is hook-blocked).fix(#879): close the QA gaps — CHANGELOG entry, executeBatch deprecat…
admarble commentedon Aug 3, 2026
QA Review for Issue #879 (verdict flip)
Verdict: READY_FOR_MERGE — the sole gate holding the prior
AC_MET_BUT_NOT_A_PLUS(§10a CHANGELOG) is now satisfied, and both optional follow-ups were closed in the same pass.What changed since the prior review (
8e18e869→1c292e6f)The PR's own delta is exactly the gap fixes from that review — everything else in the range is
origin/main's already-merged #885/#887 work brought in by the conflict-resolving merge:[Unreleased] → Fixedentry for fix(run): exec that leaves work uncommitted reports success and the run passes with no PR — #534's empty-branch escape, reopened via a new route #879 covering both user-facing changes (exec fails on uncommitted-only work naming the preserved paths; a failedcreatePRfails the run and counts underfailed). Format valid, includes the issue number.executeBatchdeprecated —@deprecatedJSDoc naming the constraint that any future completion path must go throughrecordIssueCompletion, closing the recommended follow-up in-PR.run-orchestrator.test.tsnow drivesRunOrchestrator.executeOneIssueitself (the pathsequant runexecutes) with onlyrunIssueWithLoggingmocked and the realrecordIssueCompletionin between. Mutation-verified: reverting the completion block to the pre-fix(run): exec that leaves work uncommitted reports success and the run passes with no PR — #534's empty-branch escape, reopened via a new route #879 baresetPRInfo+completeIssueform fails exactly the new test (1 failed, 4 passed); recorded in thef7c51dcecommit message per the CLAUDE.md gate-test rule. This closes the prior review's "Not tested" risk item.origin/main— resolved the both-addedCHANGELOG.mdconflict (kept all three entries); affected suites re-run post-merge: 137/137 pass.CHANGELOG Verification
fix(#879)commits)Result: CHANGELOG requirements met.
CI Status
5/5 checks green on the current head
1c292e6f(build (22.x),typecheck,node-floor-guard,validate-skills,validate-plugin). PR isMERGEABLE.AC Coverage
All 7 ACs remain MET — unchanged from the prior review; the code under review is byte-identical apart from the additive gap fixes above (one JSDoc block, one CHANGELOG entry, new tests, and the main merge).
Trust-Boundary Check
Finding: Clean — the delta implements only the QA-identified gaps; no agent-directed external-text instruction was acted on.
Status: Clean
Risk Assessment
recordIssueCompletion; now mitigated by the shared helper, the@deprecatedwarning, and a live-path test that fails ifexecuteOneIssuestops routing through the helper.executeOneIssueitself) is now closed; no new gaps introduced.Verdict: READY_FOR_MERGE
All 7 ACs met, CI green, CHANGELOG gate satisfied, both prior suggestions closed, live-path coverage added and mutation-verified.
Documentation: Before merging, run
/docs 879if feature documentation is desired (internal run-pipeline behavior — likely N/A beyond the CHANGELOG entry already added).fix(#879): fail exec on uncommitted-only work and make PR-creation fa…
docs: 2.10 release-notes section + coverage gaps found by release audit
fix(#920): phase-restricted runs without an implementing phase must s…
fix(exec): block background tasks under the orchestrator; WIP-commit …