*Territory · 2 understandings* ## Summary The plan check `before` is defined twice in SPEC.md: one statement says it is broken when a `then`-action step has no earlier `first`-action step in the same area, and the other says it is checked step by step, blocking at the first step that fails and allowing when none does. ## Explanation - In SPEC.md, the `before` plan check is stated as broken when a step whose action is in `then` has no earlier step, in the plan or in `plan.history`, whose action is in `first`, in the same area when `sameArea` is set. - The plan check `before` with `first`, `then` (selectors) and optional `sameArea` is broken when some step whose action is in `then` has no earlier step (in the… - In the same document, `before` is checked for each step i whose action is in `then`: some entry of `plan.history` or some step j < i must have action in `first`, and area equal to `areas[i]` when `sameArea`; the first i that fails is BLOCK at i, and none failing is ALLOW. - before is checked for each step i with action ∈ resolve(then): some entry of plan.history, or some step j < i, must have action ∈ resolve(first) (and area == a… ## Threads - The `before` plan check stated as a broken-plan condition on a `then` step with no earlier `first` step. - The plan check `before` with `first`, `then` (selectors) and optional `sameArea` is broken when some step whose action is in `then` has no earlier step (in the… - The `before` plan check stated as a per-step check that blocks at the first failing step and allows when none fails. - before is checked for each step i with action ∈ resolve(then): some entry of plan.history, or some step j < i, must have action ∈ resolve(first) (and area == a… ## Consultant **Where it shows up** — The `before` check comes up twice in SPEC.md: once as a broken-plan condition and once as a step-by-step check that blocks at the first failing step. **A question to sit with** — When `before` fails at step i, is the answer meant to be a BLOCK at that step or a statement that the whole plan is broken? **A way forward** — Keep both statements side by side and mark which one the evaluator is meant to follow at step i. ## Understandings - The plan check `before` with `first`, `then` (selectors) and optional `sameArea` is broken when some step whose action is in `then` has no earlier step (in the plan, or in `plan.history`) whose action is in `first`, in the same area when `sameArea`. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - before is checked for each step i with action ∈ resolve(then): some entry of plan.history, or some step j < i, must have action ∈ resolve(first) (and area == areas[i] when sameArea); the first i that fails is BLOCK at i, and none failing is ALLOW. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 ## Who, where and what Things: [[Bevia/World/Things/ALLOW (805f100b)|ALLOW]], [[Bevia/World/Things/before|before]], [[Bevia/World/Things/BLOCK (88a445ae)|BLOCK]], [[Bevia/World/Things/first|first]], [[Bevia/World/Things/plan.history|plan.history]], [[Bevia/World/Things/resolve(first)|resolve(first)]], [[Bevia/World/Things/resolve(then)|resolve(then)]], [[Bevia/World/Things/sameArea|sameArea]], [[Bevia/World/Things/then|then]]