⨠feat: Needs you judges each proposal on an issue, not only the latest
Slice: #99
Builds State #205 of P-40, from #203 (found while building athya_mono 0161 S-3, #202, athya-hq/athya_mono#3358, under Work item athya-hq/athya_mono#3353, which the owner approved on 2026-11-08). Closes #203.
What changes
src/asks.ts: the Needs you reader judges each agent ask on an issue on its own. Owed: every agentProposal:, for the first#Nof its first line (a slice for its addition, a State for its drop), and the latest agent ask when it is aNeeds you:, for the issue itself. Each is answered by an ownerDecision:after it on the issue, an owner š on it after its last edit, or an owner batch answer on Approvals after it whose first line names its number (each counted only if owners alone edited it).needs-ownercomes off only when every one is answered. A waiting issue's sweep line names what waits:#12: waits on the owner (the proposal for #30).- The comment event on Approvals no longer takes the label off whatever the batch names: it runs the same sweep over every open
needs-ownerissue, counting the comment it brings though the Approvals list may not show it yet. An issue labelled with no agent ask on it (the weekly job's undo issues) still comes off when the batch names it, as before. src/approvals.ts:firstIssue(line), the first#Nof this repository a line names, withapprovedIn's guard (noowner/repo#N, no HTML entities).- README ("Many at once", "The Needs you list keeps itself") and a Record in
docs/decisions.md. The "known gap" sentence #202 added is gone.
Two readings, noted here rather than decided:
- A
Proposal:whose first line names no#Nis for the issue it sits on, so a batch naming that issue answers it (as before; the existing tests'Proposal: 1read this way). - "A
Needs you:ask keeps today's rule" is read literally: it is owed only while it is the latest agent ask there, so one followed by a later proposal is superseded, as today.
Evidence
pnpm check passes: typecheck, 1070 of 1070 tests under the 95/95/90 gate (asks.ts 100% lines, 97.24% branches, 100% functions; approvals.ts 100%), build, smoke.
New tests in src/asks.test.ts, needsOwner āŗ "a batch answer on the Approvals issue" āŗ "one proposal at a time (#203)", each run through the hourly sweep and through the comment event on Approvals, each way:
- "1. clears a slice owing only a State's drop when the batch names the State, and not when it names the slice":
Decision: approve #30clears slice #12 whose one proposal drops State #30;#12alone leaves it waiting for the proposal for #30. - "2. keeps a slice whose other proposal waits when the batch names one, and clears it when it names both":
#12ā waits for #30;#30ā waits for #12;#12 #30ā cleared. - "3. keeps a slice where the owner šd the latest proposal and an earlier one waits, and clears it when each is answered": š on the drop only ā waits for #12; š on both ā cleared; š on the drop and a batch naming #12 ā cleared.
- "counts a Decision: on the slice only for the proposals before it".
- "judges a Needs you: ask as before: the latest ask, when it is one".
Also: "judges each labelled issue at once, this answer counted, though the Approvals issue does not list it yet" (replaces the event test that removed labels blindly) and "counts the answer once where the Approvals issue lists it, and only from that list when the event names no id". src/approvals.test.ts: firstIssue.
The version isn't bumped here; the release (0.5.35) follows in its own PR, then athya_mono pins it.
š¤ Generated with Claude Code