cerebral work // os · soma

An operating system for governed autonomy.

soma is the agentic OS: run an enterprise on a persistent agent workforce where every consequential verb is classified through an enforced gate ladder, audited, and — the wedge — bound into a signed chain that cites the exact policy version it was judged under. Authority is delegated per verb by a named human and revocable by signed amendment, never granted by default. Cerebral runs on it as instance #0; the reflex wire format is an open governance spec.

What it does

The body of an enterprise run by agents. Each function agent has a canon, its own memory lens, a verb × tier gate scope, and — critically — no credentials of its own. Every side-effecting call routes through the reflex plane, which classifies, gates, executes, and writes the audit record. Governance you can bypass is advisory; soma's is structural. There is no ungoverned mode — not even for dev.

Architecture

soma composes the estate rather than greenfielding: reverie/engram is the memory substrate, godseat's gate taxonomy, terrarium's lifecycle gates, Keycloak + @cerebral/gate for the human identity plane. What changes at the OS layer is the reflex plane, marrow, the function-agent runtime, and the two operator surfaces.

Component Lang Role
reflex Rust The gate plane: credential custodian + verb classifier + executor + audit writer. The only genuinely new hard thing. Ports/absorbs terrarium's reflex-core.
marrow Rust The constitutional ledger — append-only, hash-chained, Ed25519-signed. Per-(agent, verb) authority and the amendments that alter it, carried in the same stream as the decisions they govern. NEVER-tier to touch except through reflex.
hermes (runtime) K8s · Helm + Go/Rust operator The function-agent runtime. Per-user/per-function durable agents on a NATS multi-tenant bus: nats-tenant-operator (account-per-user CRDs) + nats-bridge sidecar + read-only agent charts.
deck SvelteKit PWA · CF Workers Gate queue + function-agent status board + audit timeline + marrow view + amendment sign-off. Board-tier-gated via @cerebral/gate. Scaffolded from cf-pwa-template.
cli Rust · ratatui TUI + --json The operator surface: gate queue, agent status, sign-off, ledger — both machine (--json) and interactive (TUI).
spec docs The reflex wire format — classification / sign-off / audit records. The open governance spec; RFC drafting is Phase 8, spec-from-practice.

Status

scaffold since 2026-07-18

SCAFFOLD as of 2026-07-18 — a federated terrarium node that adopts the standards and stays its own repo. The soma design seed (projects/soma/ in terrarium) has been ejected and re-homed; the ground-truth design lives in docs/soma/ARCHITECTURE.md, this repo is its build home. Phase 1 — the reflex daemon v0: verb taxonomy + classify + audit + credential custody for one tool surface — has not yet landed. Until it does, verbs do not actually route through reflex; the components are specified, not executing.

The build sequence runs Phase 0 → Phase 8: seed hardening, reflex daemon v0, the soma/comms pilot (draft-only), memory tiers, gate calibration, staffing the company, surfaces to parity, cortex on soma, and finally the reflex RFC. The runtime component lands alongside Phase 1–2. The milestone that closes Phase 1 is narrow and load-bearing: an agent asks to send an email, the founder approves from a phone, and the agent never saw the credential.

Naming: soma is a working title — unregistrable as a public brand, pending Marc/Laura ratification. os is the repo and build name; the product name is a separate, deferred decision. Nothing here bakes a public brand.