Repository navigation
Closed
Labels
graph-2026-11-simplifygraph-2026-11-simplify: sequant 3.0 cut to the measured shape (D-1..D-8, 2026-11-03)plannedImplementation plan approved
Description
Epic: graph-2026-11-simplify (F-10 cluster of #1501) Tier: mechanical Execution: sequant_run Blocked by: #1645
Problem
D-1 removes /test's label auto-add; the /test skill stays. determinePhasesForIssue (src/lib/workflow/phase-mapper.ts:200-208) appends test whenever an issue carries a UI label, including on an explicit --phases list: sequant run 930 --phases spec ran spec then test on matcha-maps (#1631), and #857 was the same block. --phases spec,test or --phases spec,exec,test,qa stays the way to ask for the phase. Founding doc P-6.
Decisions
| ID | Decision | Rejected |
|---|---|---|
| T-1 | Delete the insertion block. --testgen and --security-review adjustments in the same function stay: the user passed those flags |
gating the block on explicit --phases only (#1631's first ask; D-1 removes the add) |
| T-2 | detectPhasesFromLabels (auto-detect mode, opt-in through run.autoDetectPhases) keeps choosing the UI workflow |
removing label detection (not named by D-1) |
Prior fixes / producers
- Prior: feat(assess): fence chat output; Considered: block restores why-not flag reasoning #857 (unrequested test phase in a spec-only batch; workaround
--phases, which run: --phases does not suppress the UI-label test phase (determinePhasesForIssue adds it to an explicit list) #1631 showed does not cover this path), run: --phases does not suppress the UI-label test phase (determinePhasesForIssue adds it to an explicit list) #1631.git log --format='%h %ad %s' -S 'hasUILabels' -- src/lib/workflow/phase-mapper.ts→14b811922 2026-03-11 refactor(#318)only; the block predates the split. - Producers of a phase list:
detectPhasesFromLabels,parseRecommendedWorkflow(assess),determinePhasesForIssue,config-resolver.ts(--phases). Class: the AC states the outcome for every path intodeterminePhasesForIssue.
Acceptance Criteria
- AC-1: For an issue labelled
frontend, an explicit["spec"]stays["spec"], an explicit["spec","exec","qa"]stays withouttest, and--testgenstill insertstestgen. Evidence:npx vitest run src/lib/workflow/phase-mapper.test.ts -t "label does not add test"→≥ 3 passed, 0 failed - AC-2: Auto-detect mode still picks the UI workflow for a UI label. Evidence:
npx vitest run src/lib/workflow/phase-mapper.test.ts -t "detectPhasesFromLabels"→0 failed(constraint) - AC-3: The changelog records the change. Evidence:
awk '/^## \[Unreleased\]/,/^## \[[0-9]/' CHANGELOG.md | grep -c '#1631'→≥ 1 - AC-4: No skill-directory edits. Evidence:
git diff --name-only $(git merge-base origin/main HEAD)..HEAD | grep -cE '^(plugin/|\.claude/skills/|templates/skills/)'→0(constraint)
May touch
src/lib/workflow/phase-mapper.ts and phase-mapper.test.ts, docs/reference/run-command.md (phase-detection paragraph only), CHANGELOG.
Non-Goals
- The
/testskill and--phases ...,test. - Auto-detect mode.
Done when
A UI label never adds test to a phase list; the user asks for it by name.
Metadata
Metadata
Assignees
Labels
graph-2026-11-simplifygraph-2026-11-simplify: sequant 3.0 cut to the measured shape (D-1..D-8, 2026-11-03)plannedImplementation plan approved
Activity
admarble commentedon Nov 8, 2026
Runner context (graph-2026-11-simplify W1, 2026-11-07). Read this before planning.
docs/internal/graph-2026-11-simplify/PROJECT-DISCUSSION.mdonmain(7337cdd39). Invariants I-1 to I-7 bind this issue. I-1: no edits underplugin/,.claude/skills/ortemplates/skills/. The freeze lifted on 2026-11-06, but I-1 stays this graph's scope.timeout, after a WIP commit. Run targetednpx vitest run <file>for everything else. Every MCP or CLI phase has a 30-minute wall.Evidence:command is run verbatim by QA and by the runner. Run them yourself before reporting done; don't reason them done.Mutation-verified:record in the PR body (CLAUDE.md). Usesequant mutation begin | check | renderwhere it fits.changelog.d/) is open and active. If it has merged onmainwhen you start, followchangelog.d/README.mdinstead of editingCHANGELOG.md, and say in the PR body that the changelog AC needs rewording. The runner rewords it on the issue; don't skip the entry.determinePhasesForIssue(phase-mapper.ts:200-208).detectPhasesFromLabelsand the--testgen/--security-reviewadjustments stay (T-1, T-2). IfhasUILabelshas no caller left, delete it; knip's advisory counts unused exports.admarble commentedon Nov 8, 2026
Complexity: Simple (4 ACs, 3 directories)
AC Quality Check
All four ACs carry a command-shaped
Evidence:. Vacuity check on base: AC-1's-t "label does not add test"matches 0 tests today, so vitest finds no tests and it fails today. That is the intended gate, and the≥ 3 passedthreshold makes it a real one. AC-2 and AC-4 are constraints that pass today by design. AC-3 greps#1631in[Unreleased], which has no match today, so it fails until the entry lands.Scope Assessment
Non-Goals: present (
/testskill,--phases ...,test, auto-detect mode). Verdict: ✅ SCOPE_OK (1 feature, 4 AC,src/lib/workflow,docs/reference, CHANGELOG).Acceptance Criteria
frontend-labelled issue →determinePhasesForIssue(["spec"], ["frontend"], {})returns["spec"];["spec","exec","qa"]returns unchanged; withtestgen: trueit insertstestgenafter spec. Newdescribe("label does not add test")with ≥3 cases.detectPhasesFromLabels"UI labels" case (phase-mapper.test.ts:73) still returns["spec","exec","test","qa"].#1631line under### Changed(or### Fixed) in[Unreleased], marked breaking per the!title.plugin/,.claude/skills/,templates/skills/.Implementation Plan
src/lib/workflow/phase-mapper.ts:200-208, along with its comment.hasUILabelsthen has no non-test caller (whole-repo grep: only the block andphase-mapper.test.ts:119-131). Delete it and itsdescribe("hasUILabels exact matching (AC-5)"). Update the import in the test. If the registry import becomes unused, remove it.describe("label does not add test")with the 3 cases from AC-1. Mutation-verify it withsequant mutation begin | check | render: restore the block, confirm the test fails, restore, and recordMutation-verified:in the PR body.npx vitest run src/lib/workflow/phase-mapper.test.ts src/commands/run.test.ts. Therun.test.tshits (lines 342, 489, 525, 2544-2567) come fromparseRecommendedWorkflowanddetectPhasesFromLabelspaths, not from this block. Confirm none go throughdeterminePhasesForIssuewith a UI label.docs/reference/run-command.md:84saystestis "auto-added for ui/frontend/admin/web/browser-labeled issues". Reword it to "added by auto-detect mode (run.autoDetectPhases) or by naming it in--phases". The same line-81 pattern forsecurity-reviewis true and stays.[Unreleased]entry citing run: --phases does not suppress the UI-label test phase (determinePhasesForIssue adds it to an explicit list) #1631 and feat(assess): fence chat output; Considered: block restores why-not flag reasoning #857.changelog.d/does not exist on main and feat(#1351): improve(release): changelog fragments instead of a shared [Unreleased] block — 121/192 main commits touch CHANGELOG.md #1370 is still open, so editCHANGELOG.md.Design Review
determinePhasesForIssueis the single post-resolution adjuster. The fix is deleting from it.--phases(run: --phases does not suppress the UI-label test phase (determinePhasesForIssue adds it to an explicit list) #1631's first ask), because D-1 removes the add and the gate would keep dead logic.git log -S hasUILabelsshows 1 introducing commit (14b811922, refactor(run): split 3,459-line monolith into focused modules #318). Prior symptom issues are feat(assess): fence chat output; Considered: block restores why-not flag reasoning #857 and run: --phases does not suppress the UI-label test phase (determinePhasesForIssue adds it to an explicit list) #1631, a workaround then this fix. That makes 2 symptom reports, 0 prior code fixes, so this is the first fix and it fixes the class (the block is gone for every caller).batch-executor.ts:3319andskills-preflight.ts:183change?" Both consume the function, so both follow. Preflight no longer expectstestfor UI-labelled issues, which is the correct direction. Checkskills-preflight.ts:113-130for comments that describe the insertion.detectPhasesFromLabels,parseRecommendedWorkflow,determinePhasesForIssueandconfig-resolver. OnlydeterminePhasesForIssuechanges. Consumers arebatch-executor,skills-preflightandrun-compat. No new producer, so no parity test is needed.Feature Quality Planning
All standard checks pass. Notable: it's a breaking behaviour change (hence
!). Users who relied on UI labels addingtestmust pass--phases ...,testor use auto-detect.Open Questions
docs/reference/run-command.md:84row sits in a phase table, not the "phase-detection paragraph" the issue's May-touch names. Recommendation: edit that row, since it is the only wrong statement. Impact if skipped: docs keep claiming auto-add.Recommended Workflow
Phases: exec → qa
Quality Loop: disabled
Reasoning: one deletion plus tests. AC-1 declares unit-test evidence, but this is a bug fix with a single targeted test, so testgen is skipped.
Label Review
Current: graph-2026-11-simplify. Recommended: add
plannedonly. Quality Loop: won't auto-enable.admarble commentedon Nov 8, 2026
QA Verdict: AC_MET_BUT_NOT_A_PLUS
AC coverage: 4/4 met
Gaps:
docs/features/assess-minimal-flags.md:19,:25and:30still say UI-labelled issues "automatically get thetestphase inserted beforeqa". Its example saysnpx sequant run 499 -Qrunsspec → exec → test → qa. After this change that command runsspec → exec → qa. The page is underdocs/features/, which publishes to the site. It is outside this issue's "May touch" list./assessskill relies on the removed behaviour..claude/skills/assess/SKILL.md:440(mirrored inplugin/andtemplates/) tells/assessto drop--phasesfor UI-labelled issues because "determinePhasesForIssueauto-addstestfrom the ui label". So/assesswill now print commands that silently skiptest, while itsassess:phases=marker still liststest. I-1 forbids skill edits in this graph, so the fix has to be a separate issue.Reviewed in a separate session by claude-code (claude-opus-5-5); the change was written by claude-code (claude-sonnet-5-5).
docs(#1649): assess-minimal-flags no longer says a UI label adds the …
admarble commentedon Nov 8, 2026
Runner, W1: QA
AC_MET_BUT_NOT_A_PLUS. All four ACs re-run by the runner pass. The stale docs page is fixed on the PR (05e9a7a5b). Deferred, not fixed:.claude/skills/assess/SKILL.md:440still omits--phasesfor UI-labelled issues on the assumption that the label addstest. It's skill text outside this graph's I-1 scope and is a candidate for OQ-7 in the founding doc; the owner decides whether it joins. PR #1659 is waiting for CI and the owner's merge.