*Territory · 3 understandings* ## Summary A governance specification sets out how a role is checked before an action runs: an undeclared role or a kind that does not match the participant's kind stops the check, and an action is allowed or blocked depending on whether the role lists it. ## Explanation - An undeclared role, or a role whose kind does not match the participant's kind, is caught by a declared-role block and the check stops. - Step 2 (role): if roleId is not a declared role, or its kind != participant.kind, check `role_declared` BLOCK and stop. - When a role exists and the action is not among the role's actions, the action is blocked and evaluation stops. - If A exists and action is not in role.actions, the check is "role_permits_action" BLOCK and evaluation stops. - When a role exists and the action is among the role's actions, the action is allowed. - If A exists and action is in role.actions, the check is "role_permits_action" ALLOW. - The specification does not say what happens when no role exists at all, only what happens when one does or when the declared role fails its check. - Step 2 (role): if roleId is not a declared role, or its kind != participant.kind, check `role_declared` BLOCK and stop. - If A exists and action is not in role.actions, the check is "role_permits_action" BLOCK and evaluation stops. - If A exists and action is in role.actions, the check is "role_permits_action" ALLOW. ## Threads - An action the role does not list is blocked and evaluation stops. - If A exists and action is not in role.actions, the check is "role_permits_action" BLOCK and evaluation stops. - An action the role lists is allowed. - If A exists and action is in role.actions, the check is "role_permits_action" ALLOW. ## Consultant **Where it shows up** — The role check keeps coming up as the gate before an action: an undeclared role or a mismatched kind stops it, and a listed action passes while an unlisted one blocks. **A question to sit with** — When a role exists but the action is not on its list, what should the person see so they know which list to change? **A way forward** — Keep the two outcomes side by side — action listed, action not listed — and add the case where no role exists at all, so the check has an answer for every door. ## Ideas - A role that was never declared, or whose kind does not match the participant's kind, should stop the check rather than fall through to a decision. - Whether an action is permitted should be decided by whether the role's own list of actions contains it. ## Understandings - Step 2 (role): if roleId is not a declared role, or its kind != participant.kind, check `role_declared` BLOCK and stop. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - If A exists and action is not in role.actions, the check is "role_permits_action" BLOCK and evaluation stops. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - If A exists and action is in role.actions, the check is "role_permits_action" ALLOW. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 ## Who, where and what Things: [[Bevia/World/Things/A|A]], [[Bevia/World/Things/ALLOW (805f100b)|ALLOW]], [[Bevia/World/Things/BLOCK (88a445ae)|BLOCK]], [[Bevia/World/Things/participant.kind|participant.kind]], [[Bevia/World/Things/role_declared|role_declared]], [[Bevia/World/Things/role_permits_action|role_permits_action]], [[Bevia/World/Things/role.actions|role.actions]], [[Bevia/World/Things/roleId|roleId]]