From a88a55b6bd130ed94585442e94ed6444131ed195 Mon Sep 17 00:00:00 2001 From: aien Date: Sat, 10 Oct 2026 20:16:13 -0500 Subject: [PATCH 1/2] oq3 v6: v5 failure analysis (72 rows classified) and frozen v6 qualification spec (sc#384) V5-FAILURE-ANALYSIS.md: all 72 failing v5 rows classified with evidence: 70 model-output weakness (D1 8 of 22 lines, D2 "Wrap Up" not a heading, D6 "Bringing Her Home" not a heading), 2 time budget (D6-DEC, D6-MEAS after attempt 2 timed out), 0 runtime, 0 chat template, 0 scorer. QUALIFICATION-v6.md: rows, tasks, limits, declaration and scorer are the v5 files byte for byte; product pinned at de9c626 (clean build, evidence-v6/build-summary.txt); weights re-hashed equal to v5; no harness setting changed; GB10 path with the R1 CPU leg; CPU-only path measured infeasible (about 1389 ms per token). run-qwen3-v6.sh is the v5 wrapper with names changed only (test-v6.sh). Owning issue: aien-dev/aien-sovereign-core#384 Co-Authored-By: Claude Opus 5.5 --- .../open-model-qwen3/QUALIFICATION-v6.md | 161 +++++++++++++++ .../open-model-qwen3/V5-FAILURE-ANALYSIS.md | 187 +++++++++++++++++ .../evidence-v6/build-summary.txt | 22 ++ .../open-model-qwen3/evidence-v6/build.sh | 24 +++ .../cpu-decode-probe-2026-10-11.txt | 10 + .../evidence-v6/destination-probe-de9c626.tsv | 12 ++ .../evidence-v6/model-rehash-2026-10-11.txt | 8 + .../requirements-probe-de9c626.txt | 12 ++ .../open-model-qwen3/evidence-v6/run-part.sh | 25 +++ .../open-model-qwen3/evidence-v6/run.sh | 38 ++++ .../evidence-v6/test-v5-de9c626.txt | 3 + .../evidence-v6/test-v6-de9c626.txt | 21 ++ .../campaigns/open-model-qwen3/frozen-v6.json | 35 ++++ .../open-model-qwen3/run-qwen3-v6.sh | 190 ++++++++++++++++++ docs/campaigns/open-model-qwen3/test-v6.sh | 64 ++++++ 15 files changed, 812 insertions(+) create mode 100644 docs/campaigns/open-model-qwen3/QUALIFICATION-v6.md create mode 100644 docs/campaigns/open-model-qwen3/V5-FAILURE-ANALYSIS.md create mode 100644 docs/campaigns/open-model-qwen3/evidence-v6/build-summary.txt create mode 100755 docs/campaigns/open-model-qwen3/evidence-v6/build.sh create mode 100644 docs/campaigns/open-model-qwen3/evidence-v6/cpu-decode-probe-2026-10-11.txt create mode 100644 docs/campaigns/open-model-qwen3/evidence-v6/destination-probe-de9c626.tsv create mode 100644 docs/campaigns/open-model-qwen3/evidence-v6/model-rehash-2026-10-11.txt create mode 100644 docs/campaigns/open-model-qwen3/evidence-v6/requirements-probe-de9c626.txt create mode 100755 docs/campaigns/open-model-qwen3/evidence-v6/run-part.sh create mode 100755 docs/campaigns/open-model-qwen3/evidence-v6/run.sh create mode 100644 docs/campaigns/open-model-qwen3/evidence-v6/test-v5-de9c626.txt create mode 100644 docs/campaigns/open-model-qwen3/evidence-v6/test-v6-de9c626.txt create mode 100644 docs/campaigns/open-model-qwen3/frozen-v6.json create mode 100755 docs/campaigns/open-model-qwen3/run-qwen3-v6.sh create mode 100755 docs/campaigns/open-model-qwen3/test-v6.sh diff --git a/docs/campaigns/open-model-qwen3/QUALIFICATION-v6.md b/docs/campaigns/open-model-qwen3/QUALIFICATION-v6.md new file mode 100644 index 00000000..3e9afe97 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/QUALIFICATION-v6.md @@ -0,0 +1,161 @@ +# OPEN-MODEL-QWEN3 v6: frozen qualification specification (Qwen3-4B-Instruct-2507) + +**Status: FROZEN 2026-10-11 (content: rows, thresholds, tasks, limits, scoring, model, product commit). NOT RUN.** + +Owning issue: aien-dev/aien-sovereign-core#384 (lane L10, Drake ruling 2 of 2026-10-10 on aien-architecture#190: Qwen3-4B-Instruct-2507 +is the public-release candidate, conditional on a frozen qualification PASS; a FAIL blocks the public bundle; no silent substitution). +Written by Lane B of the overnight program (coordinator session 61b069). This file is merged before any v6 launch. + +## 0. What is and is not established + +- **v1 to v5 stand as recorded.** v5 is FAIL, 262 of 334 declared rows (VERDICT-v5.md, sc#365, f83de08). No v1 to v5 file is + changed by v6; `test-v6.sh` proves every v5 campaign file still equals its v5 freeze sha256 (`evidence-v5/campaign-files.sha256`). +- **Why v5 failed** is analysed row by row in `V5-FAILURE-ANALYSIS.md`: 70 rows model-output weakness (D1 wrote 8 lines where 22 + were asked; D2 wrote "Wrap Up" as a label, not a heading; D6 wrote "Bringing Her Home" as plain text), 2 rows time budget (D6's + second attempt), 0 runtime, 0 chat-template, 0 scorer. No product bug was found, so no fix PR precedes v6. +- **v6 is the same qualification on the current product.** Same eleven tasks and goals, same seeds, same 334 declared rows, same + thresholds, same limits, same scorer, same model files. What differs is the product commit (28 commits after the v5 build, + including the requirement-reader, destination, input-reading and append-placement changes merged 2026-10-09 to 2026-10-10) + and the run identity (run base, output tag, hold names). **No harness setting changed** (Section 3). +- **A FAIL is recorded as FAIL** and keeps the public bundle blocked. No row, threshold, goal, limit or model is changed after + this file merges, and no launch is repeated. + +## 1. Rows, tasks, limits and scoring: identical to v5, by file + +v6 runs the v5 files themselves, not copies. Each is bound by its sha256 in `evidence-v5/campaign-files.sha256` (checked by +`test-v6.sh` section 1): + +| What | File (unchanged, byte-identical to the v5 freeze) | +|---|---| +| tasks, goals, destinations, seeds, caps, budgets | `tasks-oq3-v5.json`, `seed-v5/` (ACCEPTANCE-v5 Section 2 and 2.1, including Drake's D6 adjustment 1536 tokens / 170 s) | +| rows and how each is counted | `rows-oq3-v3.jq`, `rows-oq3-v4.jq`, `rows-oq3-v5.jq`, `v5-rows.sh`, `../next-phase-1/rows-v5.jq`, `../next-phase-1/rows-v9.jq` (ACCEPTANCE-v5 Section 3) | +| declaration | `../scoring/declarations/oq3-v5.decl.json`, QUALIFICATION_ROWS=334 (D1 34, D2 36, D3 36, D4 35, D5 36, D6 33, E1 33, E2 34, R1 32, N1 11, N2 14) | +| driver and receipt builder | `../next-phase-1/run-campaign.sh`, `../next-phase-1/make-receipt.sh`, `../next-phase-1/v8-results.sh` | +| scorer and verdict rule | `../scoring/score-rows.sh` (scoring-v5): **PASS only if every declared row is present once and PASS** (ACCEPTANCE-v5 Section 5) | +| row definitions (text) | ACCEPTANCE-v5.md Sections 3.1 to 3.5 (the receipt builder reads its task table, `TASK_ACCEPTANCE`) | + +The verdict rules of ACCEPTANCE-v5 Section 5 apply unchanged: one run, no rerun of a failure, no repeated launch, no retry after +seeing a result, no task edit, a spec defect found after the run is a finding for a later campaign. The verdict names, for each +failing launch, whether its first failing row is a product row (`PRE`, `OPR`, `PIN`, `GR`, `N1-NR`) or a model row. + +## 2. New v6 files (names only) + +| File | What it is | +|---|---| +| `run-qwen3-v6.sh` | `run-qwen3-v5.sh` with names changed only: frozen values `frozen-v6.json`, pinned run base `/home/drakestapleton/workspace/oq3-v6-runs`, output tag `oq3-v6`, message and receipt labels. `test-v6.sh` section 2 proves that every line after the header equals the v5 wrapper under exactly these substitutions. The launch record keeps the v5 name and format, `.launch-v5.json`, because the row text of ACCEPTANCE-v5 names it. | +| `frozen-v6.json` | `frozen-v5.json` with the eight build pins of Section 5 and a new status line; the `model` block is byte-identical (checked). | +| `test-v6.sh` | the v6 self-test (Section 7). | +| `evidence-v6/` | build script and summary, model re-hash, requirement and destination probes, CPU decode probe, self-test outputs, and the prepared launchers `run.sh` and `run-part.sh` (G6 dry part 1, then real parts 1 to 4, each in its own hold). | + +## 3. Harness settings: none changed + +Environment, exactly as ACCEPTANCE-v5 Section 7 and enforced by the wrapper (unchanged lines): + +```text +AIEN_KV_CONTEXT_TOKENS = 4096 +AIEN_REQUIRE_BLACKWELL = 1 (GB10 native Omega engine, no CUDA; a missing GPU engine is fatal) +AIEN_REQUIRE_CHECKPOINT = 1 +AIEN_GB10_QWEN3_DECLARED_ATTEMPT = 1 (opt-in while omega#327 is open) +AIEN_COMPOSE_EDIT_BUDGET_MS / AIEN_COMPOSE_DOC_BUDGET_MS / AIEN_COMPOSE_MAX_TOKENS / AIEN_COMPOSE_DOC_MAX_TOKENS + = set per launch by the wrapper from tasks-oq3-v5.json (documents 1024 tokens and 120 s, + D6 1536 and 170 s, edits 96 and 29 s, N2 16, R1 96) +unset: AIEN_FORCE_CPU_STUB, AIEN_DEV_FALLBACK, AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK, AIEN_COMPOSE_BUDGET_MS, AIEN_OMEGA_SPIN_US, AIEN_OMEGA_CTA_BUDGET +``` + +No token cap and no time budget is raised. v5 had no token cut on any failing launch (every reply ended at `eos`), so a cap +change would not address any v5 failure. + +## 4. Path: GB10 with the R1 CPU reference leg; why not a CPU-only run + +The v5 rows are a GB10 qualification by construction: row `-BE` (`rows-oq3-v4.jq`) requires that every daemon start names +the `OmegaGb10` backend and none names cpu, stub, reference or fallback, and the wrapper refuses `AIEN_REQUIRE_BLACKWELL` other +than 1. The CPU path is exercised where v5 put it: R1 replays its prompt on `ReferenceCpuBackend` and rows R1-X, R1-P and R1-T +require the same prompt and output token ids on both paths. + +A CPU-only run of these rows cannot pass and would measure nothing about the model (MEASURED, `evidence-v6/cpu-decode-probe-2026-10-11.txt`): +the CPU reference decodes about 1 389 ms per output token (GB10 about 103 ms in v5), so a 540-token D1 reply needs about 12.5 +minutes against its 120 s budget, D6 about 24 minutes against 170 s, and the product refuses any budget above 599 s +(`spine.rs`, `COMPOSE_BUDGET_MS_RANGE`); every `-BE` row would also fail. A CPU-only qualification needs its own rows and +limits: a new campaign and a Drake decision, not part of v6. + +## 5. Model, product commit and build (frozen values in `frozen-v6.json`) + +Model: Qwen/Qwen3-4B-Instruct-2507, Hugging Face revision cdbee75f, Apache-2.0, directory +`/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/`, the same files as v5. Re-hashed 2026-10-11 with no GPU hold +(`evidence-v6/model-rehash-2026-10-11.txt`), every value equal to ACCEPTANCE-v5 Section 7: + +```text +model.safetensors.index.json d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c +model-00001-of-00003.safetensors 75311d91bb08cf0b882913da464a1e722a31fb44db35208663487efb7a3d8ed6 +model-00002-of-00003.safetensors 0b48adbb1f60e901153d91907ba11ce63bd4b8b584482e730f48808d055dfba1 +model-00003-of-00003.safetensors 7dd39ccca5e4de123c74c14af44c9bf2eb75df33b4614382af0134528e060d5d +tokenizer.json aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4 +tokenizer_config.json a62ff0a2472a0fa1b8eaabcb57c59b58afa42a22831dc141400b6e0cf2b65ce3 +config.json 5beea1a4a34c62782bfb2f911c606741a3bab8f92d80a118fa053c28af12e8ba +generation_config.json 835fffe355c9438e7a25be099b3fccaa98350b83451f9fd2d99512e74f1ade48 +model_sha256 (index+shards) 17a78fbba447a4e66a3d886c0998fbcf2f9201d46e5e0c5bfec2d57c975976b7 (manifest, as frozen-v5.json) +``` + +Product build: clean clone of sovereign-core at **de9c626ad9fd50652c1f767d273b4d63f118e342** (main on 2026-10-11 00:55Z), pinned +omega, physics and aienos materialized by `scripts/pins.sh --gpu`, release build of `aien-cli` and the examples `np1_reference` +and `np1_edit_merge` (`evidence-v6/build.sh`; output `evidence-v6/build-summary.txt`, all three exits 0, build log shows +`has_omega_compose`, `has_omega_gpu`, `has_omega_wait_ms`; every checkout clean). Build directory +`/home/drakestapleton/workspace/oq3-v6-build-de9c626`. + +```text +sovereign-core commit de9c626ad9fd50652c1f767d273b4d63f118e342 +omega.lock commit 6c6180cf378075b61291f4565d226eba38b4decd (unchanged since v4 and v5) +physics commit 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf (unchanged since v5) +aienos.lock commit b84c0a67590a934f3f3e001b12ec85ebc086a9eb (unchanged since v5) +Cargo.lock sha256 792a99d82e2f92a40b67a576789767c0677b91871a3aa7ffa0b429455dc050bf +aien-cli sha256 2a6b09d00c8dbe9237ae1410a9469b6747d232c72468a2c853fe491cf92c2c7a +np1_reference sha256 41dfe956ce48f73168c4be6a1988a66455ea4d4d93b4a093f331bd8b3a6b28ef +np1_edit_merge sha256 00ba3fb68f46fee46a25aae000de80822a319648250f0c4e15d4cd6dc2ce4aef +``` + +The pins name the product build. The campaign files (wrapper, this file, `frozen-v6.json`) come from the main commit that merges +this file and are bound by the wrapper's per-part identity file; a later campaign-file commit does not change a pin, and the +wrapper refuses a run whose binaries or checkouts differ from `frozen-v6.json`. + +## 6. Run plan: one chip slot, four parts + +Run base pinned in the wrapper: `/home/drakestapleton/workspace/oq3-v6-runs` (fresh; the prompt embeds the workspace path). +Four parts, each in its own quietlock hold of 20 minutes or less, back to back, owners `laneB-oq3-v6-p1` to `laneB-oq3-v6-p4`: +part 1 = D1 D2 D3, part 2 = D4 D5 D6, part 3 = E1 E2 N1, part 4 = N2 R1 and the score. A part is never extended; part k needs part +k-1 complete in the same run base with the same binaries and files. v5's measured hold times were 7 min 14 s, 8 min, 3 min 17 s +and 4 min 1 s (VERDICT-v5 Section 3): about 23 minutes of chip time in all (UNVERIFIED for v6, same limits, so the worst case +of ACCEPTANCE-v5 Section 8 still fits each 20-minute hold). + +Kept for the verdict (as v5): hold start, end and exit per part, `/proc/meminfo` and NVRM kernel-log line counts before and +after each part, the S3 report of each launch, the sha256 of every file in the run base, the receipts, results, score file and +committed replies. + +## 7. Gates (all on de9c626 unless stated) + +| Gate | What | Result | +|---|---|---| +| G1 asked the model | requirement reader over the eleven goals: no uncertain span for any goal | **MET**: identical line for line to the v5 probe on b2cae6d (`evidence-v6/requirements-probe-de9c626.txt`) | +| G3 destinations | every positive goal resolves its destination (E1, E2 as edits of their seeds); N1 refused for its destination with the `N1-NR` reason text | **MET** (`evidence-v6/destination-probe-de9c626.tsv`) | +| G5 self-test | `test-v6.sh` passes; `test-v5.sh` passes except its one post-run check (its pinned v5 run path exists since the v5 run) | **MET**: 20 of 20 (`evidence-v6/test-v6-de9c626.txt`); 191 of 192 with that one expected check (`evidence-v6/test-v5-de9c626.txt`) | +| G6 GPU dry run | **one** dry run of part 1 (D1 D2 D3) with `OQ3_DRY_TASKS=tasks-oq3-v5.json` in its own hold, run base outside the pinned path, outputs kept and never scored, immediately before the real run in the same chip window. Purpose: prove the 28-commit newer product still runs the v5 driver end to end on GB10 (daemon start lines, `decoding` in S3 attempts, OP_REPORT, CHECKPOINT_SHARDS). If any dry launch fails for a product reason (no `run.json`, a step error not caused by the model reply), the real run does not start and the cause is reported. The dry run sees the same goals v5 already answered, so it reveals nothing new about them | to run | +| G7 build | clean build at the pins, all exits 0, checkouts clean | **MET** (`evidence-v6/build-summary.txt`) | +| freeze | this file merged on main before any launch; `frozen-v6.json` status FROZEN with every pin filled | this PR | + +## 8. Prediction (stated before any run; UNVERIFIED) + +Decoding is greedy and no merged change targets how the model lays out lines or headings, so the v5 replies are likely to recur +(the new run base changes a few prompt tokens, so they may differ slightly). Per launch, probability of passing every row: +D1 0.15, D2 0.2, D6 0.15 (the v5 failures); D3, D4, D5 0.7 each (each passed in v5 only on its second attempt; D4's prompt may now +include its source file, sc#392); E1 0.85, E2 0.8 (append placement changed by sc#394); N1 0.9, N2 0.9, R1 0.85. +**Whole qualification PASS: about 5 percent. Expected verdict: FAIL, with D1, D2 and D6 failing on model rows.** A FAIL is an +honest and acceptable outcome; it keeps the public bundle blocked. + +## 9. What v6 does not prove + +- One run, one launch per task: one observation each, not a rate. Greedy decoding, one model, one machine, GB10 at the pins. +- A PASS would qualify Qwen3-4B-Instruct-2507 on these eleven tasks under these rows only; it would not close omega#327, + omega#277 or sc#277, would not make Qwen3 on GB10 the default, and would not claim release readiness. The CAND-5 manifest in + aien-architecture `qualification/candidates/` is drafted only on PASS and left for the coordinator. +- A FAIL says the model, as prompted by this product, did not meet these stated document rules; it does not say whether a + different prompt, sampling or retry policy would. That is a new campaign with its own frozen spec. +- The CPU-only path is not qualified (Section 4). diff --git a/docs/campaigns/open-model-qwen3/V5-FAILURE-ANALYSIS.md b/docs/campaigns/open-model-qwen3/V5-FAILURE-ANALYSIS.md new file mode 100644 index 00000000..4e6a8e24 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/V5-FAILURE-ANALYSIS.md @@ -0,0 +1,187 @@ +# OPEN-MODEL-QWEN3 v5: failure analysis (all 72 failing rows) + +Written 2026-10-11 by Lane B (session 61b069 program, owning issue aien-sovereign-core#384, Drake ruling 2 on +aien-architecture#190). Read-only analysis of the frozen v5 record. It changes no v5 file, no row, no threshold and no +verdict: **v5 stays FAIL, 262 of 334 declared rows** (VERDICT-v5.md, `oq3-v5-score.json`, merged in sc#365 as f83de08). + +Every claim below is tagged OBSERVED (read from a named file or re-counted from it), MEASURED (a new measurement made for +this analysis, with its command) or UNVERIFIED (judgement, with a confidence). + +## 1. Result + +| Class | Meaning | Rows | +|---|---|---| +| (a) model-output weakness | the model's own reply broke a rule the goal stated, so the product refused it before any write | **70** | +| (b) runtime defect | the product did something wrong | **0** | +| (c) prompt or chat-template limitation | the runtime formatted the prompt or the stop tokens wrongly | **0** | +| (d) resource or budget failure | token cap, time budget or memory | **2** (D6-DEC, D6-MEAS) | +| (e) verifier or scorer defect | the checker counted wrongly | **0** | +| total | | **72** | + +All 72 rows sit in three launches: D1 (23), D2 (25), D6 (24) (OBSERVED, `oq3-v5-score.json`: 72 rows with verdict not PASS, +all with prefix `D1/`, `D2/` or `D6/`). Each launch has one root event; every other failing row of that launch follows +from it, because the rows read the saved file and the commit chain, and a refused reply leaves neither. + +No class (b), (d)-harness or (e) product bug was demonstrated, so step 2 of the lane (regression test and fix PR per bug) +produced **no fix PR**. Section 4 lists what was checked to rule each class out. + +## 2. Root event per launch (OBSERVED, `evidence-v5/s3-report-.json`, `proposal_attempts`) + +| Launch | Attempt | finish | tokens / cap | ms / budget left | Product refusal reason (verbatim, shortened only where marked) | +|---|---|---|---|---|---| +| D1 | 1 | eos | 542 / 1024 | 50 789 | `unmet requirement: at least 22 non-empty lines, found 8` | +| D1 | 2 | eos | 532 / 1024 | 53 470 | `unmet requirement: at least 22 non-empty lines, found 8` | +| D2 | 1 | eos | 443 / 1024 | 45 179 | `unmet requirement: at least 12 words of plain text in the section "Wrap Up", the section was not found; ... missing "Wrap Up" (each must be a markdown heading line)` | +| D2 | 2 | eos | 455 / 1024 | 46 901 | same as attempt 1 | +| D6 | 1 | eos | 1012 / 1536 | 103 819 | `unmet requirement: the headings "Bringing Her Home", missing "Bringing Her Home" (each must be a markdown heading line)` | +| D6 | 2 | none | none | 66 219 of 66 180 left | `model proposal exceeded 66180 ms` | + +(Token counts are `decoding.greedy_tokens`; VERDICT-v5 quotes the receipt's `tokens`, one lower: 541, 531, 442, 454, 1011.) + +What the model wrote (OBSERVED, re-counted from the attempt `text` with grep, independent of the product's checker): + +- **D1**, both attempts: a title, the three required section headings, and **one long paragraph per section**: 8 non-empty + content lines after the `filename:` line (9 counting it). The goal asked for at least 22 non-empty lines. The other D1 + rules were met by the refused replies (all three headings present; `whetstone` 3 times, `angle` 2 to 3 times). The retry + prompt quoted the refusal reason; greedy decoding produced the same structure again. +- **D2**, both attempts: the three example sections are `##` headings in the right order with three complete fenced code + blocks, but the closing section is written as a plain label line (`Wrap Up: This bash script ...` in attempt 1, + `Wrap Up:` then a paragraph in attempt 2), not a heading. The goal asked for "a final section titled "Wrap Up"", and the + model used headings for the other three titled sections in the same reply. +- **D6**, attempt 1: no markdown heading line at all; `Bringing Her Home` is the first content line as plain text, followed + directly by the first paragraph (about 7 paragraph blocks, so the paragraph rule was close to met). Attempt 2 started with + 66 180 ms of the 170 000 ms task budget left and was cut by the wall clock after 66 219 ms with no tokens recorded. + +## 3. Classification per row + +Class (a) for 70 rows: the one root cause is the model's reply (rows `D1-RQ1`, `D2-RQ4`, `D6-RQ2` name the broken rule; +the other 67 need an accepted reply, a saved file, an approval, a commit or a generation record, none of which can exist +after a refusal). Class (d) for 2 rows: `D6-DEC` and `D6-MEAS` fail because attempt 2 timed out, and ACCEPTANCE-v5 +Section 3.4 declares that a timed-out attempt (no `decoding`, no `tokens`, no `token_ids`) fails them. They would fail +with any outcome of attempt 1, once attempt 2 timed out. + +| Launch | Row | Class | Why it failed | +|---|---|---|---| +| D1 | `v1 Task completion` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `v1 Correctness: committed content` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `v1 Human interventions: approvals` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `v1 Memory` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `Q1` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `Q2` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `Q3` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `Q4` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `A3` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `A4` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `A5` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `D1-L` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `D1-M` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `D1-A` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `D1-CM` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `D1-SB` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `D1-F` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `D1-CUT` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `D1-RQ1` | a | the stated rule the reply broke: 8 non-empty lines, at least 22 required | +| D1 | `D1-RQ2` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `D1-RQ3` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `D1-D` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D1 | `D1-GR` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `v1 Task completion` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `v1 Correctness: committed content` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `v1 Human interventions: approvals` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `v1 Memory` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `Q1` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `Q2` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `Q3` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `Q4` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `A3` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `A4` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `A5` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-L` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-M` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-A` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-CM` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-SB` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-F` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-CUT` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-RQ1` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-RQ2` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-RQ3` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-RQ4` | a | the stated rule the reply broke: "Wrap Up" written as a plain label line, not a heading | +| D2 | `D2-RQ5` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-D` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D2 | `D2-GR` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `v1 Task completion` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `v1 Correctness: committed content` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `v1 Human interventions: approvals` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `v1 Memory` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `Q1` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `Q2` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `Q3` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `Q4` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `A3` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `A4` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `A5` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `D6-L` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `D6-M` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `D6-A` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `D6-CM` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `D6-SB` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `D6-F` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `D6-CUT` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `D6-RQ1` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `D6-RQ2` | a | the stated rule attempt 1 broke: "Bringing Her Home" written as a plain line, not a heading | +| D6 | `D6-D` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `D6-DEC` | d | attempt 2 timed out (66 219 ms of the remaining 66 180 ms); a timed-out attempt has no `decoding` (ACCEPTANCE-v5 3.4) | +| D6 | `D6-GR` | a | no reply accepted, so no saved file, approval, commit or generation record exists to read | +| D6 | `D6-MEAS` | d | attempt 2 timed out; a timed-out attempt has no `tokens` or `token_ids` | + +## 4. What was checked to rule out classes (b), (c), (d) and (e) + +**(c) prompt and chat template: none.** +- The pinned template equals the upstream `chat_template` of Qwen/Qwen3-4B-Instruct-2507 at revision cdbee75f (sha256 + 64f85b19... in `crates/aien-inference-abi/fixtures/chat-templates/qwen3-4b-instruct-2507/PROVENANCE.md` and ACCEPTANCE-v5 + Section 7), and the test `rendering_matches_the_reference_jinja_rendering` (`crates/aien-inference-abi/tests/qwen3_chat_template.rs`) + compares the product's rendering with the reference jinja rendering (OBSERVED, files on main de9c626). +- The 2507 Instruct model has no thinking mode, and no reply contains a think tag (OBSERVED, attempt texts). +- All five attempts that produced tokens ended with `finish_reason` `eos` (OBSERVED, table in Section 2): the stop set + (`generation_config.json` `eos_token_id` [151645, 151643]) was honoured and no reply ran on or stopped early. +- The prompt carries the goal verbatim (`spine::proposal_prompt`: `Goal: {goal}` plus the fixed answer format) and the retry + carries the refusal reason verbatim (`spine::retry_prompt`) (OBSERVED, `crates/aien-runtime/src/spine.rs` on de9c626, both + functions unchanged since the v5 build 30258fc). + +**(b) runtime: none.** +- On D1, D2 and D6 the rows that test the product all PASS: `-PRE` (no requirement refused before the model), `-OPR` + and `-BE` (GB10 native path, no fallback), `-PIN`; the refusal path committed nothing (VERDICT-v5 Section 2). +- R1: the GB10 run and the CPU reference produced the same 20 token ids for the same prompt (VERDICT-v5 Section 3). +- The refusal reasons agree with independent counts of the reply text (Section 2). + +**(d) resources and budgets: 2 rows, no harness defect.** +- No token cut: every reply that finished stopped at `eos`, well under its cap (largest 1012 of 1536). +- No memory event: NVRM kernel log line count unchanged across all four parts; MemAvailable above 110 GB (VERDICT-v5 Section 3). +- D6 attempt 2 is a time-budget failure. Its cause is the product's documented retry rule, not a defect: attempt k > 1 starts + when at least `COMPOSE_DOC_ATTEMPT_BUDGET` = 30 s is left (`spine.rs`, comment: "a retry that has to write a whole document + needs about the shortest measured one: 28.6 s"), and it gets the rest of the task budget. D6's first attempt took 103.8 s + for 1012 tokens, so a second essay of that length could not finish in the 66.2 s left. Changing this rule (skip a retry that + cannot finish, or give it more time) is a product design choice for a later decision; it would change at most `D6-DEC` + and `D6-MEAS`, never the D6 verdict, because attempt 1 was already refused for the missing heading. Recorded here, not changed. + +**(e) verifier and scorer: none among the 72.** +- The product's counts (8 lines; no `Wrap Up` heading; no `Bringing Her Home` heading) equal independent grep counts of the + same text (Section 2). +- The three extra N1 lines (`N1/N1-C`, `N1/N1-B`, `N1/N1-H`) are **not** among the 72. They are inherited rows that ACCEPTANCE-v5 + Section 3.3 replaced and declared as extras before the run; the scorer lists them under `extras` and does not count them, + as declared. This is a cosmetic tooling note (the receipt still computes rows it no longer needs), not a scoring defect. + +## 5. What this means for a rerun (input to QUALIFICATION-v6.md) + +- No product change merged since v5 targets the model's formatting of line counts or headings (UNVERIFIED, confidence 0.8: + read from the commit titles 30258fc..de9c626; the requirement reader gives the same result for all eleven goals on de9c626 as + on b2cae6d, MEASURED, `evidence-v6/requirements-probe-de9c626.txt`). Decoding is greedy, so the same prompt gives the same + reply. The prompt embeds the workspace path, so a new run base changes a few prompt tokens and the replies may differ + slightly. Expected: D1, D2 and D6 fail again for the same reasons (UNVERIFIED, confidence 0.8). +- **A rerun on the CPU reference path cannot pass these rows** (MEASURED 2026-10-11 with the v5 build's `np1_reference`, D1 + goal, 16 and 80 output tokens: 51 852 ms and 140 771 ms, so about 1 389 ms per output token on `ReferenceCpuBackend`, against + about 100 ms per token on GB10 in v5 D6). A 540-token D1 reply would need about 12.5 minutes against a 120 s budget, and the + product refuses any budget above 599 s. In addition, row `-BE` requires the `OmegaGb10` backend on every daemon start + (`rows-oq3-v4.jq`), so every launch would fail it on CPU. A CPU-only qualification would need new rows and budgets, which is + a new campaign and a Drake decision, never a silent change. diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/build-summary.txt b/docs/campaigns/open-model-qwen3/evidence-v6/build-summary.txt new file mode 100644 index 00000000..8c8ab140 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v6/build-summary.txt @@ -0,0 +1,22 @@ +pins rc=0 +AIEN_AIENOS_LOCK_REPO=/home/drakestapleton/workspace/oq3-v6-build-de9c626/pins/aienos +AIEN_OMEGA_DIR=/home/drakestapleton/workspace/oq3-v6-build-de9c626/pins/omega +AIEN_PHYSICS_DIR=/home/drakestapleton/workspace/oq3-v6-build-de9c626/pins/physics +AIEN_REQUIRE_NATIVE_LIBS=1 +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 +has_omega_compose +has_omega_gpu +has_omega_wait_ms +sc de9c626ad9fd50652c1f767d273b4d63f118e342 dirty=0 +omega 6c6180cf378075b61291f4565d226eba38b4decd dirty=0 +physics 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf dirty=0 +aienos b84c0a67590a934f3f3e001b12ec85ebc086a9eb dirty=0 +6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +b84c0a67590a934f3f3e001b12ec85ebc086a9eb +792a99d82e2f92a40b67a576789767c0677b91871a3aa7ffa0b429455dc050bf /home/drakestapleton/workspace/oq3-v6-build-de9c626/sc/Cargo.lock +2a6b09d00c8dbe9237ae1410a9469b6747d232c72468a2c853fe491cf92c2c7a /home/drakestapleton/workspace/oq3-v6-build-de9c626/target/release/aien-cli +41dfe956ce48f73168c4be6a1988a66455ea4d4d93b4a093f331bd8b3a6b28ef /home/drakestapleton/workspace/oq3-v6-build-de9c626/target/release/examples/np1_reference +00ba3fb68f46fee46a25aae000de80822a319648250f0c4e15d4cd6dc2ce4aef /home/drakestapleton/workspace/oq3-v6-build-de9c626/target/release/examples/np1_edit_merge diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/build.sh b/docs/campaigns/open-model-qwen3/evidence-v6/build.sh new file mode 100755 index 00000000..333cf8bf --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v6/build.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v6 build (QUALIFICATION-v6.md Section 6): clean clone of sovereign-core at the frozen commit, +# pinned omega/physics/aienos via scripts/pins.sh --gpu, release build of aien-cli and the two campaign examples. +set -u +SC_COMMIT=${1:?sovereign-core commit} +B=/home/drakestapleton/workspace/oq3-v6-build-${SC_COMMIT:0:7} +[ ! -e "$B" ] || { echo "build: $B exists" >&2; exit 2; } +mkdir -p "$B" +git clone -q https://github.com/aien-dev/aien-sovereign-core "$B/sc" && git -C "$B/sc" checkout -q "$SC_COMMIT" || exit 4 +cd "$B/sc" +bash scripts/pins.sh --gpu "$B/pins" > "$B/pins.out" 2>&1; echo "pins rc=$?" +. "$B/pins/env.sh" +export CARGO_TARGET_DIR=$B/target +unset AIEN_FORCE_CPU_STUB AIEN_OMEGA_GPU_LIB AIEN_OMEGA_COMPOSE_LIB AIEN_OMEGA_COMPOSE_DIR AIEN_OMEGA_COMPOSE_SHA AIEN_DEV_FALLBACK +env | grep '^AIEN_' | sort +echo "cargo build -vv --release -p aien-cli" +nice -n 19 cargo build -vv --release -p aien-cli > "$B/build-cli.log" 2>&1; echo "aien-cli rc=$?" +echo "cargo build -vv --release -p aien-runtime --example np1_reference --example np1_edit_merge" +nice -n 19 cargo build -vv --release -p aien-runtime --example np1_reference --example np1_edit_merge > "$B/build-examples.log" 2>&1; echo "examples rc=$?" +grep -o 'has_omega_[a-z_]*' "$B/build-cli.log" | sort -u +echo "sc $(git -C "$B/sc" rev-parse HEAD) dirty=$(git -C "$B/sc" status --porcelain | wc -l)" +for r in omega physics aienos; do [ -d "$B/pins/$r" ] && echo "$r $(git -C "$B/pins/$r" rev-parse HEAD) dirty=$(git -C "$B/pins/$r" status --porcelain | wc -l)"; done +cat "$B/pins/omega/physics.lock" "$B/pins/omega/aienos.lock" 2>/dev/null +sha256sum "$B/sc/Cargo.lock" "$B/target/release/aien-cli" "$B/target/release/examples/np1_reference" "$B/target/release/examples/np1_edit_merge" diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/cpu-decode-probe-2026-10-11.txt b/docs/campaigns/open-model-qwen3/evidence-v6/cpu-decode-probe-2026-10-11.txt new file mode 100644 index 00000000..b8c6f7c9 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v6/cpu-decode-probe-2026-10-11.txt @@ -0,0 +1,10 @@ +# CPU reference decode speed, Qwen3-4B-Instruct-2507 (MEASURED 2026-10-11, Lane B, sc#384). No GPU, quietlock clear. +# Binary: v5 build ~/workspace/oq3-v5-build-30258fc/target/release/examples/np1_reference (sha256 a684b55a..., frozen-v5.json), backend ReferenceCpuBackend. +# Command (once per N, N = 16 and 80): /usr/bin/time np1_reference /home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75 "" N new +N=16 time: n=16 wall=122.71 user=655.70 sys=19.27 maxrss=53637580kB +N=16 record: {"backend":"ReferenceCpuBackend","ms":51851.956571999996,"n_out":16,"prompt_tokens":187,"finish":"max_tokens"} +N=80 time: n=80 wall=209.09 user=745.48 sys=19.25 maxrss=53638448kB +N=80 record: {"backend":"ReferenceCpuBackend","ms":140770.964929,"n_out":80,"prompt_tokens":187,"finish":"max_tokens"} +# Derived: (140770.96 - 51851.96) ms / (80 - 16) tokens = 1389 ms per output token (decode); the 16-token run's 51.9 s is prefill of 187 tokens + 16 tokens + warm-up turn. +# Weight load and setup outside 'ms': about 68 to 71 s per process (wall minus ms). Peak RSS about 53.6 GB. +# For comparison (OBSERVED, evidence-v5/s3-report-D6.json): GB10 attempt 1 of D6, 1012 tokens in 103819 ms, about 103 ms per token including prefill. diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/destination-probe-de9c626.tsv b/docs/campaigns/open-model-qwen3/evidence-v6/destination-probe-de9c626.tsv new file mode 100644 index 00000000..19796ed5 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v6/destination-probe-de9c626.tsv @@ -0,0 +1,12 @@ +# Probe source: evidence-v5/probes/zz_dest_probe.rs.txt (sha256 59e4c5b0...), run on a checkout of de9c626 with tasks-oq3-v5.json, then deleted. Columns: id, task destination, product destination, decision. +D1 docs/knife-sharpening.md Some("docs/knife-sharpening.md") NEW +D2 docs/rename-photos.md Some("docs/rename-photos.md") NEW +D3 docs/savings-basics.md Some("docs/savings-basics.md") NEW +D4 docs/choir-summary.md Some("docs/choir-summary.md") NEW +D5 docs/packing-carry-on.md Some("docs/packing-carry-on.md") NEW +D6 docs/rescue-cat-essay.md Some("docs/rescue-cat-essay.md") NEW +E1 repairs/tap-repair.md Some("repairs/tap-repair.md") EDIT repairs/tap-repair.md +E2 crafts/yarn/scarf.md Some("crafts/yarn/scarf.md") EDIT crafts/yarn/scarf.md +N1 ../shared-stuff/reminder.txt Some("../shared-stuff/reminder.txt") REFUSED destination ../shared-stuff/reminder.txt cannot be written safely (not a plain relative path inside the workspace); refusing +N2 null Some("docs/marathon-story.md") NEW +R1 notes/swim-tip.txt Some("notes/swim-tip.txt") NEW diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/model-rehash-2026-10-11.txt b/docs/campaigns/open-model-qwen3/evidence-v6/model-rehash-2026-10-11.txt new file mode 100644 index 00000000..e82c25a5 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v6/model-rehash-2026-10-11.txt @@ -0,0 +1,8 @@ +d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c model.safetensors.index.json +75311d91bb08cf0b882913da464a1e722a31fb44db35208663487efb7a3d8ed6 model-00001-of-00003.safetensors +0b48adbb1f60e901153d91907ba11ce63bd4b8b584482e730f48808d055dfba1 model-00002-of-00003.safetensors +7dd39ccca5e4de123c74c14af44c9bf2eb75df33b4614382af0134528e060d5d model-00003-of-00003.safetensors +aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4 tokenizer.json +a62ff0a2472a0fa1b8eaabcb57c59b58afa42a22831dc141400b6e0cf2b65ce3 tokenizer_config.json +5beea1a4a34c62782bfb2f911c606741a3bab8f92d80a118fa053c28af12e8ba config.json +835fffe355c9438e7a25be099b3fccaa98350b83451f9fd2d99512e74f1ade48 generation_config.json diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/requirements-probe-de9c626.txt b/docs/campaigns/open-model-qwen3/evidence-v6/requirements-probe-de9c626.txt new file mode 100644 index 00000000..8749f616 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v6/requirements-probe-de9c626.txt @@ -0,0 +1,12 @@ +# Probe sources: evidence-v5/probes/zz_req_probe.rs.txt (sha256 5695671b...), run on a checkout of de9c626 as an example, then deleted. Method as requirements-probe-b2cae6d.txt. +D1 RECOGNIZED [] ["at least 22 non-empty lines", "the headings \"Gather Your Tools\", \"Sharpen the Edge\", \"Test and Store\"", "the words \"whetstone\", \"angle\""] +D2 RECOGNIZED [] ["at least 18 non-empty lines", "at least 12 words of plain text in the section \"Wrap Up\"", "at least 3 fenced code blocks", "the headings \"Example One: Date Prefix\", \"Example Two: Lowercase Names\", \"Example Three: Number the Files\", \"Wrap Up\""] +D3 RECOGNIZED [] ["at least 18 non-empty lines", "the topics \"interest\", \"deposit\", \"withdraw (or withdrew)\", \"balance\""] +D4 RECOGNIZED [] ["at least 13 non-empty lines", "the headings \"Key Points\", \"Next Steps\"", "the words \"Marta\", \"Owen\", \"Priya\""] +D5 RECOGNIZED [] ["at least 16 non-empty lines", "at most 30 non-empty lines", "at least 12 lines starting with \"- [ ]\"", "the headings \"Documents\", \"Clothes\", \"Electronics\"", "the words \"passport\", \"charger\""] +D6 RECOGNIZED [] ["at least 7 paragraphs", "the headings \"Bringing Her Home\""] +E1 RECOGNIZED [] ["the headings \"Parts\""] +E2 SILENT [] [] +N1 RECOGNIZED [] ["exactly 1 added non-empty lines", "the phrase \"Renew the library card on Friday\""] +N2 RECOGNIZED [] ["at least 12 paragraphs"] +R1 RECOGNIZED [] ["exactly one sentence"] diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/run-part.sh b/docs/campaigns/open-model-qwen3/evidence-v6/run-part.sh new file mode 100755 index 00000000..1826d636 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v6/run-part.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v6 (QUALIFICATION-v6.md, FROZEN on sc main). One part per quietlock hold. Never killed, never timed out. +# run-part.sh real <1|2|3|4> the qualification part +# run-part.sh dry 1 gate G6: part 1 in dry mode (same tasks file, scratch run base, never scored) +set -u +mode=$1 part=$2; V=/home/drakestapleton/workspace/oq3-v6-real; R=$V/records +B=/home/drakestapleton/workspace/oq3-v6-build-de9c626; M=/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75 +W=$V/wrap/docs/campaigns/open-model-qwen3/run-qwen3-v6.sh +tag=$mode-p$part +{ date -u +%FT%TZ; grep -E '^(MemFree|MemAvailable|Cached):' /proc/meminfo; } > $R/mem-$tag.txt +journalctl -k --no-pager 2>/dev/null | grep -c NVRM > $R/nvrm-before-$tag.txt +unset AIEN_FORCE_CPU_STUB AIEN_DEV_FALLBACK AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK AIEN_COMPOSE_MAX_TOKENS AIEN_COMPOSE_DOC_MAX_TOKENS \ + AIEN_COMPOSE_EDIT_BUDGET_MS AIEN_COMPOSE_DOC_BUDGET_MS AIEN_COMPOSE_BUDGET_MS AIEN_OMEGA_SPIN_US AIEN_OMEGA_CTA_BUDGET OQ3_DRY_TASKS +if [ "$mode" = dry ]; then + base=$V/dry-runs out=$R/dry-out + export OQ3_DRY_TASKS=$V/wrap/docs/campaigns/open-model-qwen3/tasks-oq3-v5.json +else + base=/home/drakestapleton/workspace/oq3-v6-runs out=$R/out +fi +AIEN_BIN=$B/target/release/aien-cli AIEN_MODEL_PATH=$M/model.safetensors.index.json AIEN_TOKENIZER_PATH=$M/tokenizer.json \ +AIEN_KV_CONTEXT_TOKENS=4096 AIEN_REQUIRE_BLACKWELL=1 AIEN_REQUIRE_CHECKPOINT=1 AIEN_GB10_QWEN3_DECLARED_ATTEMPT=1 \ +OQ3_PART=$part bash "$W" "$base" "$out" $B/sc $B/pins/omega $B/target/release/examples/np1_reference $B/target/release/examples/np1_edit_merge +rc=$? +journalctl -k --no-pager 2>/dev/null | grep -c NVRM > $R/nvrm-after-$tag.txt +exit $rc diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/run.sh b/docs/campaigns/open-model-qwen3/evidence-v6/run.sh new file mode 100755 index 00000000..09592a69 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v6/run.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v6 qualification run (QUALIFICATION-v6.md Sections 6 and 7). Start detached ONLY on the coordinator's go: +# setsid nohup bash run.sh > 2>&1 < /dev/null & +# Order: quietlock check; clean clone of the wrapper at that commit; G6 dry part 1 in its own hold (stop on a product failure); +# then real parts 1..4, each in its own 20-minute hold laneB-oq3-v6-pN; stop if a part's wrapper exits non-zero +# (part 4 exits 1 on a FAIL verdict: that is the scorer's verdict, not a crash). +set -u +WRAP_COMMIT=${1:?sc main commit holding QUALIFICATION-v6.md} +HERE=$(cd "$(dirname "$0")" && pwd) +V=/home/drakestapleton/workspace/oq3-v6-real; R=$V/records +[ ! -e /home/drakestapleton/workspace/oq3-v6-runs ] || { echo "run: the v6 run base exists already (v6 runs once)"; exit 2; } +quietlock check || { echo "run: quiet flag held, not starting"; exit 2; } +mkdir -p $R +git clone -q https://github.com/aien-dev/aien-sovereign-core $V/wrap && git -C $V/wrap checkout -q "$WRAP_COMMIT" || { echo "run: wrapper clone failed"; exit 4; } +grep -q '^\*\*Status: FROZEN' $V/wrap/docs/campaigns/open-model-qwen3/QUALIFICATION-v6.md || { echo "run: QUALIFICATION-v6.md at $WRAP_COMMIT is not FROZEN"; exit 2; } +( cd $V/wrap/docs/campaigns/open-model-qwen3 && bash test-v6.sh > $R/test-v6.out 2>&1 ) || { echo "run: test-v6.sh failed at $WRAP_COMMIT"; exit 2; } +cp "$HERE/run-part.sh" $V/run-part.sh; chmod +x $V/run-part.sh; sha256sum $V/run-part.sh "$0" > $R/launcher.sha256 +# G6: dry part 1 (never scored) +date -u +%FT%TZ > $R/hold-dry-p1.start +quietlock hold --owner laneB-oq3-v6-dry-p1 --minutes 20 --reason "OPEN-MODEL-QWEN3 v6 gate G6 dry run part 1 (not scored)" -- $V/run-part.sh dry 1 > $R/hold-dry-p1.log 2>&1 +echo $? > $R/hold-dry-p1.rc; date -u +%FT%TZ > $R/hold-dry-p1.end +g6=PASS +for id in D1 D2 D3; do + [ -f $V/dry-runs/$id/run.json ] || g6="FAIL $id no run.json" + for r in PRE OPR BE PIN; do + v=$(jq -r --arg row "$id/$id-$r" 'select(.row == $row) | .verdict' $R/dry-out/oq3-v6-DRYRUN-results.jsonl 2>/dev/null | head -1) + [ "$v" = PASS ] || g6="FAIL $id-$r=${v:-missing}" + done +done +echo "G6 $g6" > $R/g6.txt +[ "$g6" = PASS ] || { echo "run: gate G6 $g6; real run NOT started" > $R/stopped; exit 3; } +for p in 1 2 3 4; do + date -u +%FT%TZ > $R/hold-p$p.start + quietlock hold --owner laneB-oq3-v6-p$p --minutes 20 --reason "OPEN-MODEL-QWEN3 v6 REAL qualification run part $p (QUALIFICATION-v6 FROZEN, sc#384)" -- $V/run-part.sh real $p > $R/hold-p$p.log 2>&1 + rc=$?; echo $rc > $R/hold-p$p.rc; date -u +%FT%TZ > $R/hold-p$p.end + [ $rc = 0 ] || { echo "part $p rc=$rc, stopping" > $R/stopped; break; } +done +date -u +%FT%TZ > $R/all.end diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/test-v5-de9c626.txt b/docs/campaigns/open-model-qwen3/evidence-v6/test-v5-de9c626.txt new file mode 100644 index 00000000..ead13ee0 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v6/test-v5-de9c626.txt @@ -0,0 +1,3 @@ +# test-v5.sh on de9c626 (2026-10-11, Lane B). Expected single failure: the v5 pinned run path exists since the v5 run. +FAIL: pinned run path already exists, wrapper checks skipped +test-v5: 191 passed, 1 failed diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/test-v6-de9c626.txt b/docs/campaigns/open-model-qwen3/evidence-v6/test-v6-de9c626.txt new file mode 100644 index 00000000..4fa40efb --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v6/test-v6-de9c626.txt @@ -0,0 +1,21 @@ +ok: every v5 campaign file (wrapper, tasks, declaration, rows, generator, self-test, frozen values, driver, receipt builder, scorer, seeds, self-test fixtures) equals its v5 freeze sha256 +ok: the declaration v6 scores against is oq3-v5.decl.json with QUALIFICATION_ROWS=334 +ok: run-qwen3-v6.sh = run-qwen3-v5.sh with only the listed name changes and a new header (lines after the header identical) +ok: the v6 wrapper still requires the GB10 path (AIEN_REQUIRE_BLACKWELL=1) and the v5 tasks, seeds and row tooling +ok: frozen-v6.json model block == frozen-v5.json model block (same weights, same digests) +ok: frozen-v6.json has the same eight pin names as v5 +ok: every v6 pin is filled with 40 or 64 lowercase hex +ok: refuses a missing OQ3_PART (exit 2) +ok: refuses a run base other than oq3-v6-runs (exit 2), nothing created +ok: refuses a real run while the pins are the placeholder (exit 2) +ok: refuses a real run while the status is not FROZEN (exit 2) +ok: refuses AIEN_REQUIRE_BLACKWELL=0 (exit 3) +ok: refuses AIEN_KV_CONTEXT_TOKENS=2048 (exit 3) +ok: refuses AIEN_REQUIRE_CHECKPOINT=0 (exit 3) +ok: refuses a preset AIEN_FORCE_CPU_STUB (exit 3) +ok: refuses a preset AIEN_DEV_FALLBACK (exit 3) +ok: refuses a preset AIEN_COMPOSE_DOC_BUDGET_MS (exit 3) +ok: refuses a preset AIEN_COMPOSE_DOC_MAX_TOKENS (exit 3) +ok: refuses a model index file with a wrong digest (exit 3) +ok: no em dash or en dash in the v6 files +test-v6: 20 passed, 0 failed diff --git a/docs/campaigns/open-model-qwen3/frozen-v6.json b/docs/campaigns/open-model-qwen3/frozen-v6.json new file mode 100644 index 00000000..ac5bdec9 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/frozen-v6.json @@ -0,0 +1,35 @@ +{ + "status": "FROZEN 2026-10-11 (QUALIFICATION-v6 Section 7). Model and tokenizer values identical to frozen-v5.json, re-hashed 2026-10-11 (evidence-v6/model-rehash-2026-10-11.txt); pins filled at sovereign-core de9c626 from the clean build evidence-v6/build.sh (evidence-v6/build-summary.txt).", + "placeholder": "TO FILL AT FREEZE", + "model": { + "model_sha256": "17a78fbba447a4e66a3d886c0998fbcf2f9201d46e5e0c5bfec2d57c975976b7", + "model_sha256_note": "COMPUTED FROM THE LISTED SHA256s (index and three shards below, manifest of docs/DAEMON_GENERATION_RECORD.md), NOT RE-HASHED when first written; re-hashed 2026-10-08T21:39Z on the chip host with no GPU hold: the index, the three shards, the tokenizer and the three config files all equal the listed values and the manifest rebuilt from them is this value (evidence-v5/model-rehash-2026-10-08.txt); confirmed by the daemon itself in the G6 GPU dry run 2026-10-08T22:08-22:30Z: all 22 daemon starts logged a CHECKPOINT_SHARDS line equal to these values (model_sha256, index+shards, index and the three shards)", + "model_digest_kind": "index+shards", + "index_sha256": "d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c", + "shards": [ + [ + "model-00001-of-00003.safetensors", + "75311d91bb08cf0b882913da464a1e722a31fb44db35208663487efb7a3d8ed6" + ], + [ + "model-00002-of-00003.safetensors", + "0b48adbb1f60e901153d91907ba11ce63bd4b8b584482e730f48808d055dfba1" + ], + [ + "model-00003-of-00003.safetensors", + "7dd39ccca5e4de123c74c14af44c9bf2eb75df33b4614382af0134528e060d5d" + ] + ], + "tokenizer_sha256": "aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4" + }, + "pins": { + "sovereign_core_commit": "de9c626ad9fd50652c1f767d273b4d63f118e342", + "omega_lock_commit": "6c6180cf378075b61291f4565d226eba38b4decd", + "physics_lock_commit": "6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf", + "aienos_lock_commit": "b84c0a67590a934f3f3e001b12ec85ebc086a9eb", + "cargo_lock_sha256": "792a99d82e2f92a40b67a576789767c0677b91871a3aa7ffa0b429455dc050bf", + "aien_cli_sha256": "2a6b09d00c8dbe9237ae1410a9469b6747d232c72468a2c853fe491cf92c2c7a", + "np1_reference_sha256": "41dfe956ce48f73168c4be6a1988a66455ea4d4d93b4a093f331bd8b3a6b28ef", + "np1_edit_merge_sha256": "00ba3fb68f46fee46a25aae000de80822a319648250f0c4e15d4cd6dc2ce4aef" + } +} diff --git a/docs/campaigns/open-model-qwen3/run-qwen3-v6.sh b/docs/campaigns/open-model-qwen3/run-qwen3-v6.sh new file mode 100755 index 00000000..df949568 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/run-qwen3-v6.sh @@ -0,0 +1,190 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v6 qualification (QUALIFICATION-v6.md). Derived from run-qwen3-v5.sh with names only changed: the frozen +# values file (frozen-v6.json), the pinned run base (oq3-v6-runs), the output tag (oq3-v6) and labels. Tasks (tasks-oq3-v5.json), +# seeds (seed-v5), declaration (oq3-v5.decl.json), row modules, v5-rows.sh, driver, receipt builder and scorer are the v5 files, +# byte-identical. It refuses a real run while any pin in frozen-v6.json holds the placeholder or its status does not say FROZEN, +# and afterwards unless every pin read from the checkouts and binaries equals it. The v5 header follows unchanged: +# OPEN-MODEL-QWEN3 v5 campaign (ACCEPTANCE-v5.md). It refuses a real run while any pin +# in frozen-v5.json holds the placeholder or its status does not say FROZEN, and afterwards unless every pin read +# from the checkouts and binaries equals it. Qwen3-4B, derived from run-qwen3-v4.sh: same driver (next-phase-1/run-campaign.sh), receipt builder, v8 rows and +# scorer; new tasks (tasks-oq3-v5.json), one declaration (qualification) and extra rows (v5-rows.sh, rows-oq3-v5.jq). +# Shell + jq only. Run inside the caller's hold, one part per hold. Environment as in ACCEPTANCE-v5 Section 7 +# (model, tokenizer, binary, KV context, hardware requirement, checkpoint requirement, declared attempt flag), then: +# OQ3_PART=1|2|3|4 run-qwen3-v5.sh RUN_BASE OUT_DIR SC_DIR OMEGA_DIR REFERENCE_BIN MERGE_BIN +# SC_DIR is the sovereign-core checkout the binaries were built from, OMEGA_DIR the omega checkout at its omega.lock; +# the commits and lock files are read from them (row -PIN). Parts (ACCEPTANCE-v5 Section 8): 1 = D1 D2 D3, +# 2 = D4 D5 D6, 3 = E1 E2 N1, 4 = N2 R1 and the QUALIFICATION score. Part k needs part k-1 completed in the same +# RUN_BASE with the same binaries, tasks file, declaration, frozen values, row modules and wrapper. +# Dry run (gate G6): OQ3_DRY_TASKS= +# lifts the pinned paths and the frozen-pin checks and writes oq3-v5-DRYRUN-* outputs. A dry run is never a verdict. +# A dry run still starts the real driver and daemon on the GPU. +set -u +PART=${OQ3_PART:-} +case $PART in 1) LAUNCHES="D1 D2 D3" ;; 2) LAUNCHES="D4 D5 D6" ;; 3) LAUNCHES="E1 E2 N1" ;; 4) LAUNCHES="N2 R1" ;; *) echo "run-qwen3-v6: OQ3_PART must be 1, 2, 3 or 4" >&2; exit 2 ;; esac +HERE=$(cd "$(dirname "$0")" && pwd) +NP1=$(cd "$HERE/../next-phase-1" && pwd) +BASE=${1:?RUN_BASE} OUT=${2:?OUT_DIR} SCD=${3:?SC_DIR} OMD=${4:?OMEGA_DIR} REFBIN=${5:?REFERENCE_BIN} MERGEBIN=${6:?MERGE_BIN} +FROZEN=$HERE/frozen-v6.json +PLACEHOLDER=$(jq -r .placeholder "$FROZEN") + +TASKS=$HERE/tasks-oq3-v5.json TAG=oq3-v6 +if [ -n "${OQ3_DRY_TASKS:-}" ]; then + TASKS=$OQ3_DRY_TASKS TAG=oq3-v6-DRYRUN + shape='[.tasks[] | [.id, .kind, .max_tokens, .budget_ms, .destination, .seed]]' + [ "$(jq -c "$shape" "$TASKS")" = "$(jq -c "$shape" "$HERE/tasks-oq3-v5.json")" ] || + { echo "run-qwen3-v6: dry-run tasks must keep the v5 ids, kinds, max_tokens, budgets, destinations and seeds" >&2; exit 2; } +else + # Real run: the run path is pinned (the prompt embeds the workspace path), the output directory is fresh, + # and every frozen pin must be filled in (the comparison with the recorded pins follows below). + PINNED_BASE=/home/drakestapleton/workspace/oq3-v6-runs + [ "$BASE" = "$PINNED_BASE" ] || { echo "run-qwen3-v6: RUN_BASE must be $PINNED_BASE" >&2; exit 2; } + if [ $PART = 1 ]; then + [ ! -e "$BASE" ] || { echo "run-qwen3-v6: $BASE already exists (the v6 run is fresh and happens once)" >&2; exit 2; } + [ ! -e "$OUT" ] || [ -z "$(ls -A "$OUT" 2>/dev/null)" ] || { echo "run-qwen3-v6: OUT_DIR must be new or empty" >&2; exit 2; } + fi + [ "$(jq --arg p "$PLACEHOLDER" '[.pins[] | select(. == $p)] | length' "$FROZEN")" = 0 ] || + { echo "run-qwen3-v6: the build pins are not frozen yet (frozen-v6.json, QUALIFICATION-v6 Section 6)" >&2; exit 2; } + # Filled pins are not a freeze: a draft freeze-fill change fills them first. The status line changes only at G8. + case "$(jq -r .status "$FROZEN")" in FROZEN*) ;; *) + echo "run-qwen3-v6: frozen-v6.json status is not FROZEN (QUALIFICATION-v6 Section 7)" >&2; exit 2 ;; esac +fi +DECL=$HERE/../scoring/declarations/oq3-v5.decl.json +SCORER=$HERE/../scoring/score-rows.sh +[ -f "$DECL" ] && [ -x "$SCORER" ] && [ -x "$REFBIN" ] && [ -x "$MERGEBIN" ] || { echo "run-qwen3-v6: declaration, scorer, reference binary or merge binary missing" >&2; exit 2; } +: "${AIEN_MODEL_PATH:?}" "${AIEN_TOKENIZER_PATH:?}" "${AIEN_BIN:?}" +need() { [ "$(printenv "$1")" = "$2" ] || { echo "$1 must be $2 (ACCEPTANCE-v5 Section 7)" >&2; exit 3; }; } +need AIEN_KV_CONTEXT_TOKENS 4096 +need AIEN_REQUIRE_BLACKWELL 1 +need AIEN_REQUIRE_CHECKPOINT 1 +need AIEN_GB10_QWEN3_DECLARED_ATTEMPT 1 +# The limits are set per launch below; a stale value from the caller is refused, never overridden silently. +# AIEN_COMPOSE_BUDGET_MS is the retired single budget (sc#284 refuses it too). AIEN_DEV_FALLBACK is new in v5, and so is +# AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK (the dev-only desk opt-out of sc#342, valid only with AIEN_DEV_FALLBACK=1). +for v in AIEN_FORCE_CPU_STUB AIEN_DEV_FALLBACK AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK AIEN_COMPOSE_MAX_TOKENS AIEN_COMPOSE_DOC_MAX_TOKENS AIEN_COMPOSE_EDIT_BUDGET_MS \ + AIEN_COMPOSE_DOC_BUDGET_MS AIEN_COMPOSE_BUDGET_MS AIEN_OMEGA_SPIN_US AIEN_OMEGA_CTA_BUDGET; do + [ -z "$(printenv $v)" ] || { echo "$v must be unset (ACCEPTANCE-v5 Section 7)" >&2; exit 3; } +done +MODEL_DIR=$(dirname "$AIEN_MODEL_PATH") +chk() { [ "$(sha256sum "$1" | cut -d' ' -f1)" = "$2" ] || { echo "digest mismatch: $1" >&2; exit 3; }; } +# The model the generation record must bind (row -GR): the index and every shard, re-hashed before each part. +chk "$AIEN_MODEL_PATH" "$(jq -r .model.index_sha256 "$FROZEN")" +while read -r n h; do chk "$MODEL_DIR/$n" "$h"; done < <(jq -r '.model.shards[] | "\(.[0]) \(.[1])"' "$FROZEN") +chk "$AIEN_TOKENIZER_PATH" "$(jq -r .model.tokenizer_sha256 "$FROZEN")" +chk "$MODEL_DIR/config.json" 5beea1a4a34c62782bfb2f911c606741a3bab8f92d80a118fa053c28af12e8ba +chk "$MODEL_DIR/generation_config.json" 835fffe355c9438e7a25be099b3fccaa98350b83451f9fd2d99512e74f1ade48 +chk "$MODEL_DIR/tokenizer_config.json" a62ff0a2472a0fa1b8eaabcb57c59b58afa42a22831dc141400b6e0cf2b65ce3 +# Build pins, read from the checkouts and the binaries (row -PIN). A real run refuses any difference. +SC=$(git -C "$SCD" rev-parse HEAD 2>/dev/null) && OMC=$(git -C "$OMD" rev-parse HEAD 2>/dev/null) || + { echo "run-qwen3-v6: SC_DIR and OMEGA_DIR must be git checkouts" >&2; exit 2; } +OMG=$OMC +[ "$OMC" = "$(tr -d '[:space:]' <"$SCD/omega.lock")" ] || { echo "run-qwen3-v6: OMEGA_DIR HEAD differs from SC_DIR/omega.lock" >&2; exit 2; } +PINS=$(jq -n --arg sc "$SC" --arg om "$OMC" --arg ph "$(tr -d '[:space:]' <"$OMD/physics.lock" 2>/dev/null)" \ + --arg ao "$(tr -d '[:space:]' <"$OMD/aienos.lock" 2>/dev/null)" --arg cl "$(sha256sum "$SCD/Cargo.lock" | cut -d' ' -f1)" \ + --arg cli "$(sha256sum "$AIEN_BIN" | cut -d' ' -f1)" --arg ref "$(sha256sum "$REFBIN" | cut -d' ' -f1)" --arg mrg "$(sha256sum "$MERGEBIN" | cut -d' ' -f1)" \ + '{sovereign_core_commit: $sc, omega_lock_commit: $om, physics_lock_commit: $ph, aienos_lock_commit: $ao, cargo_lock_sha256: $cl, + aien_cli_sha256: $cli, np1_reference_sha256: $ref, np1_edit_merge_sha256: $mrg}') +if [ -z "${OQ3_DRY_TASKS:-}" ]; then + [ -z "$(git -C "$SCD" status --porcelain)" ] || { echo "run-qwen3-v6: SC_DIR has uncommitted changes" >&2; exit 2; } + [ "$(jq -c --argjson p "$PINS" '.pins == $p' "$FROZEN")" = true ] || + { echo "run-qwen3-v6: the recorded build pins differ from frozen-v6.json: $(jq -c --argjson p "$PINS" '.pins as $f | [$f | keys[] | select($f[.] != $p[.])]' "$FROZEN")" >&2; exit 2; } +fi +RES=$OUT/$TAG-results.jsonl +if [ $PART = 1 ]; then + [ ! -e "$BASE/part1.done" ] && [ ! -e "$RES" ] || { echo "run-qwen3-v6: part 1 already ran here" >&2; exit 2; } + mkdir -p "$BASE" "$OUT"; : >"$RES" +else + prev=$((PART - 1)) + [ -f "$BASE/part$prev.done" ] && [ ! -e "$BASE/part$PART.started" ] || { echo "run-qwen3-v6: part $PART needs a completed part $prev and runs once" >&2; exit 2; } + : >"$BASE/part$PART.started" +fi +sha256sum "$AIEN_BIN" "$REFBIN" "$MERGEBIN" "$TASKS" "$DECL" "$FROZEN" "$HERE/rows-oq3-v3.jq" "$HERE/rows-oq3-v4.jq" "$HERE/rows-oq3-v5.jq" \ + "$HERE/v5-rows.sh" "$0" > "$BASE/identity-part$PART.sha256" +if [ $PART != 1 ] && ! cmp -s <(cut -d" " -f1 "$BASE/identity-part1.sha256") <(cut -d" " -f1 "$BASE/identity-part$PART.sha256"); then + echo "run-qwen3-v6: part $PART binaries, tasks, declaration, frozen values, rows or wrapper differ from part 1 (one build per run)" >&2; exit 2 +fi +printf '%s\n' "$PINS" >"$BASE/pins-part$PART.json" +# Memory before the part (row -MEAS), from /proc/meminfo, in kB. +MEM=$(awk '/^MemFree:/ {f=$2} /^Cached:/ {c=$2} END {printf "{\"mem_free_kb\":%d,\"cached_kb\":%d}", f, c}' /proc/meminfo) +printf '%s\n' "$MEM" >"$BASE/meminfo-part$PART.json" +# Launch wall time on CLOCK_BOOTTIME (monotonic, 10 ms ticks), in ms. +up_ms() { echo $(( $(tr -d . for any task that has a seed, which only fits edits. A non-edit +# task whose seed holds other files (D4: its source file; R1: the notes/ folder its destination needs, Section 2) is +# staged with seed null for the receipt builder only; the driver still gets the real seed from the tasks file +# (NP1_SEED_DIR below), and v5-rows.sh checks the D4 source file itself (row SRC). +STAGE_FILTER='(.tasks[] | select(.kind != "edit") | .seed) = null' +if [ $PART = 1 ]; then + mkdir -p "$STAGE" + for f in "$NP1"/*; do + n=$(basename "$f"); case $n in tasks-v8.json) continue ;; esac + ln -s "$f" "$STAGE/$n" + done + jq "$STAGE_FILTER" "$TASKS" >"$STAGE/tasks-v8.json" + ln -s "$HERE/seed-v5" "$STAGE/seed-v5" +fi +[ "$(jq "$STAGE_FILTER" "$TASKS")" = "$(cat "$STAGE/tasks-v8.json")" ] || { echo "run-qwen3-v6: staged tasks file differs from the tasks file" >&2; exit 2; } +# Product limits (ACCEPTANCE-v5 Section 2) come from the task's own max_tokens and budget_ms (row -D scores the +# same budget_ms); only D6 differs from the product values (Drake 2026-10-09, ACCEPTANCE-v5 Section 2.1). +for id in $LAUNCHES; do + t=$(jq -c --arg id "$id" '.tasks[] | select(.id == $id)' "$TASKS") + goal=$(jq -r .goal <<<"$t"); max=$(jq -r .max_tokens <<<"$t"); bud=$(jq -r .budget_ms <<<"$t"); kind=$(jq -r .kind <<<"$t"); seed=$(jq -r '.seed // empty' <<<"$t") + seed_dir=; [ -n "$seed" ] && seed_dir=$HERE/$seed + # An edit goal (names an existing file) uses the edit cap AIEN_COMPOSE_MAX_TOKENS and budget AIEN_COMPOSE_EDIT_BUDGET_MS; + # every other goal creates a new file and uses the document cap and budget. The other cap and budget stay at their product values. + if [ "$kind" = edit ]; then ecap=$max dcap=$(jq -r .limits.doc_max_tokens "$TASKS") ebud=$bud dbud=$(jq -r .limits.doc_budget_ms "$TASKS") + else ecap=$(jq -r .limits.edit_max_tokens "$TASKS") dcap=$max ebud=$(jq -r .limits.edit_budget_ms "$TASKS") dbud=$bud; fi + export AIEN_COMPOSE_EDIT_BUDGET_MS=$ebud AIEN_COMPOSE_DOC_BUDGET_MS=$dbud + t0=$(up_ms) + NP1_GOAL=$goal AIEN_COMPOSE_MAX_TOKENS=$ecap AIEN_COMPOSE_DOC_MAX_TOKENS=$dcap NP1_SEED_DIR=$seed_dir \ + bash "$NP1/run-campaign.sh" "$BASE/$id" >"$BASE/$id.driver.out" 2>&1 + drc=$?; t1=$(up_ms) + jq -n --arg id "$id" --argjson w $((t1 - t0)) --argjson m "$MEM" --argjson p "$PINS" --argjson rc $drc \ + '{launch: $id, wall_ms: $w, wall_clock: "CLOCK_BOOTTIME, 10 ms ticks, around the driver call", driver_exit: $rc, meminfo_before: $m, pins: $p}' >"$BASE/$id.launch-v5.json" + echo "launch $id driver exit $drc in $((t1 - t0)) ms (edit cap $ecap, document cap $dcap, budgets $AIEN_COMPOSE_EDIT_BUDGET_MS/$AIEN_COMPOSE_DOC_BUDGET_MS ms${seed:+, seed $seed})" + ref= + if [ "$kind" = identity ] && [ -d "$BASE/$id/ws" ]; then + ws=$(cd "$BASE/$id/ws" && pwd -P) + "$REFBIN" "$MODEL_DIR" "$goal" "$ws" "$max" new >"$BASE/$id.reference.json" 2>"$BASE/$id.reference.err" + echo "launch $id CPU reference exit $?" + ref=$BASE/$id.reference.json + fi + if [ -f "$BASE/$id/run.json" ]; then + v8merge=null + if [ "$kind" = edit ] && [ -f "$BASE/$id/s3-report.json" ]; then + rf=$BASE/$id.accepted-reply.txt + if jq -e '[.proposal_attempts // [] | .[] | select(.outcome == "parsed")] | length > 0' "$BASE/$id/s3-report.json" >/dev/null 2>&1; then + jq -j '[.proposal_attempts[] | select(.outcome == "parsed")] | last | .text' "$BASE/$id/s3-report.json" >"$rf" + m=$("$MERGEBIN" "$(jq -r .destination <<<"$t")" "$HERE/$seed/$(jq -r .destination <<<"$t")" "$rf" 2>"$BASE/$id.merge.err") + if jq . <<<"$m" >/dev/null 2>&1; then v8merge=$(jq -c . <<<"$m"); fi + fi + echo "launch $id edit re-derivation: $(jq -r 'if . == null then "none" else "ok=\(.ok)" end' <<<"$v8merge")" + fi + v5env=(); [ "$(jq -r '.destination // empty' <<<"$t")" != "" ] && [ "${id#N}" = "$id" ] && \ + v5env=(TASK_ID="$id" TASK_SPEC="$TASKS" TASK_ACCEPTANCE="$HERE/ACCEPTANCE-v5.md") + env "${v5env[@]}" V6_ROWS=rows-v9.jq V8_MERGE="$v8merge" V6_TASK="$id" V6_MAX_TOKENS="$max" V6_REFERENCE="$ref" \ + SPEC="open-model-qwen3/QUALIFICATION-v6.md (rows of ACCEPTANCE-v5.md) spec_version 6${OQ3_DRY_TASKS:+ DRY RUN}" bash "$STAGE/make-receipt.sh" \ + "$BASE/$id" "$OUT" "$SC" "$OMC" "$OMG" 0 "OPEN-MODEL-QWEN3 v6${OQ3_DRY_TASKS:+ DRY RUN} launch $id" >"$BASE/$id.receipt.out" 2>&1 + rec=$OUT/$(head -1 "$BASE/$id.receipt.out" | sed -n 's/.*receipt \([0-9a-f]*\.json\).*/\1/p') + if [ -f "$rec" ]; then + bash "$NP1/v8-results.sh" "$id" "$rec" >>"$RES" + bash "$HERE/v5-rows.sh" "$BASE/$id" "$id" "$TASKS" "$OUT" "$(basename "$rec")" "$BASE/$id.launch-v5.json" "$FROZEN" >>"$RES" + else bash "$NP1/v8-results.sh" "$id" - "$DECL" "receipt not written" >>"$RES"; fi + echo "launch $id receipt $(basename "$rec")" + else + bash "$NP1/v8-results.sh" "$id" - "$DECL" "launch failed: no run.json" >>"$RES" + echo "launch $id FAILED to launch" + fi + jq -r --arg id "$id" 'select(.row | startswith($id + "/")) | select(.verdict != "PASS") | " \(.verdict) \(.row)"' "$RES" +done +: >"$BASE/part$PART.done" +if [ $PART -le 3 ]; then echo "part $PART done ($LAUNCHES); run part $((PART + 1)) in a new hold"; exit 0; fi +# Qualification verdict: the declaration and the result file only (ACCEPTANCE-v5 Section 5). Rows a receipt computes +# but the declaration does not hold (for N1: N1-B, N1-C, N1-H) are listed by the scorer as extras, never counted. +bash "$SCORER" "$DECL" "$RES" >"$OUT/$TAG-score.json"; rc=$? +echo "OPEN-MODEL-QWEN3 v6${OQ3_DRY_TASKS:+ DRY RUN (not a verdict)} QUALIFICATION (scoring-v5, score-rows.sh exit $rc): $(jq -r .verdict "$OUT/$TAG-score.json" 2>/dev/null || echo ERROR)" +exit $rc diff --git a/docs/campaigns/open-model-qwen3/test-v6.sh b/docs/campaigns/open-model-qwen3/test-v6.sh new file mode 100755 index 00000000..04484594 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/test-v6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v6 self-test (QUALIFICATION-v6.md Section 7, CPU only, no model, no GPU). Shell + jq. +# v6 reuses every v5 campaign file byte for byte; this test proves that, proves the v6 wrapper differs from the v5 +# wrapper only in names, and checks the v6 wrapper's refusals. The v5 self-test (test-v5.sh) still runs the row +# red and green cases; after the v5 run it reports exactly one expected failure (its pinned run path exists). +set -u +HERE=$(cd "$(dirname "$0")" && pwd); cd "$HERE" || exit 2 +T=$(mktemp -d); trap 'rm -rf "$T"' EXIT +pass=0 fail=0 +ok() { pass=$((pass + 1)); echo "ok: $1"; } +bad() { fail=$((fail + 1)); echo "FAIL: $1"; } +chk() { if eval "$2"; then ok "$1"; else bad "$1"; fi; } +FROZEN=$HERE/frozen-v6.json W=$HERE/run-qwen3-v6.sh PINNED=/home/drakestapleton/workspace/oq3-v6-runs + +# ---- 1 every v5 campaign file is unchanged (evidence-v5/campaign-files.sha256, written at the v5 freeze) +chk "every v5 campaign file (wrapper, tasks, declaration, rows, generator, self-test, frozen values, driver, receipt builder, scorer, seeds, self-test fixtures) equals its v5 freeze sha256" \ + 'sha256sum --quiet -c evidence-v5/campaign-files.sha256 >/dev/null 2>&1' +chk "the declaration v6 scores against is oq3-v5.decl.json with QUALIFICATION_ROWS=334" \ + '[ "$(jq ".rows | length" ../scoring/declarations/oq3-v5.decl.json)" = 334 ] && grep -q "DECL=\$HERE/../scoring/declarations/oq3-v5.decl.json" "$W"' + +# ---- 2 the v6 wrapper is the v5 wrapper with names changed only +sed -e 's#FROZEN=\$HERE/frozen-v5.json#FROZEN=$HERE/frozen-v6.json#' -e 's#TASKS=\$HERE/tasks-oq3-v5.json TAG=oq3-v5$#TASKS=$HERE/tasks-oq3-v5.json TAG=oq3-v6#' \ + -e 's#TAG=oq3-v5-DRYRUN#TAG=oq3-v6-DRYRUN#' -e 's#PINNED_BASE=/home/drakestapleton/workspace/oq3-v5-runs#PINNED_BASE=/home/drakestapleton/workspace/oq3-v6-runs#' \ + -e 's#run-qwen3-v5:#run-qwen3-v6:#g' -e 's#(the v5 run is fresh and happens once)#(the v6 run is fresh and happens once)#' \ + -e 's#are not frozen yet (frozen-v5.json, ACCEPTANCE-v5 Section 7)#are not frozen yet (frozen-v6.json, QUALIFICATION-v6 Section 6)#' \ + -e 's#frozen-v5.json status is not FROZEN (ACCEPTANCE-v5 Section 9, gate G8)#frozen-v6.json status is not FROZEN (QUALIFICATION-v6 Section 7)#' \ + -e 's#differ from frozen-v5.json:#differ from frozen-v6.json:#' \ + -e 's#SPEC="open-model-qwen3/ACCEPTANCE-v5.md spec_version 5#SPEC="open-model-qwen3/QUALIFICATION-v6.md (rows of ACCEPTANCE-v5.md) spec_version 6#' \ + -e 's#"OPEN-MODEL-QWEN3 v5\${OQ3_DRY_TASKS:+ DRY RUN} launch \$id"#"OPEN-MODEL-QWEN3 v6${OQ3_DRY_TASKS:+ DRY RUN} launch $id"#' \ + -e 's#echo "OPEN-MODEL-QWEN3 v5\${OQ3_DRY_TASKS#echo "OPEN-MODEL-QWEN3 v6${OQ3_DRY_TASKS#' run-qwen3-v5.sh | sed '1,3d' >"$T/expect.sh" +chk "run-qwen3-v6.sh = run-qwen3-v5.sh with only the listed name changes and a new header (lines after the header identical)" \ + 'cmp -s "$T/expect.sh" <(sed "1,8d" "$W")' +chk "the v6 wrapper still requires the GB10 path (AIEN_REQUIRE_BLACKWELL=1) and the v5 tasks, seeds and row tooling" \ + 'grep -q "need AIEN_REQUIRE_BLACKWELL 1" "$W" && grep -q "TASKS=\$HERE/tasks-oq3-v5.json TAG=oq3-v6" "$W" && grep -q "seed-v5" "$W" && grep -q "v5-rows.sh\" \"\$BASE/\$id\" \"\$id\" \"\$TASKS\" \"\$OUT\"" "$W"' + +# ---- 3 frozen-v6.json: model values identical to v5, pins filled (40 or 64 lowercase hex) +chk "frozen-v6.json model block == frozen-v5.json model block (same weights, same digests)" '[ "$(jq -c .model frozen-v6.json)" = "$(jq -c .model frozen-v5.json)" ]' +chk "frozen-v6.json has the same eight pin names as v5" '[ "$(jq -c ".pins | keys" frozen-v6.json)" = "$(jq -c ".pins | keys" frozen-v5.json)" ]' +chk "every v6 pin is filled with 40 or 64 lowercase hex" '[ "$(jq "[.pins[] | select(test(\"^([0-9a-f]{40}|[0-9a-f]{64})$\") | not)] | length" frozen-v6.json)" = 0 ]' + +# ---- 4 v6 wrapper refusals (CPU, before any run); the pinned path is never created +if [ -e "$PINNED" ]; then bad "pinned run path already exists, wrapper checks skipped"; else + : >"$T/x"; chmod +x "$T/x" + base=(env -i PATH="$PATH" HOME="$HOME") + okenv=(AIEN_BIN="$T/x" AIEN_MODEL_PATH="$T/m.json" AIEN_TOKENIZER_PATH="$T/t.json" AIEN_KV_CONTEXT_TOKENS=4096 AIEN_REQUIRE_BLACKWELL=1 AIEN_REQUIRE_CHECKPOINT=1 AIEN_GB10_QWEN3_DECLARED_ATTEMPT=1) + WC=$T/wcopy/oq3; mkdir -p "$WC"; cp "$W" "$WC/run-qwen3-v6.sh" + wr() { local w=$1 b=$2; shift 2; "${base[@]}" "$@" bash "$w" "$b" "$T/out" "$T" "$T" "$T/x" "$T/x" >/dev/null 2>"$T/w.err"; echo $?; } + chk "refuses a missing OQ3_PART (exit 2)" '[ "$(wr "$W" "$T/b")" = 2 ]' + chk "refuses a run base other than oq3-v6-runs (exit 2), nothing created" '[ "$(wr "$W" "$T/b" OQ3_PART=1 "${okenv[@]}")" = 2 ] && [ ! -e "$T/b" ] && grep -q "RUN_BASE must be $PINNED" "$T/w.err"' + jq '.pins |= map_values("TO FILL AT FREEZE")' "$FROZEN" >"$WC/frozen-v6.json" + chk "refuses a real run while the pins are the placeholder (exit 2)" '[ "$(wr "$WC/run-qwen3-v6.sh" "$PINNED" OQ3_PART=1 "${okenv[@]}")" = 2 ] && [ ! -e "$PINNED" ] && grep -q "pins are not frozen yet" "$T/w.err"' + jq '.status = "DRAFT"' "$FROZEN" >"$WC/frozen-v6.json" + chk "refuses a real run while the status is not FROZEN (exit 2)" '[ "$(wr "$WC/run-qwen3-v6.sh" "$PINNED" OQ3_PART=1 "${okenv[@]}")" = 2 ] && [ ! -e "$PINNED" ] && grep -q "status is not FROZEN" "$T/w.err"' + for v in AIEN_REQUIRE_BLACKWELL=0 AIEN_KV_CONTEXT_TOKENS=2048 AIEN_REQUIRE_CHECKPOINT=0; do + chk "refuses $v (exit 3)" '[ "$(wr "$W" "$T/b" OQ3_PART=1 OQ3_DRY_TASKS="$HERE/tasks-oq3-v5.json" "${okenv[@]}" "$v")" = 3 ] && [ ! -e "$T/b" ]' + done + for v in AIEN_FORCE_CPU_STUB=1 AIEN_DEV_FALLBACK=1 AIEN_COMPOSE_DOC_BUDGET_MS=600000 AIEN_COMPOSE_DOC_MAX_TOKENS=4096; do + chk "refuses a preset ${v%%=*} (exit 3)" '[ "$(wr "$W" "$T/b" OQ3_PART=1 OQ3_DRY_TASKS="$HERE/tasks-oq3-v5.json" "${okenv[@]}" "$v")" = 3 ] && [ ! -e "$T/b" ]' + done + chk "refuses a model index file with a wrong digest (exit 3)" '[ "$(wr "$W" "$T/b" OQ3_PART=1 OQ3_DRY_TASKS="$HERE/tasks-oq3-v5.json" "${okenv[@]}")" = 3 ] && grep -q "digest mismatch" "$T/w.err"' +fi +chk "no em dash or en dash in the v6 files" '! LC_ALL=C grep -lP "\xe2\x80[\x93\x94]" QUALIFICATION-v6.md V5-FAILURE-ANALYSIS.md run-qwen3-v6.sh test-v6.sh frozen-v6.json >/dev/null 2>&1' +echo "test-v6: $pass passed, $fail failed" +[ $fail = 0 ] From d92e16fa36a2b0743240ad9a4bbc0de4f53ee79f Mon Sep 17 00:00:00 2001 From: aien Date: Sat, 10 Oct 2026 20:25:50 -0500 Subject: [PATCH 2/2] crumb compile (after rebase onto main) Co-authored-by: Drake Stapleton Co-Authored-By: Claude Fable 5.1 --- .crumb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.crumb b/.crumb index 9a4f4ef2..60232364 100644 --- a/.crumb +++ b/.crumb @@ -77,14 +77,14 @@ } ], "children_root": "sha256:e5ff31069bcf711289819b6c09c3c96378cb1367e38f236992f113ca6a2dac23", - "compiled_at": "2026-10-11T01:03:21Z", + "compiled_at": "2026-10-11T01:25:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:539c472e85d3e626de204df4e2db2bb9cccb14e7e6e5a9ee01af6203acc9e087", + "digest": "sha256:8ceab18b92e0028b2a68c92d42d25d4888c70ef0cfd3c5a7697d1f6b5b13f755", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", - "files": 2396, - "generated_at_commit": "c51856dc2d58d383173f2ba01e34244c14acab2a", - "source_tree": "sha256:e7ade309ddd57368f17a403edce16501e82ab2fc3d8f9773efddd3ec8b622bde" + "files": 2411, + "generated_at_commit": "a88a55b6bd130ed94585442e94ed6444131ed195", + "source_tree": "sha256:04335bea60499db7ac7b2e6d4b8a40415531068fefc99412fd67246c9b8738f5" } }, "history": [],