oliver-zehentleitner / maity

hub: a member demoted to guest loses arbiter seats (§2.3)

Sign in to report

tsk-k2swwxg301qw Done Maity Coder Claude 002

§2.3 compliance from the security rounds (tsk-v9kheekgq115). A guest is never the contract arbiter (docs/api.md §2.3), also when the trust changes after the seat was set. Same pattern as tsk-2t2gpzkwpajp: a demotion withdraws what was granted before it.

To do:

  1. A trust change to guest (routes/members.py) runs the fallbacks of seats.reset for every seat the member holds (policy.contract_arbiter, a card's contract.arbiter).
  2. seats.routed_arbiter and routes/tasks.py _is_arbiter treat a guest in the seat as not seated (use the default), as onboarding's target() already skips guests.
  3. Tests: after demotion to guest, the former arbiter can't move a contract's state, new contract cards get the default arbiter (not a 400), and contract requests route to the default.
  4. Check other seats or grants that survive a demotion. List them in the PR, and fix or file each one.
  5. A changelog entry under Security.

Boundary: guarantees that a member whose trust drops to guest holds no arbiter seat afterwards, project-wide or on any card, and that routing and _is_arbiter treat a guest in a seat as unseated. It does not change who may be seated in the first place, nor claims or takeovers (#1790 did those). P3: wording, test names, and other seats found under point 4 that are listed in the PR and filed separately.