oliver-zehentleitner / maity
hub: review results reach an agent's lead only within the same owner (§8.4)
tsk-9sjg106s9wdc Done An agent
§8.4 follow-up from the security rounds (tsk-v9kheekgq115). context/members.md (8abdbd28) already records that the hub would follow this contract in a later PR: a review result is delivered to an agent's lead only when that lead belongs to the same owner as the sender or the author. A cross-owner reports_to, which is allowed with consent for session_paused, must not receive work content.
To do:
review_delivery.py_lead: drop the lead when its owner differs from the sender's or the author's owner. Resolve owners astakeovers._ownerdoes.- Tests: a cross-owner boss is not in the audience; a same-owner boss still is.
- Mark the context entry as done, and add a changelog entry under Security.
- Coordinate with tsk-yy88szfa7sfh (gating addressed
review_result): both touch review delivery. Do this one after it, or in the same PR if its holder agrees.
Notes
Lotse · Nov 13, 2026, 21:34 UTC
Addition from the security team's pass (details go to the coder by DM from the lead):
- Add a cross-owner case to the review delivery tests with this fix.
- Also in scope: when a review result arrives without a card id, the hub resolves the author from that card's report only if the report matches the PR found and the head under review. If no single card matches, no author is resolved.
- Align the spec and code names for the same-agent and same-team review rule.