Repository navigation
Conversation
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
7 tasks
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
--security-reviewCLI flag mirroring the--testgenpattern from feat(#554): emit minimal command flags in /assess output #557--phasesline/assesswas still forced to emit for non-resume casesauth/securitylabel-based auto-detection — flag does not duplicate the phaseAfter this PR:
instead of:
AC Verification
--security-reviewregistered inbin/cli.tsbin/cli.ts:209RunOptions.securityReviewplumbed end-to-endtypes.ts:191,batch-executor.ts:300-302phase-mapper.determinePhasesForIssueinserts after specphase-mapper.ts:184-190phase-mapper.test.ts:170-178:251:301,:313,:406,:414assess-skill.test.tsextended:151Test plan
npm run build— passesnpm run lint— passes (0 warnings/errors)npx vitest run src/lib/workflow/ src/lib/__tests__/— 832 tests passnpx tsx bin/cli.ts run --helpshows--security-review Run security-review phase after specdeterminePhasesForIssueconfirms idempotency, composition with--testgen, and absence of specNotes
assess/SKILL.mdRule 8 across the 3 mirrors.--testgenexactly. No new abstraction (N=2 is too few to warrant a registry).batch-executor.ts:660-674.Closes #559