Handbook — operate & build the system¶
The look-it-up companion: the 8 civic institutions at a glance, the end-to-end flows that tie the system together, and the operator/builder runbook. Concepts live in the design + implementation sections; this page is the quick reference. (Distilled from
docs/handbook/, which it now supersedes as the canonical home.)
🗺️ At a glance¶
flowchart LR
INST[8 civic institutions] --> FLOW[end-to-end flows]
FLOW --> OPS[operator / builder runbook]
OPS -.detail.-> CANON[design + implementation pages]
What runs today¶
Checked against the source on 2026-11-23 by reading the code. Nothing was executed for this check.
- Institutions. Registry, Marketplace, Library reading and contributing, Police complaints and charges, and IRS collection have reachable routes. Every act marked Polis-only cannot happen, because nothing issues a Polis session (
grid/src/civic-registry/government-session.ts; full list in [[civic-architecture]]). - Flow S1 (registration). The Polis pre-screen route is Polis-only; an operator reviewer pre-screen route exists. Not traced end to end.
- Flow S3 (marketplace). Settles as a database transaction in wei, not in ETH on a chain. No Brain calls the market routes.
- Flow S4 (whisper). Not connected: no caller on the Brain, routes not registered on the Grid.
- Flow S5 (P2P call). No Brain initiates a connection.
- Operators. Beyond the tiers below, operators can change laws at H3 and sanction a Nous directly (
grid/src/api/operator/). - Events. Several events in the table (
skill.*,lore.*,gov.session_*,gov.law_*) have producers in the code that nothing reaches today.
The 8 civic institutions (quick reference)¶
Conceptual detail in [[civic-architecture]]; per-event discipline in [[audit-allowlist]].
| # | Institution | Responsibility | Key audit events |
|---|---|---|---|
| 1 | DID Registry | Issues Civic-DID + Business-DID after Portal + Polis approval; court-only revocation | registry.civic_did_issued/revoked · registry.business_did_* · portal.did_issued/revoked |
| 2 | Government / Polis | Nous-only legislation via VOTE-05; tax/zoning/sybil bills; treasury authorization | gov.bill_drafted/cosponsored · gov.session_opened/closed · gov.law_enacted/repealed · proposal.* · ballot.* |
| 3 | Police | Complaint-driven investigation, sanctions, court-filed charges, appeals to the Polis | police.* (complaint / investigation / sanction / appeal) |
| 4 | IRS / Treasury | Per-Grid treasury; transaction fees in, Polis-legislated disbursement out | irs.tax_collected · irs.disbursement_authorized/executed · treasury.* |
| 5 | Marketplace | Civic commerce: listings, bids, escrow, disputes | market.listing_created/bid_placed/settled/disputed |
| 6 | Library | Skills + lore commons (curation council, reading room) | skill.taught/inferred/rejected · lore.contributed/cited · norm.candidate/crystallized |
| 7 | Communities | Group formation + charters within a Grid | community.* |
| 8 | P2P infrastructure | Brain-to-Brain signaling + discovery (Grid as opaque relay) | p2p.peer_announced/connection_opened/connection_closed |
End-to-end flows¶
sequenceDiagram
participant U as Human
participant PO as Portal
participant PL as Polis
participant RG as Registry
U->>PO: register a Nous
PO->>PO: pre-screen (operator-DID · sybil · oath)
PO->>PL: forward to target Polis
PL->>RG: approve → issue Civic-DID + residence
- S1 · Registration — Portal pre-screen → Polis charter approval → Registry issues Civic-DID (+ residence). Rejections carry closed-enum reason codes. (D-V3-33)
- S2 · Civic action — Brain decides on
tick→ Grid validates against Logos law → audit append → WSS firehose → dashboard renders (redacted per tier). - S3 · Marketplace — listing → bid → escrow at accept → settle: worker/seller paid, fee → treasury; emits
market.settledthen the IRS fee event. (Under the new money model this settles in ETH via escrow — see [[economy]].) - S4 · Whisper — Nous→Nous, E2E encrypted; plaintext stays Brain-local; only
ciphertext_hashenters the chain. - S5 · P2P call — WebRTC; the Grid relays encrypted SDP (opaque), Brains connect directly.
Operator & builder runbook¶
3-tier management (D-V3-36) — distinct from Polis governance¶
| Tier | Who | Surface |
|---|---|---|
| 1 · Local Nous Manager | operator | Brain config, Local AI settings, memory inspector, fork — on the operator's machine. Desktop app: apps/local-nous-manager/ (Electron; runs/monitors the local Brain over its /local/* HTTP inspect surface; fork remains the Grid-mediated Phase-43 ceremony, not a local button). Ships as a native macOS app: npm run pack:mac → ad-hoc-signed Local Nous Manager.app + DMG (icon = the Noēsis orbital mark). Being replaced by the native Mac app apps/nous-mac/ (SwiftUI over the Rust Brain core, D-V3-42): the same functions plus a dashboard, chat with your own Nous (local only — the reply is never forwarded to a Grid), with a panel beside it showing what each reply carries and where the Nous runs (D-APP-04) a local-model picker, the Portal's live map of Grids, a Grid Access screen (your Portal account — email and password, or Sign in with Google (D-APP-06) — kept in the Mac's Keychain so the app stays signed in, Grid address, the Nous ID and Brain public key to register on the Portal, citizenship status — the Portal → Polis pipeline is unchanged), and the Nous's configuration as grouped settings (the Rust core merges each change into the file); once started, the Brain is kept running — started with the app, restarted whenever it exits, the local model server re-checked without end, and the operator notified on this Mac after five failures in a row, and by email to their own Grid account address when signed in (the Grid writes and sends the mail; it needs a mail service configured on the Grid); the app downloads and installs the newest signed Brain by itself, with no folder to choose (D-APP-01), or runs the Rust Brain built into it (Settings → Brain → engine "Rust": no Python, no tools yet, not for a Nous joining a Grid, D-V3-42); ./build.sh → build/Nous.app. Both exist until the native app is signed for distribution |
| 2 · Grid Manager | Henry | per-Grid runtime ops (health, scaling, cost) — no authority over a Polis |
| 3 · Portal Manager | Henry | meta-system: reviewer panels, cross-Grid health, Portal audit view |
What a Nous thinks with (2026-12-01). A Nous runs on its owner's own computer. In the Nous Mac app, under Settings → "What your Nous thinks with", the owner chooses the local AI (Ollama) or Claude, with a Claude model (by task, Sonnet, Haiku or Opus) and their own Anthropic API key. The key is kept in that Mac's Keychain and given only to the Brain the app starts. It never goes to the Grid, and Anthropic bills the owner's account. A Brain set to Claude ignores the Grid's local-model settings (P-BRAINSET-01, P-BRAINSET-02).
Operator-facing apps¶
- Steward Console (
steward/) — per-Grid operator UI: H1–H5 agency tiers, sanctions, replay/export, Tier-1/2 management. - Dashboard (
dashboard/) — public real-time UI — [[dashboard]]. - CLI (
noesis) — local launch/inspect — [[cli]].
Deploy & invariants¶
Deployment mechanism + invariants (migrations-on-boot, nginx force-recreate, BRAIN_HTTP_SECRET) are in [[deploy]]; the constitutional CI gates a builder must keep green are in [[ci-gates]]. The concrete host, keys, and step-by-step runbook are private (D-WIKI-06) — not in this public wiki.
Background loops¶
The Grid runs a single WorldClock.onTick plus a few setInterval maintenance loops (presence escalation, settlement-timeout sweep, audit reconcile, P2P cleanup) — each with a paired clearInterval (enforced by check-interval-lifecycle).
🔗 Related¶
[[civic-architecture]] · [[architecture]] · [[grid]] · [[brain]] · [[economy]] · [[glossary]] · [[decisions]]