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
GitHub aien-dev/aien-sovereign-core-mv#456 (code only)
Apply it
git checkout -b patch-28cba0b227b03158 a6e5f858d63b3c195ea13b1cc061091d08c6d561 curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/28cba0b227b03158.patch | git am
Provenance
github-import 1
aien-dev/aien-sovereign-core-mv
456
1c67839477f450121da9d11dbafcb18546a0eea3
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":456,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/456","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:14Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.crumb b/.crumb index 76c9e019..fa50157d 100644 --- a/.crumb +++ b/.crumb @@ -119,14 +119,14 @@ } ], "children_root": "sha256:a99206c1ace0afb823facb1b5490dc9130965e4d4b57a95e83977aa4a4862be0", - "compiled_at": "2026-10-11T23:18:22Z", + "compiled_at": "2026-10-11T23:40:56Z", "compiler": "crumb-compile/1", - "digest": "sha256:f68eef0417b21099372feee7824eb2f6e63f20f64d8886fd9587458c6053423e", + "digest": "sha256:8d90741844d7b49628118cf1a55f7f84bc0a8989c187ed2478ee33a9ebdf4b82", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", - "files": 3872, - "generated_at_commit": "1f50b106c8b6fb6e2805cf7c8235eac9143cc8d4", - "source_tree": "sha256:26eda304711c9c5efbed2f664fa81dd8305c0b5e85f3a8d744cfd543c0ae3a83" + "files": 3877, + "generated_at_commit": "5e9a458ba63a19fba2842a07ca3ff4b9d13ac823", + "source_tree": "sha256:ddc3409455bd93f19c5ef40078070efb0ddb278a20d453008efb7e5c0bf8c484" } }, "history": [], diff --git a/docs/campaigns/open-model-qwen3/SPEC-v7-DRAFT.md b/docs/campaigns/open-model-qwen3/SPEC-v7-DRAFT.md index 5be05636..9a9d3b6c 100644 --- a/docs/campaigns/open-model-qwen3/SPEC-v7-DRAFT.md +++ b/docs/campaigns/open-model-qwen3/SPEC-v7-DRAFT.md @@ -88,19 +88,19 @@ never move); the freeze build must include sc#454. ## 5. Freeze checklist (all must be true; each is a yes or no with evidence) 1. [x] (2026-10-11, sc#436 merged 7cfc7a8; render oracle re-verified independently the same day, EVAL Section 8) Chat template gap closed on main: Qwen3-8B template pinned with fixture, provenance and render oracle; thinking off; new tests pass. -2. [ ] Download hashes recorded in `frozen-v7.json` (done in this PR: OBSERVED) and re-hashed on the chip host within the freeze day. +2. [x] (re-hashed on the chip host 2026-10-11, `evidence-v7/model-rehash-2026-10-11.txt`, 10 of 10 equal) Download hashes recorded in `frozen-v7.json` (OBSERVED) and re-hashed on the chip host within the freeze day. 3. [x] (2026-10-11T16:02:55Z, SMOKE-8B-v1 attempt 2 on main c26f4d7, evidence under `evidence-smoke-8b/attempt-2/`, sc#440) Engine smoke test PASS (EVAL Section 8, steps 2 to 5: template render, golden ids on CPU reference, GB10 equals CPU reference token for token; the untied output head is exercised). Recorded under `evidence-v7/`. -4. [ ] `model_sha256` filled from the daemon's `CHECKPOINT_SHARDS` line in a smoke run. -5. [ ] Clean build at the freeze commit; every pin in `frozen-v7.json` filled; checkouts clean. -6. [~] (pre-check on main c26f4d7: `evidence-v7/test-v7-c26f4d7.txt` 16 ok 0 failed; `evidence-v7/campaign-files-check-c26f4d7.txt` 63 OK; repeat at the freeze commit) `test-v7.sh` passes at the freeze commit; the v5 campaign file hashes still match (`evidence-v5/campaign-files.sha256`) for every file v7 reuses. +4. [x] (17bc36882b981cdaa253076c43273e3b5e54251db26cb6a5f51de396c456f5a6, index+shards, from the daemon line of dry attempt 2, `evidence-v7/attempt-2-g6-fail/model_sha256-line.txt`, the same on every daemon start of D1 to D3) `model_sha256` filled from the daemon's `CHECKPOINT_SHARDS` line in a smoke run. +5. [x] (clean build at main a6e5f85, the last product change (sc#454), `evidence-v7/build-summary-a6e5f85.txt`, all checkouts dirty=0; the freeze commit pins it, as v6 pinned de9c626 from wrapper f8d8c72) Clean build at the freeze commit; every pin in `frozen-v7.json` filled; checkouts clean. +6. [x] (at the freeze candidate a6e5f85 + this file: `evidence-v7/test-v7-a6e5f85.txt` 20 ok 0 failed; `evidence-v7/campaign-files-check-a6e5f85.txt` 63 OK; pre-check on c26f4d7: 16 ok, 63 OK) `test-v7.sh` passes at the freeze commit; the v5 campaign file hashes still match (`evidence-v5/campaign-files.sha256`) for every file v7 reuses. 7. [ ] G6 dry run of part 1 on GB10 in its own hold AFTER the freeze commit (as v6: the -PIN and -GR rows need the frozen pins and model hash; attempt 2 ran on the draft and failed them by construction), then `g6-gate.sh` exit 0 over D1 D2 D3 (all product rows, ALLEN engaged; attempts 1 and 2 recorded under `evidence-v7/attempt-1-hold-refused/` and `evidence-v7/attempt-2-g6-fail/`). The dry run must also show the containment and identity rows PASS with the ALLEN state directories present beside the compose home (they are new since v6 and unproven against the unchanged row files; the proof run in the PR shows the directories exist, whether any row counts them is decided by the dry run, not assumed). -8. [ ] Coordinator go for the chip window (Drake: a quiet hold is his approval; the 8B dry part 1 is one 40-minute hold, the real run four more), quiet flag checked with `quietlock check`, `frozen-v7.json` status changed to FROZEN in the freeze PR, merged before any launch. +8. [x] (Drake 2026-10-11: "wait for the other agent ... then you can follow that with the hold"; holds are 20 minutes each since sc#453, the dry part 1 one hold, the real run four more) Coordinator go for the chip window (Drake: a quiet hold is his approval), quiet flag checked with `quietlock check`, `frozen-v7.json` status changed to FROZEN in the freeze PR, merged before any launch. ## 6. What v7 does not prove diff --git a/docs/campaigns/open-model-qwen3/evidence-v7/build-summary-a6e5f85.txt b/docs/campaigns/open-model-qwen3/evidence-v7/build-summary-a6e5f85.txt new file mode 100644 index 00000000..5dd7c1b2 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v7/build-summary-a6e5f85.txt @@ -0,0 +1,24 @@ +pins rc=0 +AIEN_AIENOS_LOCK_REPO=/home/drakestapleton/workspace/oq3-v7-build-a6e5f85/pins/aienos +AIEN_OMEGA_DIR=/home/drakestapleton/workspace/oq3-v7-build-a6e5f85/pins/omega +AIEN_PHYSICS_DIR=/home/drakestapleton/workspace/oq3-v7-build-a6e5f85/pins/physics +AIEN_REQUIRE_NATIVE_LIBS=1 +2026-10-11T23:37:21Z +cargo build -vv --release -p aien-cli +aien-cli rc=0 +cargo build -vv --release -p aien-runtime --example np1_reference --example np1_edit_merge +examples rc=0 +2026-10-11T23:39:23Z +has_omega_compose +has_omega_gpu +has_omega_wait_ms +sc a6e5f858d63b3c195ea13b1cc061091d08c6d561 dirty=0 +omega 6c6180cf378075b61291f4565d226eba38b4decd dirty=0 +physics 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf dirty=0 +aienos b84c0a67590a934f3f3e001b12ec85ebc086a9eb dirty=0 +6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +b84c0a67590a934f3f3e001b12ec85ebc086a9eb +113be13783b6eacf995af125cc5edb09a69d127fb9990477885d098f7ff78f33 /home/drakestapleton/workspace/oq3-v7-build-a6e5f85/sc/Cargo.lock +02c7a3db47cdbd814faf7d69e9a24e724eb9b4085d086e197622a05a6e9c6419 /home/drakestapleton/workspace/oq3-v7-build-a6e5f85/target/release/aien-cli +3c34b23d5d8a6367e5d54ca3da2f66318f6d3d28705cd199dbb0676a35a76f22 /home/drakestapleton/workspace/oq3-v7-build-a6e5f85/target/release/examples/np1_reference +0f393f7f69f06755a008de6464956ba1b240e107d1769d887da6fcb9b74d30db /home/drakestapleton/workspace/oq3-v7-build-a6e5f85/target/release/examples/np1_edit_merge diff --git a/docs/campaigns/open-model-qwen3/evidence-v7/build-summary-c26f4d7.txt b/docs/campaigns/open-model-qwen3/evidence-v7/build-summary-c26f4d7.txt new file mode 100644 index 00000000..17c2d86f --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v7/build-summary-c26f4d7.txt @@ -0,0 +1,24 @@ +pins rc=0 +AIEN_AIENOS_LOCK_REPO=/home/drakestapleton/workspace/oq3-v7-build-c26f4d7/pins/aienos +AIEN_OMEGA_DIR=/home/drakestapleton/workspace/oq3-v7-build-c26f4d7/pins/omega +AIEN_PHYSICS_DIR=/home/drakestapleton/workspace/oq3-v7-build-c26f4d7/pins/physics +AIEN_REQUIRE_NATIVE_LIBS=1 +2026-10-11T16:08:07Z +cargo build -vv --release -p aien-cli +aien-cli rc=0 +cargo build -vv --release -p aien-runtime --example np1_reference --example np1_edit_merge +examples rc=0 +2026-10-11T16:10:11Z +has_omega_compose +has_omega_gpu +has_omega_wait_ms +sc c26f4d7ac3156088469b27462390f5b08ef4f436 dirty=0 +omega 6c6180cf378075b61291f4565d226eba38b4decd dirty=0 +physics 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf dirty=0 +aienos b84c0a67590a934f3f3e001b12ec85ebc086a9eb dirty=0 +6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +b84c0a67590a934f3f3e001b12ec85ebc086a9eb +792a99d82e2f92a40b67a576789767c0677b91871a3aa7ffa0b429455dc050bf /home/drakestapleton/workspace/oq3-v7-build-c26f4d7/sc/Cargo.lock +9575a59cdadc1ac964d07e20b099ab9c91cb7902e5900b9b7f1629eb75fa587a /home/drakestapleton/workspace/oq3-v7-build-c26f4d7/target/release/aien-cli +309f56ce3919ca2a3ed86548a493d98e3290977883294aea8d3cf46d9100219b /home/drakestapleton/workspace/oq3-v7-build-c26f4d7/target/release/examples/np1_reference +347a773d3aa8a199dd583189f3ad3d3e07fe9ca0fd6c17403cb24bbc270c9f88 /home/drakestapleton/workspace/oq3-v7-build-c26f4d7/target/release/examples/np1_edit_merge diff --git a/docs/campaigns/open-model-qwen3/evidence-v7/campaign-files-check-a6e5f85.txt b/docs/campaigns/open-model-qwen3/evidence-v7/campaign-files-check-a6e5f85.txt new file mode 100644 index 00000000..536af9b2 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v7/campaign-files-check-a6e5f85.txt @@ -0,0 +1,63 @@ +run-qwen3-v5.sh: OK +tasks-oq3-v5.json: OK +../scoring/declarations/oq3-v5.decl.json: OK +rows-oq3-v3.jq: OK +rows-oq3-v4.jq: OK +rows-oq3-v5.jq: OK +v5-rows.sh: OK +gen-decl-oq3-v5.sh: OK +test-v5.sh: OK +frozen-v5.json: OK +../next-phase-1/run-campaign.sh: OK +../next-phase-1/make-receipt.sh: OK +../next-phase-1/rows-v5.jq: OK +../next-phase-1/rows-v9.jq: OK +../next-phase-1/v8-results.sh: OK +../scoring/score-rows.sh: OK +seed-v5/D4/notes/choir-rehearsal.txt: OK +seed-v5/E1/repairs/tap-repair.md: OK +seed-v5/E2/crafts/yarn/scarf.md: OK +seed-v5/R1/notes/README.txt: OK +selftest-v5/D1.fail-a.md: OK +selftest-v5/D1.fail-a.rows: OK +selftest-v5/D1.fail-b.md: OK +selftest-v5/D1.fail-b.rows: OK +selftest-v5/D1.pass.md: OK +selftest-v5/D2.fail-a.md: OK +selftest-v5/D2.fail-a.rows: OK +selftest-v5/D2.fail-b.md: OK +selftest-v5/D2.fail-b.rows: OK +selftest-v5/D2.fail-c.md: OK +selftest-v5/D2.fail-c.rows: OK +selftest-v5/D2.pass.md: OK +selftest-v5/D3.fail-a.md: OK +selftest-v5/D3.fail-a.rows: OK +selftest-v5/D3.pass.md: OK +selftest-v5/D4.fail-a.md: OK +selftest-v5/D4.fail-a.rows: OK +selftest-v5/D4.pass.md: OK +selftest-v5/D5.fail-a.md: OK +selftest-v5/D5.fail-a.rows: OK +selftest-v5/D5.fail-b.md: OK +selftest-v5/D5.fail-b.rows: OK +selftest-v5/D5.pass.md: OK +selftest-v5/D6.fail-a.md: OK +selftest-v5/D6.fail-a.rows: OK +selftest-v5/D6.fail-b.md: OK +selftest-v5/D6.fail-b.rows: OK +selftest-v5/D6.pass.md: OK +selftest-v5/E1.fail-a.md: OK +selftest-v5/E1.fail-a.rows: OK +selftest-v5/E1.fail-b.md: OK +selftest-v5/E1.fail-b.rows: OK +selftest-v5/E1.pass.md: OK +selftest-v5/E2.fail-a.md: OK +selftest-v5/E2.fail-a.rows: OK +selftest-v5/E2.fail-b.md: OK +selftest-v5/E2.fail-b.rows: OK +selftest-v5/E2.pass.md: OK +selftest-v5/R1.fail-a.md: OK +selftest-v5/R1.fail-a.rows: OK +selftest-v5/R1.fail-b.md: OK +selftest-v5/R1.fail-b.rows: OK +selftest-v5/R1.pass.md: OK diff --git a/docs/campaigns/open-model-qwen3/evidence-v7/model-rehash-2026-10-11.txt b/docs/campaigns/open-model-qwen3/evidence-v7/model-rehash-2026-10-11.txt new file mode 100644 index 00000000..1ddbfa47 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v7/model-rehash-2026-10-11.txt @@ -0,0 +1,11 @@ +model re-hash on the chip host, 2026-10-11T16:51:05Z, host spark-b87b, folder ~/models/qwen3-8b +f7c4eadfbbf522470667b797a3c89be2524832d2d599797248dc304fff447c30 config.json +2325da0f15bb848e018c5ae071b7943332e9f871d6b60e2ed22ca97d4cb993d2 generation_config.json +aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4 tokenizer.json +d5d09f07b48c3086c508b30d1c9114bd1189145b74e982a265350c923acd8101 tokenizer_config.json +f9fdbcb91c23971c13ec5d5f2573d2349e8f61f2f049371ec699281748fdb1bc model.safetensors.index.json +31d6a825ae35f11fb85b195b4c42c146c051e446433125a215336abdf95cbf5f model-00001-of-00005.safetensors +5991236cea6fe21f3d43cab0f0e84448734fbbe0789816202989f2ddc9d18282 model-00002-of-00005.safetensors +c5185c4794be2d8a9784d5753c9922db38df478ce11f9ed0b415b7304d896836 model-00003-of-00005.safetensors +b5ee7de71fbf17db3d5704e0c8f2bc7d005ca9e1d7ca2aeb19827b0cfcaa917a model-00004-of-00005.safetensors +20c2d6366ab85c90786ccdd829cd2b9e7d30ef3b2ebbb998280e7e4014b542ff model-00005-of-00005.safetensors diff --git a/docs/campaigns/open-model-qwen3/evidence-v7/test-v7-a6e5f85.txt b/docs/campaigns/open-model-qwen3/evidence-v7/test-v7-a6e5f85.txt new file mode 100644 index 00000000..b178fc37 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v7/test-v7-a6e5f85.txt @@ -0,0 +1,21 @@ +ok: all new scripts parse (bash -n) +ok: driver diff against next-phase-1/run-campaign.sh removes only 5 lines (header comment, mark-evidence path, one find-exclusion line, the two run.json lines); all else is added ALLEN lines (removed: 5) +ok: the ALLEN block runs before the measured window (.mark) and before S1 +ok: the driver refuses to run without the subject builder +ok: the frozen next-phase-1 driver is unchanged by this lane +ok: run-qwen3-v7.sh uses the ALLEN driver and keeps the v6 refusals (pinned base, FROZEN status, placeholder pins) +ok: frozen-v7.json is FROZEN: status says so, the same eight pin names as v6, every pin 40 or 64 lowercase hex, model_sha256 64 hex, no placeholder left +ok: a real v7 run is refused while frozen-v7.json is a draft +ok: OQ3_FROZEN outside a dry run is refused +ok: G6 green: all rows PASS, ALLEN engaged +ok: G6 red (negative control, the v6 failure): S1 refused and no ALLEN line +ok: G6 red: the recall row FAILs although the other four rows v6 checked pass +ok: G6 red: a missing required row is a failure +ok: G6 green: model-behaviour rows (RQ, CUT, F, SB) may FAIL +ok: G6 green: a launch whose model reply was refused (S5 not ok) is checked on product rows only +ok: G6 red: a product row (BE) FAILs +ok: G6 green: v1 Memory FAILs on a launch that did not commit (no record to digest, v6 class (a)) +ok: G6 red: v1 Memory FAILs on a committed launch +ok: G6 green with a NOTE: -DEC and -MEAS FAIL only because an attempt ended by timeout (model too slow for the budget) +ok: G6 red: -DEC FAILs with no timeout in the attempts +test-v7: 20 ok, 0 failed diff --git a/docs/campaigns/open-model-qwen3/frozen-v7.json b/docs/campaigns/open-model-qwen3/frozen-v7.json index b430a970..1e5a6780 100644 --- a/docs/campaigns/open-model-qwen3/frozen-v7.json +++ b/docs/campaigns/open-model-qwen3/frozen-v7.json @@ -1,10 +1,10 @@ { - "status": "DRAFT NOT FROZEN (D1, sc#384): v7 candidate Qwen/Qwen3-8B rev b968826d9c46dd6066d109eabc6255188de91218. Hashes below were computed 2026-10-11 from the downloaded files (OBSERVED) and match the Hugging Face LFS oids for the five shards and tokenizer.json (SOURCE https://huggingface.co/api/models/Qwen/Qwen3-8B/tree/b968826d9c46dd6066d109eabc6255188de91218). model_sha256 and all pins are NOT filled; they are filled at freeze.", + "status": "FROZEN 2026-10-11 (SPEC-v7-DRAFT Section 5 checklist items 1 to 6 and 8; item 7 (G6 dry) is proven after this freeze, before run.sh; sc#384). Model Qwen/Qwen3-8B, download hashes re-hashed on the chip host 2026-10-11 (evidence-v7/model-rehash-2026-10-11.txt), model_sha256 from the daemon CHECKPOINT_SHARDS line; pins filled at sovereign-core a6e5f85 from the clean build evidence-v7/build.sh (evidence-v7/build-summary-a6e5f85.txt). 334 v5 rows, thresholds and task budgets unchanged.", "placeholder": "TO FILL AT FREEZE", "model": { "model_revision": "b968826d9c46dd6066d109eabc6255188de91218", - "model_sha256": "TO FILL AT FREEZE", - "model_sha256_note": "TO FILL AT FREEZE: the daemon prints it on the CHECKPOINT_SHARDS line; the freeze checklist (SPEC-v7-DRAFT.md Section 5) requires an engine smoke run first.", + "model_sha256": "17bc36882b981cdaa253076c43273e3b5e54251db26cb6a5f51de396c456f5a6", + "model_sha256_note": "from the daemon CHECKPOINT_SHARDS line (index+shards), identical on every daemon start of v7 dry attempt 2 D1 to D3; evidence-v7/attempt-2-g6-fail/model_sha256-line.txt", "model_digest_kind": "index+shards", "index_sha256": "f9fdbcb91c23971c13ec5d5f2573d2349e8f61f2f049371ec699281748fdb1bc", "shards": [ @@ -35,13 +35,13 @@ "tokenizer_config_sha256": "d5d09f07b48c3086c508b30d1c9114bd1189145b74e982a265350c923acd8101" }, "pins": { - "sovereign_core_commit": "TO FILL AT FREEZE", - "omega_lock_commit": "TO FILL AT FREEZE", - "physics_lock_commit": "TO FILL AT FREEZE", - "aienos_lock_commit": "TO FILL AT FREEZE", - "cargo_lock_sha256": "TO FILL AT FREEZE", - "aien_cli_sha256": "TO FILL AT FREEZE", - "np1_reference_sha256": "TO FILL AT FREEZE", - "np1_edit_merge_sha256": "TO FILL AT FREEZE" + "sovereign_core_commit": "a6e5f858d63b3c195ea13b1cc061091d08c6d561", + "omega_lock_commit": "6c6180cf378075b61291f4565d226eba38b4decd", + "physics_lock_commit": "6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf", + "aienos_lock_commit": "b84c0a67590a934f3f3e001b12ec85ebc086a9eb", + "cargo_lock_sha256": "113be13783b6eacf995af125cc5edb09a69d127fb9990477885d098f7ff78f33", + "aien_cli_sha256": "02c7a3db47cdbd814faf7d69e9a24e724eb9b4085d086e197622a05a6e9c6419", + "np1_reference_sha256": "3c34b23d5d8a6367e5d54ca3da2f66318f6d3d28705cd199dbb0676a35a76f22", + "np1_edit_merge_sha256": "0f393f7f69f06755a008de6464956ba1b240e107d1769d887da6fcb9b74d30db" } } diff --git a/docs/campaigns/open-model-qwen3/test-v7.sh b/docs/campaigns/open-model-qwen3/test-v7.sh index 1c0a5237..c6fba44f 100755 --- a/docs/campaigns/open-model-qwen3/test-v7.sh +++ b/docs/campaigns/open-model-qwen3/test-v7.sh @@ -24,8 +24,8 @@ chk "the frozen next-phase-1 driver is unchanged by this lane" '! git diff --qui # ---- wrapper: v7 differs from v6 only where intended chk "run-qwen3-v7.sh uses the ALLEN driver and keeps the v6 refusals (pinned base, FROZEN status, placeholder pins)" \ 'grep -q "run-campaign-allen.sh" run-qwen3-v7.sh && grep -q "PINNED_BASE=/home/drakestapleton/workspace/oq3-v7-runs" run-qwen3-v7.sh && grep -q "status is not FROZEN" run-qwen3-v7.sh && grep -q "build pins are not frozen" run-qwen3-v7.sh' -chk "frozen-v7.json is a draft: status says DRAFT NOT FROZEN and every pin is the placeholder" \ - '[ "$(jq -r .status frozen-v7.json | cut -c1-16)" = "DRAFT NOT FROZEN" ] && [ "$(jq "[.pins[] | select(. == \$p)] | length" --arg p "$(jq -r .placeholder frozen-v7.json)" frozen-v7.json)" = 8 ]' +chk "frozen-v7.json is FROZEN: status says so, the same eight pin names as v6, every pin 40 or 64 lowercase hex, model_sha256 64 hex, no placeholder left" \ + '[ "$(jq -r .status frozen-v7.json | cut -c1-6)" = FROZEN ] && [ "$(jq -c ".pins | keys" frozen-v7.json)" = "$(jq -c ".pins | keys" frozen-v6.json)" ] && [ "$(jq "[.pins[] | select(test(\"^([0-9a-f]{40}|[0-9a-f]{64})$\") | not)] | length" frozen-v7.json)" = 0 ] && jq -e ".model.model_sha256 | test(\"^[0-9a-f]{64}$\")" frozen-v7.json >/dev/null && [ "$(jq -r "[(.pins[], .model[]) | strings | select(. == \"TO FILL AT FREEZE\")] | length" frozen-v7.json)" = 0 ]' chk "a real v7 run is refused while frozen-v7.json is a draft" \ 'out=$(OQ3_PART=1 AIEN_MODEL_PATH=x AIEN_TOKENIZER_PATH=y AIEN_BIN=z bash run-qwen3-v7.sh /home/drakestapleton/workspace/oq3-v7-runs-selftest-absent "$T/o" . . /bin/true /bin/true 2>&1); echo "$out" | grep -q "RUN_BASE must be"' chk "OQ3_FROZEN outside a dry run is refused" 'out=$(OQ3_FROZEN=$HERE/frozen-v6.json OQ3_PART=1 bash run-qwen3-v7.sh a b c d e f 2>&1); echo "$out" | grep -q "allowed in a dry run only"'