Repository navigation
Closed
Labels
cc:taskCodeCrew: a task issue, attached to its milestone as a sub-issue (SPEC §4)
Description
Goal
The three verbs that write to the record or the repository — milestone new (an issue, a ROADMAP row), task finish (a merge, a deleted head, a recorded confirmation or bypass), milestone close (a sweep, a closed issue) — gain --dry-run: the verb evaluates exactly the gates it would evaluate, in order, prints each with its outcome and what it would then do, and writes nothing. A refused gate exits with the same code it would have; a clean run exits 0. milestone new --dry-run prints the number the milestone would get, so requirement prose can be written knowing it (the M4 lesson: a closed duplicate still counts). Adopted from #133 (M7-R5).
Requirements
M7-R5
Plan
- Plan, then act — each verb is split into a read-only plan that evaluates its gates in order and decides the actions, and an execute step that performs them; the live verb runs both,
--dry-runruns the plan and prints it. Gate logic is not duplicated: the same functions produce the same refusals, so the dry run can never disagree with the real run. A gate the real verb would not reach (no PR → no checks) is printed as not reached.task finish --dry-run [--operator-confirm] [--bypass]: printsCLOSED,GATED,GATE_UNRECORDED,NOT_OWNER,NO_PR,NO_CHECKS/CHECKS_PENDING/CHECKS_FAILING,NO_HOLDER_REVIEW/NO_NONDOER_APPROVAL,REVIEW_NOT_COUNTED,SELF_CONFIRM/CREW_BYPASS— eachokorrefused[CODE]: detail— then the actions: the comment(s) it would post (owner bypass, operator confirmation, merge bypass), the merge (rebase or administrator bypass) of PR #N, the head it would delete. The flags are evaluated as given, so an operator can preview--bypassbefore using it.milestone close <milestone number> --dry-run:NOT_FOUND,OPEN_TASKS,NO_REQUIREMENTS,VERDICT_MISSING/VERDICT_UNSATISFIED,DOC_MISSING; then every branch the sweep would consider with the action it would take and why (sweepBranchesbecomes a plan of{branch, delete, reason}that the live close executes), and the closing comment it would post. The raw-material dump onDOC_MISSINGstays with the live verb; the dry run names the gate.milestone new --dry-run --title T [--goal G] [--requirement R]…: validates the title and requirements exactly as the live verb does (M<k>prefix disagreement refused, text carrying its own ID refused), prints the number it would assign, the full title, the requirement IDs it would number, and the ROADMAP row — and creates nothing.
- Exit status: the first refusal's code, after the full report — so a script sees the same
refused[CODE]it would from the live verb; 0 when every gate passes. No writes on either path. - Sequencing (Backlog capture: --dry-run for task finish and milestone close #133's open question): the live
milestone closekeeps sweep-then-close; the sweep only ever deletes a merged or empty branch, so a close that fails after the sweep loses nothing — stated in the code, not changed. - Tests, same PR: the sweep plan against the fake tracker (merged at tip → delete; pushed after merge → keep; open PR → keep; empty → delete; ahead → keep) and that a dry close deletes nothing; the finish plan's gate table on synthetic inputs (each refusal reached in order, not reached after a refusal, the actions on a clean pass,
--bypassand--operator-confirmpreviews);milestone new --dry-run's number/title/row from a title list; the report's line format. - Docs: SPEC §6 rows for the three verbs name
--dry-run; docs/introduction.md's verbs paragraph says which verbs preview; the usage text; the coordinator contract's "run the verb, read the refusal" bullet gains "or preview it with--dry-run";CHANGELOG.md[Unreleased]. No new refusal code. - Not here: a dry run for
task startorcheckpoint(their writes are cheap and reversible);statusalready previews the inferred task states. go test ./...green; commits conventional, ≤ 100 characters and a lowercase first word after the type, both measured before committing; PR as the implementer withCloses #178andCloses #133; the reviewer seat by dispatch underharness: codex;task finish 178is the merge.
Ask-the-human points
Should a refused dry run exit non-zero?Implementer, 2026-08-30: yes — M7-R5 says "the same refusal codes"; a script asks a dry run the same question it asks the verb. Backlog capture: --dry-run for task finish and milestone close #133's "exiting 0 without acting" is kept for the clean case.
Metadata
Metadata
Assignees
Labels
cc:taskCodeCrew: a task issue, attached to its milestone as a sub-issue (SPEC §4)
Activity
radiusred-cody commentedon Aug 30, 2026
Started by @radiusred-cody[bot].
feat(cli): --dry-run for milestone new, task finish and milestone clo…
docs: name --dry-run in SPEC, the introduction, the coordinator contr…
feat(cli): --dry-run for milestone new, task finish and milestone clo…
docs: name --dry-run in SPEC, the introduction, the coordinator contr…
fix(cli): close says qa is unrouted where it always did; sweep notes …
feat(cli): --dry-run for milestone new, task finish and milestone clo…
docs: name --dry-run in SPEC, the introduction, the coordinator contr…
fix(cli): close says qa is unrouted where it always did; sweep notes …