Repository navigation
feat(#1688): every phase dispatch gets the needs-human Evidence block — exec ran the env-file command in the #1655 smoke - #1690
Merged
admarble merged 4 commits intoNov 16, 2026
Conversation
… — joined in executePhase for spec, exec, qa and loop; sequant ready classifies an untracked issue from its body Entire-Checkpoint: 5a0b96f570b6
…lper (max-lines-per-function) Entire-Checkpoint: 5a0b96f570b6
Contributor
Author
Read firstComputed from the diff, the issue's Residue
Tests
Explained
AC verdict: the |
Contributor
Author
|
Owner chose option A for AC-3 (see #1688). This branch is being reworked from B to A by a re-run of exec and qa. |
3 tasks
… spec (stale-record class: #1692)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I reworked the branch to the owner's option A. The needs-human block is now built in one place,
executePhaseinsrc/lib/workflow/phase-executor.ts, for spec, exec, qa and loop, on every path: the phase loop,--ready-gateandsequant ready. No caller wraps the config any more. Build, lint and every affected test pass, and the branch is pushed (feature/1688-feat-run-every-phase-dispatch-gets-the-needs-human, head86c5b0456). I opened no PR: under the orchestrator, it updates #1690 from this summary.What changed
executePhasejoins the block into the prompt.dispatchNeedsHumanAcsreads the issue's state record. A tracked issue with no AC record is registered from its body, but a dry run only reads and writes nothing. An issue with no state record is classified from its body, fetched once per process, and nothing is written to state. A failed read or fetch means no block and no exception.dispatchLoopPhase,runReadyGateForIssueandsrc/commands/ready.tsare gone.withEvidenceReachContextis deleted rather than moved, becausejoinEvidenceReachContextinevidence-reach.tscovers it. The dedupe guard is gone, and so areready.ts's helper and thestateManagerargument feat(qa): the ready gate's qa passes get #1652's do-not-run block (--ready-gate and sequant ready) #1681 had added only for the wrap.classifyIssueEvidencestays. The phase loop still calls it for qa, so the run log's per-ACreachfield and the summary are unchanged.evidence-reach-dispatch.test.ts:ready-gate.evidence-reach.test.tsis deleted; its assertions moved.batch-executor.evidence-reach.test.tscases were renamed so their titles match the new behaviour, and they now assert that qa is dispatched without the wrap.Pre-PR AC verification
npx vitest run src/lib/workflow/evidence-reach-dispatch.test.ts: 16 passed. Covers spec, exec, qa and loop, plus the no-block case, the loop join, and both ready entry points.-t "no state record": 5 passed, 0 failed. Covers a direct dispatch,--ready-gate,sequant ready, a failed fetch, and the single fetch.evidence-reach.test.tswith the dispatch test file: 0 failed. The grep forwithEvidenceReachContext(returns0, and the name no longer appears anywhere insrc.Mutation-verified: AC-1 — executePhase passes config.promptContext to getPhasePrompt instead of the joined context; 10 cases in evidence-reach-dispatch.test.ts failed; restored.
Mutation-verified: AC-2 — dispatchNeedsHumanAcs returns an empty list instead of classifying the body for an issue with no state record; all 4 "no state record" cases that need a body failed; restored. Both markers parse with
parseMutationMarkers.Checks
npm run buildandnpm run lintpass, with no warnings.Fixes #1688
Runner verification (2026-11-16)
I ran each AC's Evidence command verbatim in the worktree at 86c5b04. AC-3 is the version amended on 2026-11-16, option A.
evidence-reach-dispatch.test.ts, 16 passed, 0 failed.-t "no state record", 5 passed (11 skipped), 0 failed.evidence-reach.test.tsandevidence-reach-dispatch.test.ts, 37 passed, 0 failed, and thewithEvidenceReachContext(count overbatch-executor.tsandready.tsis0.No
withEvidenceReachContextreference is left undersrc/. The block is joined only inexecutePhase.Follow-ups
acRecordFor). fix(state): the AC record is written once and never refreshed — an amended AC stays stale in state, the run log and the do-not-run block #1692 covers it, and the CHANGELOG entry now names the timing (65a4d51).reachhas no body fallback for an untracked issue. In fix(state): the AC record is written once and never refreshed — an amended AC stays stale in state, the run log and the do-not-run block #1692.mainbuild on two notes-fixture smoke issues, after #S-01 to #S-07 merge; the owner reads the report #1655 is blocked by this issue and fix(run): a spec-phase SPEC_DIVERGENCE marker is dropped because the skill's shape has no timestamp, so the run never halts #1691, and the owner answeredSMOKE: reopenon smoke(simplify): first real use — one detached run of amainbuild on two notes-fixture smoke issues, after #S-01 to #S-07 merge; the owner reads the report #1655.SPEC_DIVERGENCEnot halting the first run (why option B was built): fix(run): a spec-phase SPEC_DIVERGENCE marker is dropped because the skill's shape has no timestamp, so the run never halts #1691.🤖 Generated by
sequant run