Repository navigation
Description
Summary
The /assess v3.0 output redesign (#453 + commit 8f38dca) overcorrected when compressing the old /solve verbosity. Three core /solve capabilities were dropped as collateral damage, and the resulting output lost the visual structure that made /solve scannable. No follow-up issue was filed to restore them.
What was lost
| Feature | Shipped in #325 | Removed by | Current state |
|---|---|---|---|
| Chain detection | --chain recommended when issues have explicit dependencies |
8f38dca (v3.0 redesign) |
Flag documented (line 135) but no detection logic; Order: annotation exists but doesn't influence commands |
| Testgen detection | --testgen recommended when ACs have testable criteria (UI, API, validation) |
8f38dca removed testgen rows from phase-selection table |
testgen listed as valid phase (line 124) but no detection rule in label table (lines 113-121) |
| Flag reasoning | Flags table with ✓/✗ + one-line reasoning per flag; "Why this workflow" bullets |
AC-3 of #453 removed "Why this workflow"; 8f38dca removed flags table from batch |
Single mode has <flag reasoning> on summary line (line 351); batch mode has zero reasoning |
| Visual structure | Boxed command block, flags table, clear visual hierarchy | #494 replaced boxes with indented commands (boxes corrupted at 9+ issues due to fixed width) | Bare indented text with ──── separators only |
Observed impact (real output from /assess 185 186)
# Action Reason Run
185 PROCEED Blocker #184 resolved, codebase ready spec → exec → qa
186 PROCEED Blocker #184 resolved, hooks path clear spec → exec → test → qa
────────────────────────────────────────────────────────────────
npx sequant run 185 -q
npx sequant run 186 -q --phases spec,exec,test,qa
────────────────────────────────────────────────────────────────
Problems:
- No chain — The model identified the dependency in prose ("Sequencing matters — feat: Publish Sequant as Claude Code Plugin Marketplace #185 first, feat(#185): Publish Sequant as Claude Code Plugin #186 wraps fetchApi") but emitted two separate commands instead of suggesting
--chain - No testgen — Neither command includes
--testgendespite both issues having testable ACs - No flag reasoning — User sees
-qand--phases spec,exec,test,qawith no explanation of why - No visual hierarchy — Commands float between identical separator lines; nothing draws the eye to the most important element (the thing you copy-paste)
Design Goals
From the end user's perspective, the person running /assess wants to:
- Scan in 5 seconds — Which issues are ready? Which are blocked?
- Copy-paste and go — The command should be right, with the right flags
- Understand why — Why these phases? Why this order? Why
-q? - Trust the recommendation — But retain control over risky topology decisions like
--chain
Design Decisions
Why suggest chain instead of auto-apply
--chain means issue 2 branches from issue 1's branch, not main. If the model incorrectly infers a dependency (prompt-level parsing is fuzzy), the user gets a silently wrong execution topology — issue 2 built on a possibly broken foundation. A false positive is worse than a false negative. So: suggest with reasoning in a Chain: annotation, don't auto-apply the flag.
Why no boxes
Boxes have failed twice (#494 corruption, original fixed-width overflow). The root cause isn't the box characters — it's that LLMs can't reliably count character widths to draw aligned boxes. "Content-adaptive width" still requires the model to measure its longest line and pad correctly. Instead: use a Commands: header with indented commands. Visual hierarchy comes from the labeled section header, not drawn borders.
Why no new Findings section
The user complaint was "solve features are missing," not "add new sections." The existing ⚠ warnings and Order: annotations already provide a home for non-obvious context. The fix is to make those better (AC-5), not add a fourth annotation type that increases prompt length. #515 is actively trying to reduce prompt token costs — adding sections works against that.
Why AC count column is conditional
The model counts explicit - [ ] checkboxes in issue bodies. Issues with implicit or narrative ACs would show wrong numbers, eroding trust in the whole table. Show the column only when all assessed issues have explicit checkbox ACs. Omit entirely otherwise.
Acceptance Criteria
Restore dropped /solve features
- AC-1: Chain suggestion — When 2+ assessed issues have a detected dependency, add a
Chain:annotation (same level asOrder:and⚠warnings) that suggests--chain --qa-gatewith reasoning. The user decides whether to apply it. Detection triggers:- Issue body/comments mention "depends on #N", "blocked by #N", "after #N"
- One issue's output is another issue's input (e.g., feat: Publish Sequant as Claude Code Plugin Marketplace #185 changes fetchApi error format, feat(#185): Publish Sequant as Claude Code Plugin #186 wraps fetchApi)
- Format:
Chain: npx sequant run 185 186 --chain --qa-gate -q # 186 consumes 185's fetchApi changes - When chain is suggested, the default commands (separate
npx sequant runper issue) remain as-is — chain is an alternative, not a replacement
- AC-2: Testgen auto-detection — Restore testgen phase recommendation in the phase-selection table. Detection rules:
- Labels
uiorfrontend+enhancementorfeature→ includetestgenin workflow - ACs reference "unit test", "integration test", or verification method is "Automated Test"
- Skip testgen for:
bug/fix-only labels,docs-only labels, issues where testgen phase already ran (check issue comments for testgen phase marker)
- Labels
- AC-3: Flag reasoning in batch mode — Add a
Flags:line below the command block explaining non-default flags. One line per distinct flag used across all commands. Format:OmitFlags: -q 9+ ACs or multi-file scope --phases ...,test ui label → browser verification --testgen testable ACs detected (UI components)Flags:section when-qis the only non-default flag and the reason is obvious (e.g., all issues are enhancements).
Output readability
- AC-4: Labeled command block — Replace the bare indented commands between
────separators with aCommands:header. No box-drawing, no character counting. The header label provides the visual anchor that boxes were supposed to provide.──────────────────────────────────────────────────────────────── Commands: npx sequant run 185 -q npx sequant run 186 -q --phases spec,exec,test,qa ──────────────────────────────────────────────────────────────── - AC-5: Richer annotations — Improve existing
Order:and⚠annotations to carry the context that was previously in prose or the Reason column:Order:gains dependency reasoning:Order: 185 → 186 (185 changes fetchApi error format that 186 consumes)⚠warnings can note partial AC satisfaction:⚠ #185 Domain errors already exist in repository layer — scope may be smaller than expected- No new annotation types — use
Order:,⚠, andCleanup:only
- AC-6: Conditional AC count column — When ALL assessed issues have explicit
- [ ]checkbox ACs in their body, add anACscolumn to the batch table. Omit the column entirely when any issue lacks explicit checkboxes.# Action ACs Reason Run 185 PROCEED 6 Domain error standardization spec → exec → qa 186 PROCEED 9 React Query migration spec → exec → test → qa - AC-7: Single-mode enabled-flags list — Restore flag reasoning for single-issue mode as an indented list (not a box-drawn table). Show only enabled flags with reasoning. Omit entirely when the only flag is
-qfor an obvious reason.Flags: -q 9 ACs, multi-file scope --testgen testable ACs (UI components + API)
Sync and guardrails
- AC-8: Sync all three skill copies — Changes applied to
.claude/skills/assess/SKILL.md,templates/skills/assess/SKILL.md, andskills/assess/SKILL.md - AC-9: Updated examples — All existing examples in SKILL.md updated to reflect new format (batch mixed, batch clean, batch large, single PROCEED). No stale examples showing old format.
Non-Goals
- Changing action selection logic (PROCEED/CLOSE/MERGE/REWRITE/CLARIFY/PARK decision tree)
- Adding AC coverage lists back to batch mode (that's spec's job)
- Changing machine-readable markers format
- Modifying the TypeScript parser layer
- Box-drawing of any kind (proven unreliable for LLM-generated output)
Technical Notes
--chainand--qa-gateare real CLI flags — Registered inbin/cli.ts:194-200. No CLI wiring needed.--testgenis a real CLI flag — Registered inbin/cli.ts:191. No CLI wiring needed.- All changes are prompt-only — Detection logic lives in SKILL.md instructions, not compiled TypeScript. No build/test changes expected.
- Prompt length tradeoff — This adds detection rules and formatting instructions. Keep it concise — the testgen detection rules and chain suggestion format should total <30 lines of new prompt. Remove any dead instructions they replace (old flag documentation at line 134-137 that describes flags without detection logic).
Regression Context
| Commit/Issue | What it did | What it broke |
|---|---|---|
| #325 (PR #436) | Shipped full /solve parity | Nothing — this was correct |
| #453 | Streamlined PROCEED format, removed "Why this workflow" (AC-3) | Started the erosion — reasoning removed |
8f38dca |
v3.0 redesign — dashboard table for batch | Removed flags table, testgen detection rows, chain detection logic |
| #494 (PR #512) | Fixed box corruption at 9+ issues | Removed all boxes (overkill fix) |
Expected Output (after fix)
Batch — dependent issues with testgen
# Action ACs Reason Run
185 PROCEED 6 Domain error standardization spec → exec → qa
186 PROCEED 9 React Query hooks migration spec → testgen → exec → test → qa
────────────────────────────────────────────────────────────────
Commands:
npx sequant run 185 -q
npx sequant run 186 -q --phases spec,testgen,exec,test,qa
────────────────────────────────────────────────────────────────
Order: 185 → 186 (185 changes fetchApi error format that 186 consumes)
⚠ #185 Domain errors already exist in repository layer — scope may be smaller
⚠ #186 @tanstack/react-query not installed; large scope (9 hooks + optimistic updates)
Chain: npx sequant run 185 186 --chain --qa-gate -q --phases spec,testgen,exec,test,qa
# alternative — use if 186 should branch from 185's work
Flags:
--testgen #186 has testable ACs (UI hooks + API integration)
--phases ...,test #186 ui label → browser verification
────────────────────────────────────────────────────────────────
Batch — all clean, no chain
# Action ACs Reason Run
461 PROCEED 4 Exact label matching exec → qa
460 PROCEED 3 Batch-executor tests exec → qa
443 PROCEED 5 Consolidate gh calls spec → exec → qa
────────────────────────────────────────────────────────────────
Commands:
npx sequant run 461 460 -q --phases exec,qa
npx sequant run 443 -q
────────────────────────────────────────────────────────────────
No annotations, no flags section, no chain — silence means clean.
Single — with flags
#458 — Parallel run UX freeze + reconcileState race condition
Open · bug, enhancement, cli
────────────────────────────────────────────────────────────────
→ PROCEED — Both root causes confirmed in codebase
Commands:
npx sequant run 458 -q
spec → exec → qa · 8 ACs
Flags:
-q dual concern across 4 files
────────────────────────────────────────────────────────────────
Files
.claude/skills/assess/SKILL.mdtemplates/skills/assess/SKILL.mdskills/assess/SKILL.md
Activity
admarble commentedon Apr 16, 2026
Plan Complete — /spec
Complexity: Complex (9 ACs, 3 mirrored directories)
AC Checklist
Chain:alongside default commands — suggest only, no auto-apply)Flags:section in batch mode with one-line reasoning per distinct flag (omit when only obvious-q)Commands:labeled header replaces bare indented blockOrder:/⚠annotations (dependency reasoning, partial-AC context) — no new typesACscolumn when all issues have explicit- [ ]checkboxesFlags:indented list (parity with batch, same omission rules).claude/skills/,templates/skills/,skills/)Implementation Plan
Phase 1 — Study: Map the edit surface (Step 4 Workflow Detection, Output Format batch+single, examples).
Phase 2 — Detection logic (Step 4):
Phase 3 — Output Format:
Commands:header replaces bare indented commands (batch + single)Order:/⚠annotation rules with reasoning examplesFlags:section format (batch + single) with omission rulesPhase 4 — Examples (AC-9): Refresh every example block: batch mixed, batch clean, batch large, single PROCEED.
Phase 5 — Three-dir sync (AC-8): Apply identical changes to
templates/skills/assess/SKILL.mdandskills/assess/SKILL.md. Verifydiff -qclean.Key Design Decisions (from issue)
Order:/⚠/Cleanup:/Chain:/Flags:vocabulary/specby 68%; remove dead prompt (lines 134-137 flag docs without detection logic) in parallelOpen Questions
Flags:(after workflow line per issue example)- [ ](conservative)Chain:annotation appears after⚠warnings (per expected-output example)Defaults documented; will proceed with these unless blocked.
Recommended Workflow
Phases: spec → exec → qa
Quality Loop: enabled (9-AC threshold)
No
testphase (this IS the skill that drives phase selection — prompt-only, no UI)No
testgen(prompt-only — no code stubs to generate)Ready to implement.
feat(#522): restore /solve feature parity in /assess skill
admarble commentedon Apr 16, 2026
Exec Complete
Branch:
feature/522-restore-solve-parity-in-assessCommit:
004a657— +533 / -162 across 4 filesFiles changed
.claude/skills/assess/SKILL.md(+227 lines, three-dir sync)templates/skills/assess/SKILL.md(mirrored)skills/assess/SKILL.md(mirrored)src/lib/__tests__/assess-skill.test.ts(regex updated for new Step 4 section layout; drift-prevention guardrail preserved)AC Coverage
Chain:annotation rule + example showing suggest-only formatFlags:annotation rule + examples; omission rule for obvious-qCommands:header in batch + single-mode templates; no boxesOrder:now carries dependency reasoning;⚠includes partial-AC-satisfaction exampleACscolumn- [ ]before showingFlags:listFlags:)check-skill-sync.tsreportsassess/SKILL.md — 3/3 match; test asserts identityQuality Gates
npm run buildnpm run lint--max-warnings 0)npm testcheck-skill-sync.tsand test--flagreferences in skill exist inbin/cli.tsPrompt Length
Pre-PR Confidence Check
Chain:being suggest-only (a false positive doesn't cause silent bad behavior — the user decides).assess-skill.test.tsguards against drift (CLI flag validity, phase validity, three-dir sync). Feature correctness will be manually verified by running/assesson representative inputs during QA.fix(#522): reference testgen in phase-selection table per AC-2
admarble commentedon Apr 16, 2026
QA Review for Issue #522
Scope: Prompt-only changes across 3 mirrored
assess/SKILL.mdfiles + 1 test regex update. Diff: +533 / -162 (pre-fix), + 3 lines (post-fix for AC-2 literal-fit). Final file size: 514 → 640 lines (+126).Branch:
feature/522-restore-solve-parity-in-assess@254c74d· 0 commits behindorigin/main.AC Coverage
Chain:suggestion (never auto-apply)254c74dadded Modifier row to table referencing testgen; detection rules (labels + AC-content triggers + skip conditions) captured in dedicated subsectionFlags:reasoning in batch mode-q; example includes--testgen/--phases ...,testwith reasonsCommands:labeled command blockgrep '^ npx sequant' → 0hits,grep '^Commands:' → 9hitsOrder:/⚠annotationsOrder:rule requires dependency reasoning over bare filenames (two worked examples);⚠rule permits partial-AC-satisfaction notes (two examples). No new annotation subtypes on Order/⚠/CleanupACscolumn[ACs]bracketed; explicit rule "include only when every issue has ≥1- [ ]"; "dependent issues" example shows column, other examples explicitly note omissionFlags:indented listFlags:list; two examples (with & without) demonstrating omission rule for obvious-qdiff -qclean;check-skill-sync.tsreportsassess/SKILL.md — 3/3 match; testassess skill 3-directory syncpassesCoverage: 9/9 AC items fully met.
Quality Metrics
any)Build / Lint / Tests
npm run build(tsc)npm run lint(eslint --max-warnings 0)npm test(vitest)check-skill-sync.ts)assess/SKILL.md — 3/3 matchassess-skill.test.ts)--flagreferences in SKILL.md exist inbin/cli.tsTest Coverage Analysis
No source
.tsfiles changed (only markdown + one test update).assess-skill.test.tswas updated to match the new Step 4 section layout; the drift-prevention guardrail it enforces (valid phases, valid CLI flags, 3-dir identity) is preserved and greener than before (addedexpect(referencedFlags.length).toBeGreaterThan(0)to prevent regex-no-match silent pass).Skill Command Verification
No new bash commands introduced in the skill.
--chain/--qa-gateflag references in the new "Chain detection" subsection validated againstbin/cli.tsbyassess-skill.test.ts.Verification Status: ✅ Passed
Anti-Pattern Detection
No runtime code changes. No dependency changes. N/A.
Risk Assessment
Chain:) are acceptable because chain is suggest-only. False positives (testgen triggered for a simple bug) are reversible by the user — adds one phase, doesn't corrupt state. All failure modes degrade gracefully.assess-skill.test.tsguards against drift (CLI flag validity, phase validity, three-dir sync) but not semantic correctness. Final validation requires manual/assessruns, which was accepted during spec as a design constraint of prompt engineering.CI Status
No PR yet. CI will run on PR creation.
Verdict: READY_FOR_MERGE
All 9 acceptance criteria are met with literal-text alignment (AC-2 fixed mid-QA to satisfy "in the phase-selection table" wording). Three-directory sync verified programmatically. All quality gates green. Prompt length growth (+126 lines) is fully accounted for by AC-required new sections (Chain/Flags) + example refreshes (AC-9); stays within the issue's prompt-discipline budget since dead flag-documentation lines were removed.
Strengths:
Suggestions (non-blocking):
Documentation
/assessCLI flags already exists inbin/cli.ts. CHANGELOG update may be worth adding on merge (user-facing behavior of/assessoutput changes).Next Steps
admarble commentedon Apr 16, 2026
/fullsolve Complete
Issue: #522
Status: READY_FOR_MERGE
PR: #527
Progress Table
Summary
Iterations
Mid-QA Fix
Detected during AC literal verification: AC-2 text said "Restore testgen phase recommendation in the phase-selection table" but initial exec placed it in a post-table subsection. Added a Modifier row to the table itself (
254c74d); three-dir sync + all tests preserved.Post-Merge Verification Reminder
Run manual
/assesson representative inputs to confirm prompt behavior — prompt correctness cannot be automated in CI:/assess 185 186) → expectChain:suggestiontestgenin workflow- [ ]ACs → expectACscolumnFlags:section omitted (obvious-q)Ready for human review and merge.
docs(#522): add CHANGELOG entry for /assess output format changes
admarble commentedon Apr 17, 2026
Gap Fixes + Empirical Smoke Test
Adversarial re-read surfaced two gaps from the initial QA pass. Both now addressed.
Gap 1: CHANGELOG entry — FIXED
/assessoutput format is genuinely user-facing. Added an[Unreleased]entry covering all 9 ACs worth of visible output changes. Commitbbabb35.Gap 2: Empirical validation — DONE
Previous QA verdict was based on static analysis of the prompt text. The prompt has now been empirically exercised end-to-end:
Procedure: Temporarily swapped the worktree's SKILL.md into the main repo, invoked
/assess 504 505, captured output, restored main's original SKILL.md (checksums re-verified byte-identical).Result on real input (#504 + #505):
```
Action ACs Reason Run
504 PROCEED 9 Typed event system (unblocks #383, #486) spec → exec → qa
505 PROCEED 9 Phase plugin registry (user-extensible) spec → exec → qa
────────────────────────────────────────────────────────────────
Commands:
npx sequant run 504 505 -q
────────────────────────────────────────────────────────────────
⚠ #504 9 ACs across batch-executor, MCP, and dashboard — multi-file scope
⚠ #505 Descoped in roadmap (#504/#505/#506 reduced) — confirm current scope before spec
Flags:
-q 9 ACs each + multi-file scope
────────────────────────────────────────────────────────────────
Cleanup:
./scripts/dev/cleanup-worktree.sh feature/503-* # PR #510 merged
```
Format checks passed on real output:
Commands:labeled header (AC-4)ACscolumn (AC-6)- [ ])Flags:section (AC-3)-qreasoning⚠warnings (AC-5)enhancement, roadmap, backlog(no ui/frontend) and ACs don't reference unit/integration testsCleanup:for merged-PR worktree#503worktree correctly flaggedNegative-space validation: The Chain-suggestion negative case is critical — issue Design Decisions explicitly said false-positive chaining is the dangerous failure mode. With two genuinely-dependent-on-same-ancestor-but-independent-of-each-other issues (both depend on merged #503), the prompt correctly chose NOT to suggest chaining. If it had, that would be the regression the issue set out to prevent.
Analysis posted to #504 and #505 as part of the test.
Remaining borderline gaps (not blocking, documented for post-merge follow-up):
Flag references:bullet list has partial redundancy (--chain/--qa-gatesemantics already in Chain paragraph)Annotation Rulessection could split into "issue-signal annotations" vs "command-metadata sections" for structural clarityUpdated verdict: READY_FOR_MERGE (unchanged). All ACs still met; gaps found were adjacent (CHANGELOG, empirical validation) rather than in the AC set itself.
fix(#522): restore /solve feature parity in /assess skill (#527)
feat(assess): fence chat output; Considered: block restores why-not f…
feat(#522): restore /solve feature parity in /assess skill
fix(#522): reference testgen in phase-selection table per AC-2
docs(#522): add CHANGELOG entry for /assess output format changes