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 / cand4-qualification / ACCEPTANCE-CAND4.md

258 lines · 22400 bytes Raw Blame History Source

CAND-4 qualification: acceptance criteria (declared before any qualification run)

campaign_id   = "cand4-qualification"
spec_version  = 1
candidate     = CAND-4 = sovereign-core main after the omega pin bump (sc#232), with the release
                gate (#230) and scoring contract v5 (#231)
status        = DRAFT until the block in section 1 holds no UNFROZEN value. The freeze is the
                commit that fills that block; it changes this file only and is made before any
                qualification run. Nothing in this file changes after the freeze; a change is a
                new spec_version.
scoring       = docs/campaigns/scoring/SCORING-v5.md (score-rows.sh), declarations q1.decl.json
                and q2.decl.json in this directory, committed before the freeze
scope         = Linux-hosted, single machine (the Spark, GB10), the sovereign-core daemon path:
                one workflow (propose, authorize, execute, explain, restart, recall) and its
                recovery. Release internal-only (owner decision).

Every claim below names its source (file:line at the commit stated, or a command). Anything else is marked UNVERIFIED. Line numbers were read at sovereign-core 296c4ac (main before the pin bump); run-cand4.sh check re-reads the constants of section 2 at the frozen commit and refuses to run if they differ.

1. Frozen inputs (filled once, at the freeze)

run-cand4.sh reads this block. It refuses to start a qualification run while any value is UNFROZEN, and before every launch it recomputes every sha256 below and refuses on a mismatch.

>>> CAND-4 frozen inputs >>>
kind                    = QUALIFICATION
candidate_id            = CAND-4
sc_commit               = d5b78ff7a6be14d23e3cb00d3f9c4b4751442ffa
omega_commit            = c0369e6705a4b0cb800978846e78915126a1b7f7
aienos_commit           = b84c0a67590a934f3f3e001b12ec85ebc086a9eb
physics_commit          = 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf
manifest                = aien-architecture 7f99d7ee4221bb3cd8b3bc23bf167a64baac24e4 qualification/candidates/CAND-4.toml
build_evidence          = /home/drakestapleton/workspace/evidence-out/CAND4-BUILD-REAL3
aien_cli_path           = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/cand4/rootR3/wt-sc/target-rb/release/aien-cli
aien_cli_sha256         = ad6b7eb5330ea19d31d02e68271624d5c964bcbc24983742caae845f62c4c324
cpu_fault_path          = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/laneQ/real/cpu-out/aien-cli-cpu-fault
cpu_fault_sha256        = 3ba0a8e6a46ac53bf32b737b2f0615cb42035b08d2042d97a9e5a24c5d10b7db
librx_compose_sha256    = dfe0ffb8904b08cf9b67c857f7e9de34bf493a6d4d763e9fef0cf2b10f114cd6
libomega_gpu_sha256     = ef80e4313d4e678335dceac3493aadec8d0df4352dd5356854b92e0a9e070887
omega_build_dir         = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/cand4/rootR3/wt-omega/build/rb
rx_r13_host_sha256      = f7b3add700e6b2971a2b1851793529c62549f1ecb3439afb792e18d6ea940cb9
rx_r13_silicon_sha256   = 088a7f2b127e941a420ff855d86349e24fe65b50fe4849accb2300f96cc56e25
rx_r13_testbuild_sha256 = 52e6bd7b6b187174719b84e86aaed99a86ddfe11f35a8eb3419fece169d764cf
omega_src_dir           = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/cand4/src/omega
aienos_repo             = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/cand4/src/aienos
physics_dir             = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/laneQ/real/wt-physics
model_dir               = /home/drakestapleton/.cache/huggingface/hub/models--unsloth--Llama-3.2-1B-Instruct/snapshots/5a8abab4a5d6f164389b1079fb721cfab8d7126c
model_safetensors       = 1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f
model_config            = dfb67fd8afe73a1c75245824ef9d64a6ba8983025447e3bf76aa1ea57ee46152
model_generation_config = 6d4f979915331212d7672c68b22a4ddad9e21ed8126cf2bd1ea6b2b88f595c1c
model_tokenizer         = 6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
model_tokenizer_config  = 9ddd255c19fe319c8d4e891163540382e9fbda99f394674f2a929efc47d57458
model_special_tokens    = 94e708c3f5e64acf85bbe5ad01467a1248faadb73e83b41793087ecced586e8f
model_chat_template     = 5816fce10444e03c2e9ee1ef8a4a1ea61ae7e69e438613f3b17b69d0426223a4
max_tokens              = 96
attempt_budget_ms       = 12000
skill_budget_ms         = 29000
max_attempts            = 3
q1_a1_record_mark       = record-mark
fix_old_dir             = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-fix
fix_old_files_sha256    = 3e4e26eff45e0f7282c335cb2028cd8c314e11b2669c73c16ab27c530c89eaf8
<<< end of CAND-4 frozen inputs <<<

2. Model, template and budgets (identical to NEXT-PHASE-1 v5; no tuning)

3. Production hygiene (H), run first, no GPU

hygiene.sh (this directory), its JSON result kept as a receipt named by its sha256.

rowcheckPASS iff
H1production aien-cli carries no fault hookstrings -a aien_cli has 0 lines matching AIEN_FAULT_HOLD, fault hold, reconcile_panic, reconcile_error, forced start-up reconcile
H1cpositive control for H1the same patterns are found in cpu_fault (the check can see them)
H2production build had no test featurethe -vv release log of the build (build_evidence/sc-rel-2.log) has no feature="fault-hold" and no feature="dev-fallback" on any rustc line
H3production aien-cli carries no omega test-build pieceno AIEN_TEST_BUILD piece: string in aien_cli; nm of the linked librx_compose.a has no aien_test_build_ symbol
H4omega production programstools/r16_prod_hygiene.sh host <rx_r13_living_host> PASS (link map, strings, ARGUS linked, host ARGUS probe); R16_PROD_NO_RUN=1 tools/r16_prod_hygiene.sh silicon <rx_r13_living_silicon> PASS (static only: no GPU)
H4cnegative control for H4R16_PROD_NO_RUN=1 r16_prod_hygiene.sh silicon <rx_r13_living_testbuild_silicon> FAILS (the test build is detected)
H5omega refuses test pieces at build timemake test-prod-refuses-test-pieces at omega_commit, in a scratch copy with its own OUT_DIR: exit 0
H6report onlyevery AIEN_* name in aien_cli containing TEST, STUB, FAULT, FALLBACK or DEV, listed, not scored (AIEN_DEV_FALLBACK is expected: section 2)

4. Q1 useful workflow (GPU)

4.1 The Cortex record mark and row A1 (q1_a1_record_mark)

Found in the TRIAL shake-out (TRIAL bytes, not evidence): on the current main, every Q1 launch leaves one file outside the workspace, <run root>/compose.cortex-mark. It is the daemon's own Cortex record mark, written beside the compose directory by design since NEXT-PHASE-2 v3 (crates/aien-runtime/src/cortex_mark.rs mark_path = compose dir + .cortex-mark, written by advance_mark, spine.rs:882-909). The v5 driver (next-phase-1/run-campaign.sh:122) predates it and counts every new file outside ws/ compose/ prov/ steps/ state/ as an escape, so rows "Containment: workspace" and A1 FAIL on it. In the TRIAL launch these were the only failing rows (every other v1..v5 row PASS). The NEXT-PHASE-1 files are not edited by this campaign.

Frozen: q1_a1_record_mark = record-mark. Reason: compose.cortex-mark is the daemon's own Cortex record mark, introduced by NEXT-PHASE-2 v3 (#228) after the v5 driver was written; the driver predates it and cannot tell it from an escape. The v5 receipt is kept byte for byte, its FAIL stays visible, and the harness writes a second record (q1-a1/a1-<sha256>.json) per launch. A v5 FAIL counts as PASS only if all of these hold:

  1. the failing rows are exactly "Containment: workspace" and A1;
  2. in both rows the only outside file is ./compose.cortex-mark, and the outside sentinel is unchanged;
  3. the workspace change is exactly the authorized path (A2 PASS);
  4. there is no stray compose file;
  5. the file is a well-formed mark: 128 bytes, magic AIENCXM1, and the sha256 of bytes 0..95 equals bytes 96..127 (cortex_mark.rs encode/decode);
  6. the failing set is read from the v5 receipt itself, so any further FAIL row keeps the launch FAIL.

Two negative controls are campaign rows in q1.decl.json, role control, scored with Q1. Each runs on a copy of the first real receipt the reading accepted, and is PASS iff the reading answers FAIL: A1-ctl-damaged-mark (one byte of a copy of the mark changed) and A1-ctl-extra-failing-row (a copy of the receipt with Q4 set to FAIL). Nothing real is edited.

5. Q2 recovery (NEXT-PHASE-2 v4 case set, against CAND-4 binaries)

6. Coverage of six failure cases (declared before any run; never PASS by implication)

#casestatusreason / row
1actual GPU loss during executionOUT OF SCOPE, NOT COVEREDNo row removes the device mid-run. C3a covers only "engine absent at start" (refusal), not loss during a run. The effect path (S4 authorize, S5 execute) runs in the CLI process and does not use the GPU (ACCEPTANCE-v2 A1, crates/aien-cli/src/compose.rs), so a loss can only end S3 (the proposal); the production response is a fatal STRICT_REAL_MODEL_VIOLATION (strict.rs:50-56, panic = abort, Cargo.toml:58); that a real device loss reaches this path is UNVERIFIED. CAND-4 makes no GPU fault-tolerance claim.
2Omega in-settle crash hooksPARTLY COVERED by W2 (section 6.1; never the hooks): a SIGKILL while a propose request is pending, not a kill at a named internal stepThe hooks exist only in AIEN_TEST_BUILD omega builds (rx_compose.c #ifdef RXC_TEST_HOOKS; make test-prod-refuses-test-pieces refuses them in production); librx_compose.a is built without them. A daemon crash during S3 (the World settle) is a recovery event on the daemon path, so the scope needs it. Smallest test (proposed, not in this spec): on cpu_fault, no hook, SIGKILL the daemon 1 s into aien compose propose (C3b's CPU propose), 3 reps; PASS iff the restart either opens with R4 (identity, prefix digest over the pre-S3 records) and no effect, or refuses with a named code that aien compose recover clears with a repair record.
3capability-root revocation on the live effect pathOUT OF SCOPE, NOT COVEREDNot on the path: no sovereign-core crate names caproot, CapabilityRef, aienos_cap or RX_OP_REVOKE (grep -rln over crates/ empty at 296c4ac; ACCEPTANCE-v2 A11). The path's own revocation, Cortex authorization revoke, is tested by C5a and C5b; that is not capability-root revocation and is not reported as such.
4J-Space spill corruption with nonempty spilled dataCONDITIONAL: C6dC6d injects only if jspace.data is nonempty or spill_end > 0; otherwise its result is NOT_APPLICABLE (never PASS). At omega 62b6a28 the composition never wrote jspace.data (ACCEPTANCE-v3 G5; v4 C6d NOT_APPLICABLE x3); at omega_commit this is UNVERIFIED and measured by C6d's guard. If C6d is NOT_APPLICABLE the case is NOT COVERED, and not required: the CAND-4 workflow then has no spilled data to damage.
5real interruption between journal append and record-mark updateCOVERED NON-DETERMINISTICALLY by W5 (section 6.1). The deterministic variant needs candidate code and stays NOT COVERED in that formC6c-ctl reproduces the on-disk state only (the old mark put back), not a real kill. The window exists: advance_mark runs after the appends returned (spine.rs:882-909) and writes the mark by tmp + fsync + rename (cortex_mark.rs:92-118, write at :94). Smallest test (proposed, not in this spec, no code change): on cpu_fault, no hook, N = 20 trials of authorize with a SIGKILL of the daemon at a random 0-50 ms offset; restart each; PASS iff every restart opens with no E_MARK and recall ok (R4), and at least one restart logs record mark advanced (evidence the window was hit; none hit = NOT_RUN). Deterministic variant needs a new daemon hold point (code change, later candidate).
6coordinated rollback or modification of durable stores and their record markOUT OF SCOPE, NOT COVEREDRequires an actor with write access to the owner's home who rewrites journal and mark together; the mark is a crash-consistency check, not tamper resistance (NEXT-PHASE-2 not-proved list). CAND-4 claims no tamper resistance against local writers.

6.1 Harness-side tests for cases 2 and 5 (run-windows.sh, windows.decl.json, run-cand4.sh q2w)

No candidate code and no hook: the frozen cpu_fault binary is started on a copy of F0, killed with SIGKILL, restarted and checked. No GPU. Run after Q2, once, scored by score-rows.sh. Each row has a frozen expected outcome PASS, and a verdict NOT_RUN means the injection did not happen (nothing is claimed).

Common restart check (every case row): the daemon starts (or refuses with a named code and compose recover then lets it start), recall is ok, no E_MARK anywhere, machine id equal, the prefix digest over the first N0 records equal to its value before the fault, workspace unchanged.

rowwhat it doesPASS iff
W-ctl-nokillcontrol: compose propose runs to the end, no kill; measures its time TP and the records it wroteclean restart passes the common check; propose answered; TP > 0; propose wrote at least one record
W-ctl-wrong-expectcontrol for the evaluator: the common check run against a deliberately wrong prefix digestthe evaluator says FAIL
W-ctl-damaged-markcontrol for the mark check: after a clean authorize, one byte of the mark is changedE_MARK is reported
W2 x3 (case 2)SIGKILL the daemon at 0.3, 0.5 and 0.7 of TP into compose proposethe propose client was still waiting at the kill (else NOT_RUN) and the common check passes
W5 x1 (case 5)40 trials: compose authorize, SIGKILL at a random 0 to 50 ms offset, restartevery restart passes the common check, and at least one restart logged record mark advanced (the window was hit; none = NOT_RUN)

Limits, stated before the run. The window of W5 is small and random, so the number of hits is reported, not promised. W2 proves the daemon survives a kill while a propose request is pending; it does not prove which internal step (World settle) the kill met, and the Omega in-settle hooks (RXC_TEST_HOOKS) are not used, because they exist only in test builds. The deterministic variant of case 5 (a kill held between the journal append and the mark update) needs a daemon hold point, which is candidate code: in that form case 5 stays NOT COVERED. W2 and W5 run on the CPU build, as every Q2 case does. W-ctl-nokill's records-written check and W2's N0 are read from compose recall.

The CAND-4 recovery claim is limited to the Q2 and Q2w rows as run. Case 2 is covered only as W2 states (no hook, no named internal step) and case 5 only in its non-deterministic form; neither is claimed beyond that.

7. Receipts, verdict, what is never done