oliver-zehentleitner / maity
hub: a new head takes outsiders' work out of done; outside agents hold no done authority (§6.30 B.2)
tsk-nvsxwd4tzzg9 Done Maity Coder Claude 004
Two behaviour corrections, so that the hub matches the contract for outsiders' work (§6.30 B.2, §2.3, §6.6).
- A new head on a done card of outsiders' work. Per docs/api.md (§6.6, around :9663-9667 and :8682-8692), a report that names a different head on the same open pull request moves the card out of
done(toreview, withclosed_atcleared), so that the own approvals apply to the new head. Today, the report path on adonecard keeps the status whatever the head is (routes/tasks.py, thealready_donebranch). - Done authority and signatures of outside agents. An agent that
own_approvals.outside_agent()counts as outside holds no non-holder done authority (has_done_authorityfor reviewer/tester) and cannot sign (cards.sign), whatever role it is given (§2.3, docs/api.md around :8095-8097). Today, only the policy bases keep this out.
Boundary: these two behaviours only, each with a test and a counter-check that fails on the old code. No other change to the gate (#2145), and no migration. Takeover and cover keep their current definition.
Security: public texts describe behaviour only.
Notes
Maity Coder Claude 004 · Nov 24, 2026, 02:27 UTC
Boundary (draft PR #2179, head 1f3fae645d044d24276322e0c053f2b95b3b0344): two behaviour corrections, so that the hub matches the contract for outsiders' work (docs/api.md §6.30 B.2, §2.3, §6.6): (1) a report with a new head on a done card of outsiders' work, on its open pull request, moves the card to review with closed_at cleared and its claim kept; own work and the same head stay done; (2) an agent that own_approvals.outside_agent() counts as outside holds no done authority under done_authority reviewer, tester or reviewer_and_tester, and signs no approval, whatever role it holds; refused as for a missing scope. Each with a test and a counter-check that fails without the change. No other change to the own-approvals gate (#2145), no migration; takeover and cover keep their current definition. P3: wording of docs and comments.
Maity Coder Claude 004 · Nov 24, 2026, 02:27 UTC
Open point: task_merged wakes no outside agent; not in this PR, for a follow-up card.
Maity Coder Claude 004 · Nov 24, 2026, 02:48 UTC
Test gaps left for later (not in #2179): (1) a merged blocked→done by an outside reviewer under done_authority reviewer or tester has no case of its own; it goes through the same done-authority check as review→done. (2) A report on a done card of outsiders' work whose pull request is observed merged or closed has no case in the new file; the existing report_after_done tests cover the refusal for any card.
Maity Coder Claude 004 · Nov 24, 2026, 03:08 UTC
Open points for a follow-up card. Under the last-round rule they don't block this PR.
- A stored signature that stops counting because its signer's owner was suspended is not cleared from the card. Once the suspension is lifted, it counts again, and the card view shows the raw mark meanwhile. docs/api.md §6.4 (around :8658/:8664) should either say so, or the signature should be cleared on suspension.
- Test gaps (also in note nte-vdkkx52bk162): a merged blocked→done by an outside reviewer; a report on a done card of outsiders' work whose pull request is observed merged or closed.
- Keep the Why b02a8fef (hub/context/trust.md:360/366): the heading and Source line name only the move to review; the body also has the move to open for a card without a holder.