CHAINSTATE phi logoCHAINSTATE / OS
CHAINSTATE AGI LINUX OS
LOCAL-FIRST · OFFLINE-CAPABLE · GOVERNED COGNITION

COGNITION
WITHOUT
LOCK-IN.

CHAINSTATE OS is a proposed Linux-based cognitive operating system. Eight separated trust planes, a seven-stage governed reasoning loop, BranchState continuity with TIMEMACHINE rollback, metacognitive isolation, an independent falsifiability kill gate, and constitutional safety — designed to run on your hardware, answer to you, and fail closed.

CPU / GPU / NPU / FPGA / RISC-V BRANCHSTATE TIMEMACHINE KILL GATE REFERENCE ARCHITECTURE
GET OS · USD 666 ONE-TIME READ THE PAPER
8TRUST PLANES
7LOOP STAGES
0CLOUD DEPENDENCIES REQUIRED
1OWNER: YOU
01 / LIVE DEMO SIMULATION

CHAINSTATE-UI

Simulated control surface for CHAINSTATE OS. Pick a command from the side rail to see the terminal output and watch the state tiles react; live telemetry runs on the right. SIMULATED — no real substrate is attached to this page.

chainstate-ui / live demo UI LIVE
SUBSTRATE
CS
LOCAL
NETWORK
SAFE-DEGRADED
POLICY
ENFORCED
METACOG
ISOLATED
KILLGATE
USR
INDEPENDENT
RECEIPTS
APPEND-ONLY
BRANCH
experiment-01
CPU42%
MEM6.4G
TOKENS18.2k
LATENCY84ms
RECEIPTS128
OUTPUT · cs statusSTREAM
$ cs status

SUBSTRATE .... LOCAL
NETWORK ...... SAFE-DEGRADED
POLICY ....... ENFORCED
METACOG ...... ISOLATED
KILLGATE ..... INDEPENDENT
RECEIPTS ..... APPEND-ONLY
BRANCH ....... experiment-01

Demo telemetry is simulated.

INFERENCE THROUGHPUT · ROLLING WINDOW · SIMULATED

[boot] local runtime initialized [policy] default-deny network profile active [metacog] user context isolated [killgate] independent evaluator ready [continuity] branch root verified
02 / SYSTEM ARCHITECTURE

MULTILAYER FLOW

The full substrate map: the seven-stage governed cognition loop on top, the eight separated trust planes in the middle, and the continuity + release infrastructure below. No edge skips a trust plane — correlation is not identity, and approval is not execution. Hover any node for a summary; click for the full specification.

● LIVE ● BETA ● DESIGN ● ROADMAP — node ring color = status · line gradient = data / authority flow
03 / TECHNICAL CONFIGURATION

TECH STACK

LAYERSPECIFICATIONSTATUS
Base systemLinux (hardened distribution target), immutable base image, signed A/B system partitions, verified boot chainDESIGN
Cognitive runtimeLocal model host with pluggable backends (GGUF / ONNX / vendor runtimes), retrieval store, proposal generator confined to the Cognitive planeDESIGN
Metacognitive layerIsolated uncertainty estimator and hypothesis-killing evaluator; user-local state cannot rewrite substrate metacognitionDESIGN
Constitutional engineHard-veto policy machine: consent, provenance, capability budgets, fail-closed defaults for ambiguous sensitive actionsDESIGN
Execution sandboxNamespaced, quota-limited process cells; signed skill plugins with declared capability limitsDESIGN
ContinuityBranchState append-only receipt chain, TIMEMACHINE branch/rollback, conflict-aware offline peer syncDESIGN
Hardware abstractionCPU / GPU / NPU / FPGA / RISC-V targets; UCI-1 + RISC-V acceleration path; optional optical inference backendROADMAP
Sensor fusionLiDAR, radar, EO/IR, MEMS, hyperspectral and audio fusion pipeline behind default-deny actuation policyROADMAP
DistributionGitHub releases: signed packages, SHA-256 checksums, SBOM, sandboxed installer with entitlement verificationBETA
Demo siteThis page — static HF Space, in-browser simulation, wallet connection UILIVE

TARGET INFERENCE LATENCY BY BACKEND · DESIGN TARGETS, NOT BENCHMARKS

CPU (AVX2)
~380ms
GPU (CUDA/ROCm)
~85ms
NPU
~120ms
FPGA
~150ms
RISC-V + UCI-1
~220ms
Optical (optional)
~40ms

TRUST PLANE PRIVILEGE BUDGET · SHARE OF SYSTEM AUTHORITY

Constitutional
VETO
Metacognitive
KILL
Execution
QUOTA
Cognitive
PROPOSE
Skill
DECLARED
Interface
REQUEST
04 / MATH & INVARIANTS DESIGN

FORMAL CORE

Receipt chain integrity

H(r₀) = SHA-256(genesis ‖ device_id)
H(rₙ) = SHA-256(H(rₙ₋₁) ‖ actionₙ ‖ planeₙ ‖ tₙ)

Append-only: valid(rₙ) ⇒ valid(r₀ … rₙ₋₁)
Any rewrite of rₖ invalidates all H(rₖ₊₁ … rₙ).

Capability budget

B(t) = B₀ − Σᵢ c(aᵢ)   for approved actions aᵢ ≤ t

execute(a) permitted ⇔
  c(a) ≤ B(t)  ∧  veto(a) = ⊥  ∧  sig(skill) valid

Budget exhaustion ⇒ fail closed, not fail open.

Metacognitive kill gate

For hypothesis h with evidence E:
  U(h) = 1 − max P(h | E)

kill(h) ⇔ U(h) > τ_kill  ∨  falsifier(h, E) = ⊤

The kill-gate evaluator is independent:
weights(killgate) ∩ writable(user_state) = ∅

BranchState merge

branch b = (root, Δ₁ … Δₙ)

merge(b₁, b₂) defined ⇔ conflict(Δ(b₁), Δ(b₂)) = ∅
else: user-arbitrated three-way merge over receipts

TIMEMACHINE: restore(t) replays r₀ … r_t exactly;
state(t) is a pure function of the receipt prefix.
05 / CONSTITUTIONAL SAFETY

FAIL CLOSED

Fail closed for ambiguous sensitive actions — uncertainty resolves to refusal, never to execution.
Same-wallet payment entitlement and install signature verified by an independent backend, never the browser alone.
User-local state cannot rewrite substrate metacognition — the evaluator that doubts the system is not owned by the system.
Physical actuation is default-deny with a separate, explicit safety case per actuator class.
Signed packages, SHA-256 checksums, SBOM and sandboxed installation for every release artifact.
Local-only mode, air-gap operation and explicit per-destination egress controls.
Unicode confusables and prompt-injection inputs are treated as untrusted at every plane boundary.
Conflict-aware offline synchronization — peers reconcile receipts, they never overwrite them.
06 / RESEARCH & DEVELOPMENT

THE PAPER

CHAINSTATE AGI Linux OS — research paper summary

The paper proposes a reference architecture for a locally owned cognitive operating system. Its core claims:

Separation of trust planes. Interface, Skill, Cognitive, Metacognitive, Constitutional, Execution, Continuity and Hardware are distinct privilege domains. A proposal generated in the Cognitive plane holds no authority until it survives Challenge, Authorization and Execution — approval is not execution.

Governed cognition loop. Every action traverses OBSERVE → REPRESENT → HYPOTHESISE → CHALLENGE → AUTHORIZE → EXECUTE → REFLECT, with receipts appended at each transition.

Continuity as a first-class citizen. BranchState treats system state as a pure function of an append-only receipt chain, enabling TIMEMACHINE rollback, branching experiments and conflict-aware offline peer sync.

Independent falsifiability. A metacognitive kill gate, isolated from user-writable state, actively attempts to falsify the system's own hypotheses before they can act.

Hardware pluralism. The substrate abstracts CPU, GPU, NPU, FPGA and RISC-V targets, with UCI-1 + RISC-V acceleration and an optional optical inference backend on the roadmap, plus a default-deny fused-sensor pipeline (LiDAR, radar, EO/IR, MEMS, hyperspectral, audio).

Status labels in the paper distinguish LIVE, BETA, DESIGN and ROADMAP. This page does not imply production maturity.

DOWNLOAD PDF RESEARCHGATE

RESEARCH PODCAST
Audio walkthrough of the CHAINSTATE OS paper · OS.m4a

R&D tracks

DESIGN BranchState + TIMEMACHINE continuity core

ROADMAP UCI-1 + RISC-V acceleration

ROADMAP LiDAR / radar / EO-IR / MEMS / hyperspectral / audio fusion

ROADMAP Optional optical inference backend

DESIGN Independent falsifiability kill gate

DESIGN Offline-first peer continuity

07 / ACCESS

GET THE OS

CHECKOUT · BETA — BACKEND PENDING
USD 666

One-time. ETH settlement through a backend-generated quote on Base. Payment is only valid once independently verified by the backend — the browser alone is never trusted to confirm payment.

Wallet not connected.

Connect MetaMask on Base mainnet (chain 8453).
Backend issues a signed quote: amount in ETH, treasury address, expiry, nonce.
You send the transaction from your wallet; the backend verifies it on-chain.
Entitlement is bound to the paying wallet: bundle hash, expiry, same-wallet install signature.
Installer verifies entitlement + signature before unlocking installation.

GITHUB INSTALL

Public download does not grant installation. The installer requires backend entitlement, bundle hash, expiry and a same-wallet signature.

REPOSITORY

HF SPACE

This static Space is demo + checkout UI only. Secrets and payment authority stay off the Space, on the separate backend.

SPACE

RELEASE INTEGRITY

Every release ships signed packages, SHA256SUMS, an SBOM and verify-bundle.sh. Verify before installing. The R&D paper is attached to releases and linked from this Space.