interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / docs / campaigns / next-phase-2 / ACCEPTANCE.md

98 lines · 10780 bytes Raw Blame History Source

NEXT-PHASE-2: acceptance criteria for continuity under failure (frozen before any run)

campaign_id  = "next-phase-2"
spec_version = 1
status       = FROZEN at the commit that adds this file (cut 0). No harness, hook or
               reconcile code exists yet; later commits cannot change this file except by
               a dated amendment that bumps spec_version and names the rows it supersedes.

Thresholds marked PROPOSED were set by the builder and are not yet reviewed by Drake or the verifier. Anything without a direct source is marked UNVERIFIED with a confidence.

1. Baseline this campaign extends

The NEXT-PHASE-1 workflow S1..S8 (remember, inspect, propose, authorize, execute, explain, restart, recall) exactly as frozen in docs/campaigns/next-phase-1/ACCEPTANCE.md on branch next-phase/compose-bridge (not yet on main; UNVERIFIED that it merges unchanged, 80%). Pins: omega 62b6a28 (composition, Cortex, J-Space, caproot); sovereign-core = the branch head sha recorded in each receipt at run time. NEXT-PHASE-1 receipts there are verdict FAIL at 0503ce4 (S3 propose failed), so a clean baseline PASS is a precondition: a failure row is only scored on a run whose uninjected control passes S1..S8 (PROPOSED).

2. Vocabulary reused (no third format)

WordSource
step S1..S8, steps[], verdict PASS|FAIL, record_digest[], winner_digest[], machine_idNEXT-PHASE-1 ACCEPTANCE.md sections 1 and 4.2
effect receipt: version, tool, success, arguments_digest, result_digest, policy, timestampsovereign-core crates/aien-cli/src/tools.rs record_effect_receipt
processed_operations (operation ids persisted so idempotency survives restarts), ControlCommand::Shutdown, ShutdownAckcrates/aien-runtime/src/control.rs
LedgerEntry::{Completed, Uncertain, InFlight}, Error::ReconciliationRequired, EffectInFlight, IdempotencyConflict, CallOutcome::Uncertaincrates/aien-mcp/src/broker.rs, error.rs, wire.rs
ApprovalError::{Revoked, Consumed}, ApprovalDesk::revoke (false once spent)crates/aien-mcp/src/approval.rs
OLD-or-NEW recovery, CX_K_ADMISSION tag RXC_ADMIT_ROLLBACK, fault points RXC_FP_*, RXC_CRASH_EXIT 77, test hooks need -DAIEN_TEST_BUILD=1omega src/runtime/rx_compose.h
CX_ERR_TORN, CX_ERR_DIGEST, CX_ERR_FORMAT, CX_OPEN_REPAIR_TAIL, cx_verify_chain; record-boundary cut caught by the count and head digest in the J-Space anchoromega src/runtime/rx_cortex.h
RX_OP_REVOKE, generation-checked CapabilityRef {cap_id, generation}, stale or revoked ref fails closedomega src/runtime/rx_caproot.h
AIEN_GPU_BACKEND=omega refuses to start rather than fall back; AIEN_FORCE_CPU_STUB (build switch)crates/aien-inference-abi/src/omega_backend.rs, crates/aien-omega-gpu/build.rs
receipt named by sha256 of content, never edited, indexedomega evidence/COMPOSITION-2/INDEX.md

The word "unresolved" is not defined in aien-architecture doctrine/ARCHITECTURE.md (grep for unresolved, exactly-once, idempot, duplicate found only an evidence-schema row). This campaign maps "unresolved" onto the existing LedgerEntry::Uncertain / ReconciliationRequired; it introduces no new state name.

3. Rules that hold for every row

4. The six failure cases

#Injection (mechanism)Required outcomeEvidence to producePASS iff
F1Effect applied, ack lost. A campaign fake effect sink applies the S5 write then withholds its ack (modelled as CallOutcome::Uncertain), and the harness SIGKILLs the daemon right after the sink applies. Restart.Ledger row is Uncertain; retry returns ReconciliationRequired, never a second write; no success: true receipt; a reconcile step later compares disk sha256 to the proposal digest and sets the effect to Completed or records it as not appliedsink log (apply count), write_file receipt (absent or success:false), ledger row before and after reconcile, disk sha256 vs S3/S4 digest, retry error nameapply count = 1, retry refused with ReconciliationRequired, reconcile ends in a recorded terminal state, rules in section 3 hold
F2Daemon SIGKILL at a named step boundary: after S3 (CX_K_PROMOTION written) and again after S5 (before S6). Test build with RXC_FP_CORTEX crash (exit 77) for the in-settle variant.OLD-or-NEW: state is the last durable record; no half state; restart does not redo S5step name killed at, Cortex record count and head digest before and after, CX_K_ADMISSION rollback record if the newest record's branch was not sealed, receipts countafter restart exactly one of OLD or NEW, committed identity and memory preserved, S5 write count <= 1
F3GPU unavailable. Run with the GPU library absent (AIEN_OMEGA_GPU_LIB unset or unusable) and AIEN_GPU_BACKEND=omega, and separately a build with AIEN_FORCE_CPU_STUB=1.Omega-demanded run refuses to start (named error), no silent fallback; the explicit CPU run completes or fails on its own merits with gpu_used:false and the backend name recordedprocess exit and error text, receipt backend, gpu_used, S1..S8 resultsno run reports gpu_used:true without the GPU; refusal or CPU path is explicit; no effect without authorization
F4Operator stop and resume. Send ControlCommand::Shutdown (expect ShutdownAck) during S3 and again between S4 and S5, restart, then resume. There is no resume command in control.rs (UNVERIFIED that none exists elsewhere, 70%), so resume means a fresh operator authorization of the same proposal digest.Stopped work does not apply an effect while stopped; after restart the old grant is not silently reused; the effect applies only after a new authorization; operation ids in processed_operations are not replayedShutdownAck, processed_operations before and after, count of authorize receipts (1 per approved effect, PROPOSED: 2 allowed only for the stop-between-S4-S5 variant), disk state during the stopzero writes while stopped, resumed write authorized, no duplicate
F5Capability revoked mid-flight. (a) ApprovalDesk::revoke on the S4 grant before S5 spends it; (b) caproot RX_OP_REVOKE (generation bump) of a candidate or world capability between propose and commit.(a) spend refused with ApprovalError::Revoked, no write; (b) stale CapabilityRef fails closed, commit rejected, branch released; a grant already spent is not revoked (revoke returns false) and the case is then F1, not F5error name, revoke return value, caproot generation before and after, effect receipt (success:false or none), disk unchangedno write after revoke, error names match, loser or rejected branch left no file (NEXT-PHASE-1 speculation row)
F6Durable store damage, applied to a copy while the daemon is stopped: (a) truncate cortex.cx mid-record; (b) flip one byte inside a record; (c) cut cortex.cx exactly at a record boundary; (d) truncate and (e) flip a byte in jspace/jspace.data or jspace.meta.(a) open reports CX_ERR_TORN, repair only with explicit CX_OPEN_REPAIR_TAIL; (b) CX_ERR_DIGEST or CX_ERR_FORMAT; (c) caught by the anchor count and head digest cross-check; (d,e) refuse or recover the previous sealed state with a RXC_ADMIT_ROLLBACK record. Never open as if intact and never report recall success on damaged data. Both stores rolled back together is a documented KNOWN LIMIT of omega, scored as NOT_PROVED, not PASS.sha256 of each file before and after damage, open error code, post-recovery record count and head digest, recall resulteach of a..e detected or recovered to a verified prior state; recall returns only verified records

5. Per-row verdict and campaign verdict

6. Known gaps found while writing this (they make FAIL likely, honestly)

7. What this campaign does not prove