Repository navigation
feat(#1250): spec Design Review stops on recurrence and lists producers; spec can halt before exec - #1253
Merged
admarble merged 4 commits intoOct 1, 2026
Conversation
…rs; spec can halt before exec Q3 treats >=2 prior fix issues as a stop; Q5 lists every producer and consumer. The spec path in runIssueWithLogging now reads specDivergence and halts before exec with the #995 evidence bundle. Constitution section 3 adds one producer per artifact. ADR-0004. Entire-Checkpoint: d6e64e9605b4
4 tasks done
…he channel the run parses Claude-Session: https://claude.ai/code/session_01L1XB34cHJP87u166RC13Jn Entire-Checkpoint: e8e8b20fbdb1
…c-design-review-stops-on-recurrence-and-li
This was referenced Oct 1, 2026
…c-design-review-stops-on-recurrence-and-li # Conflicts: # docs/adr/README.md
admarble
deleted the
feature/1250-feat-spec-design-review-stops-on-recurrence-and-li
branch
October 1, 2026 04:29
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
git log -Splus an issue search). ≥2 prior fix issues is a stop, not a precedent, and the plan either fixes the class or recordsdeliberately local, reason: …, class tracked in #N. A new Q5 lists every producer and consumer of the artifact (whole-repo grep). With ≥2 producers, the plan collapses them or adds a parity test on every field. A short "Halt on divergence" note says spec emitsSPEC_DIVERGENCEin itsSEQUANT_PHASEmarker when Q3 or Q5 contradicts the prescribed lever.batch-executor.ts): the spec path inrunIssueWithLoggingnow readsspecResult.specDivergence. It prints the feat(run): SPEC_DIVERGENCE escape hatch, ladder halts with evidence bundles, docs, rigged real run (#971 part B) #995 evidence bundle and returns before exec. The check sits outside the success split, so a spec that declares divergence and still emits a validSEQUANT_SPEChalts too. It reuses the existing bundle builder, which is now hoisted above the spec block (the arrays are empty at spec time). No new parser and no new field:parseSpecDivergencewas already phase-agnostic, and a new test now covers the spec-phase case./specDesign Review Q5 as its enforcer.memory/constitution.mdhas no section called "principles", and §3 requires every rule to name an enforcer.docs/adr/0004-spec-can-halt-before-exec.md) records the rejected options and the Simple-tier deviation.Deviation from AC-5's parenthetical
Simple-tier issues keep the Q3 recurrence count. Only Q5 is limited to Standard/Complex. The audited re-patches were mostly small
bugissues with ≤2 ACs, which is exactly the Simple tier, so skipping the count there would miss most of what this issue targets. It costs no extra lines because the count is part of Q3. The Simple row still reads "Design Review Q1/Q3 only", and the gate test asserts that.Pre-PR AC Verification
## Design Review(all 3 copies);src/lib/__tests__/spec-design-review-skill.test.tsAC-1 case ×3batch-executor.tsspec-path check;batch-executor.test.ts#1250describe: success+divergence and failure+divergence fixtures both assert exec never runs and that the bundle is printed; a third case checks a spec without divergence still reaches exec; a fourth runsparseSpecDivergenceon a"phase":"spec"markermemory/constitution.md§3 Boundaries row; AC-4 case, scoped to## 3. Boundaries…## 4.wc -l: base 435 → 437, cap 450;npm run lint:skill-sync: 47 synced, 0 diverged; tier row and tier comment asserted in the AC-5 case ×3Mutation verification
Mutation-verified: AC-1 — reverted Q3 to "[Named pattern, confirm it fits]" in
.claude/skills/spec/SKILL.md; only that copy's AC-1 case failed; restored.Mutation-verified: AC-2 — deleted the Q5 line in
skills/spec/SKILL.md; only that copy's AC-2 case failed; restored.After merging main (#1252), I re-ran the union of both PRs' literal-test sets plus the
docs/adrtests: 62 files, 2,842 passed. CI's firsttestfailure on d8c3dd5 was a timeout in#533 … runs spec → exec → qa for 'bug' label(6,001 ms against a 5 s limit). That case takes ~1 s locally on both main and this branch, and the failed-job re-run passed.Mutation-verified: AC-3 — removed the spec-path divergence check (condition back to
!specResult.success, bundle log deleted); both #1250 divergence fixtures failed; restored.Mutation-verified: AC-4 — deleted the §3 row; only the AC-4 case failed; restored.
Test plan
npm run build,npm run lint,lint:skill-sync,lint:skill-calls,lint:skill-gates,lint:constitution-dod: all pass*.test.tsmatchingspecDivergence|SPEC_DIVERGENCE|Design Review|constitution(13 files, 1043 tests), plus every test namingspec/SKILL.md|skills/spec|docs/adr|CHANGELOG(20 files, 1137 tests): all greenscripts/qa/tautology-detector-cli.ts: all tests call production codenpm testwas not run in exec, per the runner's instruction.Runner verification (head 48988ca, after merging main with #1252)
QA returned NEEDS_VERIFICATION. I did the following myself:
SPEC_DIVERGENCEmarker. ButparseSpecDivergencereads only the phase's own output (phase-executor.ts, the feat(run): SPEC_DIVERGENCE escape hatch, ladder halts with evidence bundles, docs, rigged real run (#971 part B) #995 scrape). A plan posted through a body file never reaches that output (fix(sync): plain sync overwrites CUSTOMIZABLE_FILES (constitution) — copyDir ignores force and never consults isCustomizableFile #814). So the halt fired in unit tests, which handspecDivergenceto a mockedexecutePhase, and could never fire in a real run. The note now says to put a bare marker in the final response message, the same channel the exec skill uses, and to repeat it in the comment. All three copies are synced, and the spec skill is still 437 lines (base 435, budget +15).templates/skills/spec/SKILL.md: only that copy's AC-3 case failed. Restored.origin/main(with fix(#1248): Codex usage-limit tests no longer read the real clock #1251) and ran every test file namingspecDivergence,SPEC_DIVERGENCE,Design Review,spec/SKILL,constitution,buildBundleorrunIssueWithLogging: 32 files, 1,474 passed.build,lint,tsc --noEmit, skill-sync (47/47) andlint:skill-callsare clean.Mutation-verified: AC-3 — reverted the halt note's channel to "end the comment" in templates/skills/spec/SKILL.md;
src/lib/__tests__/spec-design-review-skill.test.ts > templates/skills/spec/SKILL.md Design Review > AC-3: the halt-on-divergence note names the SPEC_DIVERGENCE marker fieldsfailed; restored.Follow-up ledger
buildBundle's callers, so it isn't patched here for the spec path alone./fullsolveand a specSPEC_DIVERGENCE. Dropped./fullsolveruns spec in its own agent session, and a spec that ends with a"status":"failed"marker is a failed spec under its §1.3 "Handle Spec Failures", which releases locks and exits. There's no orchestrator halt to wire. Revisit if a/fullsolverun is seen continuing past a divergence.docs/adr/0005-spec-can-halt-before-exec.md(the README and CHANGELOG are updated to match).Closes #1250
🤖 Generated with Claude Code