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
aien-sovereign-core-mv / docs / campaigns / cand4-qualification / ACCEPTANCE-CAND4.md
| 1 | # CAND-4 qualification: acceptance criteria (declared before any qualification run) |
| 2 | |
| 3 | ```text |
| 4 | campaign_id = "cand4-qualification" |
| 5 | spec_version = 1 |
| 6 | candidate = CAND-4 = sovereign-core main after the omega pin bump (sc#232), with the release |
| 7 | gate (#230) and scoring contract v5 (#231) |
| 8 | status = DRAFT until the block in section 1 holds no UNFROZEN value. The freeze is the |
| 9 | commit that fills that block; it changes this file only and is made before any |
| 10 | qualification run. Nothing in this file changes after the freeze; a change is a |
| 11 | new spec_version. |
| 12 | scoring = docs/campaigns/scoring/SCORING-v5.md (score-rows.sh), declarations q1.decl.json |
| 13 | and q2.decl.json in this directory, committed before the freeze |
| 14 | scope = Linux-hosted, single machine (the Spark, GB10), the sovereign-core daemon path: |
| 15 | one workflow (propose, authorize, execute, explain, restart, recall) and its |
| 16 | recovery. Release internal-only (owner decision). |
| 17 | ``` |
| 18 | |
| 19 | Every claim below names its source (file:line at the commit stated, or a command). Anything |
| 20 | else is marked UNVERIFIED. Line numbers were read at sovereign-core `296c4ac` (main before the |
| 21 | pin bump); `run-cand4.sh check` re-reads the constants of section 2 at the frozen commit and |
| 22 | refuses to run if they differ. |
| 23 | |
| 24 | ## 1. Frozen inputs (filled once, at the freeze) |
| 25 | |
| 26 | `run-cand4.sh` reads this block. It refuses to start a qualification run while any value is |
| 27 | UNFROZEN, and before every launch it recomputes every sha256 below and refuses on a mismatch. |
| 28 | |
| 29 | ```text |
| 30 | >>> CAND-4 frozen inputs >>> |
| 31 | kind = QUALIFICATION |
| 32 | candidate_id = CAND-4 |
| 33 | sc_commit = d5b78ff7a6be14d23e3cb00d3f9c4b4751442ffa |
| 34 | omega_commit = c0369e6705a4b0cb800978846e78915126a1b7f7 |
| 35 | aienos_commit = b84c0a67590a934f3f3e001b12ec85ebc086a9eb |
| 36 | physics_commit = 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf |
| 37 | manifest = aien-architecture 7f99d7ee4221bb3cd8b3bc23bf167a64baac24e4 qualification/candidates/CAND-4.toml |
| 38 | build_evidence = /home/drakestapleton/workspace/evidence-out/CAND4-BUILD-REAL3 |
| 39 | aien_cli_path = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/cand4/rootR3/wt-sc/target-rb/release/aien-cli |
| 40 | aien_cli_sha256 = ad6b7eb5330ea19d31d02e68271624d5c964bcbc24983742caae845f62c4c324 |
| 41 | cpu_fault_path = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/laneQ/real/cpu-out/aien-cli-cpu-fault |
| 42 | cpu_fault_sha256 = 3ba0a8e6a46ac53bf32b737b2f0615cb42035b08d2042d97a9e5a24c5d10b7db |
| 43 | librx_compose_sha256 = dfe0ffb8904b08cf9b67c857f7e9de34bf493a6d4d763e9fef0cf2b10f114cd6 |
| 44 | libomega_gpu_sha256 = ef80e4313d4e678335dceac3493aadec8d0df4352dd5356854b92e0a9e070887 |
| 45 | omega_build_dir = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/cand4/rootR3/wt-omega/build/rb |
| 46 | rx_r13_host_sha256 = f7b3add700e6b2971a2b1851793529c62549f1ecb3439afb792e18d6ea940cb9 |
| 47 | rx_r13_silicon_sha256 = 088a7f2b127e941a420ff855d86349e24fe65b50fe4849accb2300f96cc56e25 |
| 48 | rx_r13_testbuild_sha256 = 52e6bd7b6b187174719b84e86aaed99a86ddfe11f35a8eb3419fece169d764cf |
| 49 | omega_src_dir = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/cand4/src/omega |
| 50 | aienos_repo = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/cand4/src/aienos |
| 51 | physics_dir = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/laneQ/real/wt-physics |
| 52 | model_dir = /home/drakestapleton/.cache/huggingface/hub/models--unsloth--Llama-3.2-1B-Instruct/snapshots/5a8abab4a5d6f164389b1079fb721cfab8d7126c |
| 53 | model_safetensors = 1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f |
| 54 | model_config = dfb67fd8afe73a1c75245824ef9d64a6ba8983025447e3bf76aa1ea57ee46152 |
| 55 | model_generation_config = 6d4f979915331212d7672c68b22a4ddad9e21ed8126cf2bd1ea6b2b88f595c1c |
| 56 | model_tokenizer = 6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b |
| 57 | model_tokenizer_config = 9ddd255c19fe319c8d4e891163540382e9fbda99f394674f2a929efc47d57458 |
| 58 | model_special_tokens = 94e708c3f5e64acf85bbe5ad01467a1248faadb73e83b41793087ecced586e8f |
| 59 | model_chat_template = 5816fce10444e03c2e9ee1ef8a4a1ea61ae7e69e438613f3b17b69d0426223a4 |
| 60 | max_tokens = 96 |
| 61 | attempt_budget_ms = 12000 |
| 62 | skill_budget_ms = 29000 |
| 63 | max_attempts = 3 |
| 64 | q1_a1_record_mark = record-mark |
| 65 | fix_old_dir = /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-fix |
| 66 | fix_old_files_sha256 = 3e4e26eff45e0f7282c335cb2028cd8c314e11b2669c73c16ab27c530c89eaf8 |
| 67 | <<< end of CAND-4 frozen inputs <<< |
| 68 | ``` |
| 69 | |
| 70 | - `aien_cli` is the production binary of the CAND-4 clean double build (evidence |
| 71 | `build_evidence`, both builds SAME). It runs every GPU leg (Q1, the Q2 fixture F0). |
| 72 | - `cpu_fault` is the NEXT-PHASE-2 test binary rebuilt from `sc_commit` by `build-cpu-fault.sh` |
| 73 | (ACCEPTANCE-v2 section 4 recipe: composition archive linked, no GPU archive, feature |
| 74 | `fault-hold`, built with `scripts/repro-build.sh`). It is not a release binary and contains |
| 75 | the test hooks by design; it runs only the Q2 cases. Its digest is declared here before any |
| 76 | run. |
| 77 | - The model snapshot files: digests of model, config, generation config and tokenizer equal |
| 78 | NEXT-PHASE-1 ACCEPTANCE-v5 section 5. The code also reads `tokenizer_config.json` or |
| 79 | `chat_template.jinja` for the chat template (`crates/aien-inference-abi/src/tokenizer.rs:188-204`), |
| 80 | so every file of the snapshot is pinned. |
| 81 | |
| 82 | ## 2. Model, template and budgets (identical to NEXT-PHASE-1 v5; no tuning) |
| 83 | |
| 84 | - Model: unsloth/Llama-3.2-1B-Instruct snapshot 5a8abab, the tested model (owner decision: |
| 85 | Llama stays for CAND-4, release internal-only). Decoding greedy, stop on end of sequence. |
| 86 | - Prompt: `proposal_prompt` and the assistant prefix `filename:` (no trailing space) of the |
| 87 | frozen commit (`crates/aien-runtime/src/spine.rs:727-738` at `296c4ac`), the Llama 3 chat |
| 88 | template of the snapshot, the constraint text and workspace seed of |
| 89 | `next-phase-1/run-campaign.sh` (unchanged). |
| 90 | - `max_tokens = 96`, set by the environment `AIEN_COMPOSE_MAX_TOKENS=96`. The binary's default |
| 91 | without it is 48 (`crates/aien-runtime/src/server.rs:433-436`). CAND-4 is qualified only with |
| 92 | the variable set; a run without it is a configuration this campaign does not cover. |
| 93 | - **Attempt budget: the code value is the frozen one.** ACCEPTANCE-v5 section 5 states |
| 94 | "attempt budget A = 21 000 ms". The code enforces `COMPOSE_ATTEMPT_BUDGET = 12_000 ms` |
| 95 | (`spine.rs:717`) and `COMPOSE_SKILL_BUDGET = 29 s` (`spine.rs:712`). What the binary does |
| 96 | (`propose_with_retries`, `spine.rs:753-779`): attempt 1 always starts and gets what is left of |
| 97 | 29 000 ms as its limit; attempt k > 1 starts only if at least 12 000 ms is left. The v5 spec |
| 98 | value 21 000 ms is not in the code. Discrepancy recorded; frozen here: 12 000 ms per-attempt |
| 99 | start threshold, 29 000 ms skill budget, 3 attempts (`spine.rs:709`). In the v5 run every |
| 100 | task finished on attempt 1 in under 5 s (VERDICT-v5 section 1), so the difference did not |
| 101 | act there. No value is tuned. |
| 102 | - **Retry policy.** The harness never retries: each declared launch runs once; a failed launch |
| 103 | is that row's FAIL and is kept. The binary's own automatic retry (up to 3 proposal attempts |
| 104 | inside one Skill run, above) is part of the frozen code, is not a rescue (ACCEPTANCE-v5 |
| 105 | section 5), and every attempt is recorded with its `finish_reason`; row Q3 requires the |
| 106 | accepted attempt to stop on `eos`. |
| 107 | - Environment of every launch: `env -i` with only `PATH`, `HOME`, `USER`, `LANG` and the |
| 108 | declared variables (`AIEN_BIN`, `AIEN_MODEL_PATH`, `AIEN_TOKENIZER_PATH`, |
| 109 | `AIEN_COMPOSE_MAX_TOKENS=96`, and for GPU legs `AIEN_REQUIRE_BLACKWELL=1`). In particular |
| 110 | `AIEN_DEV_FALLBACK` (a runtime opt-in to fallbacks that a production binary honours, |
| 111 | `crates/aien-inference-abi/src/strict.rs:15-33`) is never set. |
| 112 | |
| 113 | ## 3. Production hygiene (H), run first, no GPU |
| 114 | |
| 115 | `hygiene.sh` (this directory), its JSON result kept as a receipt named by its sha256. |
| 116 | |
| 117 | | row | check | PASS iff | |
| 118 | |-----|-------|----------| |
| 119 | | H1 | production aien-cli carries no fault hook | `strings -a aien_cli` has 0 lines matching `AIEN_FAULT_HOLD`, `fault hold`, `reconcile_panic`, `reconcile_error`, `forced start-up reconcile` | |
| 120 | | H1c | positive control for H1 | the same patterns are found in `cpu_fault` (the check can see them) | |
| 121 | | H2 | production build had no test feature | the `-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 | |
| 122 | | H3 | production aien-cli carries no omega test-build piece | no `AIEN_TEST_BUILD piece:` string in aien_cli; `nm` of the linked `librx_compose.a` has no `aien_test_build_` symbol | |
| 123 | | H4 | omega production programs | `tools/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) | |
| 124 | | H4c | negative control for H4 | `R16_PROD_NO_RUN=1 r16_prod_hygiene.sh silicon <rx_r13_living_testbuild_silicon>` FAILS (the test build is detected) | |
| 125 | | H5 | omega refuses test pieces at build time | `make test-prod-refuses-test-pieces` at `omega_commit`, in a scratch copy with its own OUT_DIR: exit 0 | |
| 126 | | H6 | report only | every `AIEN_*` name in aien_cli containing TEST, STUB, FAULT, FALLBACK or DEV, listed, not scored (`AIEN_DEV_FALLBACK` is expected: section 2) | |
| 127 | |
| 128 | ## 4. Q1 useful workflow (GPU) |
| 129 | |
| 130 | - Tasks: T1, T2, T3 of `next-phase-1/tasks-v5.json` (ACCEPTANCE-v5 section 2), unchanged. |
| 131 | - **Repetitions: 3 per task, 9 launches**, in the order round 1 (T1, T2, T3), round 2, round 3. |
| 132 | One driver launch per task (`next-phase-1/run-campaign.sh`, called unchanged with its own run |
| 133 | root), two daemon starts per launch, zero hand input. Each round runs inside one |
| 134 | `quietlock hold --owner laneQ --minutes 20` with start and release whispers, only when |
| 135 | `~/workspace/.spark-quiet` is absent; another lane's hold is waited for, never interrupted. |
| 136 | - Scoring per launch: `next-phase-1/make-receipt.sh` with `TASK_ID`, `RESCUES=0`, unchanged: |
| 137 | every v1..v4 row (S1..S8; content digests equal; recall byte-identical; approvals exactly 1; |
| 138 | rescues 0; identity; memory; containment workspace; containment speculation) and every v5 row: |
| 139 | Q1 path equals the requested path and the change set is exactly that path; Q2 required phrases |
| 140 | present, no echoed prompt line; Q3 stop reason `eos`; Q4 no chat markers; A1 containment incl. |
| 141 | speculative effects; A2 approval bound to the exact effect (content, disk and proposal |
| 142 | digests, path); A3 explanation cites receipt fields that exist, names the committed path; |
| 143 | A4 restart keeps identity and recall returns the committed record (World commit, canonical |
| 144 | Cortex persistence); A5 exactly one expected approval, counted on its own; A6 manual |
| 145 | rescues 0. A launch is PASS only if its receipt verdict is PASS, read as section 4.1 says. |
| 146 | - A launch whose driver does not produce `run.json` is FAIL, and the harness still writes an |
| 147 | attempt record for it. |
| 148 | - Q1 results (plus the two section 4.1 control rows): one line per launch `{row: T<k>, rep, verdict, outcome, env: "GPU"}`, scored by |
| 149 | `score-rows.sh q1.decl.json` (3 rows x 3 repetitions, plus the two control rows). Q1 PASS iff that verdict is PASS. |
| 150 | |
| 151 | ### 4.1 The Cortex record mark and row A1 (`q1_a1_record_mark`) |
| 152 | |
| 153 | Found in the TRIAL shake-out (TRIAL bytes, not evidence): on the current main, every Q1 launch |
| 154 | leaves one file outside the workspace, `<run root>/compose.cortex-mark`. It is the daemon's own |
| 155 | Cortex record mark, written beside the compose directory by design since NEXT-PHASE-2 v3 |
| 156 | (`crates/aien-runtime/src/cortex_mark.rs` `mark_path` = compose dir + `.cortex-mark`, written by |
| 157 | `advance_mark`, `spine.rs:882-909`). The v5 driver (`next-phase-1/run-campaign.sh:122`) predates |
| 158 | it and counts every new file outside `ws/ compose/ prov/ steps/ state/` as an escape, so rows |
| 159 | "Containment: workspace" and A1 FAIL on it. In the TRIAL launch these were the only failing rows |
| 160 | (every other v1..v5 row PASS). The NEXT-PHASE-1 files are not edited by this campaign. |
| 161 | |
| 162 | Frozen: `q1_a1_record_mark = record-mark`. Reason: `compose.cortex-mark` is the daemon's own |
| 163 | Cortex record mark, introduced by NEXT-PHASE-2 v3 (#228) after the v5 driver was written; the |
| 164 | driver predates it and cannot tell it from an escape. The v5 receipt is kept byte for byte, its |
| 165 | FAIL stays visible, and the harness writes a second record (`q1-a1/a1-<sha256>.json`) per |
| 166 | launch. A v5 FAIL counts as PASS only if all of these hold: |
| 167 | |
| 168 | 1. the failing rows are exactly "Containment: workspace" and A1; |
| 169 | 2. in both rows the only outside file is `./compose.cortex-mark`, and the outside sentinel is |
| 170 | unchanged; |
| 171 | 3. the workspace change is exactly the authorized path (A2 PASS); |
| 172 | 4. there is no stray compose file; |
| 173 | 5. the file is a well-formed mark: 128 bytes, magic `AIENCXM1`, and the sha256 of bytes |
| 174 | 0..95 equals bytes 96..127 (`cortex_mark.rs` `encode`/`decode`); |
| 175 | 6. the failing set is read from the v5 receipt itself, so any further FAIL row keeps the launch FAIL. |
| 176 | |
| 177 | Two negative controls are campaign rows in `q1.decl.json`, role control, scored with Q1. Each |
| 178 | runs on a copy of the first real receipt the reading accepted, and is PASS iff the reading |
| 179 | answers FAIL: `A1-ctl-damaged-mark` (one byte of a copy of the mark changed) and |
| 180 | `A1-ctl-extra-failing-row` (a copy of the receipt with Q4 set to FAIL). Nothing real is edited. |
| 181 | |
| 182 | ## 5. Q2 recovery (NEXT-PHASE-2 v4 case set, against CAND-4 binaries) |
| 183 | |
| 184 | - Fixture F0 (GPU): `next-phase-2/run-faults.sh fixture` on `aien_cli` with |
| 185 | `AIEN_REQUIRE_BLACKWELL=1`, model as section 2, inside one quietlock hold (<= 20 min, whispers). |
| 186 | Valid only if S3 committed. No fallback fixture: if F0 is not valid, Q2 is NOT_RUN. |
| 187 | - Cases: `run-faults.sh cases` on `cpu_fault`, all cases, `REPS=3` (C6i once, controls once, |
| 188 | as the script runs them), `FIX_OLD = fix_old_dir` for C8a (its files sha256 re-checked by the |
| 189 | script). The cases never touch the GPU (the script stops if a daemon is not CPU-reference). |
| 190 | - Scoring: `score-rows.sh q2.decl.json results.jsonl external.json`, where `q2.decl.json` is |
| 191 | `scoring/declarations/np2-v4.decl.json` (same rows, reps, controls, C6d `not_applicable`) |
| 192 | plus the receipt-level row `C3-control` (F0's daemon names `OmegaGb10Backend`) and an `env` |
| 193 | label per row; `external.json` = `{"F0": fixture.s3_committed}`. The NEXT-PHASE-2 |
| 194 | `make-receipt.sh` v4-format receipt is also written (builds, link proof, not-proved list); it |
| 195 | is evidence, the scoring-v5 verdict decides. |
| 196 | - Environment label of every row (in `q2.decl.json`): |
| 197 | - **GPU**: F0 and `C3-control` (production `aien_cli` on the GB10). |
| 198 | - **CPU fault injection**: C1a, C1b, C2a, C2b, C2c, C2d, C7a, C7c (a `fault-hold` hook is |
| 199 | armed: `AIEN_FAULT_HOLD` in the executor or the daemon). |
| 200 | - **host**: control-C1..C8, C3a, C3b, C4, C5a, C5b, C5c, C6a..C6i, C6c-ctl, C7b, C8a, C8b |
| 201 | (`cpu_fault` binary with no hook armed; the harness acts from outside the process: SIGKILL, |
| 202 | file damage, CLI commands). |
| 203 | - Q2 PASS iff the scoring-v5 verdict is PASS (C6d may be NOT_APPLICABLE, named, never counted |
| 204 | as PASS). |
| 205 | |
| 206 | ## 6. Coverage of six failure cases (declared before any run; never PASS by implication) |
| 207 | |
| 208 | | # | case | status | reason / row | |
| 209 | |---|------|--------|--------------| |
| 210 | | 1 | actual GPU loss during execution | OUT OF SCOPE, NOT COVERED | No 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. | |
| 211 | | 2 | Omega in-settle crash hooks | PARTLY COVERED by W2 (section 6.1; never the hooks): a SIGKILL while a propose request is pending, not a kill at a named internal step | The 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. | |
| 212 | | 3 | capability-root revocation on the live effect path | OUT OF SCOPE, NOT COVERED | Not 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. | |
| 213 | | 4 | J-Space spill corruption with nonempty spilled data | CONDITIONAL: C6d | C6d 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. | |
| 214 | | 5 | real interruption between journal append and record-mark update | COVERED NON-DETERMINISTICALLY by W5 (section 6.1). The deterministic variant needs candidate code and stays NOT COVERED in that form | C6c-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). | |
| 215 | | 6 | coordinated rollback or modification of durable stores and their record mark | OUT OF SCOPE, NOT COVERED | Requires 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. | |
| 216 | |
| 217 | ### 6.1 Harness-side tests for cases 2 and 5 (`run-windows.sh`, `windows.decl.json`, `run-cand4.sh q2w`) |
| 218 | |
| 219 | No candidate code and no hook: the frozen `cpu_fault` binary is started on a copy of F0, killed |
| 220 | with SIGKILL, restarted and checked. No GPU. Run after Q2, once, scored by `score-rows.sh`. |
| 221 | Each row has a frozen expected outcome PASS, and a verdict NOT_RUN means the injection did not |
| 222 | happen (nothing is claimed). |
| 223 | |
| 224 | Common restart check (every case row): the daemon starts (or refuses with a named code and |
| 225 | `compose recover` then lets it start), recall is ok, no `E_MARK` anywhere, machine id equal, the |
| 226 | prefix digest over the first N0 records equal to its value before the fault, workspace unchanged. |
| 227 | |
| 228 | | row | what it does | PASS iff | |
| 229 | |-----|--------------|----------| |
| 230 | | W-ctl-nokill | control: `compose propose` runs to the end, no kill; measures its time TP and the records it wrote | clean restart passes the common check; propose answered; TP > 0; propose wrote at least one record | |
| 231 | | W-ctl-wrong-expect | control for the evaluator: the common check run against a deliberately wrong prefix digest | the evaluator says FAIL | |
| 232 | | W-ctl-damaged-mark | control for the mark check: after a clean authorize, one byte of the mark is changed | `E_MARK` is reported | |
| 233 | | W2 x3 (case 2) | SIGKILL the daemon at 0.3, 0.5 and 0.7 of TP into `compose propose` | the propose client was still waiting at the kill (else NOT_RUN) and the common check passes | |
| 234 | | W5 x1 (case 5) | 40 trials: `compose authorize`, SIGKILL at a random 0 to 50 ms offset, restart | every restart passes the common check, and at least one restart logged `record mark advanced` (the window was hit; none = NOT_RUN) | |
| 235 | |
| 236 | Limits, stated before the run. The window of W5 is small and random, so the number of hits is |
| 237 | reported, not promised. W2 proves the daemon survives a kill while a propose request is pending; |
| 238 | it does not prove which internal step (World settle) the kill met, and the Omega in-settle hooks |
| 239 | (`RXC_TEST_HOOKS`) are not used, because they exist only in test builds. The deterministic |
| 240 | variant of case 5 (a kill held between the journal append and the mark update) needs a daemon |
| 241 | hold point, which is candidate code: in that form case 5 stays NOT COVERED. W2 and W5 run on the |
| 242 | CPU build, as every Q2 case does. W-ctl-nokill's records-written check and W2's N0 are read from |
| 243 | `compose recall`. |
| 244 | |
| 245 | The CAND-4 recovery claim is limited to the Q2 and Q2w rows as run. Case 2 is covered only as W2 |
| 246 | states (no hook, no named internal step) and case 5 only in its non-deterministic form; neither is claimed beyond that. |
| 247 | |
| 248 | ## 7. Receipts, verdict, what is never done |
| 249 | |
| 250 | - Every launch and every scoring step writes a receipt named by the sha256 of its content into |
| 251 | `receipts/` here (never edited), including failed launches; reply bytes as |
| 252 | `receipts/replies/<sha256>.txt`; an `INDEX.md` line each. |
| 253 | - CAND-4 qualification PASS iff: every digest check passed, H PASS (H1, H1c, H2, H3, H4, H4c, |
| 254 | H5), Q1 PASS, Q2 PASS and Q2w PASS (section 6.1). Otherwise FAIL, naming each failing row. NOT_RUN, NOT_APPLICABLE, |
| 255 | INCOMPLETE and UNVERIFIED are never PASS. |
| 256 | - No launch is repeated, no threshold changes after results are seen, no run is repeated until |
| 257 | it passes, no tuning. `VERDICT-CAND4.md` is written after the runs: PASS or FAIL per row, |
| 258 | failed attempts kept and named, the limits of section 6, anything UNVERIFIED. |