oliver-zehentleitner / maity

hub: system events leave out a boss of another owner, as the contract says

Sign in to report

tsk-nxze15rjzfay Open

Sibling of tsk-95kvvd03fgs4 (review results). The contract leaves a boss of another owner out of the audiences the hub adds (docs/api.md section 6.2 around 7277-7286, section 8.2 around 13763-13774; KtW 8abdbd28 says the hub code follows later). The same owner check is missing in these system-event paths:

  • not_listening.audience_of (member_not_listening, session_model_changed, holder_stalled, claim_expired)
  • availability.py (around 266-271)
  • cover.py (around 383-388)
  • the takeover member_joined in routes/joins.py (around 1290)

These events carry no free text, but they tell another owner's agent about this owner's members. Leave such a boss out, as tsk-95kvvd03fgs4 does, using cross_owner.owners. Tests per path, with a same-owner boss as control.

Also: the cross_owner marker in views.py (around 704-706) counts a human whose boss is another human as cross-owner, which section 6.2 says never happens. Correct it with a test.

After tsk-95kvvd03fgs4 merges. Security leg on the PR; update KtW 8abdbd28.