Skip to content

feat(#554): emit minimal command flags in /assess output - #557

Merged
admarble merged 3 commits into
mainfrom
feature/554-feat-assess-emit-minimal-command-flags-drop-defaul
Apr 29, 2026
Merged

admarble merged 3 commits into
mainfrom
feature/554-feat-assess-emit-minimal-command-flags-drop-defaul

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Omit --phases from /assess-emitted commands when the resolved workflow equals the CLI default (spec,exec,qa)
  • Prefer additive flags (--testgen) over restating the full phase list (covers ui-labelled testgen issues since phase-mapper.determinePhasesForIssue auto-adds test)
  • Add filename-as-reason exception to the Order: annotation rule for file-collision cases (AC-8)

Closes #554

Pre-PR AC Verification

AC Source Description Status Evidence
AC-1 Original Skill omits --phases when default ✅ Implemented Commands Block Rules rule 8 in all 3 SKILL.md; example :386 (spec,exec,test,qa for #499 ui label) folded into bare -q group
AC-2 Original Prefer additive --testgen ✅ Implemented Rule 8 documents preference; example :322/:329 rewritten to --testgen
AC-3 Original SKILL.md examples updated ✅ Implemented Lines :322, :329, :385 rewritten in all 3 dirs
AC-4 Original Test asserts minimization ✅ Implemented assess-skill.test.ts:140-152 rejects --phases spec,exec,qa and --phases ...,testgen,...
AC-5 Original --security-review CLI flag 🔄 Deferred Per issue's own recommendation; asymmetry documented in rule 8
AC-6 Original 3-dir sync ✅ Implemented Existing assess-skill.test.ts:143 test passes
AC-7 Original CHANGELOG entry ✅ Implemented CHANGELOG.md [Unreleased] / ### Changed
AC-8 Original Order: filename-as-reason exception ✅ Implemented Annotation Rules block in all 3 SKILL.md
AC-D1 Derived (Quality Plan) Verify phase-mapper.ts resolves --testgen + ui → spec,testgen,exec,test,qa ✅ Verified phase-mapper.ts:174-189 confirms
AC-D2 Derived (Quality Plan) Marker/command divergence note ✅ Implemented Rule 8 documents intentional divergence

Test plan

  • npm run build — passes
  • npm run lint — passes (0 errors, 0 warnings)
  • npm test (assess-skill) — 6/6 tests pass
  • Manual: run /assess <issue-numbers> against a mix of default / testgen-eligible / ui-labelled / security-review issues; verify emitted commands use minimal form

Known gaps / follow-ups

  • AC-5 deferred to a separate issue (CLI flag addition pulls in unrelated plumb-through). Not filed yet — recommend filing post-merge.

- Add commands-block rule 8: omit --phases when default; prefer --testgen
- Add Order: filename-as-reason exception for file-collision cases (AC-8)
- Rewrite testgen + ui example to use --testgen (drop --phases ...,testgen,...,test,qa)
- Fold #499 ui-labelled example into default group (test phase auto-added by ui label)
- Add minimization assertion to assess-skill.test.ts (rejects --phases spec,exec,qa and --phases ...,testgen,...)
- Document marker/command divergence (markers record full workflow; commands are shorthand)
- Document --security-review asymmetry (no additive flag yet)
- Sync across .claude/, skills/, templates/skills/
- CHANGELOG entry under [Unreleased] / ### Changed
…ed default

QA gap: AC-1 required the rule to reference bin/cli.ts as the source of
truth for the default phases rather than embedding the literal list.
Rule 8 originally pointed only at the constant location (types.ts) and
parenthetically restated "currently spec,exec,qa". Now references the
CLI registration site (bin/cli.ts:186) and the constant definition
(types.ts), with no embedded literal.
Explains the three /assess output rules (omit default --phases, prefer
additive flags, keep --phases when no additive exists), the runtime
resolution path through phase-mapper.determinePhasesForIssue, and the
intentional marker-vs-displayed-command divergence so consumers know
where to look for the full resolved workflow.
@admarble
admarble merged commit 80a9b0c into main Apr 29, 2026
8 checks passed
@admarble
admarble deleted the feature/554-feat-assess-emit-minimal-command-flags-drop-defaul branch April 29, 2026 02:48
admarble added a commit that referenced this pull request May 3, 2026
Mirrors the --testgen pattern from #557 to remove the only --phases
emission /assess was still forced to produce for non-resume cases.

- bin/cli.ts: register --security-review next to --testgen
- types.ts: add RunOptions.securityReview
- phase-mapper.ts: extend PhaseMapperOptions and insert security-review
  after spec when flag set; idempotent vs label-based auto-detection
- batch-executor.ts: SEQUANT_SECURITY_REVIEW env override and runtime
  injection block (handles --resume after spec already ran)
- assess/SKILL.md (×3 mirrors): rewrite Rule 8 — drop "asymmetry"
  clause, list both --testgen and --security-review as additive flags;
  example commands at #412 and #500 switch from --phases to
  --security-review (Flags annotations updated to match)
- docs/features/assess-minimal-flags.md: update for new flag
- assess-skill.test.ts: extend rejection regex to also catch
  --phases ...,security-review patterns
- phase-mapper.test.ts: 5 new tests covering insertion, idempotency,
  composition with --testgen, and absence of spec
- CHANGELOG: [Unreleased] / Added entry

Closes #559
admarble added a commit that referenced this pull request Sep 9, 2026
Mirrors the --testgen pattern from #557 to remove the only --phases
emission /assess was still forced to produce for non-resume cases.

- bin/cli.ts: register --security-review next to --testgen
- types.ts: add RunOptions.securityReview
- phase-mapper.ts: extend PhaseMapperOptions and insert security-review
  after spec when flag set; idempotent vs label-based auto-detection
- batch-executor.ts: SEQUANT_SECURITY_REVIEW env override and runtime
  injection block (handles --resume after spec already ran)
- assess/SKILL.md (×3 mirrors): rewrite Rule 8 — drop "asymmetry"
  clause, list both --testgen and --security-review as additive flags;
  example commands at #412 and #500 switch from --phases to
  --security-review (Flags annotations updated to match)
- docs/features/assess-minimal-flags.md: update for new flag
- assess-skill.test.ts: extend rejection regex to also catch
  --phases ...,security-review patterns
- phase-mapper.test.ts: 5 new tests covering insertion, idempotency,
  composition with --testgen, and absence of spec
- CHANGELOG: [Unreleased] / Added entry

Closes #559
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): emit minimal command flags — drop default --phases, prefer additive flags

1 participant