/assess: Minimal Command Flags
/assess emits the shortest correct npx sequant run command for each issue. This page explains the output rules so you know what to expect — and what the displayed command actually resolves to at runtime.
What you see
Section titled “What you see”/assess follows three rules when generating example commands:
- Omit
--phasesfor the default workflow. When the resolved phases equal the CLI default (registered atbin/cli.ts:186, defined asDEFAULT_PHASESinsrc/lib/workflow/types.ts), the flag is dropped. - Prefer additive flags over restating the phase list. Additive flags:
--testgenand--security-review(registered atbin/cli.ts:208-209). Use them instead of--phases spec,testgen,exec,qaor--phases spec,security-review,exec,qa. - Keep
--phaseswhen no additive flag exists. Power-user workflows that need bespoke phase orderings still fall back to--phases.
Examples
Section titled “Examples”| Issue type | Old display | New display |
|---|---|---|
| Default workflow | npx sequant run 532 -Q --phases spec,exec,qa | npx sequant run 532 -Q |
| testgen needed | npx sequant run 552 -Q --phases spec,testgen,exec,qa | npx sequant run 552 -Q --testgen |
| ui-labelled (test phase auto-added) | npx sequant run 499 -Q --phases spec,exec,test,qa | npx sequant run 499 -Q |
| security-review | npx sequant run 500 -Q --phases spec,security-review,exec,qa | npx sequant run 500 -Q --security-review |
What runs at runtime
Section titled “What runs at runtime”The displayed command is human shorthand. At runtime, phase-mapper.determinePhasesForIssue (in src/lib/workflow/phase-mapper.ts) resolves phases per issue based on labels:
- Issues labelled
ui,frontend,admin,web, orbrowserautomatically get thetestphase inserted beforeqa. - The
--testgenflag insertstestgenafterspec. - The
--security-reviewflag insertssecurity-reviewafterspec(idempotent — no duplicate whenauth/securitylabels already trigger auto-detection). - Chain commands (
--chain) resolve phases per issue, so each issue in the chain gets its own phase list.
Example: npx sequant run 499 -Q for a ui-labelled issue runs spec → exec → test → qa even though the displayed command shows no --phases flag.
Markers vs displayed commands
Section titled “Markers vs displayed commands”/assess posts a machine-readable marker on each issue alongside the human-readable command:
<!-- assess:phases=spec,exec,test,qa -->npx sequant run 499 -QThe marker records the full resolved workflow for tooling and audits. The displayed command shows only what the human needs to type. This divergence is intentional — parsers consume markers, humans copy commands.
Troubleshooting
Section titled “Troubleshooting”The displayed command doesn’t show the phases that actually run
Section titled “The displayed command doesn’t show the phases that actually run”This is intentional. Use the <!-- assess:phases=... --> marker (in the issue comment posted by /assess) to see the full resolved workflow. The marker is the source of truth for what runs.
--phases is still in the command — why?
Section titled “--phases is still in the command — why?”/assess falls back to --phases only for power-user / resume cases that need a bespoke phase ordering (e.g. --phases qa,merger). The two domain phases that have additive flags — testgen and security-review — are always preferred when the resolved workflow contains them.
Generated for Issue #554 on 2026-04-28