The governed agentic delivery control plane: intent becomes a governed spec, the factory stamps an application from the EnRaHiTu template, the fleet operates the resulting governed cells, and the customer's code lives in the customer's GitHub org the entire time.
The architecture is a two-plane model (spec 001 §3): the platform is one
EnRaHiTu app, and every tenant app is another, independent EnRaHiTu app
with its own embedded IdP, its own state, and its own /metrics. Every
app is a governed cell: a hermetic single container carrying
app-model.json, the hash-anchored extracted record of what it contains
and what it is permitted to do.
statecraft is itself the first production EnRaHiTu app: one container,
embedded rauthy as the platform IdP
(operator surfaces gated on the custom statecraft_operator role),
hiqlite in-process, CoreLedger for
durable state (on Postgres; stamped customer apps run the same decorator
API on libSQL/Turso). Every fleet operation sold to customers is
rehearsed on the platform itself first.
Born governed. The spec spine is the authoritative design record; the services of specs 002 through 008 have landed, and the deploy and cluster specs (009/010) are in progress:
specs/000-bootstrap/defines the spec system itself.specs/001-statecraft-thesis/is the product thesis, the consolidation record (what moves here from the Open Agentic Platform research era), the service map, and the milestone ladder (M1 template contract through M5 paying agencies). Rewritten ground-up 2026-07-19 from the grand-refactor realignment: the two-plane model, embedded rauthy as the platform IdP, the per-app observability contract (/metrics+ OTel), andapp-model.jsonas the governance seam.
Services live under their own numbered specs: tenants/ (GitHub App
installations), factory/ (stamping, consuming enrahitu's
template.toml contract and nothing else), fleet/ (deployd's
orchestration core as an in-process napi addon), governance/
(attestation ledger + action gate + trust window), frontend/
(governance UI, Vite + React Router v7).
statecraft is stamped from the
enrahitu template as its
first production consumer. The app shell (spec 002) imports the slimmed
two-directory chassis (backend/ + frontend/) at enrahitu commit
83a4551 (2026-07-15); the Encore toolchain and the hiqlite addon arrive
as pinned @enrahitu/* npm packages (0.1.0), not vendored source. The
imported chassis is Apache-2.0 entering this AGPL-3.0 repo, the sanctioned
direction. There is no born-with provenance cert here yet: that is minted
by the factory (spec 005) when it stamps apps, and statecraft will carry
its own once the factory can emit one.
| Repo | License | Role |
|---|---|---|
| enrahitu | Apache-2.0 | The template chassis: Encore.ts + rauthy + hiqlite + Turso, single container |
| statecraft (this repo) | AGPL-3.0 | The control plane: tenants, factory, fleet, governance UI |
| statecraft-cli | Apache-2.0 | The CLI + MCP server: governance verbs for humans and agents |
| statecraft.ing | n/a | Website and docs |
Governed by spec-spine
(cargo install spec-spine-cli):
spec-spine compile # specs -> .derived/spec-registry/by-spec/
spec-spine index # code linkage -> .derived/codebase-index/
spec-spine lint # corpus conformance
spec-spine couple --base origin/main --head HEAD # the PR coupling gateRead .derived/** only through spec-spine subcommands; the shards are
compiler-owned.
AGPL-3.0 (see LICENSE): hosting a modified control plane commercially requires publishing the modifications, while self-hosting stays free. The artifacts customers touch (the template, the CLI) are Apache-2.0 in their own repos; apps stamped from the template belong to their owners.