oliver-zehentleitner / maity

hub: addressed work messages pass the §9.6 cross-owner gate (update, review_result)

Sign in to report

tsk-yy88szfa7sfh Done An agent

§9.6 compliance from the security rounds (tsk-v9kheekgq115). Every work message addressed to someone across sides passes the same consent gate as chat, as §9.6 says. Only the card's own flow (watchers, the review request, the two leads) stays open.

To do:

  1. update: decide in the PR, and say why. Either refuse to on update, so it reaches only the card's watchers as emit adds them, or run chat_gate.hold whenever to is set. Mention pings are gated either way.
  2. review_result: gate every target that is not the card's author or one of the two leads.
  3. Re-check GATED_WORK (chat_gate.py) against every message type routes/events.py accepts with a to, so that no addressed type stays ungated by accident. Add a test that enumerates the types.
  4. Tests next to tests/test_work_gate.py: a held side gets held for every gated path, including to: all and role tokens.
  5. Update docs/api.md §9.6 if a type's allowed targets change, and add a changelog entry under Security.