Specification · Runtime Engine
System Architecture & Deterministic Runtime Specification
This specification is divided into two classes of claim. Section 00 describes behavior that is implemented and has been verified against the live Alpha endpoints, with reproducible evidence. Everything after it describes guarantees that require the proposed external integration kernel — a design, not a demonstrated system. Nothing in the verified half should be read as evidence for the unverified half, and nothing in the unverified half is claimed to exist today.
Section 00
Verified Alpha Behavior (Demonstrated)
The following behaviors are implemented in the running Alpha and have been exercised against the live endpoints with signed-in credentials, with responses and recomputed hashes recorded as evidence:
- Database-protected state versions
- POST /api/public/state/commit accepts an authenticated owner's decision_id and flat constraints, then appends a new state version. The database blocks updating or deleting versions through application paths; database administrators retain technical control; each commit returns 201 with its own state_hash.
- Receipt freshness checks
- POST /api/public/state/execute accepts decision_id and state_hash. A current stored receipt returns 200, an older one returns 409 STALE_STATE, and a well-formed but uncommitted hash returns 422 unknown_receipt. Verified live, including stale-state rejection after a newer commit.
- Repeatable dry runs
- Current receipts are reusable: repeating an execute call with the current hash returns 200 again. This demonstrates stored-state freshness, not replay prevention. The endpoint neither issues nor consumes a nonce; nonce, signature and expiry extras are not validated. Every check reports external actions disabled and grants no action authority.
- Fail-closed service behavior
- Lookup failures return 503 rather than being treated as absent state. Unique-version collisions under concurrent commits return 409 conflict_retry. Unauthenticated calls return 401; malformed payloads return 400; unknown decisions return 404.
- Owner-scoped access
- State versions and sealed decision receipts are readable and writable only by their owner. Cross-account access is denied by row-level policy, verified with signed-in isolation tests.
- Sanctuary confirmation
- A sealed decision receipt is produced only after explicit human confirmation of the exact declared frame. Confirmation authorizes a calculation — nothing more. Preflight uses simulated observations and is a simulator, not evidence of gate enforcement.
These checks do not enforce proposed action budgets, one-time consumption, signatures, expiry or revocation. Sealed decision receipts and API state versions are separate records.
The October 24 T1 evidence review observed 201 → 200 → 200 for one unchanged G0 receipt. That observation is consistent with the implemented freshness-only endpoint, but contradicts a stated single-use interpretation. The reported FAIL_OBSERVED remains valid against that expectation; this clarification does not retroactively turn it into a passed consumption test. It does not establish duplicate external effects or enforcement by a separate executor.
Correction to the earlier downstream explanation: this project does not implement a downstream mock executor that consumes nonces. Such consumption must not be presented as an existing safeguard. The October 25 consolidated operator report closes that evaluation; its historical observations remain unchanged, and downstream enforcement remains unverified. The report is scoped black-box evidence, not a security certification.
Section 0K
Guarantees Requiring the External Integration Kernel (Not Yet Demonstrated)
The guarantees below are load-bearing claims of the proposed architecture. None of them is demonstrated by the Alpha. Each requires the external integration kernel — the UAB boundary, the token-granting substrate and the receipt-chained execution workers described in the sections that follow — to be built, funded and independently verified before it can be claimed:
- Action-bound authorization
- Execution tokens bound to one specific external action, granted only after boundary verification. The Alpha checks stored-state freshness only; it grants no tokens and authorizes no actions.
- One-time execution consumption
- An action-bound nonce or token consumed atomically at the downstream execution boundary. The Alpha deliberately permits repeatable freshness checks and currently exposes no downstream consumption test route. A future simulator could test a local consumption ledger, but would not establish single-use enforcement by a real external executor.
- Cryptographic signing and trusted-key distribution
- Signed receipts (e.g. Ed25519) with issuer-key trust, expiry and revocation. The Alpha verifies SHA-256 hash equality against stored state only; it does not validate signatures, expiry or nonces.
- Live external condition verification
- The UAB certifying real-world conditions before a grant. The Alpha never observes the world; Preflight observations are simulated.
- Atomic lifecycle enforcement and durable external-action records
- Freeze, resume and revocation enforced atomically at the substrate, with a durable record of every external action taken. No external action exists in the Alpha, so no such record exists.
- Independent receiver verification
- A third party able to verify a receipt without trusting the issuer. Today verification is recomputation of hashes against the issuer's own stored state.
These remain funding and implementation gaps. No deployment, spending or integration commitment follows from a successful Alpha dry run.
Section 0T
Downstream Nonce Simulator — Proposed, Not Exposed
A separate authenticated test route is under consideration. It must leave /api/public/state/execute repeatable and use isolated, owner-scoped test records rather than consume sealed decision receipts. No callable route or nonce-consumption guarantee is supplied by this proposal today.
- Issue and bind
- Issue a server-generated test nonce bound to the owner, a committed decision/state hash and a fictional action payload hash. Issuance must not execute an action or imply human authorization.
- Atomic consumption
- Use a persistent transaction to verify ownership, current state and payload binding, then consume the nonce once. Parallel submissions must produce exactly one consumption; never use process memory or a separate check-then-write sequence.
- Evidence and limits
- Test first use, sequential replay, concurrent replay, stale state, altered payload, another owner and unavailable storage. Preserve a test-only consumption record. Consuming a nonce does not prove delivery, durable receiver deduplication, recovery after a lost acknowledgment or reconciliation after an external worker crash.
Retry safety requires more than replay rejection: if a real mutation succeeds and its acknowledgment is lost, the kernel needs durable action status, receiver idempotency and reconciliation. Those remain integration and verification gaps, not Alpha guarantees.
Section 01
Proposed Executive Invariant
Core Invariant
Willpower and open-ended conversational alignment are runtime vulnerabilities. Consequential state transitions must be bounded deterministically before autonomous compute executes.
The invariant has a direct consequence: nothing inside the execution substrate may decide, mid-flight, that a transition is still permissible. Alignment is not maintained by the model or the operator's discipline — it is re-established, by deterministic gate and external verification, at every boundary where an execution token is granted. A persuasive argument is not a verdict. Momentum is not admissibility.
Section 02
Proposed Three-Tier Runtime Separation
The runtime is organized into three strictly ordered tiers. Each tier owns one class of failure, and no tier may borrow the authority of another.
Tier 1
Ingress & Intent Locking
Unstructured cognitive capture — typed or spoken — is serialized immediately on arrival. On a valid payload, a SHA-256 state root is generated at t₀, locking the intent, its parameters, and the active boundary constraints into a sealed committed state. From that moment the intent is input history, not an editable conversation.
Tier 2
Synchronous Admissibility & External Boundary Verification (UAB Interface)
A programmatic gate checks the locked state before any execution token is granted: type safety, parameter limits, compute budgets, and tool whitelists. Beyond the static checks, the harness integrates a pluggable External Admissibility Boundary — the UAB interface — which evaluates evidence of existing external conditions. The runtime never assumes the world; it requires the boundary to certify it.
Admissibility is tri-state by contract:
- ADMISSIBLE
- Evidence verified. A single execution token is granted for one atomic step.
- INADMISSIBLE
- Evidence contradicts the boundary. The machine freezes at the last verified checkpoint.
- UNKNOWN
- Evidence is absent or indeterminate. Strictly defaults to an immediate fail-closed suspension — never to a grant.
Tier 3
Isolated Execution Substrate
Execution runs in discrete step workers, each bound to a verified transition token. Every consequential action generates a hashed receipt before downstream transitions are unlocked. The substrate cannot broaden its own permissions, extend its own token budget, or rewrite its own machine.
Section 03
Proposed Step-Level Chaining & Condition Shifts
There are no blanket execution passes. Each consequential transition requires a fresh verified receipt, derived from post-step telemetry and the updated reality conditions reported by the boundary. A receipt certifies exactly one transition — the one that follows it — and nothing beyond it.
This is what makes the runtime safe under dynamic condition shifts. If external conditions change mid-cycle, or the evidence returned by the boundary becomes indeterminate — a revoked verdict, an UNKNOWN state — execution drops into a frozen checkpoint anchored to the last verified state hash. The substrate never attempts ungrounded self-recovery: it does not invent the verdict it was denied, does not downgrade a revoked grant to a warning, and does not continue on stale authorization. Resumption requires a fresh verified receipt, nothing less.
Section 04
Proposed External Persistence & Fault Isolation
- Checkpointed state persistence
- State is persisted only at step boundaries, and each boundary is anchored by its state hash. A checkpoint is addressable and verifiable, and the application does not mutate it in place — resuming from a checkpoint means resuming from the hash, not from a best guess of where work left off.
- Deterministic idempotency keys
- Every external write payload carries an idempotency key derived deterministically from the step's state hash and action contract. A retried step re-derives the same key, so a duplicate execution is absorbed by the receiver rather than duplicated in the world. Side-effects are counted once, by construction.
- Fail-closed suspension vs. exponential backoff
- Fault isolation is stratified by fault class. Transient network layer failures — timeouts, 5xx responses, connection resets — trigger exponential backoff with deterministic jitter, retrying the same atomic step under the same token. Admissibility failures — INADMISSIBLE or UNKNOWN verdicts, revoked receipts, boundary drift — trigger fail-closed suspension. Backoff resumes work; suspension requires re-verification.
The distinction is the point: the runtime can be patient with the network and inflexible with its boundary, and it never confuses the two.
Section 05
Proposed External Execution Sequence
The full request path, from ingress through the admissibility boundary to per-step receipt chaining:
[ Ingress Payload ]
│ (t₀ Hash)
▼
[ State Root Commit ]
│
▼
[ Upstream Admissibility Boundary (UAB) / Deterministic Gate ]
├── If INADMISSIBLE / UNKNOWN ──► [ Fail-Closed Freeze + Telemetry Receipt ]
└── If ADMISSIBLE ──────────────► [ Token Grant: Atomic Step Execution ]
│
▼
[ Step Receipt Generated ]
│ (Loop back for Step N+1 re-verification)Two exit paths exist and only two: a token grant that advances the machine to the next atomic step, or a fail-closed freeze that preserves the last verified state hash until re-verification. Everything else — persuasion, mood, momentum, a well-argued exception — is not an exit path and is not representable in the machine.
Request Technical Brief / Alpha Cohort Access
Alpha access covers the implemented app and dry-run state checks, not the proposed external execution substrate. Access is restricted and released in controlled waves.
Issued keys are validated at the gate. Possession of the URL is not admissibility.
Testing the runtime? The alpha testing guide specifies the protocol, the boundary attempts, and what to report back.