Skip to content

fix(#1649)!: no label adds the test phase to a phase list the user or detection chose — remove the UI-label insertion in determinePhasesForIssue (closes #1631) - #1659

Merged
admarble merged 5 commits into
mainfrom
feature/1649-fix-run-no-label-adds-the-test-phase-to-a-phase-li
Nov 8, 2026
Merged

admarble merged 5 commits into
mainfrom
feature/1649-fix-run-no-label-adds-the-test-phase-to-a-phase-li

Conversation

@admarble

@admarble admarble commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Branch feature/1649-fix-run-no-label-adds-the-test-phase-to-a-phase-li is pushed. Under the orchestrator I open no PR; it does that.

I removed the UI-label insertion in determinePhasesForIssue, so no label adds test to a phase list any more. I also deleted hasUILabels, which had no caller left. The --testgen and --security-review adjustments and detectPhasesFromLabels are unchanged.

Files changed

AC verification

AC Status Evidence
AC-1 ✅ -t "label does not add test" gives 4 passed, 0 failed
AC-2 ✅ -t "detectPhasesFromLabels" gives 12 passed, 0 failed
AC-3 ✅ the #1631 grep over [Unreleased] returns 1
AC-4 ✅ the skill-directory diff count is 0

Checks

  • npm run build and npm run lint pass.
  • Affected tests: npx vitest run src/lib/workflow/skills-preflight.test.ts src/commands/run.test.ts src/lib/workflow/phase-mapper.test.ts scripts/qa/tautology-detector-cli.test.ts gives 213 of 213 passed. I ran that file list directly, after --changed origin/main selected 88 files, which is over the 40-file mark. The first run of that set had 5 failures, which I fixed.
  • I did not run the full suite; CI does.

Pre-PR Confidence Check

  • Weakest part: the change breaks behavior on purpose. Anyone who relied on a UI label adding test now has to name it in --phases or use auto-detect. The changelog marks it breaking.
  • Coverage gaps: none. Every changed source file has tests. The comment, docs and changelog edits need none.

Notes

Next steps

The orchestrator opens the PR. Then run /qa.

Fixes #1649

QA verdict: AC_MET_BUT_NOT_A_PLUS — acceptance criteria met, but not A+. The run broke to this PR for review rather than entering the quality loop; see the QA review comment for improvement notes.

Follow-ups


🤖 Generated by sequant run

Runner verification (graph-2026-11-simplify W1, 2026-11-07)

  • I ran all four AC commands verbatim in the worktree: AC-1 4 passed / 25 skipped (≥ 3 needed); AC-2 12 passed, 0 failed; AC-3 1; AC-4 0.
  • Runner fix 05e9a7a5b: docs/features/assess-minimal-flags.md still said UI-labelled issues get test automatically (QA finding, risk_gap). It now says they don't and how to ask for it.
  • Follow-up ledger: /assess's shorthand (.claude/skills/assess/SKILL.md:440) still omits --phases for UI issues. That's skill text, outside this graph's I-1 scope, so it isn't fixed here. Filed as fix(assess): minimal-flags rule still assumes a ui label adds the test phase (stale after #1649) #1662, a candidate for OQ-7 (founding doc §9). CI pending at review time (QA execution_gap): the runner watches CI by SHA before any merge.
  • The five test edits outside the spec's file list each changed an assertion of the removed behaviour; no assertion was dropped.

Closes #1649
Closes #1631

…e UI-label insertion in determinePhasesForIssue (#1631)

Entire-Checkpoint: 9c9457538e88
@admarble

admarble commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Read first

Computed from the diff, the issue's Evidence: clauses and git log. Nothing here is written by a model.

Residue

  • docs/reference/run-command.md (+1 −1): no AC's evidence names it — git diff --numstat origin/main...HEAD -- docs/reference/run-command.md
  • src/commands/run.test.ts (+6 −6): no AC's evidence names it — git diff --numstat origin/main...HEAD -- src/commands/run.test.ts
  • src/lib/workflow/phase-mapper.ts (+0 −28): no AC's evidence names it — git diff --numstat origin/main...HEAD -- src/lib/workflow/phase-mapper.ts
  • src/lib/workflow/skills-preflight.test.ts (+4 −4): no AC's evidence names it — git diff --numstat origin/main...HEAD -- src/lib/workflow/skills-preflight.test.ts
  • src/lib/workflow/skills-preflight.ts (+1 −1): no AC's evidence names it — git diff --numstat origin/main...HEAD -- src/lib/workflow/skills-preflight.ts
  • CHANGELOG.md is hot: 18 fix commits in 28 days — git log --since=28.days --format=%s origin/main -- CHANGELOG.md | grep -cE '^fix(\(|:|!)'
  • src/commands/run.test.ts: 15 of 145 tests call no production code — npx tsx scripts/qa/tautology-detector-cli.ts --json

Tests

  • src/commands/run.test.ts: mock; mocks a module the project does not own: child_process; mutation record: none — grep -nE 'vi\.mock|jest\.mock|SKILL\.md' src/commands/run.test.ts, gh pr view 1659 --json body
  • src/lib/workflow/phase-mapper.test.ts: real; mutation record: AC-1 — grep -nE 'vi\.mock|jest\.mock|SKILL\.md' src/lib/workflow/phase-mapper.test.ts, gh pr view 1659 --json body
  • src/lib/workflow/skills-preflight.test.ts: mock; mutation record: none — grep -nE 'vi\.mock|jest\.mock|SKILL\.md' src/lib/workflow/skills-preflight.test.ts, gh pr view 1659 --json body

Explained

  • src/lib/workflow/phase-mapper.test.ts — AC-1, AC-2
  • CHANGELOG.md — AC-3

AC verdict: the SEQUANT_QA_VERDICT comment on #1649.

@admarble
admarble merged commit a5bba30 into main Nov 8, 2026
9 of 10 checks passed
admarble added a commit that referenced this pull request Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant