Repository navigation
Closed
Labels
Description
Summary
.claude/skills/assess/SKILL.md currently skips the spec phase when an issue has bug or docs labels and no domain label (security/auth/ui/frontend). Real-world batches (see today's /assess 528-532) show this skip rule is too aggressive — bug and docs issues often contain meaningful design decisions in their ACs that spec is meant to catch.
Motivation
/specwas compressed ~68% in perf(spec): prompt compression and tiered context — reduce spec skill token cost by ~60% #515, so the per-phase cost is now small enough that universal inclusion is cheap.- The label-based skip picks the wrong axis:
bugdescribes the nature of the work, not its complexity or design surface. fix(checkpoint): scope chain-mode checkpoint to feature paths, don't sweep dirty tree #528 (labeledbug) requires a scoped-vs-unrelated detection algorithm and test-suite rewrites — exactly the thing spec exists to validate. feedback_design_before_code.mdin user memory reinforces this: design pass before writing code, consistently.- During batch assessment today, the user rejected the initial recommendation that skipped spec for 3 of 5 issues; flipping the default aligns the skill with observed preference.
Acceptance Criteria
- AC-1: Remove the "Skip spec when (bug/docs label AND no domain labels)" rule from
.claude/skills/assess/SKILL.md"Step 4: Workflow Detection" - AC-2: Default rule becomes: always include
specunless a priorspecphase marker already exists on the issue - AC-3: Update the "Labels → Workflow" table so
bug/fix/hotfix/patchanddocs/documentation/readmerows showspec → exec → qa(notexec → qa) - AC-4: Update all batch/single-mode examples in the skill so bug/docs issues show
spec → exec → qa - AC-5: Sync the change across all three skill directories (
.claude/skills/,templates/skills/,skills/) - AC-6: Update
CHANGELOG.mdunder [Unreleased]
Additional context
- Related prior work: fix: /assess batch output corrupts with 9+ issues + label-priority spec-skip bug #494 (label priority / spec-skip bug), fix: restore /solve feature parity in /assess — chain detection, testgen, flag reasoning, output polish #522 (feature parity restoration), perf(spec): prompt compression and tiered context — reduce spec skill token cost by ~60% #515 (spec compression)
- Self-assessed workflow:
spec → exec → qawith-q(skill change + 3-dir sync)
Complexity
simple — rule flip + table update + example refresh + 3-dir sync
Activity
admarble commentedon Apr 23, 2026
→ PROCEED — Flip spec-ON default in /assess skill; remove bug/docs auto-skip. 3-dir sync.
Workflow:
spec → exec → qa· 6 ACs```
npx sequant run 533 -q
```
⚠ 3-dir SKILL.md sync (known pitfall) + CHANGELOG [Unreleased] merge risk
⚠ Self-referential: changes the very rule that would have skipped spec here
admarble commentedon Apr 23, 2026
QA Review for Issue #533
Implementation Status: NOT FOUND
No implementation detected for this issue:
origin/main@6648085)spec/exec)Feature worktree exists (
../worktrees/feature/533-feat-assess-default-spec-phase-on-remove-bug-docs-) but no work has been committed to it yet.Verdict: AC_NOT_MET
No code changes found to review. The 6 acceptance criteria (spec-ON default flip, bug/docs auto-skip removal, 3-dir SKILL.md sync, CHANGELOG entry, etc.) cannot be evaluated without an implementation.
Next Steps
/spec 533to review the plan against ACs (spec-ON is the point of this issue, so this step is self-referential — proceed carefully)./exec 533to implement across all three skill directories (.claude/skills/,templates/skills/,skills/)./qa 533once commits land on the feature branch.QA skipped: No implementation to review
admarble commentedon Apr 23, 2026
Plan — #533: Default spec phase ON, remove bug/docs auto-skip
Complexity: Standard (6 ACs, 3 mirrored skill dirs)
AC Checklist
.claude/skills/assess/SKILL.mdline 127specunless a priorspecphase marker existsbug/fix/hotfix/patchanddocs/documentation/readmerows →spec → exec → qaexec → qa.claude/skills/,templates/skills/,skills/[Unreleased]→### Changedbullet referencing feat(assess): default spec phase ON, remove bug/docs auto-skip #533Plan
.claude/skills/assess/SKILL.md: rule flip (line 127), Labels→Workflow table (120–121), Label priority paragraph (123), Run Column Symbols meaning (211).--phases exec,qafrom default commands, update HTML markers. Leave resume (◂) cases untouched.templates/skills/assess/SKILL.mdandskills/assess/SKILL.md(currently byte-identical;cpguarantees zero drift).[Unreleased] / ### Changedbullet.diff -qon all three pairs empty; grep confirms no remaining "bug/docs AND no domain" language.Risks / Open Questions
[Unreleased]. Trivial to resolve.### Changed(behavior change). Cosmetic if flipped to### Added.Proceeding to /exec.
admarble commentedon Apr 23, 2026
Exec Complete — PR #548
AC Verification
grep "bug/docs label AND no domain"→ no match.claude/skills/assess/SKILL.md:127spec → exec → qascripts/check-skill-sync.ts→assess/SKILL.md — 3/3 match[Unreleased] / ### Changedbullet referencing #533Files Changed (4)
.claude/skills/assess/SKILL.md— canonical rule flip + examplestemplates/skills/assess/SKILL.md— synced (byte-identical)skills/assess/SKILL.md— synced (byte-identical)CHANGELOG.md—[Unreleased] / ### ChangedentryQuality Gates
npm run buildnpm run lintsrc/lib/__tests__/assess-skill.test.tsscripts/check-skill-sync.tsPre-PR Confidence Check
exec → qaorassess:phases=exec,qacomment I missed. Mitigation: grep confirmed only the intentional feat(#390): MCP server SSE multi-client rejection #411 resume case remains.assess-skill.test.tsalready covers phase vocabulary, CLI flag accuracy, and 3-dir sync. This PR strengthens those tests' guarantees (no new phases introduced; existing flags unchanged).Proceeding to /qa.
admarble commentedon Apr 23, 2026
QA Review for Issue #533
AC Coverage
grep "bug/docs label AND no domain"returns zero matches in SKILL.md.claude/skills/assess/SKILL.md:127now reads: "Skip spec when: a priorspecphase marker already exists on the issue. Otherwise, always include spec…"bug/fix/hotfix/patchanddocs/documentation/readmeshowspec → exec → qa.claude/skills/,templates/skills/,skills/scripts/check-skill-sync.tsreportssynced assess/SKILL.md — 3/3 match[Unreleased]entry### Changedsubsection added with #533 reference, motivation (bug/docs design decisions, #515 compression cost), and summary of updated sectionsCoverage: 6/6 AC items fully met
Original ACs: 6/6 met
Derived ACs: 0 (no quality plan existed for this issue)
Quality Plan Verification
N/A — No quality plan found in issue comments (issue was single-step enhancement with self-evident AC).
CI Status
build (20.x)build (22.x)typecheckvalidate-skillsvalidate-pluginPlugin Structure ValidationHooks ValidationSetup Directory CreationCI Summary: 8 passed, 0 pending, 0 failed
Quality Metrics
any)Test Coverage Analysis
No
.ts/.tsxsource files changed — this is a documentation/prompt-only PR..claude/skills/assess/SKILL.mdsrc/lib/__tests__/assess-skill.test.ts— 5 tests verify phase vocabulary, CLI flag accuracy, and 3-dir sync; all passtemplates/skills/assess/SKILL.mdscripts/check-skill-sync.tsskills/assess/SKILL.mdscripts/check-skill-sync.tsCHANGELOG.mdCoverage: Indirect — skill content behavior is LLM-interpreted, so
assess-skill.test.tscovers the structural invariants (valid phases, real CLI flags, 3-dir sync) that this change must preserve. All 5 tests still pass.Code Review
Strengths:
cpsync → 3-dir byte-identical. Zero drift risk, perfeedback_verify_bulk_replacements.md.#515compression, batch assessment observations) rather than just stating what changed.Issues:
Suggestions:
Skip whenclause (line 139): "onlybug/fixlabels present, onlydocslabel present" still appears as a skip axis. Under the new spec-default, testgen skip-for-bugs still makes sense (no Unit/Integration Test ACs), but the parallel structure with the old spec-skip rule is now inconsistent at the glance. Not blocking — just worth considering in a future cleanup.Anti-Pattern Detection
package.jsonchanges.ts/.tsxchangesCall-Site Review
N/A — no new exported functions.
Execution Evidence
N/A — no
scripts/or CLI files modified.Skill Command Verification
Skill files changed: 1 (mirrored 3x)
.claude/skills/assess/SKILL.mdnpx sequant runcommandsCommands Verified (via existing
assess-skill.test.ts):-q,--phases,--chain,--qa-gate,--base— all registered inbin/cli.ts(verified byassess skill CLI flag accuracytest)Verification Status: Passed
Skill Change Review
assess-skill.test.tsalready validates againstbin/cli.ts◂) preserved;spec,exec,qa,spec,security-review,exec,qa,spec,exec,test,qapatterns all represented in examplesghandgitas beforeSmoke Test
npm run buildnpm run lintnpx vitest run src/lib/__tests__/assess-skill.test.tsnpx tsx scripts/check-skill-sync.tsassess/SKILL.mdSmoke Test Status: Complete
CHANGELOG Verification
/assessdefault recommendation)[Unreleased]entry### Changed#533, motivation, scope of examples updated)Result: CHANGELOG requirements met
Risk Assessment
/assesson trivial bug fixes now receivespec → exec → qaby default, adding ~60s per issue vs the priorexec → qashortcut. If users consistently override (edit the Commands line or pass--phases exec,qa), that's a signal the default is wrong — but the motivation (bug/docs often contain design decisions) has been validated in recent real-world batches. Revertable in a one-line diff.assess-skill.test.tsstructural invariants (valid phases, real CLI flags, 3-dir sync) plus the updated documentation itself. Functional correctness is observable in the next/assessinvocation.Verdict: READY_FOR_MERGE
All 6 ACs verified literally; build, lint, targeted tests, skill-sync check, and all 8 CI checks pass. The diff is content-only (markdown), mirrored cleanly across 3 directories, and carries a clear CHANGELOG entry with issue reference and motivation. The one follow-up suggestion (line 139 parallel-structure consistency) is cosmetic and non-blocking.
Documentation
[Unreleased] / ### Changed(feat(assess): default spec phase ON, remove bug/docs auto-skip #533)Next Steps
./scripts/dev/cleanup-worktree.sh feature/533-feat-assess-default-spec-phase-on-remove-bug-docs-feat(#533): extend spec-ON default to runtime phase-mapper and batch-…
admarble commentedon Apr 24, 2026
QA Update — Scope Extended to Runtime Layer
Post-verdict adversarial sweep surfaced that the initial PR fixed only the
/assessskill recommendation, while the runtime CLI (sequant run) still short-circuited bug/docs issues viaphase-mapper.detectPhasesFromLabelsandbatch-executor's auto-detect branch. The skill promised spec; the runtime silently stripped it. Extending scope in commit2e79778to close that gap.Additional Changes
src/lib/workflow/phase-mapper.tsdetectPhasesFromLabels: dropisBugFix || isDocs → ["exec","qa"]branch; always returnspec → exec → qa(orspec → exec → test → qafor UI). JSDoc onBUG_LABELS/DOCS_LABELSclarified as metadata categories.src/lib/workflow/batch-executor.tsautoDetectPhasesblock. Spec now runs unconditionally. UnusedBUG_LABELSimport removed.issueType: "docs"propagation to post-spec phases preserved.src/lib/workflow/phase-mapper.test.tsdescribetitles + expectations for bug/docs blocks tospec → exec → qa.src/lib/workflow/batch-executor.test.tsissueTypeassertions filter out the spec call (spec runs with base config;issueConfigis built after). AC-4 "bug precedence" reframed — precedence no longer applies to phase selection.src/commands/run.test.tsbuglabel now asserts spec.bug + securitynow assertsspec → security-review → exec → qa(security-review inserts after spec, which now runs).docs/concepts/workflow-phases.mdspec → exec → qa.docs/features/exact-label-matching.mdBUG_LABELS/DOCS_LABELSeffect column rewritten to describe the new metadata-only role.CHANGELOG.md[Unreleased]to Keep a Changelog convention (Added → Changed). Rewrote the #533 entry to cover both skill and runtime layers.Quality Gates (Post-Extension)
npm run buildnpm run lintAC Re-verification
All 6 original ACs remain MET; AC-2 is now behaviorally satisfied (not just documented):
detectPhasesFromLabels(["bug"])→spec,exec,qa+batch-executorauto-detect runs spec unconditionallydocs/concepts/workflow-phases.mdLabel→Phases tabledocs/features/exact-label-matching.mdstale annotations removedcheck-skill-sync.ts→ 3/3 matchVerdict: READY_FOR_MERGE
Ready for human merge. The runtime flip is the most consequential part — users running
sequant run --auto-detecton bug/docs issues will now see spec execute by default, matching the/assessskill recommendation.docs(#533): clean up remaining stale "skip spec" references
admarble commentedon Apr 25, 2026
Documentation Generated
File:
docs/features/spec-by-default.mdSections Included
autoDetectPhasessetting)/assessoverride,◂resume symbol)workflow-phases.md,exact-label-matching.md,docs-pipeline.mdWhy a New Page
Three existing docs were updated in the PR (
docs-pipeline.md,exact-label-matching.md,workflow-phases.md), but none of them is a central reference for the new default. This page is the landing point users can be directed to when they ask "why is spec running on my bug fix now?"Next Steps
Related Documentationsection243221f; this doc landing as a follow-up is fineGenerated post-merge as a follow-up to PR #548.
docs(#533): add central reference page for spec-by-default behavior
fix(#552): close two adversarial-review gaps in behavior-rule detector
feat(#552): detect behavior-rule implementations across skill+runtime…
feat(#609): extract deterministic QA gap-checks into precheck script (#…
fix(#834): anchor AC attribution on the checkbox form — AC-6 routing …
fix(#834): scope AC attribution and drop the gawk-only IGNORECASE
fix(#834): §7 gates must be reachable — lint /qa's own enforcement ch…
test(#1560): the #533 label-shortcut tests take ~850 ms with every ph…