Dossier · 01

Project-AI & OCTOREFLEX

A sovereign constitutional AGI ecosystem with a control-theoretic, kernel-authoritative governance loop. Every model action lowers to a syscall. Every syscall passes through a deterministic invariant gate. Every decision is sealed, attested, and reversible.

Premise

Models cannot be trusted to police themselves.

Every other layer of the alignment stack — RLHF, constitution prompts, reflection — runs inside the model's privilege domain. Project-AI relocates the governance loop to a layer the model can never reach: the operating system kernel.

Mechanism

eBPF + control theory + cryptographic seals.

eBPF programs intercept the syscall surface. A control-theoretic loop continuously samples error between observed and policy-permitted state. Decisions are sealed into the Constitutional Code Store with rolling cryptographic attestation.

Architecture

Five layers. One non-negotiable contract.

L1kernel

Syscall Substrate

eBPF programs attached to LSM and tracepoint hooks. Zero-copy decision path; sub-millisecond verdicts.

L2enforcement

OCEE Invariants

The Open Constraint Enforcement Engine compiles constitutional invariants to deterministic checks. [OCEE]

L3control

OCTOREFLEX Loop

Closed-loop controller: observe → compare to policy → act → seal. Reflexive re-arming on violation.

L4defense

TARL · NIRL

Asymmetric Resilience Layer + Native Immune Reflex Layer — make exploitation structurally unfinishable.

L5governance

Triumvirate

Architect / Guardian / Operator agents in mutual check. No unilateral writes to the constitution.

L6attestation

Constitutional Code Store

Append-only, cryptographically chained record of every governed decision. Audit is a primitive, not a feature.

project-ai/octoreflex/loop.py · invariant gate
@octoreflex.gate("net.connect")
def guard_net_connect(action, context):
  # 1. Observe
  state = telemetry.snapshot(action)
  # 2. Compare to constitutional policy
  if not ocee.holds("capability.net.egress.public", state):
    raise Denied(reason="capability_unbound")
  if not ocee.within("rate.budget", window=60):
    nirl.reflex("rate_overrun", severity=3)
    raise Denied(reason="rate_exhausted")
  # 3. Act and seal
  decision = engine.execute(action, context)
  ccs.seal(decision, attest=True)
  return decision
Foundational papers

The thesis, in writing.

Each of these papers underwrites a specific layer of the architecture above.