Skip to content

feat(#533): default /assess spec phase ON, remove bug/docs auto-skip - #548

Merged
admarble merged 3 commits into
mainfrom
feature/533-feat-assess-default-spec-phase-on-remove-bug-docs-
Apr 25, 2026
Merged

admarble merged 3 commits into
mainfrom
feature/533-feat-assess-default-spec-phase-on-remove-bug-docs-

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Removes the "skip spec when (bug/docs label AND no domain labels)" rule from /assess — spec is now always included unless a prior spec phase marker already exists on the issue.
  • Updates the Labels → Workflow table, Run Column Symbols meaning, and every batch/single example in the skill so bug/docs rows use spec → exec → qa.
  • Synced across all 3 skill directories (.claude/skills/, templates/skills/, skills/) — byte-identical, verified by scripts/check-skill-sync.ts.
  • CHANGELOG [Unreleased] → ### Changed bullet referencing feat(assess): default spec phase ON, remove bug/docs auto-skip #533.

Motivation

/spec was compressed ~68% in #515, so the per-phase cost is now small enough to justify universal inclusion. The label-based skip picked the wrong axis: bug describes the nature of the work, not its complexity or design surface. Recent batch assessments confirmed users consistently reject skipping spec for bug/docs issues that contain meaningful design decisions (scope boundaries, edge cases, test-strategy shifts).

AC Coverage

AC Status Evidence
AC-1: Remove auto-skip rule ✅ grep "bug/docs label AND no domain" returns nothing in SKILL.md
AC-2: New skip rule (spec marker only) ✅ .claude/skills/assess/SKILL.md:127
AC-3: Table rows updated ✅ Lines 120–121: bug/fix/hotfix/patch and docs/documentation/readme → spec → exec → qa
AC-4: Examples refreshed ✅ 3 batch examples + warnings/flags blocks updated; resume (◂) cases preserved
AC-5: 3-dir sync ✅ scripts/check-skill-sync.ts reports assess/SKILL.md — 3/3 match
AC-6: CHANGELOG entry ✅ [Unreleased] / ### Changed bullet with #533 reference

Quality Gates

  • npm run build — ✅ tsc passes
  • npm run lint — ✅ eslint passes
  • npx vitest run src/lib/__tests__/assess-skill.test.ts — ✅ 5/5 pass (phase vocabulary, CLI flag accuracy, 3-dir sync)
  • npx tsx scripts/check-skill-sync.ts — ✅ assess/SKILL.md — 3/3 match

Test plan

  • Build + lint + targeted vitest green
  • diff -q across all 3 skill dirs is empty
  • grep confirms no residual "bug/docs" auto-skip language
  • Reviewer: scan SKILL.md example sections for visual consistency (Run column alignment, Commands block grouping)

Notes

Closes #533

The previous "skip spec when (bug/docs label AND no domain labels)"
rule was too aggressive: real-world batches showed bug and docs
issues frequently contain design decisions (scope boundaries, edge
cases, test-strategy shifts) that benefit from a spec pass. After
#515 compressed the spec skill ~68%, the per-phase cost is small
enough to justify universal inclusion.

- SKILL.md: rule flip + label->workflow table + Run Column Symbols
  meaning + all batch/single examples refreshed to new default
- Sync'd across all 3 skill directories (byte-identical)
- CHANGELOG: [Unreleased] / ### Changed entry
- Existing assess-skill.test.ts (5 tests) still passes

Closes #533
…executor

QA surfaced that the prior #533 commit fixed the /assess skill
recommendation but left the runtime CLI contradicting it: `sequant run
<N>` with `autoDetectPhases` would still short-circuit bug/docs
issues to `exec,qa` via phase-mapper.detectPhasesFromLabels and
batch-executor's auto-detect branch. The /assess skill promised spec
would run, but the CLI silently stripped it.

Runtime changes:
- phase-mapper.ts: drop the `isBugFix || isDocs -> ["exec","qa"]`
  branch from detectPhasesFromLabels; spec is always included unless
  UI-specific workflow applies. JSDoc on BUG_LABELS/DOCS_LABELS now
  describes them as metadata categories, not spec-skip triggers.
- batch-executor.ts: drop the "Bug fix detected"/"Docs issue detected"
  shortcuts from the autoDetectPhases block. Always run spec first,
  then parse output or fall back to label-based detection. Docs-labeled
  issues still propagate `issueType: "docs"` to post-spec phases via
  issueConfig for downstream skills (lighter /qa pipeline).
- Drop unused BUG_LABELS import from batch-executor.ts.

Test updates:
- phase-mapper.test.ts: bug/docs label blocks now expect
  `spec -> exec -> qa`.
- batch-executor.test.ts: isSimpleBugFix / isDocs shortcut blocks
  renamed and updated; AC-2/AC-4 `issueType: "docs"` assertions filter
  out the spec call (spec runs with base config; issueConfig is built
  after). AC-4 "bug precedence over docs" reframed — precedence no
  longer applies to phase selection.
- run.test.ts: `bug` label now expects spec; `bug + security` now
  expects `spec -> security-review -> exec -> qa` (security-review
  inserts after spec, which now runs).

Docs:
- docs/concepts/workflow-phases.md: Label -> Phases table rows for
  bug/docs updated to `spec -> exec -> qa`.
- docs/features/exact-label-matching.md: drop stale "(skip spec)"
  parentheticals; BUG_LABELS/DOCS_LABELS effect column updated to
  describe their current (metadata-only) role.

CHANGELOG: reordered [Unreleased] to Keep a Changelog convention
(Added before Changed) and rewrote the #533 entry to cover both the
skill and runtime layers.

All targeted tests pass (194/194 across phase-mapper,
batch-executor, assess-skill, and run test files); build and lint
clean.

Closes #533
Adversarial sweep after the runtime flip surfaced four more spots
that asserted the old bug/docs spec-skip behavior:

- docs/features/docs-pipeline.md: rewrote to reflect that docs issues
  now run the full spec → exec → qa workflow with a lighter QA phase
  (1 sub-agent vs 3). The "skip spec entirely" narrative throughout
  was replaced with "lighter QA pipeline." Preserves the issueType
  propagation explanation.
- spec/references/recommended-workflow.md (3 mirrors): the "Simple
  Bug Fix" example's reasoning ("No planning needed") was ambiguous
  — could read as "spec shouldn't have run." Reworded to clarify
  that **Phases:** lists phases AFTER spec, and added a #533 note
  explaining the universal-spec default. Kept exec → qa as a valid
  output value (means "spec ran; only exec+qa remain").
- src/lib/workflow/run-reflect.ts: timing-based suggestion text
  reworded from "for simple fixes to skip spec" to "for issues where
  spec is not adding value (the default includes spec, #533)" so
  the reflection doesn't sound like it's contradicting the new default.
- src/lib/workflow/state-schema.ts: PhaseStatus "skipped" inline
  comment example updated from "(e.g., bug labels skip spec)" to
  "(e.g., prior phase marker already exists)" — bug labels no longer
  trigger a skip; prior phase markers are now the only skip path.

Left as-is: docs/reference/workflow-analysis-2026-03.md is a dated
historical analysis snapshot (date in filename); annotating it would
clutter a frozen document.

Build, lint, and 194/194 targeted vitest still pass; 3-dir sync
verified for the spec reference doc.
@admarble
admarble merged commit 243221f into main Apr 25, 2026
8 checks passed
@admarble
admarble deleted the feature/533-feat-assess-default-spec-phase-on-remove-bug-docs- branch April 25, 2026 06:14
admarble added a commit that referenced this pull request Apr 25, 2026
PR #548 updated three existing docs (docs-pipeline.md,
exact-label-matching.md, workflow-phases.md) but none of them is the
landing page users would reach when asking "why is spec running on my
bug fix now?" Adds docs/features/spec-by-default.md as the canonical
reference for the new default behavior.

Sections:
- What changed (before/after table covering all label combinations)
- Why (real-world batch evidence + post-#515 cost reduction)
- How to opt out (single-run --phases override + assess workflow)
- Resume case (◂ exec → qa for issues with prior spec marker)
- Reference table (settings + detection function locations)
- Troubleshooting (3 common scenarios)
- Cross-links to the three already-updated related docs

Entire-Checkpoint: 44b04e8aa7a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(assess): default spec phase ON, remove bug/docs auto-skip

1 participant