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-v4.md

79 lines · 7693 bytes Raw Blame History Rendered
1# NEXT-PHASE-2: acceptance amendment v4 (frozen before any code of this cut)
2
3```text
4campaign_id = "next-phase-2"
5spec_version = 4
6amends = ACCEPTANCE-v3.md spec_version 3 (unchanged; this file supersedes it row by
7 row where it says so; every v3 row, rule and build step not named here stays
8 as written, including the v2 rows v3 kept)
9status = FROZEN at the commit that adds this file. It is committed alone, before any
10 code of the cut. Later changes need ACCEPTANCE-v5.md.
11base = sovereign-core main fef16ad (contains #228); omega.lock 62b6a28
12reason = VERDICT-v3.md: one FAIL row, C7a (the forced panic aborts the daemon)
13```
14
15Every claim has a source: sovereign-core file:line at fef16ad, or a command run before this
16file was written. Anything else is marked UNVERIFIED.
17
18## 1. Findings this amendment is built on
19
20| # | Finding | Evidence |
21|---|---------|----------|
22| H1 | Release builds abort on panic: `Cargo.toml:58` `panic = "abort"` in `[profile.release]`. A panic inside the start-up `spawn_blocking` task ends the process, so the `Err(e)` arm at `crates/aien-runtime/src/server.rs:192-198` (`Reconcile: failed:`; VERDICT-v3 section 3 cites it as 190-197; the code is unchanged since its run, the arm spans 192-198) cannot run in a release build. Both campaign builds are release builds (ACCEPTANCE-v2 section 4) | source; VERDICT-v3 section 3 (3 of 3 C7a runs aborted) |
23| H2 | The error arm that release builds do take: `reconcile_at_start` maps a `ControlResponse::Error` from the start-up reconcile to `set_reconcile_failed("refused: …")` and the line `Reconcile: refused: <e>; effect commands refuse until a successful reconcile (aien compose reconcile)` (`crates/aien-runtime/src/effects.rs:831-834`). `open_intent` then refuses through `reconcile_gate` (`effects.rs:486-495`, `EFFECT_REFUSED ReconcileFailed`) | source; the same arm is proven by VERDICT-v3 C6a..c, C6e..g, C6i, C7b |
24| H3 | The socket is bound before the start-up reconcile runs (`server.rs:97` bind, reconcile spawned at `server.rs:188`), so a start-up abort leaves a socket file with no process behind it. The next daemon start removes a socket file that refuses connections before it binds (`server.rs:80-83`) | source |
25| H4 | **Real panic, observed.** The v3 `cpu-fault` binary (sha256 `7aa59474…bf846b`) started with `AIEN_FAULT_HOLD=reconcile_panic` on a byte copy of F0v3: exit status 134 (SIGABRT, `Aborted (core dumped)`); log `panicked at crates/aien-runtime/src/effects.rs:807:9: fault hold reconcile_panic: …`; the home (compose dir, machine root, record mark) hashed identical before and after; a socket file `aien.sock` was left; `aien compose recall` answered `{"ok":false,"error":"Failed to connect to AIEN runtime socket at …: Connection refused (os error 111)"}`; provenance and state dirs stayed empty | command, run once before this file was written, on a scratch copy (`np2v4-probe`), not part of any receipt |
26
27## 2. What this cut adds
28
291. **Error fault hook** (test build only, feature `fault-hold`): `AIEN_FAULT_HOLD=reconcile_error`
30 in the daemon's environment makes `reconcile_at_start`, on a home that exists (after its
31 `cortex.cx` check), take the reconcile result to be
32 `ControlResponse::Error("fault hold reconcile_error: forced start-up reconcile error (test build)")`
33 instead of calling `reconcile`. The result then goes through the unchanged match of H2, so the
34 production error arm (gate set, `Reconcile: refused:` line) is what runs.
352. **Panic hook kept unchanged**: `AIEN_FAULT_HOLD=reconcile_panic` still panics at the top of
36 `reconcile_at_start` (v3 2.6). It is now tested for what release builds do (row C7c).
373. The default build has no fault code: neither `reconcile_error` nor `reconcile_panic` appears in
38 the `gpu` binary; both appear in `cpu-fault`. Recorded in `link_proof`.
39
40No production behaviour changes in this cut.
41
42## 3. Rules for every run
43
44R1..R6 of ACCEPTANCE-v3 unchanged. R6 (no `E_MARK`) also covers C7c.
45
46## 4. Fixture, builds, controls (supersede v3 section 4 where named)
47
48- **Builds** as v3 (`gpu`, `cpu-fault`, same source commit, same build environment variables,
49 `link_proof` in the receipt), from the code commit of this cut.
50- **Fixture F0v4**: v3's F0 procedure on the new `gpu` build (Llama-3.2-1B-Instruct snapshot
51 5a8abab, `AIEN_COMPOSE_MAX_TOKENS=96`), inside one quietlock hold of at most 20 minutes with
52 start and release whispers, only when `~/workspace/.spark-quiet` is absent. Valid only if S3
53 committed. **Fallback (pre-registered):** if F0v4 cannot run or is not valid, the cases run on
54 F0v3 (`np2v3-fix`, `fixture.json` `files_sha256` `f09af742…9a`, re-checked before use) and the
55 C3 control row is NOT_RUN.
56- C8a input: F0v2 as in v3 (files sha re-checked before use).
57- Controls and repetitions as v3: 3 per injected row, C6i exactly once.
58
59## 5. The rows (supersede v3 section 5 for the rows named; others unchanged)
60
61| Row | Injection (exact) | PASS iff (rules R1..R6 also hold) |
62|-----|-------------------|-----------------------------------|
63| C7a reconcile returns an error | daemon started with `AIEN_FAULT_HOLD=reconcile_error` on a home with history; then: authorize A1, execute A1, `aien compose reconcile`, execute A1, shutdown, restart without the hook | the start line starts `Reconcile: refused: fault hold reconcile_error` and ends `effect commands refuse until a successful reconcile (aien compose reconcile)`; the daemon serves (socket up); authorize answers; the first execute is refused `ReconcileFailed`, no intent, no write; the reconcile answers ok; the second execute is DONE, the target written once; restart line normal (`checked 0`) |
64| C7c real panic at start (new) | daemon started with `AIEN_FAULT_HOLD=reconcile_panic` on a home with history; after it exits, restart without the hook and **without removing the left socket file**; recall; effects; shutdown | **daemon exits, no socket, no write**, read as: the process exits by itself with a non-zero status within the start timeout; its log names `fault hold reconcile_panic`; no process serves the socket (an `aien compose recall` sent while the hook daemon is gone fails to connect, `ok` false); the home (compose dir, machine root, record mark) hashes identical before the start and after the exit; the target file unchanged; provenance dir empty. Then the restart removes the left socket file itself and comes up with a normal reconcile line (`checked 0`); recall ok; the effect ledger holds no intent. Whether a socket file is left after the abort is recorded (a check that always holds, value = present or absent), not scored (H3) |
65| C6d | as v3 (guarded; NOT_APPLICABLE is a row result, never PASS) | as v3 |
66| C6i | as v3 (exactly once) | as v3 |
67
68## 6. Verdicts (supersede v3 section 6 where named)
69
70- Row verdicts as v3: PASS, FAIL, NOT_RUN, NOT_APPLICABLE (only C6d, only through its guard),
71 UNVERIFIED. None of NOT_RUN, NOT_APPLICABLE, UNVERIFIED is PASS.
72- Campaign PASS = every row of v2 and v3 section 5 not replaced, every row of section 5 here
73 (C7a, C7c), and the C3 control, PASS; C6d PASS or NOT_APPLICABLE (named in the verdict, not
74 counted as a pass); F0 valid.
75- Declared NOT_PROVED (not rows): the v3 list, plus: the `Err(e)` arm of `server.rs:192-198`
76 (unreachable in release builds, H1; no row exercises it); the cause of a real start-up panic
77 (C7c proves only that the daemon stops before serving and writes nothing).
78- Receipt: v3 format, `acceptance_spec` = this file; named by its sha256, never edited, indexed,
79 `.summary.txt` beside it, and a `VERDICT-v4.md` written after the run.