*Continent · 3 territory* ## Summary A mission is a fixed-shape governance object whose permits, scopes, approvals, order, atMost and requires fields each compile into their own plan rule. ## Explanation - The governance doctrine sets out a mission as an object with a format string, an id, an objective, optional permits and approvals, and optional order, atMost and requires lists, and the specification states the same shape. - A Mission (`neuroverse-governance-plan/1`, § 16.7) is `{ format, id, objective, permitsRuleId?, permits: [{ id?, tool, scopes? }], approvals?: [{ id?, tool, sc… - A mission is { format: "neuroverse-governance-plan/1", id, objective, permitsRuleId?, permits: [{ id?, tool, scopes? }], approvals?: [{ id?, tool, scopes?, by… - A mission's permits, when some tool is not permitted, compile to a rule that denies and removes every permitted tool from the universe, or "*" when nothing is permitted. - A mission's permits (when some tool is not permitted) compiles to rule permitsRuleId ?? "plan:tools": deny, does: ["!t₁", "!t₂", …] (every permitted tool remov… - A mission's excluded scopes compile to a rule that denies the tool in those scopes. - A mission's permits[i].scopes (when some scope is excluded) compiles to rule id ?? "plan:scope:<tool>": deny, does: <tool>, where: ["!s₁", …]. - A mission's approvals compile to a rule that waits for the named approval before the tool runs, with scopes defaulting to "*". - A mission's approvals[i] compiles to rule id ?? "plan:approve:<tool>": wait { for: "approval", by }, does: <tool>, where: scopes ?? "*". - A mission's order entries compile to a plan rule that denies, does the listed action, and carries a history condition on the first tool with a value under one. - A mission's order[i] compiles to rule id ?? "plan:before:<then>": deny, does: <then>, history: [{ tools: <first>, op: "<", value: 1 }]. - A mission's atMost entries compile to a plan rule holding a tool list and a count. - A mission's atMost[i] compiles to plan rule id ?? "plan:at_most:<i>": at_most { tools, count }. - A mission's requires entries compile to a plan rule holding a tool list and a count of one. - A mission's requires[i] compiles to plan rule id ?? "plan:requires:<i>": at_least { tools, count: 1 }. - Neither document says what a mission's objective text is checked against or who writes it. - A Mission (`neuroverse-governance-plan/1`, § 16.7) is `{ format, id, objective, permitsRuleId?, permits: [{ id?, tool, scopes? }], approvals?: [{ id?, tool, sc… - A mission is { format: "neuroverse-governance-plan/1", id, objective, permitsRuleId?, permits: [{ id?, tool, scopes? }], approvals?: [{ id?, tool, scopes?, by… - The records do not say what happens when a mission carries more than one of these fields at once, or how the compiled rules interact. - A mission's permits (when some tool is not permitted) compiles to rule permitsRuleId ?? "plan:tools": deny, does: ["!t₁", "!t₂", …] (every permitted tool remov… - A mission's permits[i].scopes (when some scope is excluded) compiles to rule id ?? "plan:scope:<tool>": deny, does: <tool>, where: ["!s₁", …]. - A mission's approvals[i] compiles to rule id ?? "plan:approve:<tool>": wait { for: "approval", by }, does: <tool>, where: scopes ?? "*". - A mission's order[i] compiles to rule id ?? "plan:before:<then>": deny, does: <then>, history: [{ tools: <first>, op: "<", value: 1 }]. - A mission's atMost[i] compiles to plan rule id ?? "plan:at_most:<i>": at_most { tools, count }. - …and 1 more ## Threads - The mission object's fixed shape: format, id, objective, permits, approvals, order, atMost, requires - A Mission (`neuroverse-governance-plan/1`, § 16.7) is `{ format, id, objective, permitsRuleId?, permits: [{ id?, tool, scopes? }], approvals?: [{ id?, tool, sc… - A mission is { format: "neuroverse-governance-plan/1", id, objective, permitsRuleId?, permits: [{ id?, tool, scopes? }], approvals?: [{ id?, tool, scopes?, by… - Permits and excluded scopes compiling into deny rules - A mission's permits (when some tool is not permitted) compiles to rule permitsRuleId ?? "plan:tools": deny, does: ["!t₁", "!t₂", …] (every permitted tool remov… - A mission's permits[i].scopes (when some scope is excluded) compiles to rule id ?? "plan:scope:<tool>": deny, does: <tool>, where: ["!s₁", …]. - Approvals compiling into a wait rule - A mission's approvals[i] compiles to rule id ?? "plan:approve:<tool>": wait { for: "approval", by }, does: <tool>, where: scopes ?? "*". - Order, atMost and requires compiling into history, count and at-least rules - A mission's order[i] compiles to rule id ?? "plan:before:<then>": deny, does: <then>, history: [{ tools: <first>, op: "<", value: 1 }]. - A mission's atMost[i] compiles to plan rule id ?? "plan:at_most:<i>": at_most { tools, count }. - A mission's requires[i] compiles to plan rule id ?? "plan:requires:<i>": at_least { tools, count: 1 }. ## Two sides The doctrine and specification give the mission's shape, while the specification alone gives how each field compiles to a plan rule; the shape does not say how the compiled rules combine. - One side - A Mission (`neuroverse-governance-plan/1`, § 16.7) is `{ format, id, objective, permitsRuleId?, permits: [{ id?, tool, scopes? }], approvals?: [{ id?, tool, sc… - A mission is { format: "neuroverse-governance-plan/1", id, objective, permitsRuleId?, permits: [{ id?, tool, scopes? }], approvals?: [{ id?, tool, scopes?, by… - The other side - A mission's permits (when some tool is not permitted) compiles to rule permitsRuleId ?? "plan:tools": deny, does: ["!t₁", "!t₂", …] (every permitted tool remov… - A mission's permits[i].scopes (when some scope is excluded) compiles to rule id ?? "plan:scope:<tool>": deny, does: <tool>, where: ["!s₁", …]. - A mission's approvals[i] compiles to rule id ?? "plan:approve:<tool>": wait { for: "approval", by }, does: <tool>, where: scopes ?? "*". - A mission's order[i] compiles to rule id ?? "plan:before:<then>": deny, does: <then>, history: [{ tools: <first>, op: "<", value: 1 }]. - A mission's atMost[i] compiles to plan rule id ?? "plan:at_most:<i>": at_most { tools, count }. - …and 1 more ## Consultant **Where it shows up** — The mission shape keeps coming up: the format string `neuroverse-governance-plan/1`, the objective, and the optional permits, approvals, order, atMost and requires lists. Each of those fields then gets its own compiled plan rule in the specification. **A question to sit with** — When a mission carries permits, approvals, order, atMost and requires all at once, what should the combined rulebook look like, and in what order should those rules sit? ## Ideas - A mission's permits should compile so that everything not permitted is denied, with the permitted tools removed from the universe. - A mission's approvals should compile to a wait that holds the tool until the named approval arrives. - A mission's order entries should compile to a rule that blocks the later action until the earlier tool has appeared in history. - A mission's atMost entries should compile to a rule capping how many times a tool list is used. - A mission's requires entries should compile to a rule requiring at least one of the listed tools. ## Territories - [[Bevia/World/Territories/Mission object fields and format string|Mission object fields and format string]] - [[Bevia/World/Territories/Mission permits, scopes and approvals compiling to plan rules|Mission permits, scopes and approvals compiling to plan rules]] - [[Bevia/World/Territories/How three mission fields compile into plan rules|How three mission fields compile into plan rules]]