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 / whole-system-e2e / FAULTS-v1.md

65 lines · 6823 bytes Raw Blame History Rendered
1# WHOLE-SYSTEM-E2E, held-fault rows (lane L2): pre-registered
2
3Tracking: aien-dev/aien-sovereign-core#379, lane L2 of aien-dev/aien-architecture#190.
4Contract step: aien-architecture `docs/plans/release-readiness/ACCEPTANCE_E2E.md`, steps E6 and CTRL-E6.
5Harness: `scripts/whole_system_e2e_faults.sh` (shell plus `jq`, no Python). Committed before the harness.
6Every status below is NOT_RUN at the time of writing. The harness measures; it never edits this file.
7
8## 1. Why this exists
9
10`scripts/whole_system_e2e.sh` row E6 kills the daemon between authorize and execute (no hold). The three
11points where the engine holds mid-execute (`before_intent`, `after_intent`, `after_write`, in
12`crates/aien-cli/src/compose.rs` `fault_hold`) and the two start-up holds (`reconcile_panic`,
13`reconcile_error`, in `crates/aien-runtime/src/effects.rs` `reconcile_at_start`) exist only in a build with the
14cargo feature `fault-hold` (test builds only). The earlier campaign next-phase-2 (`ACCEPTANCE-v2.md` section 5,
15rows C2a, C2b, C2c, C2d, and `ACCEPTANCE-v4.md` rows C7a, C7c) drove them with a different fixture. These rows
16drive the same points on the E2E fixture (desk required, desk key created, CPU-reference backend, CAND-4 model)
17and write receipts in the E2E chain format.
18
19The hold is in the `aien compose execute` process (the executor), not in the daemon. "Kill" below means:
20SIGKILL the daemon (exit 137), then SIGKILL the held executor (exit 137), i.e. the whole host dies at that point,
21as C2c does; for `before_intent` the hold is released after the daemon is dead, as C2a does.
22
23## 2. Fixture and build
24
25One build: `cargo build --release -p aien-cli --features aien-cli/fault-hold` into its own target dir, compose
26archive linked (a stub build is refused), no accelerator archive. The daemon must print a `CPU-reference`
27backend line. One real `compose propose` of the objective "Write a file named done.md in the outbox folder
28containing one line: finished." (the E6 objective of the E2E harness) makes the fixture; the fixture (compose
29home, sibling `.machine-root` and `.cortex-mark`, run home with the desk key, workspace, proposal report) is
30byte-copied into each row, so each row has its own state, its own socket and its own daemon. A grant is minted
31per row by `compose authorize --desk 1`.
32
33Counting rules. `effects` = number of `done.md` files in the row workspace. `duplicates` = 1 if a second effect
34happened (more than one file, or the file's inode, size or mtime changed after the first effect), else 0.
35`effects_before_kill` is counted at the kill, `effects_after_restart` at the end of the row.
36
37## 3. Rows and predictions
38
39| row | injection | PASS iff | prediction |
40|---|---|---|---|
41| E6-before_intent | hold executor at `before_intent`; SIGKILL daemon (137); release hold | executor refuses (`ok:false`) and writes nothing; no intent in the ledger; restart; the same grant executes to `DONE`; `done.md` once; next execute `AlreadySpent`; `duplicates` 0 | PASS (as C2a) |
42| E6-after_intent | hold at `after_intent`; SIGKILL daemon then executor; restart | no write before restart; the result is one of the named outcomes and is recorded: (a) `ReconciliationRequired`, then `compose reconcile`, then exactly one effect; (b) `AlreadySpent` with `done.md` present once; (c) `AlreadySpent` with `done.md` absent (reconcile recorded `NOT_DONE`), then a new grant executes exactly once. Never two effects | PASS via outcome (c): restart `Reconcile:` line says `NOT_DONE 1`, same grant `AlreadySpent`, file absent, a new grant finishes once (as C2c). The brief's wording (a) or (b) would show if the engine differs; the row records which |
43| E6-after_write | hold at `after_write`; SIGKILL daemon then executor; restart | `done.md` exists once before restart; restart reconcile records `DONE`; the same grant `AlreadySpent`; file stat unchanged; ledger shows the grant spent once; `duplicates` 0 | PASS (as C2d) |
44| CTRL-E6 | as E6-after_write, then replace the compose home by an empty directory (the journal `cortex.cx` and everything the daemon reconciles from are gone; the sibling record mark stays), restart, execute the same grant | the daemon refuses to start with a name, or the execute is refused with a name (`ReconciliationRequired`, `E_MARK_TRUNCATED`, `ReconcileFailed` or another refusal name); `done.md` stat unchanged; state not `DONE`; never a silent success | PASS with `E_MARK_TRUNCATED` (as CTRL-E4 of dry run 2 measured on the same code) |
45| CTRL-E6b | as CTRL-E6, and the sibling record mark `<home>.cortex-mark` is removed too (total state loss, worst case) | the execute is refused with a name, or the daemon refuses to start; `done.md` stat unchanged; not `DONE` | UNKNOWN. If the home opens fresh, the grant itself is gone, so a refusal naming an unknown or stale grant is expected; recorded either way, name included |
46| FAULT-reconcile_error | grant minted, daemon stopped gracefully, daemon restarted with `AIEN_FAULT_HOLD=reconcile_error` | start line `Reconcile: refused: fault hold reconcile_error`; execute refused `ReconcileFailed`; no write; no intent; grant unspent: after `compose reconcile` (ok) the same grant executes once to `DONE`; next execute `AlreadySpent` | PASS (as C7a) |
47| FAULT-reconcile_panic | same, restarted with `AIEN_FAULT_HOLD=reconcile_panic` | daemon exits non-zero by itself, log names `fault hold reconcile_panic`; nothing serves the socket (an execute fails to connect, recorded as the refusal); no write; restart without the hold; the grant is unspent: same grant executes once to `DONE` | PASS (as C7c) |
48
49## 4. Receipts
50
51`chain/NNN-step.json` for `PRE`, then each row, with the chain fields of the E2E harness (`objective_id`,
52`run_id`, `step`, `status`, `utc`, `prev_receipt_sha256`, `evidence`, `repo_commit`, `daemon_sha256`,
53`cli_sha256`, `model_weights_digest`, `tokenizer_sha256`, `backend_line`, `host`) plus, on each row:
54`kill_point`, `restart_count`, `effects_before_kill`, `effects_after_restart`, `duplicates`, `grant_id`, and
55the refusal names seen. `chain/SHA256SUMS` covers every file of the run folder. The `objective_id` is
56`sha256("AIEN_E2E_FAULTS_OBJECTIVE_V1\n" + objective text)`, a different identity from the E2E run.
57
58## 5. Rules
59
60One attempt per row (the fixture proposal may be retried once if the model fails to commit). A FAIL row is
61recorded, not fixed silently. An engine bug found here becomes an issue with the receipt; the row stays FAIL.
62No engine change in this change. The harness kills only the daemon and executor processes it started itself.
63What a PASS shows: the engine's crash boundaries on the CPU-reference build with fault-hold. What it does not
64show: the accelerator path, an installed artifact, the release build (the hold points are compiled out of it),
65or any step of the contract as PASS.