# Holon review checklist

Tick every line before a holon is shown to anyone.


## 1. Purpose and structure

- [ ] **1.1 One holon per entity per organisation.** Does the schema enforce a unique constraint per `(entity, owning organisation)`, and does an attempt to register a second holon fail cleanly?
- [ ] **1.2 Single line of inheritance from the base Holon type.** Does the holon type declare its parent in the inheritance chain and inherit all nine base attribute sets without duplicating or omitting base contracts?
- [ ] **1.3 Assembled payload, never hand-authored.** Is every section of the holon's runtime payload produced by an automated assembler reading schema attribute sets rather than static hand-edited prompt text?
- [ ] **1.4 One primary purpose from the twelve canonical purpose types.** Does the entity type declare exactly one primary purpose from the twelve canonical types, and do its goals roll up to serve its parent?
- [ ] **1.5 Teleology resolves upward to the organisation within eight steps.** Does every non-root goal resolve cleanly to the organisation's top goal in eight steps or fewer, with zero orphan goals and all sum roll-ups fitting inside their parent range?
- [ ] **1.6 Five-level BusinessOS holarchy and goal attachment.** Does the holon sit at one canonical level in the five-level hierarchy, and are goals and metrics absent from Task and Job levels?
- [ ] **1.7 Plain-language education on every holon type.** Does the holon type definition contain a non-empty, plain-language education statement of one or two sentences suitable for people?

## 2. Flow

- [ ] **2.1 Deterministic container around probabilistic slots.** Does deterministic code control every transition, lock, and exit gate in the flow, with zero unguarded model outputs reaching the interface or store?
- [ ] **2.2 Seven-stage message flow in fixed order.** Do trace logs confirm all seven stages execute in exact order and that blocked or screened-out messages never reach the `reply` stage?
- [ ] **2.3 Task types composed from verb-tense action types.** Does every task type define one atomic output cell, chain canonical intake, deliberation, and commitment action types, and name its task and emitted event using the verb-tense triad?
- [ ] **2.4 Generic to context shape, never hardcoded to a tenant.** Can the same flow definition run unchanged against a second organisation that supplies the same entity and goal shape?
- [ ] **2.5 Zero model tokens for deterministic maths and lookups.** Do all `code_only` steps, counts, roll-ups, and filters record zero model calls and zero model spend?
- [ ] **2.6 Every question terminates in an explicit answer.** Does every question step offer `Not applicable` and an `Other` path where applicable, and does period-end processing close unanswered human tasks as `incomplete`?
- [ ] **2.7 Structured single-shot output and immutable event storage.** Does every completed run produce schema-validated JSON and append-only step events, and does inspecting the store confirm withheld message text is never saved?

## 3. Safety and privacy

- [ ] **3.1 Screen and normalise input in code before any model call.** Do unit tests confirm that non-ASCII digits, zero-width characters, wellbeing phrases, secret codes, and prompt-inspection probes stop in `screen()` with zero calls to the decisions service or reply model?
- [ ] **3.2 Redact contact details and numbers before models and across turns.** Do red-team tests confirm that raw phones, emails, tax file numbers, obfuscated contact strings, and numbers split across multiple turns never reach the model or survive in session history?
- [ ] **3.3 Checks and reply reviews fail closed.** When the decisions service is simulated to fail or refuse on either the message battery or reply battery, does the holon return a fixed line without invoking the reply model or releasing unreviewed output?
- [ ] **3.4 Stream replies only after passing code and review checks.** Is `reviewed` streaming mode the default in production configuration, and does a canary leak or failed reply check replace the reply before any delta reaches the client?
- [ ] **3.5 Enforce input, body, and reply length caps.** Does sending a 501-character message return the fixed length line with zero model calls, does a 5 KB payload return `413`, and does `finish()` trim any longer model output to two sentences and 60 words?
- [ ] **3.6 Load secrets via key files and keep internal assets out of public paths.** Are all keys loaded solely from `0600` files via `*_KEY_FILE`, and does inspecting `public/` and client responses show zero internal schemas, diagnostics, or raw record IDs?
- [ ] **3.7 Block prohibited domains before any request and allowlist outbound links.** Does the fetch layer reject `.ru`, `.su`, and `.рф` URLs before opening a socket, and does `finish()` strip any link outside `allowedHosts`?
- [ ] **3.8 Tail-Light context minimisation and aggregate anonymity floor.** Does every vendor-facing or filler task payload contain only its declared input attributes, and do group views with fewer than 100 members suppress aggregate numbers?

## 4. Authority

- [ ] **4.1 Asks only from its closed question bank, always with Other.** Does every question surfaced by the holon resolve to a closed-bank entry, and does every option set end with an `Other` choice?
- [ ] **4.2 A holon never approves.** Does the holon's output contract offer no approve action, and does every approval in the flow go to a person?
- [ ] **4.3 Hands off anything outside its purpose.** When given an out-of-scope request, does the holon decline to execute it and route to the exact target declared in its handoff map?
- [ ] **4.4 Restricted to the five canonical actions.** Does the JSON schema for the holon's output contract enumerate strictly those five actions and reject any other value?
- [ ] **4.5 Acts only on orange, red, grey, or unknown.** When all goals are `green` and zero required fields are `unknown`, does the holon emit `none` without invoking discretionary reasoning?
- [ ] **4.6 Unknowns are never guessed and self-reported attributes are never auto-filled.** Does a missing required attribute appear under `unknowns` with its bank question rather than a guessed value, and does the filler leave every `self_reported` attribute unfilled?
- [ ] **4.7 Remembers only its own goal periods.** Does the payload assembler fetch memory strictly within the holon's own goal periods and cap future cells at the configured rolling horizon?

## 5. Design

- [ ] **5.1 Show the level glyph wherever a holon is named.** Does every UI element that names or opens a holon render the SVG glyph matching `holon.level`, including beside any vendor brand mark?
- [ ] **5.2 No five-dot depth marker and glass envelope parked.** Are five-dot markers, dot-row step indicators, and the glass envelope completely absent from the DOM and stylesheets?
- [ ] **5.3 Traffic lights for goals only; neutral "your marker" for people.** Do green, orange, and red dots or bars appear exclusively on goal result ranges, with neutral ink or icons on tasks, artefacts, and people?
- [ ] **5.4 Restrained surfaces: zero edge stripes, glows, accordions, modals, or mobile bottom bars.** Does `no-stripes.mjs` pass, are accordions, edge stripes, glows, modals, animated seals, and mobile bottom bars absent, and do purple text tokens meet AA contrast?
- [ ] **5.5 Calm Chat layout and mobile composer safety.** Are assistant messages unboxed, person messages styled `#EEE8FF` at `14px` radius, starter chips tap-to-send, email gates absent, and the mobile input at least `16px` without mount focus?
- [ ] **5.6 One holon per page and Goal composition placement.** Does every page contain at most one holon pane, and is Goal composition absent from the Organisation home page and present only on Function and Process `Performance` tabs?
- [ ] **5.7 Two-column task layout, reasoning box, and App-layer chrome.** Does every logical-reasoning task show context left, target control right, and a companion reasoning text box, and do BusinessOS pages use light App-layer chrome?
- [ ] **5.8 Value, not chart, and explicit data provenance labels.** Are single values rendered without charts, multi-value charts using the brand accent first with real-minimum axes, value provenance labels present, and all ordinal scales 1-based?
- [ ] **5.9 Navigation scoping, anonymous menu hiding, and no dead controls.** Are `···` menus hidden when signed out, is `Feed` member-scoped, do Task Types display their filler's logo, and do all active links resolve with zero broken routes?

## 6. Copy and voice

- [ ] **6.1 Canonical vocabulary and hard word bans.** Does the automated vocabulary linter pass with zero banned terms, zero retired OS names, and zero certainty values above `99%`?
- [ ] **6.2 No anthropomorphism or display-home metaphors.** Does scanning rendered text confirm zero human names on holons, zero anthropomorphic role titles, and zero display-home words?
- [ ] **6.3 No literal rule copy or internal notes on screen.** Are all visible headings, captions, subtitles, and card bodies free of internal rule prose and free-text developer `note` fields?
- [ ] **6.4 No personal names, tool names, model names, internal IDs, or confidence scores.** Does the output leak scanner confirm zero staff names, vendor or model names, raw internal IDs, confidence percentages, evaluation scores, or non-public competitors on screen?
- [ ] **6.5 Concise replies of one to two sentences.** Do sample visitor turns, including greetings and off-topic questions, produce plain one-to-two-sentence replies under 60 words with warm small-talk handling?
- [ ] **6.6 Verified real examples, story-first product pages, and honest roadmap status.** Are all public examples grounded in verified organisations or neutral placeholders, with story before brand on product pages and roadmap items marked `Coming soon`?
- [ ] **6.7 Australian English, zero emoji, and zero dashes.** Does the HTML declare `lang="en-AU"`, and does a character and spelling scan confirm Australian English with zero emoji and zero em or en dashes?

## 7. Data and schema

- [ ] **7.1 Reference attributes store linked entity IDs, never naked text.** Do database checks return zero `value_text` rows on `single_link` or `multi_link` attributes, and do all linked targets match their attribute's declared `target_type_id`?
- [ ] **7.2 One atomic cell per value, period-scoped and semantically distinct.** Does every stored row populate exactly one slot matching its `attribute_type`, carry a period stamp, and keep distinct semantic fields in separate attributes?
- [ ] **7.3 Append-only events, supersession history, and immutable snapshots.** Are mutations append-only with supersession history scoped to the single cell produced by a task, do issued artefacts hold frozen snapshots, and does zero code run unguarded `DELETE` against referenced entities?
- [ ] **7.4 Full provenance, deterministic IDs, and read-only archive sources.** Are entity IDs reproducible from `UUIDv5`, is every folded entity mapped in `alpha.source_map`, and do all archive source stores show zero changes?
- [ ] **7.5 Reuse canonical types and never invent types outside the store.** Was a cross-project lookup run before introducing any new type or attribute, are all table names singular, and are missing store types declared in `schema.notInStore` rather than invented silently?
- [ ] **7.6 Formal attribute-only views, immutability once live, and single `org` primitive.** Are all group predicates pure attribute filters, are installed views immutable in place, and do all organisation categories resolve as views over the single `org` type?
- [ ] **7.7 Hybrid SQL guarantees, valid value-type roll-ups, and clean data separation.** Do hybrid SQL tables satisfy all three kernel-alignment guarantees, does the store reject invalid scale aggregations, and are simulated snapshots isolated and clearly flagged from verified facts?

## 8. Commerce and operations

- [ ] **8.1 Price task types as Product and Variant in whole cents, never a bare price.** Does `validateTaskTypes()` pass at startup, does every priced surface display Product, Variant, and unit price in dollars and cents, and do failed steps bill zero cents?
- [ ] **8.2 Never discount, fund outputs only, and enforce flat legal fees.** Are list prices undiscounted, budgets tied strictly to output metrics, legal-service fees flat, and buyer data isolated from vendor prompt IP?
- [ ] **8.3 Persistent spend meter with worst-case holds, daily budget, and `PAUSE` switch.** Does removing an existing ledger file stop startup, does creating `PAUSE` halt the next model call inside an active flow, and does exhausting the daily budget return the resting line without calling any model?
- [ ] **8.4 Rate limits, concurrency caps, and disconnect abort.** Do limit tests verify `429` and `503` responses at each threshold, and does closing a client connection mid-flow stop subsequent model calls?
- [ ] **8.5 Key-link gate, strict security headers, and `POST` event streams.** Does an unauthenticated request return `404` on every route, does a valid key link emit a relative `303` with an `HttpOnly` signed cookie, does `/api/explore` return `409` in public mode, and does streaming run over `POST`?
- [ ] **8.6 Split public edge and internal loopback listeners.** Do internal inspector and raw-cost endpoints return `404` on the public edge port and `200` on the loopback internal port?
- [ ] **8.7 Local-only deployment default, host neutrality, and single-domain publishing.** Does the deployment run locally with zero unapproved hosted pushes, zero `@decidr.ai` email gates, and host-neutral runtime configuration?
- [ ] **8.8 Deterministic verification gates and two-party production review.** Do deterministic tests, smoke checks, dual-port checks, and stripe checks all pass with commit and server evidence logged and independent review recorded?
