Repository navigation
Conversation
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
6 tasks
…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
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
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
/assess— spec is now always included unless a priorspecphase marker already exists on the issue.spec → exec → qa..claude/skills/,templates/skills/,skills/) — byte-identical, verified byscripts/check-skill-sync.ts.[Unreleased]→### Changedbullet referencing feat(assess): default spec phase ON, remove bug/docs auto-skip #533.Motivation
/specwas 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:bugdescribes 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
grep "bug/docs label AND no domain"returns nothing in SKILL.md.claude/skills/assess/SKILL.md:127bug/fix/hotfix/patchanddocs/documentation/readme→spec → exec → qa◂) cases preservedscripts/check-skill-sync.tsreportsassess/SKILL.md — 3/3 match[Unreleased] / ### Changedbullet with #533 referenceQuality Gates
npm run build— ✅ tsc passesnpm run lint— ✅ eslint passesnpx 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 matchTest plan
diff -qacross all 3 skill dirs is emptyNotes
◂ exec → qaandassess:phases=exec,qa— resume states carry a priorspecmarker, which is the only remaining skip condition.[Unreleased]. Resolution should be trivial.Closes #533