Skip to content

feat(#559): add --security-review additive CLI flag - #567

Merged
admarble merged 1 commit into
mainfrom
feature/559-feat-cli-add-security-review-additive-flag-for-sym
May 3, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/559-feat-cli-add-security-review-additive-flag-for-sym

Conversation

@admarble

@admarble admarble commented May 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add --security-review CLI flag mirroring the --testgen pattern from feat(#554): emit minimal command flags in /assess output #557
  • Removes the only --phases line /assess was still forced to emit for non-resume cases
  • Idempotent vs auth/security label-based auto-detection — flag does not duplicate the phase

After this PR:

npx sequant run 500 -q --security-review

instead of:

npx sequant run 500 -q --phases spec,security-review,exec,qa

AC Verification

AC Description Status Evidence
AC-1 --security-review registered in bin/cli.ts ✅ bin/cli.ts:209
AC-2 RunOptions.securityReview plumbed end-to-end ✅ types.ts:191, batch-executor.ts:300-302
AC-3 phase-mapper.determinePhasesForIssue inserts after spec ✅ phase-mapper.ts:184-190
AC-3.1 (derived) Idempotent vs label-based auto-detection ✅ Test in phase-mapper.test.ts:170-178
AC-4 SKILL.md Rule 8 updated across 3 mirrors ✅ All 3 mirrors at :251
AC-5 SKILL.md example + Flags annotation switch to flag ✅ :301, :313, :406, :414
AC-6 assess-skill.test.ts extended ✅ :151
AC-7 CHANGELOG entry under [Unreleased]/Added ✅ Top of section

Test plan

  • npm run build — passes
  • npm run lint — passes (0 warnings/errors)
  • npx vitest run src/lib/workflow/ src/lib/__tests__/ — 832 tests pass
  • npx tsx bin/cli.ts run --help shows --security-review Run security-review phase after spec
  • Manual smoke test: determinePhasesForIssue confirms idempotency, composition with --testgen, and absence of spec

Notes

Closes #559

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
admarble merged commit ecf3417 into main May 3, 2026
8 checks passed
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(cli): add --security-review additive flag for symmetry with --testgen

1 participant