✨ feat: propose takes several issues and hands over the batch answer
Slice: #99
Builds State #201 of P-40. The owner approved this as athya_mono 0161 S-3 (athya-hq/athya_mono#3358) by labelling Work item athya-hq/athya_mono#3353 approved on 2026-11-08; decision 4 of the spec page (version 1): "the ask hands you the comment, ready to paste". With S-2 (#191, #193) one owner comment on the Approvals issue answers a batch; this hands him that comment.
What changes
src/run.ts:proposetakes one issue number or several; a bad one is bad usage (exit 2), naming the first that is not a number. Usage text says so.src/work.ts:propose(sys, io, numbers)checks the session and the agent token once, then runs each issue in turn (proposeOne, the old body unchanged in what it posts and labels). Where the settings name an Approvals issue and anything waits, the run ends with two lines: the Approvals issue's link, andDecision: approve #a #b …, one number per proposal still waiting (a slice for its addition, a State for its drop), each once: the issues given first, in the order given, then what else waits on their slices (propose 30→#30 #12). A waiting item with no proposal yet stays out of the line: the owner would approve something he cannot read. A refused issue still fails the run (exit 1); the others' line is still printed.proposalBody: with an Approvals issue, eachProposal:comment ends "…, or comment "Decision:", or answer the batch on Approvals, #N." Without one, it is unchanged.- README: "Many at once", under "Approving with one tap".
Known gap, not changed here: the line names a dropped State by its own number (what the work rules read), but needs-owner sits on its slice. So a slice whose only waiting proposal is a State's keeps the label after the owner's batch until propose runs again; the README says so. A second commit tried to fix it in the Needs you sweep, but Cubic showed it could clear a slice while another proposal there still waited, so it is reverted (4eeff23). The proper fix (the sweep and the comment event judging each proposal on an issue, not only the latest ask) is a reader change of its own: #203.
The agent only prints the line. Only the owner's own comment approves anything: the readers (S-2) count an owner's comment alone.
Evidence
pnpm check passes (typecheck, every test under the 95/95/90 coverage gate, build, smoke). New tests in src/work.test.ts, propose › "with an Approvals issue":
- "says each proposal can be answered there, and ends with the batch answer, ready to paste": slice #12 added late and State #30 dropped → both proposals end "or answer the batch on Approvals, #700."; the last two lines are the Approvals link and
Decision: approve #12 #30. - "names each waiting proposal once, though several numbers share a slice":
propose 12 30 12→ one line,#12 #30. - "still hands over what waits when one of the numbers is refused, and fails".
- "leaves out what has no proposal yet, and says "it" for one":
propose 30→Decision: approve #30, with the command that proposes #12. - "prints no batch answer when nothing waits".
src/run.test.ts: several numbers reach propose; propose 12 x y names "x".
The version isn't bumped here; the release follows in its own PR, then athya_mono pins it.
🤖 Generated with Claude Code