*Territory · 6 understandings* ## Summary A specification lays out how a condition is written — a fact, an operator and a value or values — and what each operator tests. A fact value is a JSON number, string or boolean; `==` and `!=` check strict equality on any fact, `in` checks strict equality against at least one listed value, and `days` checks membership in a listed set of days. The ordinal operators `>` `>=` `<` `<=` compare numbers by value, times by minutes since midnight and days by position mon=0 … sun=6, while `between` applies to time only, with an overnight case when the start is later than the end. What the records leave open is how a condition behaves when the fact is absent or of the wrong type. ## Explanation - A specification sets out how a condition is written — a fact, an operator and a value or values — and what each operator tests: `==` and `!=` on strict equality of any fact, `in` on strict equality with at least one listed value, `>` `>=` `<` `<=` as ordinal comparison of numbers by value, times by minutes since midnight and days by position mon=0 … sun=6, `between` on time only with an overnight case when the start is later than the end, and `days` on membership in a listed set. - A fact value is a JSON number, string or boolean. - The condition `{ fact, op: "==" | "!=", value }` applies to any fact and is true on strict equality or inequality of the fact value and `value`. - The condition `{ fact, op: ">" | ">=" | "<" | "<=" , value }` applies to number, time and day facts and is an ordinal comparison: numbers by value, times by mi… - The condition `{ fact, op: "in", values[] }` applies to any fact and is true when the fact value is strictly equal to a member of `values` (at least one). - The condition `{ fact, op: "between", from, to }` applies to time only: with t, f, o in minutes, if f < o it holds when f <= t < o, and if f > o (overnight) wh… - …and 1 more - A fact value is a JSON number, string or boolean. - A fact value is a JSON number, string or boolean. - The `==` and `!=` condition applies to any fact and is true on strict equality or inequality of the fact value and the given value. - The condition `{ fact, op: "==" | "!=", value }` applies to any fact and is true on strict equality or inequality of the fact value and `value`. - The `in` condition applies to any fact and is true when the fact value is strictly equal to at least one of the listed values. - The condition `{ fact, op: "in", values[] }` applies to any fact and is true when the fact value is strictly equal to a member of `values` (at least one). - The `>` `>=` `<` `<=` condition applies to number, time and day facts and compares ordinally: numbers by value, times by minutes since midnight, days by position mon=0 … sun=6. - The condition `{ fact, op: ">" | ">=" | "<" | "<=" , value }` applies to number, time and day facts and is an ordinal comparison: numbers by value, times by mi… - The `days` condition applies to day facts and is true when the fact is one of the listed days. - The condition `{ fact, op: "days", days[] }` applies to day facts and is true when the fact is a member of `days` (at least one). ## Threads - What a fact value can be: a JSON number, string or boolean. - A fact value is a JSON number, string or boolean. - Equality and inequality, and membership in a list, tested on any fact. - The condition `{ fact, op: "==" | "!=", value }` applies to any fact and is true on strict equality or inequality of the fact value and `value`. - The condition `{ fact, op: "in", values[] }` applies to any fact and is true when the fact value is strictly equal to a member of `values` (at least one). - Ordinal comparison of numbers, times and days, with days numbered mon=0 … sun=6. - The condition `{ fact, op: ">" | ">=" | "<" | "<=" , value }` applies to number, time and day facts and is an ordinal comparison: numbers by value, times by mi… - A time-only range with an overnight case when the start is later than the end. - The condition `{ fact, op: "between", from, to }` applies to time only: with t, f, o in minutes, if f < o it holds when f <= t < o, and if f > o (overnight) wh… - A day fact matched against a listed set of days. - The condition `{ fact, op: "days", days[] }` applies to day facts and is true when the fact is a member of `days` (at least one). ## What's still open The entries say what each operator tests but not what happens when the fact is absent or of the wrong type. - A fact value is a JSON number, string or boolean. - The condition `{ fact, op: "==" | "!=", value }` applies to any fact and is true on strict equality or inequality of the fact value and `value`. - The condition `{ fact, op: ">" | ">=" | "<" | "<=" , value }` applies to number, time and day facts and is an ordinal comparison: numbers by value, times by mi… - The condition `{ fact, op: "in", values[] }` applies to any fact and is true when the fact value is strictly equal to a member of `values` (at least one). - The condition `{ fact, op: "between", from, to }` applies to time only: with t, f, o in minutes, if f < o it holds when f <= t < o, and if f > o (overnight) wh… - …and 1 more ## Consultant **Where it shows up** — The operators are laid out one by one: equality and inequality on any fact, `in` against a list, ordinal comparison of numbers, times and days, `between` on time with an overnight case, and `days` against a listed set. **A way forward** — Keep the operator table as the spine and add one line per operator saying what happens when the fact is absent or of the wrong type, so the refusal is written beside the test. ## Understandings - A fact value is a JSON number, string or boolean. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - The condition `{ fact, op: "==" | "!=", value }` applies to any fact and is true on strict equality or inequality of the fact value and `value`. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - The condition `{ fact, op: ">" | ">=" | "<" | "<=" , value }` applies to number, time and day facts and is an ordinal comparison: numbers by value, times by minutes since midnight, days by position mon=0 … sun=6. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - The condition `{ fact, op: "in", values[] }` applies to any fact and is true when the fact value is strictly equal to a member of `values` (at least one). — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - The condition `{ fact, op: "between", from, to }` applies to time only: with t, f, o in minutes, if f < o it holds when f <= t < o, and if f > o (overnight) when t >= f or t < o; f == o is invalid. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 - The condition `{ fact, op: "days", days[] }` applies to day facts and is true when the fact is a member of `days` (at least one). — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19 ## Who, where and what Things: [[Bevia/World/Things/days[]|days ]], [[Bevia/World/Things/fact|fact]], [[Bevia/World/Things/from|from]], [[Bevia/World/Things/JSON|JSON]], [[Bevia/World/Things/op|op]], [[Bevia/World/Things/to|to]], [[Bevia/World/Things/value|value]], [[Bevia/World/Things/values[]|values ]]