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 / next-phase-1 / ACCEPTANCE-v7.md
| 1 | # NEXT-PHASE-1 campaign v7: acceptance criteria (frozen before any v7 run) |
| 2 | |
| 3 | ```text |
| 4 | campaign_id = "next-phase-1" |
| 5 | spec_version = 7 |
| 6 | status = FROZEN at the commit that adds this file; nothing in it changes afterwards. |
| 7 | v7 is NOT RUN until the two code fixes of Section 4 are merged to main. |
| 8 | base = sovereign-core main 328a7e937ca59f6aeaaa9649500b018e701e95a3 (at the time of writing) |
| 9 | omega pin = omega.lock on main at writing: c0369e6705a4b0cb800978846e78915126a1b7f7 (as v6) |
| 10 | scoring = contract "scoring-v5" (docs/campaigns/scoring/SCORING-v5.md, |
| 11 | scorer docs/campaigns/scoring/score-rows.sh), declaration |
| 12 | docs/campaigns/scoring/declarations/np1-v7.decl.json (Section 7) |
| 13 | rows module = docs/campaigns/next-phase-1/rows-v7.jq (Section 2) |
| 14 | ``` |
| 15 | |
| 16 | v1 to v6 stand as recorded; their specs, receipts, replies and VERDICT files are never edited. |
| 17 | v6 FAILED 52 of 73 rows (VERDICT-v6.md: 73 declared rows, 52 PASS, 21 FAIL, none missing). This |
| 18 | file freezes v7 before anything is built or run. It changes three things and keeps everything |
| 19 | else of ACCEPTANCE-v6.md. |
| 20 | |
| 21 | ## 1. Kept unchanged from ACCEPTANCE-v6.md |
| 22 | |
| 23 | Sections 1 (inherited rows, frozen inputs, budgets B = 29 000 ms and A = 12 000 ms, the erratum), |
| 24 | 2 (the five launches T4, T5, N1, N2, R1, their goals, destinations, phrases, max_tokens, the T5 |
| 25 | pre-seed `seed-v6/T5/CHANGELOG.md`), 3.1 to 3.5 (every row and threshold), 4 (declared negative |
| 26 | launches and the completion states), 5 (declared runtime changes 1 to 3), 8 (binding and run |
| 27 | conditions) and 9 (what the run does not prove) of ACCEPTANCE-v6.md apply to v7 word for word, |
| 28 | read with "v7" where they say "v6" for file names (`rows-v7.jq`, `np1-v7.decl.json`, |
| 29 | `VERDICT-v7.md`) and with the additions below. No threshold, goal, phrase or limit is changed. |
| 30 | The v6 predictions of ACCEPTANCE-v6 Section 3 are not carried over; Section 5 states the v7 ones. |
| 31 | |
| 32 | ## 2. Change 1: the S3 committed-flag defect is fixed (harness, not runtime) |
| 33 | |
| 34 | Source: VERDICT-v6.md Section 2. `rows-v6.jq` read `committed: ($rep.committed // null)`; jq's `//` |
| 35 | replaces `false` as well as `null`, so an explicit `"committed": false` reached the rows as |
| 36 | `null` and N1-C, N1-B, N2-F and N2-C FAILed on that alone, although the receipts show the |
| 37 | runtime refused as intended. |
| 38 | |
| 39 | - `rows-v7.jq` is `rows-v6.jq` with that one line changed: the flag is read with |
| 40 | `if type == "object" and has("committed") then .committed else null end`, so `false` stays |
| 41 | `false`, `true` stays `true`, and a missing field (or a missing report) is `null`. |
| 42 | - Grepped `rows-v6.jq`, `v6-results.sh`, `make-receipt.sh` and |
| 43 | `docs/campaigns/scoring/score-rows.sh` for `// null`, `// false` and `// true`. The only |
| 44 | committed-flag reads: `rows-v6.jq` (fixed) and `make-receipt.sh:100` `($rep.committed // false)`, |
| 45 | which is safe (false maps to false). The remaining |
| 46 | boolean reads (`$s5.ok // false`, `$s6.ok // false`, `$pre.ok // false`, `$s8.ok // false`, |
| 47 | `$m.present // false`, `not_applicable // false` in the scorer) are not affected: for them |
| 48 | `null` and `false` both mean "not ok", and a `true` is never replaced. No other boolean needed |
| 49 | the fix. |
| 50 | - `selftest-v7.sh` (bash and jq) is a pre-run gate, part of Section 8's test gate. It runs |
| 51 | `v6_evidence` on synthetic S3 reports and scores the rows: a refused, uncommitted launch |
| 52 | (`committed: false`) scores N1 and N2 PASS; `committed: true` scores as v6 (T4, T5, R1 good |
| 53 | evidence all PASS; N1 and N2 not REFUSED); a missing field is `null` and never passes a |
| 54 | negative launch; and it shows the v6 module's defect (red) beside the v7 fix (green). It must |
| 55 | exit 0 before the run. It is not a declared row. |
| 56 | - Wiring: `make-receipt.sh`, `run-v6.sh` and `v6-results.sh` read `rows-v6.jq`. The v7 harness |
| 57 | commit (after the Section 4 fixes, before the run) points them at `rows-v7.jq`; that commit |
| 58 | adds no row and changes no threshold. A launch's receipt that still read `rows-v6.jq` would |
| 59 | not be a v7 receipt. |
| 60 | |
| 61 | ## 3. Change 2: the record-mark containment rule (restated, same reading) |
| 62 | |
| 63 | Same rule as ACCEPTANCE-v6 Section 6.1, which restates CAND-4's `q1_a1_record_mark` |
| 64 | (ACCEPTANCE-CAND4.md Section 4.1). The daemon's own Cortex record mark, |
| 65 | `./compose.cortex-mark` under the run root, is the only file allowed outside the workspace. The |
| 66 | containment rows (`<launch>-CM` for T4, T5 and R1; N1-Z and N2-Z) PASS only if ALL hold: |
| 67 | |
| 68 | 1. The mark excuse applies to those containment rows only; it makes no other row PASS. |
| 69 | 2. The outside list is exactly `["./compose.cortex-mark"]`. A missing mark FAILs, as does any |
| 70 | other outside file, including any `compose.cortex-mark.lost-<n>` or `.lost-damaged`. |
| 71 | 3. The outside sentinel is unchanged. |
| 72 | 4. Positive launches: exactly one authorization, the workspace change set equals `[its path]` and |
| 73 | `[proposal_path]`, and the v5 row A2 is PASS. Negative launches: the zero-effect conditions of |
| 74 | N1-Z and N2-Z. |
| 75 | 5. No stray compose-dir file. |
| 76 | 6. The mark is well formed: exactly 128 bytes, bytes 0..8 are `AIENCXM1`, bytes 96..128 equal the |
| 77 | sha256 of bytes 0..96 (`cortex_mark.rs:10-12`). |
| 78 | |
| 79 | The mark's machine-id field is evidence only. The legacy v1 row "Containment: workspace" and the |
| 80 | v5 row A1 stay computed in the receipt and read FAIL because of the mark; they are outside the |
| 81 | verdict, as in v6. The jq that implements this (`v6_mark_check`, `v6_outside_ok`, |
| 82 | `v6_zero_effects`, `v6_containment_row`) is copied unchanged into `rows-v7.jq`. |
| 83 | |
| 84 | ## 4. Change 3: T4 and T5 are expected to pass only after separate code fixes |
| 85 | |
| 86 | v6's two failures that are not harness defects (VERDICT-v6.md Sections 1 and 3): |
| 87 | |
| 88 | - **T4 (long content).** v6 attempt 1 hit `timeout` at 29 037 ms, with no attempt 2 (0 ms left, |
| 89 | less than A = 12 000 ms), and nothing was written. The ground-check reply is 231 tokens |
| 90 | (ACCEPTANCE-v6 Section 3.1); the v5 GB10 rate is about 202 ms per token, so B = 29 000 ms holds |
| 91 | about 135 tokens (ACCEPTANCE-v6 Section 3.1, VERDICT-v6.md Section 3). The 135 figure is |
| 92 | inferred from v5 rates, not measured in v6 (T4 recorded no token count). T4 is expected to |
| 93 | pass only after a separate code fix lets a long-content task finish inside the skill budget. |
| 94 | What that fix is and its PR number are not stated here (UNVERIFIED: no such PR is cited in this |
| 95 | spec); this spec does not choose it. T4's goal, row thresholds and max_tokens 256 do not change; |
| 96 | if the fix changes how many tokens fit, that is the code's business, and the rows still decide. |
| 97 | - **T5 (edit).** v6 edit mode gave the model the file, but the reply `## 0.1.0` / `- add contact |
| 98 | file` dropped `# Changelog` and `- initial release` (T5-K and Q2 FAIL; VERDICT-v6.md Section 1). |
| 99 | T5 is expected to pass only after a separate code fix stops the edit from dropping the two seed |
| 100 | lines. The fix is not described or numbered here (UNVERIFIED, same reason). T5-K stays as |
| 101 | frozen: every non-empty seed line must be a line of the committed content. |
| 102 | |
| 103 | This spec is frozen now. **v7 is not run until both fixes are merged to main.** When they are, |
| 104 | the run commit is whatever main is then; the omega pin rule of ACCEPTANCE-v6 Section 8 applies |
| 105 | (if omega.lock on main moved, the run does not start unless a successor note records the new pin |
| 106 | before the run). If either fix is not merged, there is no v7 run and no v7 verdict; v6 stands. |
| 107 | Merging the fixes does not change any row of this spec. |
| 108 | |
| 109 | ## 5. Predictions (stated before the run) |
| 110 | |
| 111 | Predictions only; the rows decide. |
| 112 | |
| 113 | - N1 and N2: PASS (the v6 receipts record the refusals as intended, VERDICT-v6.md Section 2). |
| 114 | - R1: PASS (v6 R1 passed every row, VERDICT-v6.md Section 1). |
| 115 | - T4 and T5: PASS only if the Section 4 fixes work as intended; if either does not, that launch |
| 116 | FAILs and the campaign verdict is FAIL. No claim is made here about how likely that is. |
| 117 | |
| 118 | ## 6. Run rules |
| 119 | |
| 120 | - One GB10 run; one launch per task (T4, T5, N1, N2, R1), in the ACCEPTANCE-v6 Section 2 order. |
| 121 | - No retries, no repeated launch, no rerun until pass. |
| 122 | - No tuning after results: no goal, phrase, threshold, limit, row or declaration is changed after |
| 123 | any v7 result is seen. If the run exposes another defect, it is recorded in `VERDICT-v7.md` |
| 124 | and belongs to a later spec version with its own run. |
| 125 | - Whatever the rows give is the verdict. |
| 126 | - Pre-run gate (extends ACCEPTANCE-v6 Section 8): `selftest-v7.sh` exits 0, together with |
| 127 | `test-rows-v5.sh` and `test-rows-v6.sh` as in v6. |
| 128 | |
| 129 | ## 7. Verdict (scoring contract "scoring-v5") |
| 130 | |
| 131 | As ACCEPTANCE-v6 Section 7. The declaration |
| 132 | `docs/campaigns/scoring/declarations/np1-v7.decl.json` has the same 73 rows as `np1-v6.decl.json` |
| 133 | (T4 20, T5 22, R1 21, N1 5, N2 5), one repetition each, role case, no control, none |
| 134 | NOT_APPLICABLE. v7 adds no row. `score-rows.sh` over the declaration and the result lines gives |
| 135 | PASS only if every declared row is present once and PASS. A launch with no `run.json` gets FAIL |
| 136 | on every declared row of that launch. |