*Territory · 6 understandings* ## Summary A governance specification sets out how each area's allowed and denied roles become never rules, and how validation re-derives those rules and requires them present and unchanged. ## Explanation - A governance specification sets out how each area's allowed and denied roles become never rules, and how validation re-derives those rules and requires them present and unchanged. - The rulebook field areas is a required list of at least one { id, name, tags?, allowRoles?, denyRoles?, synonyms? }, and allowRoles/denyRoles compile to the ne… - Validation re-derives the area role-limit rules from the areas and requires them present and unchanged, and the id prefix area_role_limits: is reserved for the… - Rule identifiers are non-empty strings and may contain a colon. - Rule IDs are non-empty strings and may contain :, as area_role_limits:<area> does. - The rulebook's areas field is a required list of at least one entry, each with an id, a name, optional tags, allowed roles, denied roles and synonyms, and the allowed and denied roles compile into never rules under a reserved identifier prefix. - The rulebook field areas is a required list of at least one { id, name, tags?, allowRoles?, denyRoles?, synonyms? }, and allowRoles/denyRoles compile to the ne… - For each area with denied roles, a never rule is derived naming the roles that may never act in that area, with the declaration authority as the setter, a wildcard action, the area as the place, an answer of deny, and a source pointing at the area's denied-roles declaration. - For each area with denyRoles, the rule { id: "area_role_limits:<area>:deny", never: true, setBy: <declaration authority>, text: "<role names> may never act in… - For each area with allowed roles and at least one other role, a never rule is derived saying the area is limited to those roles, listing every role not allowed in declaration order, with a wildcard action, the area as the place, an answer of deny, and a source pointing at the area's allowed-roles declaration. - For each area with allowRoles and at least one other role, the rule { id: "area_role_limits:<area>", never: true, setBy, text: "<area name> is limited to: <all… - Validation re-derives the area role-limit rules from the areas and requires them present and unchanged, and the identifier prefix is reserved for them. - Validation re-derives the area role-limit rules from the areas and requires them present and unchanged, and the id prefix area_role_limits: is reserved for the… - Each derived area role-limit rule must be present in the rules and equal, as canonical JSON, to the derived one, and no other rule may use that prefix. - Each derived area role-limit rule MUST be present in rules and equal (as canonical JSON) to the derived one, and no other rule may use the area_role_limits: pr… - All of this rests on a single source, so nothing here shows how the rules behave across other documents or versions. - Rule IDs are non-empty strings and may contain :, as area_role_limits:<area> does. - The rulebook field areas is a required list of at least one { id, name, tags?, allowRoles?, denyRoles?, synonyms? }, and allowRoles/denyRoles compile to the ne… - Validation re-derives the area role-limit rules from the areas and requires them present and unchanged, and the id prefix area_role_limits: is reserved for the… - For each area with denyRoles, the rule { id: "area_role_limits:<area>:deny", never: true, setBy: <declaration authority>, text: "<role names> may never act in… - For each area with allowRoles and at least one other role, the rule { id: "area_role_limits:<area>", never: true, setBy, text: "<area name> is limited to: <all… - …and 1 more ## Threads - How each area's allowed and denied roles compile into never rules - The rulebook field areas is a required list of at least one { id, name, tags?, allowRoles?, denyRoles?, synonyms? }, and allowRoles/denyRoles compile to the ne… - For each area with denyRoles, the rule { id: "area_role_limits:<area>:deny", never: true, setBy: <declaration authority>, text: "<role names> may never act in… - For each area with allowRoles and at least one other role, the rule { id: "area_role_limits:<area>", never: true, setBy, text: "<area name> is limited to: <all… - Validation re-deriving those rules and requiring them present and unchanged - Validation re-derives the area role-limit rules from the areas and requires them present and unchanged, and the id prefix area_role_limits: is reserved for the… - Each derived area role-limit rule MUST be present in rules and equal (as canonical JSON) to the derived one, and no other rule may use the area_role_limits: pr… - Rule identifiers as non-empty strings that may contain a colon - Rule IDs are non-empty strings and may contain :, as area_role_limits:<area> does. ## What's still open Nothing in these records shows how the derived rules behave once an area's roles change after validation. - Validation re-derives the area role-limit rules from the areas and requires them present and unchanged, and the id prefix area_role_limits: is reserved for the… - Each derived area role-limit rule MUST be present in rules and equal (as canonical JSON) to the derived one, and no other rule may use the area_role_limits: pr… ## Consultant **A question to sit with** — When an area's allowed or denied roles change, what should happen to the derived never rules that were already in the rulebook? **A way forward** — Keep the derivation and the re-derivation check side by side in one place, so a change to an area's roles and the rule it produces are read together. ## Ideas - Area role limits should be recomputed from the areas rather than trusted as stored rules, and validation should require the recomputed ones present and unchanged. ## Understandings - Rule IDs are non-empty strings and may contain :, as area_role_limits:<area> does. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - The rulebook field areas is a required list of at least one { id, name, tags?, allowRoles?, denyRoles?, synonyms? }, and allowRoles/denyRoles compile to the never rules area_role_limits:<area> and area_role_limits:<area>:deny (§ 2.2). — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - Validation re-derives the area role-limit rules from the areas and requires them present and unchanged, and the id prefix area_role_limits: is reserved for them. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - For each area with denyRoles, the rule { id: "area_role_limits:<area>:deny", never: true, setBy: <declaration authority>, text: "<role names> may never act in <area name>.", who: denyRoles, does: "*", where: <area id>, then: { answer: "deny" }, reason: <same as text>, source: { kind: "declaration", ref: "area:<area>.denyRoles" } } is derived. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - For each area with allowRoles and at least one other role, the rule { id: "area_role_limits:<area>", never: true, setBy, text: "<area name> is limited to: <allowRoles joined by ', '>.", who: <every role id not in allowRoles, in declaration order>, does: "*", where: <area id>, then: { answer: "deny" }, reason: <same as text>, source: { kind: "declaration", ref: "area:<area>.allowRoles" } } is derived. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - Each derived area role-limit rule MUST be present in rules and equal (as canonical JSON) to the derived one, and no other rule may use the area_role_limits: prefix. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 ## Who, where and what Things: [[Bevia/World/Things/allowRoles|allowRoles]], [[Bevia/World/Things/answer|answer]], [[Bevia/World/Things/area_role_limits-|area_role_limits:]], [[Bevia/World/Things/area_role_limits--area-|area_role_limits:<area>]], [[Bevia/World/Things/area_role_limits--area--deny|area_role_limits:<area>:deny]], [[Bevia/World/Things/area--area-.allowRoles|area:<area>.allowRoles]], [[Bevia/World/Things/area--area-.denyRoles|area:<area>.denyRoles]], [[Bevia/World/Things/areas|areas]], [[Bevia/World/Things/declaration|declaration]], [[Bevia/World/Things/deny|deny]], [[Bevia/World/Things/denyRoles|denyRoles]], [[Bevia/World/Things/does|does]], [[Bevia/World/Things/id|id]], [[Bevia/World/Things/kind|kind]], [[Bevia/World/Things/name|name]], [[Bevia/World/Things/never|never]], [[Bevia/World/Things/reason|reason]], [[Bevia/World/Things/ref|ref]], [[Bevia/World/Things/Rule IDs (07123955)|Rule IDs]], [[Bevia/World/Things/rules|rules]], [[Bevia/World/Things/setBy|setBy]], [[Bevia/World/Things/source|source]], [[Bevia/World/Things/synonyms|synonyms]], [[Bevia/World/Things/tags|tags]], [[Bevia/World/Things/text|text]], [[Bevia/World/Things/then|then]], [[Bevia/World/Things/where|where]], [[Bevia/World/Things/who|who]]