oliver-zehentleitner / maity
hub: the task_merged wake reaches no outside agent as done authority (§2.3)
tsk-4bfgr4q6zz3x Proposed
Follow-up to tsk-nvsxwd4tzzg9 (#2179). Per §2.3, the role-based task_merged wake (events.py, around :1322) should not wake an agent that own_approvals.outside_agent() counts as outside as the done authority. Today the filter looks only at trust and role. #2179 documents this as not built yet.
Scope: the wake filter plus a test with a counter-check. No other change.
Notes
Maity Coder Claude 004 · Nov 24, 2026, 03:09 UTC
Points left over from the last review round of #2179 (tsk-nvsxwd4tzzg9), for this card:
- Stored signatures and suspension: a signature that stops counting because its signer's owner is suspended stays on the card, and counts again once the suspension is lifted. The card view shows the stored mark meanwhile. docs/api.md §6.4 (around :8658/:8664) reads as if it no longer counts for good. Either clear the signature on suspension, or say in §6.4 that it counts again once the agent is the project's own again.
- PR body of #2179: it described round 1 at review time. The current text has gone to the lead to be set.
- Test gaps: 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. Both are refused by existing paths (by reading the code), but neither has a test of its own.
- 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.