Test RoomAuthorize policy mounted on both reference spines — the TS
spine binary's full mount (full_spine_mount.ts) and the Rust
testing_spine_stub — so the rooms_ws cross suite drives the room verbs
with one rule set on both. The twin of the Rust TestRoomAuthorize, rule
for rule.
The room id's prefix decides, so a case picks its rule by naming its room:
open:<rest> — join and watch, no scope, the registry's cap;scoped:<scope>:<rest> — join and watch under the scope <scope>
(non-empty);pair:<rest> — join and watch, at most two members;watch:<rest> — watch only; a join is denied;admin:<rest> — join and watch for an actor holding the global admin
role, denied to anyone else;- anything else — denied (
room_not_found).
A test policy, not a model. The admin: rule reads the grant live through
the request's database, inside the reserve window, as every authorizer must
(RoomAuthorize); no other rule reads the database. A cross-language test
contract.