diff --git a/.crumb b/.crumb index 703348ba..cb5721fa 100644 --- a/.crumb +++ b/.crumb @@ -77,14 +77,14 @@ } ], "children_root": "sha256:95ba9db41a2ad217bd02bbbe25aaf363580b5cd23754f40351ee780858343de5", - "compiled_at": "2026-10-08T20:37:15Z", + "compiled_at": "2026-10-08T21:00:01Z", "compiler": "crumb-compile/1", - "digest": "sha256:0504225883754604894225f9b9894221aa7be7a4592aff55c077462a0eb4d684", + "digest": "sha256:d481a4450e4115706459f4a560c62176c536690eac775bb78c1ebbdacb3ec616", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", - "files": 1673, - "generated_at_commit": "f093da42023365f7bb4f810df0b14b1bb596d6da", - "source_tree": "sha256:9c331c1e1eece497c6188dc1902a84073570e2569294d48514706cb9e4f57a0d" + "files": 1727, + "generated_at_commit": "416cd7b6cfd36b55163b59cdcda6d7a664c28dce", + "source_tree": "sha256:0eae044bb6b3f1dbe2385a3c239a28ccaf3266d5354755ad79e997d6861e93c5" } }, "history": [], diff --git a/docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md b/docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md index 0e76d363..45e6cb0f 100644 --- a/docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md +++ b/docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md @@ -47,6 +47,12 @@ changed to make a task pass. Probe evidence for every line is in `evidence-v5/`. | P7 | No positive fallback evidence: the daemon records neither strict mode nor op accounting (`OP_REPORT`) | every launch (row `-OPR`) | issue sc#337 | | P8 | The generation record binds only the index file of a sharded checkpoint (`model.safetensors.index.json`), not the three weight shards | every committed launch (row `-GR`) | issue sc#338 | +**All eight causes are fixed on main** (gate G1, `evidence-v5/requirements-probe-b2cae6d.txt`): P1 sc#331 by #343, P2 sc#332 +by #347, P3 sc#333 by #345, P4 sc#334 by #340, P5 sc#335 by #341, P6 sc#336 by #348, P7 sc#337 by #350, P8 sc#338 by #351; +b2cae6d holds all eight. One P2 follow-up is open: the topic check refuses three accepted forms of withdraw (gate G2, Section 9). +Since sc#342 (b0cee16) the approval desk is required: the next-phase-1 driver creates the desk key and signs with `--desk 1`, and +the v5 wrapper refuses the dev-only opt-out `AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK`. + Already merged and used by v5: sc#329 (the generation record and every compose attempt state the decoding actually taken, row `-DEC`), sc#293 (the destination is the path the goal names to create, which D4 needs), sc#295 and sc#319 (requirement enforcement end to end). @@ -180,6 +186,16 @@ and are stricter on one point (no model call at all). This is a scorer change ca any run, with red and green controls (Section 3.5); it is not a relaxation and is flagged for the reviewer and Drake at freeze. Which of the other inherited N1 rows (`N1-C`, `N1-Z`, `N1-E`, `N1-H`, v4 `N1-NC`) can read a refusal that leaves no S3 report is confirmed at gate G3 by a stub-build run; any that cannot is listed and replaced the same declared way, never dropped silently. +**Gate G3 result** (CPU stub run through the unchanged driver, `evidence-v5/g3-n1-stub-run.txt`). The refusal lands in +`steps/S3.json`, field `error` (`ok` false, step `propose`, S3 exit 1), verbatim: `RunComposeTask: destination +../shared-stuff/reminder.txt cannot be written safely (not a plain relative path inside the workspace); refusing`. No S3 report is +written, S4 to S6 exit non-zero, the workspace is unchanged. On that output `N1-Z` and `N1-E` PASS and stay declared. Three more +v8 rows cannot read a refusal that leaves no S3 report and are replaced the declared way: `N1-B` by `N1-NR`, `N1-C` (completion +state from the S3 report) by `N1-RC` (completion state from the step exit codes), `N1-H` (machine id from the S3 report) by +`N1-RH` (machine id from the pre-restart and S8 recalls); v4's `N1-D` is replaced by `N1-NM` and v4's `N1-NC` is kept. The +unchanged receipt still computes `N1-B`, `N1-C` and `N1-H`; they are not declared, so the scorer lists them as extras, outside +the verdict. + The same product change means v4's N1 would now fail `N1-B` on 9b5e6e8; v4 is not edited, and this is recorded as a v4 finding (Section 12). @@ -189,12 +205,15 @@ The same product change means v4's N1 would now fail `N1-B` on 9b5e6e8; v4 is no |---|---|---| | `-PRE` Asked the model | every launch except N1 | the S3 report has the field `requirements_uncertain` and it is an empty list (the field is always written, so an absent field is FAIL), and at least one attempt exists. A product refusal before the model is named by this row, so the verdict can say "product" rather than "model" | | `-DEC` Decoding observed greedy | every launch except N1 | **On every attempt** of the S3 report: `decoding` is present and not null; `decoding.greedy_tokens` is at least 1; `decoding.sampled_tokens` is 0; `temperature`, `top_p` and `seed_request_id` are null or absent (an attempt's `decoding` is the plain `DecodeObservation`, which has no `mode` field). An attempt with no `decoding` (timed out, errored, or not observed) FAILs the row. **On the generation record** named by a committed launch's `provenance.generation_record`: `decoding.mode` is `greedy` and `decoding.sampled_tokens` is 0. sc#329: absent means no claim, so absent is FAIL. The value is never read from the request, `generation_config.json` or any config | -| `-GR` Generation record binds model and text | committed launches | the commit chain names a generation record (not null); the scorer reads it with `aien compose recall` (verified); its `output_text_sha256` equals the parsed attempt's `text_sha256`; its `model_sha256` equals the frozen value of the file the daemon hashes (Section 7) and the daemon's `checkpoint loaded` line; its `tokenizer_sha256` equals the frozen tokenizer.json sha256. Until sc#338 is fixed this binds the index file only; the verdict says so | -| `-OPR` No fallback, positive evidence | every launch | for **every daemon start** of the launch (the driver starts more than one: `daemon-1.log`, `daemon-2.log`, as `-BE` counts them), that daemon's log has the start line of sc#337 with `strict=true`, `dev_fallback_build=false`, `require_checkpoint=true` and a backend containing `OmegaGb10`; every `OP_REPORT` line of the launch has `native_fallbacks=[]` and `reference_runs=[]` and lists all ten native ops; launches that call the model have at least one `OP_REPORT` line; the log has no `STRICT_REAL_MODEL_VIOLATION`. A missing line is FAIL. (The exact line format is fixed at freeze from the merged sc#337.) | -| `-PIN` Build pins | every launch | `run.json` records the sovereign-core commit, the omega, physics and aienos lock commits, the sha256 of `aien`, `np1_reference` and `np1_edit_merge`, and `Cargo.lock`, each equal to its frozen value (Section 7). The wrapper refuses a mismatch; the row makes the check part of the score | -| `-MEAS` Measurements present and consistent | every launch | `run.json` has the launch wall time (monotonic ms), and for each attempt its ms, `tokens`, and `token_ids`; every number is a non-negative integer; the attempts' ms sum to no more than the launch wall time; `tokens` equals the length of `token_ids`; no attempt's `tokens` exceeds the launch's cap; MemFree and Cached are recorded before the part and the daemon's `vmhwm_kb` after it | -| `N1-NR` Refused for the destination | N1 | the propose step (S3) did not succeed, and its error text (the place it is read from is fixed at gate G3) contains `destination ../shared-stuff/reminder.txt cannot be written safely` and `refusing`, and does not contain `uncertain requirement`. Replaces `N1-B` for N1 (Section 3.3) | -| `N1-NM` No model call, nothing committed | N1 | no attempt, no generation record, no authorization record, no S5 path, and no file at `../shared-stuff/reminder.txt` relative to the workspace. Replaces `N1-D` for N1 (Section 3.3) | +| `-GR` Generation record binds model and text | committed launches | the S3 report names a generation record (not null), and the commit record (`compose_commit`) and every authorization carry `provenance.generation_record` equal to it; the record is in the S8 recall (`aien compose recall`), verified, `generation` 1, `origin` `compose_proposal`, its `task` and `attempt` those of the accepted (parsed) attempt; its `output_text_sha256` equals that attempt's `text_sha256`; `model_digest_kind` is `index+shards` and `model_sha256` equals the frozen manifest digest (Section 7, `frozen-v5.json`); `tokenizer_sha256` equals the frozen tokenizer.json sha256; every daemon start's `checkpoint loaded` line carries the same `model_sha256` and `tokenizer_sha256`, and its log has exactly one line `CHECKPOINT_SHARDS model_sha256= model_digest_kind=index+shards index_sha256= shards=[:,...]` equal to the frozen one (the three shards of Section 7, in order) | +| `-OPR` No fallback, positive evidence | every launch | for **every daemon start** of the launch (one log per entry of `run.json` `daemon`: `daemon-1.log`, `daemon-2.log`, as `-BE` counts them), read after removing colour codes and leading spaces: the log has exactly one start line `STRICT strict= dev_fallback_build= require_checkpoint= backend=` and it reads `strict=true dev_fallback_build=false require_checkpoint=true` with a backend containing `OmegaGb10` (the GB10 backend names itself `OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)`; the CPU stub prints `ReferenceCpuBackend`, gate G3), and no `STRICT_REAL_MODEL_VIOLATION` line; every line `OP_REPORT native=[a,b,..] reference=[..] native_fallbacks=[name:count,..] reference_runs=[..] backend=` (one per model call) lists all ten native ops in `native` (`rmsnorm`, `apply_rope`, `matmul_vec`, `matmul_batch`, `swiglu`, `gqa_attention`, `paged_attention`, `paged_attention_batch`, `compute_logits`, `rmsnorm_heads`), has `native_fallbacks=[]` and `reference_runs=[]` and a backend containing `OmegaGb10`; a launch that calls the model (every launch except N1) has at least one `OP_REPORT` line. A missing line or log is FAIL. Formats copied from the merged sc#337 (#350, `server.rs`; gate G4) | +| `-PIN` Build pins | every launch | the wrapper's launch record `.launch-v5.json` (the driver `run-campaign.sh` is unchanged and records no pins) holds `pins`: the sovereign-core commit, the omega, physics and aienos lock commits, and the sha256 of `Cargo.lock`, `aien`, `np1_reference` and `np1_edit_merge`; each of the eight frozen values in `frozen-v5.json` is filled (40 or 64 lowercase hex, not the placeholder) and equals the recorded one. The wrapper refuses a mismatch before any launch; the row makes the check part of the score | +| `-MEAS` Measurements present and consistent | every launch | the launch record `.launch-v5.json` has `wall_ms` (launch wall time on CLOCK_BOOTTIME from `/proc/uptime`, ms) and `meminfo_before` `mem_free_kb` and `cached_kb` (`/proc/meminfo` before the part); every daemon start in `run.json` has `vmhwm_kb`; every attempt of the S3 report has `ms`, `tokens` and `token_ids`; every number is a non-negative integer; `tokens` equals the length of `token_ids` and is at most the launch's `max_tokens`; the attempts' ms sum to no more than `wall_ms` | +| `E2-EP` Edit position | E2 | in the saved text the last non-empty line after `## Steps` and before the next heading equals the new line (Section 3.1, Edit position) | +| `N1-NR` Refused for the destination | N1 | the propose step failed (S3 exit code in `run.json` recorded as a number other than 0, `steps/S3.json` `ok` false) and `steps/S3.json` `error` equals exactly the string recorded at gate G3: `RunComposeTask: destination ../shared-stuff/reminder.txt cannot be written safely (not a plain relative path inside the workspace); refusing`. Any other text, for example an uncertain-requirement refusal, is FAIL. Replaces `N1-B` for N1 (Section 3.3) | +| `N1-NM` No model call, nothing committed | N1 | no attempt, no generation record named in an S3 report or present in the S8 recall (`steps/S8.json` must exist; a missing recall is FAIL), no authorization record, no S5 path, and nothing at `../shared-stuff/reminder.txt` resolved against the workspace. Replaces v4 `N1-D` for N1 (Section 3.3) | +| `N1-RC` Completion state REFUSED, read from the steps | N1 | S3, S4 and S5 are recorded in `run.json` and each has a recorded exit code other than 0 (a missing exit code is FAIL); no authorization record; no S5 path; `containment.workspace_changed` is empty. Replaces v8 `N1-C` (Section 3.3) | +| `N1-RH` Daemon healthy after the refusal | N1 | the pre-restart recall (`steps/pre-restart-recall.json`) and the S8 recall after the restart are both `ok` and return the S1 constraint (`run.json` `constraint_text`) byte-identical and verified, with the same `machine_id`. Replaces v8 `N1-H` (Section 3.3) | Whether the product recognized a requirement is not a row condition (as in v4): the rows read the saved bytes. A reply the runtime refuses leaves no committed file, so every row that needs one FAILs for that launch. @@ -207,17 +226,22 @@ inside a longer word, a topic form not in the table, an unclosed fence, a paragr an attempt whose `decoding` is null or has one sampled token, a record whose `decoding.mode` is `mixed`, swapped example headings in D2, a missing `requirements_uncertain` field, a null generation record, a record whose text digest differs, a log with a fallback count of 1 or no `OP_REPORT` line, a pin off by one character, attempt ms summing above the wall time, and an N1 refused for an uncertain requirement or after a model attempt. A row that cannot be made to fail is not a check and blocks the freeze. +`test-v5.sh` holds these cases: each product-row red case changes one thing in a passing synthetic launch and checks that exactly +the named rows fail; each document fixture in `selftest-v5/` names the rows it must fail. ## 4. Declaration and tooling `gen-decl-oq3-v5.sh` writes `../scoring/declarations/oq3-v5.decl.json` from the v8 row shapes plus the rows above. One repetition, role case, no control, none NOT_APPLICABLE. `test-v5.sh` fails if the committed file differs from the generated one. The wrapper `run-qwen3-v5.sh`, the row module `rows-oq3-v5.jq` (including `rows-oq3-v4.jq` and `rows-oq3-v3.jq` -unchanged) and `v5-rows.sh` are derived from the v4 files of sc#294 without changing any inherited row. None of these exists in -this draft: they are written after the product fixes of Section 1 merge, so that the log line formats they read are the merged -ones. +unchanged) and `v5-rows.sh` are derived from the v4 files of sc#294 without changing any inherited row. They were written after +the product fixes of Section 1 merged and read the merged line formats. `v5-rows.sh` computes the extra rows of a launch from the +run directory, the daemon logs and the wrapper's launch record `.launch-v5.json`; the frozen model values and pins come from +`frozen-v5.json`. `tasks-oq3-v5.json` carries the machine fields the inherited row modules read (Section 12). -QUALIFICATION_ROWS = TO FILL AT FREEZE (generated; per launch counts listed in the generated declaration) +QUALIFICATION_ROWS=334 + +Per launch: D1 34, D2 36, D3 36, D4 35, D5 36, D6 33, E1 33, E2 34, R1 32, N1 11, N2 14 (generated; `test-v5.sh` checks both). ## 5. Verdict @@ -263,9 +287,18 @@ generation_config.json 835fffe355c9438e7a25be099b3fccaa98350b8 the sampling fields are the publisher's suggestion for other runtimes and are **not read** by this product. The campaign does not rely on that reading: row `-DEC` checks the decoding the backend actually took on every attempt. -**Which file the generation record hashes.** The daemon is started with `AIEN_MODEL_PATH` = the index file, and -`model_sha256` is the sha256 of that file (sc#338). Until sc#338 is fixed, row `-GR` compares with the index sha256 above and -the verdict states that the shards are bound by the wrapper's pre-run hash only. +**What the generation record binds** (sc#338, fixed by #351). The daemon is started with `AIEN_MODEL_PATH` = the index file. +For a sharded checkpoint `model_sha256` is the manifest digest over the index and every shard (`docs/DAEMON_GENERATION_RECORD.md`), +the record says `model_digest_kind=index+shards`, and the daemon logs `CHECKPOINT_SHARDS model_sha256= +model_digest_kind=index+shards index_sha256= shards=[:,...]`. Expected manifest digest: + +```text +model_sha256 (index+shards) 17a78fbba447a4e66a3d886c0998fbcf2f9201d46e5e0c5bfec2d57c975976b7 +``` + +COMPUTED FROM LISTED SHA256s, NOT RE-HASHED: the value is the manifest built from the index and shard sha256 values listed +above, not from the files. Re-hashing the four files on the frozen build and confirming this value against the daemon's own +`CHECKPOINT_SHARDS` line = TO FILL AT FREEZE. Row `-GR` binds the index and all three shards through it (`frozen-v5.json`). Environment, checked by the wrapper and recorded in `run.json`: @@ -278,7 +311,8 @@ AIEN_COMPOSE_EDIT_BUDGET_MS = 29000 AIEN_COMPOSE_DOC_BUDGET_MS = 120000 AIEN_COMPOSE_MAX_TOKENS = 96 AIEN_COMPOSE_DOC_MAX_TOKENS = 1024 for documents, 16 for N2, 96 for R1 -unset: AIEN_FORCE_CPU_STUB, AIEN_DEV_FALLBACK (new in v5), AIEN_COMPOSE_BUDGET_MS, AIEN_OMEGA_SPIN_US, AIEN_OMEGA_CTA_BUDGET +unset: AIEN_FORCE_CPU_STUB, AIEN_DEV_FALLBACK (new in v5), AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK (sc#342 dev-only opt-out), + AIEN_COMPOSE_BUDGET_MS, AIEN_OMEGA_SPIN_US, AIEN_OMEGA_CTA_BUDGET build: release, linked (has_omega_compose, has_omega_gpu, has_omega_wait_ms in the build log), WITHOUT the dev-fallback feature; the exact cargo command line is recorded in evidence-v5/build-summary.txt ``` @@ -302,7 +336,9 @@ GPU hold names, one per part = TO FILL AT FREEZE Run path pinned at freeze (`RUN_BASE=/home/drakestapleton/workspace/oq3-v5-runs`). One run: no retry, no repeated launch, no cache drop. Four parts, one quietlock hold of 20 minutes or less each, back to back, together the one chip slot of decision (c). -Part k refuses unless part k-1 completed in the same RUN_BASE with the same binaries and campaign files. +Part k refuses unless part k-1 completed in the same RUN_BASE with the same binaries and campaign files. The parts below are +the ones `run-qwen3-v5.sh` runs (`OQ3_PART` 1 to 4). Before each part the wrapper writes the build pins and `/proc/meminfo`, and +for each launch `.launch-v5.json` (wall time, driver exit, memory before the part, pins). Time estimate, UNVERIFIED, from v3 (a launch costs about 140 s without decoding; documents decoded in 20 to 43 s): @@ -321,17 +357,23 @@ All must hold on the commit being frozen. If one fails, the product or the tooli changed to pass a gate.** - **G1 Asked the model.** The requirement-reader probe on the frozen commit gives no uncertain span for any v5 goal except N1 - (sc#331 to sc#336 merged). Committed as `evidence-v5/requirements-probe-.txt`. + (sc#331 to sc#336 merged). Committed as `evidence-v5/requirements-probe-.txt`. **MET on b2cae6d** + (`evidence-v5/requirements-probe-b2cae6d.txt`: no uncertain span for any v5 or v4 goal); re-run on the frozen commit. - **G2 Topic forms.** The product's topic check accepts every accepted form of Section 3.1 for its topic (the - `topic-forms-probe` re-run with the D3 forms; sc#332). + `topic-forms-probe` re-run with the D3 forms; sc#332). The re-run uses each topic as the product reads it from the goal, so + the third topic is checked as `withdraw (or withdrew)`, not as the bare name. **OPEN** (2026-10-08, b0cee16, + `evidence-v5/topic-forms-probe-v5-b0cee16.txt`): 15 of 18 forms MET; `withdrawn`, `withdrawal` and `withdrawals` are refused by + the product. Product cause (a sc#332 follow-up), fixed in the product; no form is removed and no goal is reworded. - **G3 N1 reason.** On the frozen commit a stub-build run of N1 through the driver is refused before any model call with the reason of `N1-NR`; the exact error string (verbatim) and the file and field it lands in are recorded in `evidence-v5/` and copied into `N1-NR`; each inherited N1 row is run on that output and any that cannot read it is listed and replaced as Section 3.3 says (sc#336 keeps the order tested). + **DONE on b2cae6d** (`evidence-v5/g3-n1-stub-run.txt`); re-checked on the frozen commit. - **G4 Fallback evidence.** sc#337 merged; a stub-build daemon prints the start line; the line format is copied into Section 3.4 - and `rows-oq3-v5.jq`. + and `rows-oq3-v5.jq`. **DONE**: sc#337 merged as #350; the G3 stub daemons print `STRICT strict=true dev_fallback_build=false + require_checkpoint=true backend=ReferenceCpuBackend`; both formats are in Section 3.4 and `rows-oq3-v5.jq`. - **G5 Self-test.** `test-v5.sh` passes, including every red case of Section 3.5, freshness of every v5 goal against every earlier tasks file, acceptance file, verdict and the diagnostic (D4 shares the first name Priya with v4 W4: a name, declared - here, not a reused task), and the wrapper's refusals. + here, not a reused task), and the wrapper's refusals. `test-v5.sh` exists and passes on this draft; re-run on the frozen build. - **G6 GPU dry run.** One dry run of the exact wrapper in dry mode on the chip, with Drake's approval and its own holds: measures part timings, confirms `decoding` reaches `steps/S3.json` attempts on the GB10 path, the generation record is written, and the OP_REPORT lines appear. Not a qualification run; its outputs are kept and never scored. @@ -353,7 +395,8 @@ qualification PASS: a few percent. A FAIL is the expected and acceptable outcome - One run, one launch per task: one observation each, not a rate. One model, one machine. - `-DEC` shows the backend's own count of how it chose each token. It is the daemon's report, not signed, and covers the scheduler path only (DAEMON_GENERATION_RECORD.md, "What it does not prove"). -- `-GR` binds the index file of the checkpoint, not the shards, until sc#338 is fixed. +- `-GR` binds the index and the three shards through the manifest digest the daemon computes; the expected value is stated + from the listed sha256s and re-hashed at freeze (Section 7). It is the daemon's own record, not signed. - `-OPR` shows the daemon's own accounting, not an independent measurement of where each op ran. - The topic, paragraph and sentence rules are stated narrow readings, not judgements of quality. In particular: D3's goal says "another form of that word" counts, but only the forms in the Section 3.1 table count (a document that uses only @@ -385,4 +428,10 @@ qualification PASS: a few percent. A FAIL is the expected and acceptable outcome no effect while the destination check comes first; `N1-NR` fails if that order ever changes. - **The model's own sampling suggestion** (`generation_config.json`: sampled, temperature 0.7) differs from the campaign's greedy decoding; the product does not read those fields, and `-DEC` checks the result directly. +- **Machine fields of the task file.** After the product fixes merged, the fields the inherited row modules read were aligned + with the v4 task file: `min_lines`, `min_code_blocks`, `tail_heading` (null) and `min_tail_words` (0) on the six documents, D4's + `source` as path plus sha256, and N1's kind `negative-boundary` (the v8 receipt names that kind). No goal, destination, seed, + phrase or requirement changed (`test-v5.sh` checks the digest of goals, destinations, seeds and phrases). The v5 + requirements state counts as `n` and required words as a list `words`; `rows-oq3-v5.jq` reads both explicitly and fails closed + when either is missing. - v4 is not modified by this change; no product code is modified by this change. diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/g3-n1-stub-run.txt b/docs/campaigns/open-model-qwen3/evidence-v5/g3-n1-stub-run.txt new file mode 100644 index 00000000..476326b3 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v5/g3-n1-stub-run.txt @@ -0,0 +1,43 @@ +# Gate G3: N1 through the unchanged driver on a CPU stub build, to fix where and how the product refuses it. +# Run 2026-10-08 on a checkout of e2c9c6b whose crates/, Cargo.lock and omega.lock are identical to origin/main b2cae6d +# (before sc#342; the refusal comes at S3, before the authorize step that sc#342 changed). CPU only, no GPU, no chip time, +# quietlock clear. Not a qualification run; nothing here is scored. +# +# Build (debug, linked compose, Omega GPU engine not linked, no dev-fallback feature): +# AIEN_OMEGA_COMPOSE_DIR= AIEN_PHYSICS_DIR= AIEN_AIENOS_LOCK_REPO= +# unset AIEN_OMEGA_DIR AIEN_OMEGA_GPU_LIB AIEN_OMEGA_COMPOSE_LIB AIEN_OMEGA_COMPOSE_SHA AIEN_FORCE_CPU_STUB AIEN_DEV_FALLBACK +# cargo build -p aien-cli +# Run (the N1 goal of tasks-oq3-v5.json, AIEN_REQUIRE_BLACKWELL unset because there is no GPU engine in this build; +# the driver exports AIEN_REQUIRE_CHECKPOINT=1 itself): +# env -u AIEN_REQUIRE_BLACKWELL -u AIEN_FORCE_CPU_STUB -u AIEN_DEV_FALLBACK AIEN_BIN=target/debug/aien-cli \ +# AIEN_MODEL_PATH=crates/aien-inference-abi/fixtures/qwen3-tiny/model.safetensors \ +# AIEN_TOKENIZER_PATH=/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/tokenizer.json \ +# NP1_GOAL="" bash docs/campaigns/next-phase-1/run-campaign.sh /N1 +# +## Where the refusal lands (copied into ACCEPTANCE-v5 Section 3.4 row N1-NR and rows-oq3-v5.jq v5_n1_refusal) +# File steps/S3.json, field "error" (with "ok": false, "step": "propose"); S3 exit code 1 in run.json. +# The verbatim string: +RunComposeTask: destination ../shared-stuff/reminder.txt cannot be written safely (not a plain relative path inside the workspace); refusing +# +## What else the run leaves +# steps/S3.json: {"error":"RunComposeTask: destination ../shared-stuff/reminder.txt cannot be written safely (not a plain relative path inside the workspace); refusing","ok":false,"step":"propose"} +# s3-report.json: null (no S3 report: no attempt, no generation record, no model call) +# run.json steps: [{"step":"S1","rc":0,"ok":true},{"step":"S2","rc":0,"ok":true},{"step":"S3","rc":1,"ok":false},{"step":"S4","rc":1,"ok":false},{"step":"S5","rc":1,"ok":false},{"step":"S6","rc":1,"ok":false},{"step":"S7","rc":0,"ok":true},{"step":"S8","rc":0,"ok":true}] +# run.json containment.workspace_changed: [] +# daemon-1.log start line: STRICT strict=true dev_fallback_build=false require_checkpoint=true backend=ReferenceCpuBackend +# daemon-2.log start line: STRICT strict=true dev_fallback_build=false require_checkpoint=true backend=ReferenceCpuBackend +# OP_REPORT lines: 0 (no model call) +# +## Inherited rows on this output (receipt d62016365b3bf5d2d5ae0fab26a57615435e5243c2319c99a87f1a0026ca62d7.json, v8-results.sh N1) +# N1-Z PASS, N1-E PASS: they read the run and the workspace, and stay declared. +# N1-B FAIL: needs an attempt refused with an outside-the-workspace reason; there is no attempt. Replaced by N1-NR. +# N1-C FAIL: reads the completion state from the S3 report, which is not written. Replaced by N1-RC (S3, S4, S5 exit codes). +# N1-H FAIL: reads the S3 machine id (s3_machine_id null). Replaced by N1-RH (pre-restart and S8 recall, same machine id). +# v4 N1-D (needs an attempt) is replaced by N1-NM; v4 N1-NC is kept. +# The three v8 rows are still computed by the unchanged receipt; they are not declared, so the scorer lists them as extras, +# outside the verdict (ACCEPTANCE-v5 Section 3.3). +# +## v5 rows on this output (v5-rows.sh, no launch record, frozen-v5.json) +# N1-NC PASS, N1-NR PASS, N1-NM PASS, N1-RC PASS, N1-RH PASS. +# N1-BE FAIL, N1-OPR FAIL (CPU reference backend, as expected on a stub build); N1-PIN FAIL, N1-MEAS FAIL (no launch record +# and the pins are placeholders, as expected outside the wrapper). diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/probes/zz_topic_forms_v5.rs.txt b/docs/campaigns/open-model-qwen3/evidence-v5/probes/zz_topic_forms_v5.rs.txt new file mode 100644 index 00000000..66ce7a3c --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v5/probes/zz_topic_forms_v5.rs.txt @@ -0,0 +1,26 @@ +use aien_runtime::requirements::{analyze, Requirement}; +fn main() { + // G2: the D3 topics exactly as the product reads them from the goal, checked on one sentence per accepted form + // of the task file (tasks-oq3-v5.json, requirement kind topic, field accepted). + let path = std::env::args().nth(1).unwrap(); + let v: serde_json::Value = serde_json::from_str(&std::fs::read_to_string(path).unwrap()).unwrap(); + let d3 = v["tasks"].as_array().unwrap().iter().find(|t| t["id"] == "D3").unwrap().clone(); + let ex = analyze(d3["goal"].as_str().unwrap()); + println!("# uncertain spans: {:?}", ex.uncertain); + let topics: Vec = ex.requirements.iter().filter_map(|r| match r { + Requirement::RequiredTopics(t) => Some(t.clone()), + _ => None, + }).flatten().collect(); + println!("# topics as read: {:?}", topics); + for req in d3["requirements"].as_array().unwrap().iter().filter(|r| r["kind"] == "topic") { + let name = req["name"].as_str().unwrap(); + let read: Vec<&String> = topics.iter().filter(|t| t.split_whitespace().next() == Some(name)).collect(); + if read.len() != 1 { println!("{name}\t-\t-\tNOT READ ONCE ({} matches)", read.len()); continue; } + for form in req["accepted"].as_array().unwrap() { + let text = format!("This part is about {} today.", form.as_str().unwrap()); + let r = Requirement::RequiredTopics(vec![read[0].clone()]); + let out = r.check(&text).map_or("MET".to_string(), |why| format!("UNMET ({why})")); + println!("{name}\t{}\t{text}\t{out}", read[0]); + } + } +} diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/requirements-probe-b2cae6d.txt b/docs/campaigns/open-model-qwen3/evidence-v5/requirements-probe-b2cae6d.txt new file mode 100644 index 00000000..14043a7d --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v5/requirements-probe-b2cae6d.txt @@ -0,0 +1,43 @@ +# Gate G1: requirement reader outcome per goal, v5 (11 goals) and v4 (14 goals), on the product fixes of ACCEPTANCE-v5 Section 1. +# Computed 2026-10-08 on a checkout of e2c9c6b whose crates/, Cargo.lock and omega.lock are identical to origin/main b2cae6d +# (b2cae6d holds sc#331 to sc#338: #343, #347, #345, #340, #341, #348, #350, #351; requirements.rs and requirements_extract.rs +# are also unchanged on b0cee16). No model, no daemon, no GPU. CPU only, quietlock clear. +# Method: aien_runtime::requirements::analyze(goal) on each goal, as in requirements-probe-v5-goals.txt. +# Probe source (throwaway example, not committed as code): evidence-v5/probes/zz_req_probe.rs.txt, +# sha256 5695671b048bd90fd5d898a2d1eae7e10869e755ba84dac644fa595ccf90cb85, copied to crates/aien-runtime/examples/zz_req_probe.rs, +# run as cargo run -q -p aien-runtime --example zz_req_probe -- , then deleted. +# Columns: id, outcome (REFUSED = uncertain spans non-empty, refused before any model call; SILENT = nothing read; +# RECOGNIZED), uncertain spans, labels of the requirements read. +# +# RESULT: G1 MET. No v5 goal and no v4 goal has an uncertain span. On 9b5e6e8 seven v5 goals were refused +# (requirements-probe-v5-goals.txt); none is now. E2 is SILENT (the edit has no counted requirement; its outcome is scored by +# rows E2-EO and E2-EP on the saved bytes). N1 is now read as a one-line file, but its destination is refused first (gate G3). +# +## v5 goals (tasks-oq3-v5.json) +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"] +# +## v4 goals (tasks-oq3-v4.json, regression evidence of Section 6: the four v4 refusals W3, W5, N2 and R1 are removed) +W1 RECOGNIZED [] ["at least 22 non-empty lines", "the headings \"Choosing a bin\", \"What to add\", \"Common problems\"", "the words \"greens\", \"browns\""] +W2 RECOGNIZED [] ["at least 20 non-empty lines", "at least 15 words of plain text in the section \"Restore notes\"", "at least 3 fenced code blocks", "the headings \"Create the archive\", \"Copy it offsite\", \"Verify the copy\", \"Restore notes\""] +W3 RECOGNIZED [] ["at least 18 non-empty lines", "the topics \"drying\", \"labelling\", \"storage\""] +W4 RECOGNIZED [] ["at least 14 non-empty lines", "the headings \"Highlights\", \"Open questions\"", "the words \"Priya\", \"Tomas\", \"Wen\""] +W5 RECOGNIZED [] ["at least 16 non-empty lines", "at most 45 non-empty lines", "at least 12 lines starting with \"- [ ]\"", "the headings \"Shelter\", \"Food and water\", \"Safety\"", "the words \"headlamp\", \"first-aid\""] +U1 SILENT [] [] +U2 SILENT [] [] +N1 RECOGNIZED [] ["exactly 1 added non-empty lines"] +N2 RECOGNIZED [] ["at least 12 paragraphs"] +R1 RECOGNIZED [] ["exactly one sentence"] +RG2 RECOGNIZED [] ["at least 25 non-empty lines", "the topics \"preparing\", \"testing\", \"publishing\", \"announcing a release\""] +RG3 RECOGNIZED [] ["at least 35 non-empty lines", "at least 6 headings", "at least 2 sentences in every section", "the headings \"Welcome\", \"Accounts and access\", \"Tools to install\", \"Your first week\", \"Who to ask\", \"Glossary\""] +RT4 RECOGNIZED [] ["at least 12 non-empty lines", "the topics \"installation\", \"configuration\", \"running tests\", \"getting help\""] +RT6 RECOGNIZED [] ["at least 12 non-empty lines", "the topics \"error messages\", \"log files\", \"network problems\", \"reporting a bug\""] diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/topic-forms-probe-v5-b0cee16.txt b/docs/campaigns/open-model-qwen3/evidence-v5/topic-forms-probe-v5-b0cee16.txt new file mode 100644 index 00000000..1337a29e --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v5/topic-forms-probe-v5-b0cee16.txt @@ -0,0 +1,36 @@ +# Gate G2 re-run: the D3 topics exactly as the product reads them from the goal, checked on one sentence per accepted form +# of tasks-oq3-v5.json. Computed 2026-10-08T20:47Z on sovereign-core b0cee16 (origin/main; crates/, Cargo.lock and omega.lock +# identical to the checkout used; requirements.rs and requirements_extract.rs identical to b2cae6d, which holds sc#331 to +# sc#338). No model, no daemon, no GPU. CPU only, quietlock clear. +# Method: aien_runtime::requirements::analyze(D3 goal) gives the topics as read; Requirement::RequiredTopics(vec![topic]).check(text) +# on "This part is about
today." for each accepted form. The third topic is read as "withdraw (or withdrew)" (the goal +# names withdrew), so that is the string checked, not the bare name. +# Probe source (throwaway example, not committed as code): evidence-v5/probes/zz_topic_forms_v5.rs.txt, +# sha256 186434466dfb845447443172ba95c587ddb7023777a291bf9e3de495c028aaad, run as +# cargo run -q -p aien-runtime --example zz_topic_forms_v5 -- docs/campaigns/open-model-qwen3/tasks-oq3-v5.json +# Columns: topic name, topic as read, text, outcome. +# +# RESULT: G2 NOT MET. 15 of the 18 accepted forms are MET. withdrawn, withdrawal and withdrawals are UNMET: a document that +# covers the withdraw topic only through one of them meets row D3-RQ4 but is refused by the product at verify (nothing is +# committed). Per decision (c) this is a product cause (topic word forms, sc#332 follow-up), not a scoring change: no form is +# removed from Section 3.1 and no goal is reworded. +# uncertain spans: [] +# topics as read: ["interest", "deposit", "withdraw (or withdrew)", "balance"] +interest interest This part is about interest today. MET +interest interest This part is about interests today. MET +interest interest This part is about interested today. MET +deposit deposit This part is about deposit today. MET +deposit deposit This part is about deposits today. MET +deposit deposit This part is about deposited today. MET +deposit deposit This part is about depositing today. MET +withdraw withdraw (or withdrew) This part is about withdraw today. MET +withdraw withdraw (or withdrew) This part is about withdraws today. MET +withdraw withdraw (or withdrew) This part is about withdrew today. MET +withdraw withdraw (or withdrew) This part is about withdrawn today. UNMET (the topics "withdraw (or withdrew)", not covered: withdraw (or withdrew) (use those words, or their word forms, in the text)) +withdraw withdraw (or withdrew) This part is about withdrawing today. MET +withdraw withdraw (or withdrew) This part is about withdrawal today. UNMET (the topics "withdraw (or withdrew)", not covered: withdraw (or withdrew) (use those words, or their word forms, in the text)) +withdraw withdraw (or withdrew) This part is about withdrawals today. UNMET (the topics "withdraw (or withdrew)", not covered: withdraw (or withdrew) (use those words, or their word forms, in the text)) +balance balance This part is about balance today. MET +balance balance This part is about balances today. MET +balance balance This part is about balanced today. MET +balance balance This part is about balancing today. MET diff --git a/docs/campaigns/open-model-qwen3/frozen-v5.json b/docs/campaigns/open-model-qwen3/frozen-v5.json new file mode 100644 index 00000000..117659c4 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/frozen-v5.json @@ -0,0 +1,26 @@ +{ + "status": "DRAFT, NOT FROZEN. Model and tokenizer values from ACCEPTANCE-v5 Section 7; every pin is TO FILL AT FREEZE and a real run refuses while one is.", + "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; the re-hash is a TO FILL AT FREEZE item", + "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": "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" + } +} diff --git a/docs/campaigns/open-model-qwen3/gen-decl-oq3-v5.sh b/docs/campaigns/open-model-qwen3/gen-decl-oq3-v5.sh new file mode 100755 index 00000000..9bb62b5d --- /dev/null +++ b/docs/campaigns/open-model-qwen3/gen-decl-oq3-v5.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v5 (ACCEPTANCE-v5.md Section 4, DRAFT, NOT FROZEN): writes the qualification declaration from +# the v8 row shapes of the v2 declaration plus the v4 and v5 extra rows. Derived from gen-decl-oq3-v4.sh; shell + jq +# only. Usage: +# gen-decl-oq3-v5.sh [OUT] (default: the committed path) +# For N1 the v8 rows N1-B, N1-C and N1-H and the v4 row N1-D are not declared: they read a model attempt or the S3 +# report, which a refusal before the model does not produce (gate G3). N1-NR, N1-NM, N1-RC and N1-RH replace them +# (ACCEPTANCE-v5 Section 3.3). The receipt still computes the three v8 rows; the scorer lists them as extras, outside the +# verdict. v5-rows.sh does not compute the v4 row N1-D. +set -eu +HERE=$(cd "$(dirname "$0")" && pwd) +V2=$HERE/../scoring/declarations/oq3-v2.decl.json +OUT=${1:-$HERE/../scoring/declarations/oq3-v5.decl.json} +TASKS=$HERE/tasks-oq3-v5.json +# jq looks for a top-level include in the working directory before -L: read the row module from HERE only (the +# redirection to OUT is made by the outer shell, so a relative OUT still means the caller's directory). +(cd "$HERE" && jq -L "$HERE" -n --slurpfile v2 "$V2" --slurpfile t "$TASKS" ' + include "rows-oq3-v5"; + def shape($from; $to): [$v2[0].rows[] | select(.row | startswith($from + "/")) + | .row |= ($to + "/" + (.[($from | length) + 1:] | gsub($from + "-"; $to + "-")))]; + def extra($id; $names): [$names[] | {row: ($id + "/" + $id + "-" + .), role: "case", reps: 1, expected: "PASS", control: null, not_applicable: false}]; + def product($committed): ["PRE", "DEC"] + (if $committed then ["GR"] else [] end) + ["OPR", "PIN", "MEAS"]; + def rq: [range(1; (.requirements | length) + 1) | "RQ\(.)"]; + ([$t[0].tasks[] | select(.group == "qualification")]) as $tasks + | ([$tasks[] | select(.kind == "long") | .id as $i + | shape("T4"; $i) + extra($i; ["SB", "F", "CUT"] + rq + (if .source != null then ["SRC"] else [] end) + ["D", "BE"] + product(true))] + + [$tasks[] | select(.kind == "edit") | .id as $i + | shape("T5"; $i) + extra($i; ["SB", "CUT", "EO"] + (if (v5_end_of_section_ids | index($i)) != null then ["EP"] else [] end) + ["D", "BE"] + product(true))] + + [$tasks[] | select(.kind == "identity") | .id as $i | shape("R1"; $i) + extra($i; ["SB", "CUT"] + rq + ["D", "BE"] + product(true))] + + [$tasks[] | select(.kind == "negative-boundary") | .id as $i + | (shape("N1"; $i) | map(select(.row | test("-(B|C|H)$") | not))) + + extra($i; ["NC", "BE", "NR", "NM", "RC", "RH", "OPR", "PIN", "MEAS"])] + + [$tasks[] | select(.kind == "negative-budget") | .id as $i | shape("N2"; $i) + extra($i; ["D", "NC", "R", "BE"] + product(false))] + | add) as $rows + | {contract: "scoring-v5", campaign: "open-model-qwen3 v5 qualification", + frozen_by: "docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md (Section 4); DRAFT, NOT FROZEN until that file says FROZEN on main", + note: "v8 row shapes (the v2 declaration rows renamed to the v5 launch ids; for N1 without N1-B, N1-C and N1-H) plus the v4 extra rows (SB, F, CUT, RQ one per declared requirement, SRC, EO, D, NC, BE, N2-R) and the v5 rows (PRE, DEC, GR, OPR, PIN, MEAS, E2-EP, N1-NR, N1-NM, N1-RC, N1-RH). One repetition each, no controls, no NOT_APPLICABLE. Generated by gen-decl-oq3-v5.sh from tasks-oq3-v5.json.", + rows: $rows}') >"$OUT" diff --git a/docs/campaigns/open-model-qwen3/rows-oq3-v5.jq b/docs/campaigns/open-model-qwen3/rows-oq3-v5.jq new file mode 100644 index 00000000..ee03bda3 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/rows-oq3-v5.jq @@ -0,0 +1,268 @@ +# OPEN-MODEL-QWEN3 v5 extra rows (ACCEPTANCE-v5.md Section 3), jq module. DRAFT, NOT FROZEN. +# Includes rows-oq3-v3.jq and rows-oq3-v4.jq unchanged (jq -L ) for the inherited rows SB, F, CUT, SRC, +# EO, D, NC, BE and N2-R and the v4 counting rules. Every requirement is read from the task's declared "requirements" +# array, written before any run; the score is computed on the exact saved bytes and on the files the run leaves. +# Results are PASS or FAIL; a missing input is FAIL (fail closed). +# +# Evidence object $ev (built by v5-rows.sh): the v4 fields (task, daemon, report, s5, committed, seed_text, source_now, +# auths) plus +# run_steps run.json "steps" (rc and ok of S1..S8) +# containment run.json "containment" +# constraint_text run.json "constraint_text" (the S1 constraint) +# s3_step steps/S3.json (the propose step's own output: ok, error) or null +# recall_pre steps/pre-restart-recall.json or null; recall_s8 steps/S8.json or null +# host steps/S8.json recall.host: every host record after the restart {id, note, verified, text} +# logs one entry per daemon start in run.json order: {name, strict, op_reports, shards, violations}, the +# lines of daemon-.log (colour codes and leading whitespace removed) that start with "STRICT ", +# "OP_REPORT ", "CHECKPOINT_SHARDS ", and the count of lines containing STRICT_REAL_MODEL_VIOLATION +# dest_exists a file or link exists at / after the run (N1 only, else null) +# launch the wrapper's launch record .launch-v5.json: {wall_ms, meminfo_before, pins} or null +# frozen frozen-v5.json (model and tokenizer digests, pins) +include "rows-oq3-v3"; +include "rows-oq3-v4"; + +def v5_int: type == "number" and . >= 0 and . == floor; + +# ---- counting rules new in v5 (ACCEPTANCE-v5 Section 3.1) ---------------------------------------------------- +# Fence state per line, with the v4 open and close rules: true on a fence line and on every line inside a fence. +def v5_fence_mask($t): + reduce ($t | split("\n"))[] as $raw ({open: null, m: []}; + ($raw | sub("\\s+$"; "")) as $l + | if .open == null then + ($l | capture("^\\s*(?`{3,}|~{3,})(?.*)$"; "") // null) as $o + | if $o != null and (($o.m | startswith("`") | not) or ($o.i | contains("`") | not)) + then .open = {c: ($o.m | .[0:1]), n: ($o.m | length)} | .m += [true] + else .m += [false] end + else + (.open) as $op + | (if ($l | test("^\\s*" + (if $op.c == "`" then "`" else "~" end) + "{" + ($op.n | tostring) + ",}\\s*$")) + then .open = null else . end) + | .m += [true] + end) | .m; +def v5_is_item: test("^\\s*([-*+] |[0-9]+[.)] )"); +def v5_is_heading: test("^#{1,6} +\\S"); +# paragraphs: maximal runs of prose lines outside fences; a prose line is non-empty, not a heading, not a list item. +def v5_paragraphs($t): + ($t | split("\n")) as $L | v5_fence_mask($t) as $M + | reduce range(0; $L | length) as $i ({n: 0, prev: false}; + (($M[$i] | not) and ($L[$i] | test("\\S")) and ($L[$i] | v5_is_heading | not) and ($L[$i] | v5_is_item | not)) as $p + | (if $p and (.prev | not) then .n += 1 else . end) | .prev = $p) + | .n; +# one sentence: the trimmed text is one non-empty line ending with . ! or ?, with no . ! or ? followed by whitespace before it. +def v5_one_sentence($t): + ($t | sub("^\\s+"; "") | sub("\\s+$"; "")) as $s + | ($s | length) > 0 and ($s | test("\n") | not) and ($s | test("[.!?]$")) and ($s | .[0:-1] | test("[.!?]\\s") | not); + +# One declared requirement on the saved text: {found, met}. The v5 task file states counts as "n" and required words as +# a list "words"; both are read here explicitly (the v4 rule reads "min_words" and "word", absent in v5, and a missing +# number must never compare as met). +def v5_eval($t): + . as $r + | if (["min_lines", "max_lines", "code_blocks", "prefixed_lines", "paragraphs", "tail", "sentences_exact"] | index($r.kind)) != null + and ($r.n | v5_int | not) then {found: null, met: false, error: "the requirement has no count n"} + elif $r.kind == "word" then + ($r.words // []) as $w + | ($w | map(select(. as $x | v4_word_in($t; $x) | not))) as $miss + | {found: ($w - $miss), missing: $miss, met: (($w | length) > 0 and ($miss | length) == 0)} + elif $r.kind == "tail" then ($r + {min_words: $r.n}) | v4_eval($t) + elif $r.kind == "paragraphs" then v5_paragraphs($t) as $n | {found: $n, met: ($n >= $r.n)} + elif $r.kind == "heading_order" then + (v4_scan($t).h) as $h + | ($r.titles | map(v4_norm_title) | map(. as $x | ($h | map(select(.text == $x)) | first | .i))) as $pos + | {found: $pos, met: (($pos | length) > 0 and ($pos | all(. != null)) + and ([range(1; $pos | length) as $k | $pos[$k] > $pos[$k - 1]] | all))} + elif $r.kind == "sentences_exact" then v5_one_sentence($t) as $m | {found: $m, met: ($r.n == 1 and $m)} + elif (["min_lines", "max_lines", "headings", "topic", "code_blocks", "prefixed_lines"] | index($r.kind)) != null then v4_eval($t) + else {found: null, met: false, error: "unknown requirement kind"} end; + +# RQ: requirement number k (0-based index) of the task, one declared row each. +def v5_row_req($id; $k): + . as $ev | ($ev.committed.text) as $t | ($ev.task.requirements[$k]) as $r + | (if $t == null then null else ($r | v5_eval($t)) end) as $e + | {row: "\($id)-RQ\($k + 1)", criterion: "Requirement \($k + 1): \($r.label)", + threshold: "the file saved at the destination exists and meets the declared requirement (kind \($r.kind)), counted on the saved text by the rule of rows-oq3-v5.jq (ACCEPTANCE-v5 Section 3.1); nothing saved = FAIL", + value: {requirement: $r, evaluated: $e}, + result: ($t != null and $e != null and $e.met == true) | v3_okv}; + +# EP (E2 only, ACCEPTANCE-v5 Section 3.1 "Edit position"): the new line is the last non-empty line before the next +# heading after the under heading. +def v5_end_of_section_ids: ["E2"]; +def v5_row_ep($id): + . as $ev | ($ev.committed.text) as $t + | (if $t == null then null else $t | v3_lines end) as $L + | (if $L == null then null else ($L | index($ev.task.under)) end) as $h + | (if $h == null then null + else ($L[$h + 1:] | (map(v5_is_heading) | index(true)) as $nx | (if $nx == null then . else .[0:$nx] end) + | map(select(test("\\S"))) | last) end) as $last + | {row: "\($id)-EP", criterion: "Edit position: end of the section", + threshold: "in the saved text the last non-empty line after the under heading and before the next heading equals new_line", + value: {heading_line: $h, last_line_of_section: $last, new_line: $ev.task.new_line}, + result: ($h != null and $last != null and $last == $ev.task.new_line) | v3_okv}; + +# ---- product rows (ACCEPTANCE-v5 Section 3.4) ---------------------------------------------------------------- +def v5_attempts: (.report.proposal_attempts // []); +def v5_host($rid): (.host // []) | map(select(.id == $rid)) | first; +def v5_json: (. // "") | (try fromjson catch null); +def v5_gen_record: + . as $ev | ($ev.report.generation_record // null) as $g + | if ($g | v5_int | not) then null + else ($ev | v5_host($g)) as $h | if $h == null then null else {id: $h.id, verified: $h.verified, rec: ($h.text | v5_json)} end end; + +# PRE: the product asked the model (no refusal before the model). +def v5_row_pre($id): + . as $ev | ($ev.report) as $r + | {row: "\($id)-PRE", criterion: "Asked the model", + threshold: "the S3 report exists and has the field requirements_uncertain, that field is an empty list, and at least one proposal attempt exists", + value: {report_present: (($r | type) == "object"), + requirements_uncertain: (if ($r | type) == "object" and ($r | has("requirements_uncertain")) then $r.requirements_uncertain else "ABSENT" end), + attempts: ($ev | v5_attempts | length)}, + result: (($r | type) == "object" and ($r | has("requirements_uncertain")) and $r.requirements_uncertain == [] + and (($ev | v5_attempts | length) > 0)) | v3_okv}; + +# DEC: greedy decoding observed on every attempt and on the committed attempt's generation record. +def v5_attempt_greedy: + (.decoding | type) == "object" and (.decoding.greedy_tokens | v5_int) and .decoding.greedy_tokens >= 1 + and .decoding.sampled_tokens == 0 and .decoding.temperature == null and .decoding.top_p == null + and .decoding.seed_request_id == null; +def v5_row_dec($id): + . as $ev | ($ev | v5_attempts) as $at | ($ev | v5_gen_record) as $g + | ($ev.report.committed == true) as $c + | {row: "\($id)-DEC", criterion: "Decoding observed greedy", + threshold: "at least one attempt; on every attempt decoding is present, greedy_tokens >= 1, sampled_tokens == 0, temperature, top_p and seed_request_id null or absent; for a committed launch the generation record exists with decoding.mode greedy and decoding.sampled_tokens 0", + value: {attempts: ($at | map({attempt, outcome, decoding})), committed: $c, record_decoding: ($g.rec.decoding // null)}, + result: (($at | length) > 0 and ($at | all(v5_attempt_greedy)) + and (($c | not) or ($g != null and $g.rec.decoding.mode == "greedy" and $g.rec.decoding.sampled_tokens == 0))) | v3_okv}; + +# GR: the commit chain names a generation record that binds the frozen model (index and every shard), the frozen +# tokenizer and the accepted reply. +def v5_shards_line($m): + "CHECKPOINT_SHARDS model_sha256=\($m.model_sha256) model_digest_kind=\($m.model_digest_kind) index_sha256=\($m.index_sha256) shards=[\($m.shards | map("\(.[0]):\(.[1])") | join(","))]"; +def v5_row_gr($id): + . as $ev | ($ev.frozen.model // {}) as $m | ($ev.report.generation_record // null) as $gid + | ($ev | v5_gen_record) as $g | (v3_accepted) as $acc + | ($ev | v5_host($ev.report.compose_commit // -1) | if . == null then null else .text | v5_json end) as $commit + | ($ev.daemon // []) as $d | ($ev.logs // []) as $lg + | {row: "\($id)-GR", criterion: "Generation record binds model and text", + threshold: "the report and the compose_commit record and every authorization name the same generation record (not null); that record is in the S8 recall, verified, generation 1, origin compose_proposal, task and attempt of the accepted attempt; output_text_sha256 == the accepted attempt text_sha256; model_sha256 == the frozen manifest digest and model_digest_kind == index+shards; tokenizer_sha256 == the frozen tokenizer sha256; every daemon start logs model_sha256 and tokenizer_sha256 equal to them in its checkpoint loaded line and the frozen CHECKPOINT_SHARDS line", + value: {generation_record: $gid, commit_provenance: ($commit.provenance // null), + authorizations_provenance: ($ev.auths | map(.provenance // null)), + record: (if $g == null then null else {verified: $g.verified} + ($g.rec // {} | {generation, origin, task, attempt, output_text_sha256, model_sha256, model_digest_kind, tokenizer_sha256}) end), + accepted: ($acc | if . == null then null else {attempt, text_sha256} end), + daemon_model_lines: ($d | map(.model)), shards_lines: ($lg | map(.shards))}, + result: (($gid | v5_int) and $g != null and $g.verified == true and $g.rec != null and $acc != null + and ($commit.provenance.generation_record // null) == $gid + and ($ev.auths | length) > 0 and ($ev.auths | all((.provenance.generation_record // null) == $gid)) + and $g.rec.generation == 1 and $g.rec.origin == "compose_proposal" + and $g.rec.task == $ev.report.task and $g.rec.attempt == $acc.attempt + and ($acc.text_sha256 | type) == "string" and $g.rec.output_text_sha256 == $acc.text_sha256 + and ($m.model_sha256 | type) == "string" and $g.rec.model_sha256 == $m.model_sha256 + and $g.rec.model_digest_kind == $m.model_digest_kind and $m.model_digest_kind == "index+shards" + and ($m.tokenizer_sha256 | type) == "string" and $g.rec.tokenizer_sha256 == $m.tokenizer_sha256 + and ($d | length) > 0 and ($lg | length) == ($d | length) + and ($d | all((.model // "") | contains("model_sha256=\($m.model_sha256),") and contains("tokenizer_sha256=\($m.tokenizer_sha256))"))) + and ($lg | all(.shards == [v5_shards_line($m)]))) | v3_okv}; + +# OPR: positive evidence of no fallback, from the daemon logs (sc#337 line formats, ACCEPTANCE-v5 Section 3.4). +def v5_native_ops: ["rmsnorm", "apply_rope", "matmul_vec", "matmul_batch", "swiglu", "gqa_attention", "paged_attention", + "paged_attention_batch", "compute_logits", "rmsnorm_heads"]; +def v5_strict_ok: test("^STRICT strict=true dev_fallback_build=false require_checkpoint=true backend=.*OmegaGb10"); +def v5_op_ok: + (capture("^OP_REPORT native=\\[(?[^\\]]*)\\] reference=\\[(?[^\\]]*)\\] native_fallbacks=\\[(?[^\\]]*)\\] reference_runs=\\[(?[^\\]]*)\\] backend=(?.*)$") // null) as $c + | if $c == null then false + else ($c.n | split(",")) as $n + | (v5_native_ops | all(. as $o | $n | index($o) != null)) and $c.f == "" and $c.rr == "" and ($c.b | test("OmegaGb10")) end; +def v5_row_opr($id): + . as $ev | ($ev.daemon // []) as $d | ($ev.logs // []) as $lg | ([$lg[] | (.op_reports // [])[]]) as $ops + | ($ev.task.kind != "negative-boundary") as $calls + | {row: "\($id)-OPR", criterion: "No fallback, positive evidence", + threshold: "one log per daemon start in run.json; each has exactly one STRICT line with strict=true dev_fallback_build=false require_checkpoint=true and a backend containing OmegaGb10, and no STRICT_REAL_MODEL_VIOLATION line; every OP_REPORT line lists the ten native ops, native_fallbacks=[] and reference_runs=[], backend containing OmegaGb10; a launch that calls the model has at least one OP_REPORT line", + value: {daemon_starts: ($d | length), logs: ($lg | map({name, strict, violations, op_reports: (.op_reports | length)})), + bad_op_reports: ($ops | map(select(v5_op_ok | not))), calls_model: $calls}, + result: (($d | length) > 0 and ($lg | length) == ($d | length) + and ($lg | all((.strict | length) == 1 and (.strict[0] | v5_strict_ok) and .violations == 0)) + and ($ops | all(v5_op_ok)) and (($calls | not) or ($ops | length) > 0)) | v3_okv}; + +# PIN: the build pins the wrapper recorded equal the frozen ones, and the frozen ones are filled. +def v5_row_pin($id): + . as $ev | ($ev.frozen.pins // {}) as $f | ($ev.launch.pins // null) as $p | ($ev.frozen.placeholder // "TO FILL AT FREEZE") as $ph + | ($f | keys) as $k + | {row: "\($id)-PIN", criterion: "Build pins", + threshold: "the launch record has pins; every frozen pin (sovereign-core, omega, physics and aienos lock commits, Cargo.lock, aien, np1_reference, np1_edit_merge sha256) is filled (40 or 64 lowercase hex, not the placeholder) and equals the recorded one", + value: {frozen: $f, recorded: $p, differing: (if $p == null then null else ($k | map(select($f[.] != $p[.]))) end)}, + result: ($p != null and ($k | length) == 8 + and ($k | all(. as $x | ($f[$x] | type) == "string" and $f[$x] != $ph and ($f[$x] | test("^([0-9a-f]{40}|[0-9a-f]{64})$")) + and $p[$x] == $f[$x]))) | v3_okv}; + +# MEAS: measurements present and consistent. +def v5_row_meas($id): + . as $ev | ($ev | v5_attempts) as $at | ($ev.launch // {}) as $l | ($ev.daemon // []) as $d + | ($at | map(.ms) | if all(v5_int) then add // 0 else null end) as $sum + | {row: "\($id)-MEAS", criterion: "Measurements present and consistent", + threshold: "the launch record has wall_ms and meminfo_before mem_free_kb and cached_kb; every daemon start has vmhwm_kb; every attempt has ms, tokens and token_ids; all are non-negative integers; tokens == length of token_ids <= the task max_tokens; the attempts ms sum <= wall_ms", + value: {wall_ms: ($l.wall_ms // null), meminfo_before: ($l.meminfo_before // null), vmhwm_kb: ($d | map(.vmhwm_kb)), + attempts: ($at | map({attempt, ms, tokens, token_ids: (.token_ids | if type == "array" then length else . end)})), + attempts_ms_sum: $sum, max_tokens: $ev.task.max_tokens}, + result: (($l.wall_ms | v5_int) and ($l.meminfo_before.mem_free_kb | v5_int) and ($l.meminfo_before.cached_kb | v5_int) + and ($d | length) > 0 and ($d | all(.vmhwm_kb | v5_int)) + and ($at | all((.ms | v5_int) and (.tokens | v5_int) and (.token_ids | type) == "array" and (.token_ids | all(v5_int)) + and .tokens == (.token_ids | length) and .tokens <= $ev.task.max_tokens)) + and $sum != null and $sum <= $l.wall_ms) | v3_okv}; + +# ---- N1 (ACCEPTANCE-v5 Section 3.3): the refusal before the model -------------------------------------------- +# The verbatim error recorded at gate G3 (evidence-v5/g3-n1-stub-run.txt), in steps/S3.json "error". +def v5_n1_refusal: "RunComposeTask: destination ../shared-stuff/reminder.txt cannot be written safely (not a plain relative path inside the workspace); refusing"; +def v5_step($s): (.run_steps // []) | map(select(.step == $s)) | first; +def v5_row_n1_nr($id): + . as $ev | ($ev | v5_step("S3")) as $s3 + | {row: "\($id)-NR", criterion: "Refused for the destination", + threshold: "the propose step failed (S3 rc recorded as a number other than 0, steps/S3.json ok false) and its error equals the G3 string exactly: \(v5_n1_refusal | tojson)", + value: {s3_rc: ($s3.rc // null), s3_ok: ($ev.s3_step.ok // null), error: ($ev.s3_step.error // null)}, + result: ($s3 != null and ($s3.rc | type) == "number" and $s3.rc != 0 and $ev.s3_step != null and $ev.s3_step.ok == false and $ev.s3_step.error == v5_n1_refusal) | v3_okv}; +def v5_row_n1_nm($id): + . as $ev | ($ev.host // []) | map(select((.text | v5_json | .generation? // null) != null)) as $gens + | {row: "\($id)-NM", criterion: "No model call, nothing committed", + threshold: "no proposal attempt, no generation record named or present in the S8 recall (which must be present), no authorization record, no S5 path, and no file at the destination relative to the workspace", + value: {s8_present: ($ev.recall_s8 != null), attempts: ($ev | v5_attempts | length), generation_record: ($ev.report.generation_record // null), generation_records_in_recall: ($gens | map(.id)), + authorizations: ($ev.auths | length), s5_path: ($ev.s5.path // null), dest_exists: $ev.dest_exists}, + result: ($ev.recall_s8 != null and ($ev | v5_attempts | length) == 0 and ($ev.report.generation_record // null) == null and ($gens | length) == 0 + and ($ev.auths | length) == 0 and ($ev.s5.path // null) == null and $ev.dest_exists == false) | v3_okv}; +# Replaces v8 N1-C (it reads the S3 report, which a refusal before the model does not write). +def v5_row_n1_rc($id): + . as $ev | [$ev | v5_step("S3"), v5_step("S4"), v5_step("S5")] as $st + | {row: "\($id)-RC", criterion: "Completion state REFUSED, read from the steps", + threshold: "S3, S4 and S5 are recorded and each has a recorded exit code other than 0; no authorization record; no S5 path; the workspace is unchanged (run.json containment workspace_changed empty)", + value: {steps: ($st | map(if . == null then null else {step, rc, ok} end)), authorizations: ($ev.auths | length), + s5_path: ($ev.s5.path // null), workspace_changed: ($ev.containment.workspace_changed // null)}, + result: (($st | all(. != null and (.rc | type) == "number" and .rc != 0)) and ($ev.auths | length) == 0 and ($ev.s5.path // null) == null + and $ev.containment.workspace_changed == []) | v3_okv}; +# Replaces v8 N1-H (its machine id is read from the S3 report). +def v5_row_n1_rh($id): + . as $ev | ($ev.constraint_text // null) as $ct + | def has_ct: (.ok == true) and ((.constraints // []) | any(.text == $ct and .verified == true)); + {row: "\($id)-RH", criterion: "Daemon healthy after the refusal", + threshold: "the same daemon's recall after S3 (pre-restart) and S8 after the restart both return the S1 constraint byte-identical and verified; machine id equal in both", + value: {constraint_text: $ct, pre_machine_id: ($ev.recall_pre.machine_id // null), s8_machine_id: ($ev.recall_s8.machine_id // null)}, + result: ($ct != null and $ev.recall_pre != null and $ev.recall_s8 != null and ($ev.recall_pre | has_ct) and ($ev.recall_s8 | has_ct) + and ($ev.recall_pre.machine_id | type) == "string" and $ev.recall_pre.machine_id == $ev.recall_s8.machine_id) | v3_okv}; + +# ---- the rows of one launch ----------------------------------------------------------------------------------- +def v5_product_rows($id; $committed): + [v5_row_pre($id), v5_row_dec($id)] + (if $committed then [v5_row_gr($id)] else [] end) + [v5_row_opr($id), v5_row_pin($id), v5_row_meas($id)]; +def v5_rows: + . as $ev | ($ev.task.id) as $id | ($ev.task.kind) as $k + | (($ev.task.requirements // []) | length) as $nreq + | ([range(0; $nreq) as $i | v5_row_req($id; $i)]) as $rq + | if $k == "long" then + [v3_row_sb($id), v3_row_f($id), v4_row_cut($id)] + $rq + + (if ($ev.task.source // null) != null then [v4_row_src($id)] else [] end) + + [v3_row_d($id; true), v4_row_be($id)] + v5_product_rows($id; true) + elif $k == "edit" then + [v3_row_sb($id), v4_row_cut($id), v4_row_eo($id)] + + (if (v5_end_of_section_ids | index($id)) != null then [v5_row_ep($id)] else [] end) + + [v3_row_d($id; true), v4_row_be($id)] + v5_product_rows($id; true) + elif $k == "identity" then [v3_row_sb($id), v4_row_cut($id)] + $rq + [v3_row_d($id; true), v4_row_be($id)] + v5_product_rows($id; true) + elif $k == "negative-boundary" then + [v4_row_nc($id), v4_row_be($id), v5_row_n1_nr($id), v5_row_n1_nm($id), v5_row_n1_rc($id), v5_row_n1_rh($id), + v5_row_opr($id), v5_row_pin($id), v5_row_meas($id)] + elif $k == "negative-budget" then [v3_row_d($id; false), v4_row_nc($id), v3_row_n2r, v4_row_be($id)] + v5_product_rows($id; false) + else [{row: "?", criterion: "unknown launch kind", threshold: "-", value: $ev.task, result: "FAIL"}] end; diff --git a/docs/campaigns/open-model-qwen3/run-qwen3-v5.sh b/docs/campaigns/open-model-qwen3/run-qwen3-v5.sh new file mode 100755 index 00000000..a284b29a --- /dev/null +++ b/docs/campaigns/open-model-qwen3/run-qwen3-v5.sh @@ -0,0 +1,178 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v5 campaign (ACCEPTANCE-v5.md; DRAFT, NOT FROZEN, NOT RUN). It refuses a real run while any pin +# in frozen-v5.json holds the placeholder, 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-v5: 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-v5.json +PLACEHOLDER=$(jq -r .placeholder "$FROZEN") + +TASKS=$HERE/tasks-oq3-v5.json TAG=oq3-v5 +if [ -n "${OQ3_DRY_TASKS:-}" ]; then + TASKS=$OQ3_DRY_TASKS TAG=oq3-v5-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-v5: 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-v5-runs + [ "$BASE" = "$PINNED_BASE" ] || { echo "run-qwen3-v5: RUN_BASE must be $PINNED_BASE" >&2; exit 2; } + if [ $PART = 1 ]; then + [ ! -e "$BASE" ] || { echo "run-qwen3-v5: $BASE already exists (the v5 run is fresh and happens once)" >&2; exit 2; } + [ ! -e "$OUT" ] || [ -z "$(ls -A "$OUT" 2>/dev/null)" ] || { echo "run-qwen3-v5: OUT_DIR must be new or empty" >&2; exit 2; } + fi + [ "$(jq --arg p "$PLACEHOLDER" '[.pins[] | select(. == $p)] | length' "$FROZEN")" = 0 ] || + { echo "run-qwen3-v5: the build pins are not frozen yet (frozen-v5.json, ACCEPTANCE-v5 Section 7)" >&2; exit 2; } +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-v5: 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-v5: SC_DIR and OMEGA_DIR must be git checkouts" >&2; exit 2; } +OMG=$OMC +[ "$OMC" = "$(tr -d '[:space:]' <"$SCD/omega.lock")" ] || { echo "run-qwen3-v5: 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-v5: SC_DIR has uncommitted changes" >&2; exit 2; } + [ "$(jq -c --argjson p "$PINS" '.pins == $p' "$FROZEN")" = true ] || + { echo "run-qwen3-v5: the recorded build pins differ from frozen-v5.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-v5: 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-v5: 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-v5: 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 document +# whose seed holds a different source file (D4) 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 source file itself (row SRC). +STAGE_FILTER='(.tasks[] | select(.source != null) | .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-v5: staged tasks file differs from the tasks file" >&2; exit 2; } +# Product limits (ACCEPTANCE-v5 Section 2), the same for every launch. +export AIEN_COMPOSE_EDIT_BUDGET_MS=$(jq -r .limits.edit_budget_ms "$TASKS") AIEN_COMPOSE_DOC_BUDGET_MS=$(jq -r .limits.doc_budget_ms "$TASKS") +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"); 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; every other goal creates a + # new file and uses the document cap AIEN_COMPOSE_DOC_MAX_TOKENS. The other cap stays at its product value. + if [ "$kind" = edit ]; then ecap=$max dcap=$(jq -r .limits.doc_max_tokens "$TASKS"); else ecap=$(jq -r .limits.edit_max_tokens "$TASKS") dcap=$max; fi + 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-v8.jq V8_MERGE="$v8merge" V6_TASK="$id" V6_MAX_TOKENS="$max" V6_REFERENCE="$ref" \ + SPEC="open-model-qwen3/ACCEPTANCE-v5.md spec_version 5${OQ3_DRY_TASKS:+ DRY RUN}" bash "$STAGE/make-receipt.sh" \ + "$BASE/$id" "$OUT" "$SC" "$OMC" "$OMG" 0 "OPEN-MODEL-QWEN3 v5${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 v5${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/selftest-v5/D1.fail-a.md b/docs/campaigns/open-model-qwen3/selftest-v5/D1.fail-a.md new file mode 100644 index 00000000..c005dbf9 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D1.fail-a.md @@ -0,0 +1,25 @@ +# Sharpening a Kitchen Knife by Hand + +A sharp knife is safer than a dull one because it needs less force. +This guide uses a whetstone and a steady hand. + +## Gather Your Tools +- A two-sided whetstone, coarse and fine +- A bowl of water to soak the stone +- A damp towel to stop the stone sliding +- The knife you want to sharpen + +## Sharpen the Edge +Soak the whetstone for ten minutes until bubbles stop rising. +Hold the blade at a low angle, about fifteen degrees, against the coarse side. +Push the edge across the stone from heel to tip in one smooth stroke. +Repeat ten strokes, then turn the knife over and match them on the other side. +Move to the fine side and repeat with lighter pressure. +Keep the same angle for every stroke so the edge stays even. + +## Test and Store +Slice a sheet of paper; a sharp edge cuts it cleanly. +If it tears, go back to the fine side for a few more strokes. +Rinse and dry the blade before you put it away. +Store the knife in a block or on a magnetic strip. +Never leave it loose in a drawer with other tools. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D1.fail-a.rows b/docs/campaigns/open-model-qwen3/selftest-v5/D1.fail-a.rows new file mode 100644 index 00000000..66467e81 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D1.fail-a.rows @@ -0,0 +1 @@ +RQ1 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D1.fail-b.md b/docs/campaigns/open-model-qwen3/selftest-v5/D1.fail-b.md new file mode 100644 index 00000000..574f773c --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D1.fail-b.md @@ -0,0 +1,26 @@ +# Sharpening a Kitchen Knife by Hand + +A sharp knife is safer than a dull one because it needs less force. +This guide uses a whetstone and a steady hand. + +## Gather Your Tools +- A two-sided whetstone, coarse and fine +- A bowl of water to soak the stone +- A damp towel to stop the stone sliding +- The knife you want to sharpen + +## Sharpen the Edge +Soak the whetstone for ten minutes until bubbles stop rising. +Hold the blade tilted like a triangle, about fifteen degrees, against the coarse side. +Push the edge across the stone from heel to tip in one smooth stroke. +Repeat ten strokes, then turn the knife over and match them on the other side. +Move to the fine side and repeat with lighter pressure. +Keep the blade angled the same for every stroke so the edge stays even. + +## Test and Store +Slice a sheet of paper; a sharp edge cuts it cleanly. +If it tears, go back to the fine side for a few more strokes. +Rinse and dry the blade before you put it away. +Store the knife in a block or on a magnetic strip. +Never leave it loose in a drawer with other tools. +Let the whetstone dry fully before you store it too. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D1.fail-b.rows b/docs/campaigns/open-model-qwen3/selftest-v5/D1.fail-b.rows new file mode 100644 index 00000000..7785278e --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D1.fail-b.rows @@ -0,0 +1 @@ +RQ3 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D1.pass.md b/docs/campaigns/open-model-qwen3/selftest-v5/D1.pass.md new file mode 100644 index 00000000..7bfb81ac --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D1.pass.md @@ -0,0 +1,26 @@ +# Sharpening a Kitchen Knife by Hand + +A sharp knife is safer than a dull one because it needs less force. +This guide uses a whetstone and a steady hand. + +## Gather Your Tools +- A two-sided whetstone, coarse and fine +- A bowl of water to soak the stone +- A damp towel to stop the stone sliding +- The knife you want to sharpen + +## Sharpen the Edge +Soak the whetstone for ten minutes until bubbles stop rising. +Hold the blade at a low angle, about fifteen degrees, against the coarse side. +Push the edge across the stone from heel to tip in one smooth stroke. +Repeat ten strokes, then turn the knife over and match them on the other side. +Move to the fine side and repeat with lighter pressure. +Keep the same angle for every stroke so the edge stays even. + +## Test and Store +Slice a sheet of paper; a sharp edge cuts it cleanly. +If it tears, go back to the fine side for a few more strokes. +Rinse and dry the blade before you put it away. +Store the knife in a block or on a magnetic strip. +Never leave it loose in a drawer with other tools. +Let the whetstone dry fully before you store it too. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-a.md b/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-a.md new file mode 100644 index 00000000..4257698b --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-a.md @@ -0,0 +1,23 @@ +# Renaming Holiday Photos with a Bash Loop + +These examples rename every photo in one folder. +Try them on a copy first. +Open a terminal in the photo folder before you start. + +## Example One: Date Prefix +```bash +for f in *.jpg; do mv "$f" "2026-08-$f"; done +``` + +## Example Two: Lowercase Names +```bash +for f in *.JPG; do mv "$f" "$(echo "$f" | tr 'A-Z' 'a-z')"; done +``` + +## Example Three: Number the Files +```bash +n=1 +for f in *.jpg; do mv "$f" "photo-$n.jpg"; n=$((n + 1)); done + +## Wrap Up +Run each loop in a test folder first so you can check the new names before touching the originals. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-a.rows b/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-a.rows new file mode 100644 index 00000000..e63b3a33 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-a.rows @@ -0,0 +1 @@ +RQ2 RQ4 F diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-b.md b/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-b.md new file mode 100644 index 00000000..80846618 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-b.md @@ -0,0 +1,24 @@ +# Renaming Holiday Photos with a Bash Loop + +These examples rename every photo in one folder. +Try them on a copy first. +Open a terminal in the photo folder before you start. + +## Example One: Date Prefix +```bash +for f in *.jpg; do mv "$f" "2026-08-$f"; done +``` + +## Example Three: Number the Files +```bash +for f in *.JPG; do mv "$f" "$(echo "$f" | tr 'A-Z' 'a-z')"; done +``` + +## Example Two: Lowercase Names +```bash +n=1 +for f in *.jpg; do mv "$f" "photo-$n.jpg"; n=$((n + 1)); done +``` + +## Wrap Up +Run each loop in a test folder first so you can check the new names before touching the originals. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-b.rows b/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-b.rows new file mode 100644 index 00000000..4a9ad7f9 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-b.rows @@ -0,0 +1 @@ +RQ5 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-c.md b/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-c.md new file mode 100644 index 00000000..431e7c36 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-c.md @@ -0,0 +1,24 @@ +# Renaming Holiday Photos with a Bash Loop + +These examples rename every photo in one folder. +Try them on a copy first. +Open a terminal in the photo folder before you start. + +## Example One: Date Prefix +```bash +for f in *.jpg; do mv "$f" "2026-08-$f"; done +``` + +## Example Two: Lowercase Names +```bash +for f in *.JPG; do mv "$f" "$(echo "$f" | tr 'A-Z' 'a-z')"; done +``` + +## Example Three: Number the Files +```bash +n=1 +for f in *.jpg; do mv "$f" "photo-$n.jpg"; n=$((n + 1)); done +``` + +## Wrap Up +Run each loop in a test folder first to check names. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-c.rows b/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-c.rows new file mode 100644 index 00000000..7d4415db --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D2.fail-c.rows @@ -0,0 +1 @@ +RQ4 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D2.pass.md b/docs/campaigns/open-model-qwen3/selftest-v5/D2.pass.md new file mode 100644 index 00000000..b3cfbabe --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D2.pass.md @@ -0,0 +1,24 @@ +# Renaming Holiday Photos with a Bash Loop + +These examples rename every photo in one folder. +Try them on a copy first. +Open a terminal in the photo folder before you start. + +## Example One: Date Prefix +```bash +for f in *.jpg; do mv "$f" "2026-08-$f"; done +``` + +## Example Two: Lowercase Names +```bash +for f in *.JPG; do mv "$f" "$(echo "$f" | tr 'A-Z' 'a-z')"; done +``` + +## Example Three: Number the Files +```bash +n=1 +for f in *.jpg; do mv "$f" "photo-$n.jpg"; n=$((n + 1)); done +``` + +## Wrap Up +Run each loop in a test folder first so you can check the new names before touching the originals. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D3.fail-a.md b/docs/campaigns/open-model-qwen3/selftest-v5/D3.fail-a.md new file mode 100644 index 00000000..e88a8b2f --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D3.fail-a.md @@ -0,0 +1,23 @@ +# Savings Basics + +A savings account is a safe place to keep money you do not need today. + +## Interest +The bank pays you interest for keeping money with it. +The rate is shown as a yearly percentage. +Interest is usually added every month. + +## Paying In +A depositor adds money by transfer, at a branch, or with a cheque. +Each payment in raises the amount in the account. +Many people set up a regular transfer on payday. + +## Withdraw +When you need money, you withdraw it. +Last month I withdrew a little for a birthday present. +Some accounts limit how often you can take money out. + +## Balance +Your balance is the money in the account right now. +Check it in the app or on your statement. +A growing balance means your saving habit is working. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D3.fail-a.rows b/docs/campaigns/open-model-qwen3/selftest-v5/D3.fail-a.rows new file mode 100644 index 00000000..7785278e --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D3.fail-a.rows @@ -0,0 +1 @@ +RQ3 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D3.pass.md b/docs/campaigns/open-model-qwen3/selftest-v5/D3.pass.md new file mode 100644 index 00000000..adf2f5f5 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D3.pass.md @@ -0,0 +1,23 @@ +# Savings Basics + +A savings account is a safe place to keep money you do not need today. + +## Interest +The bank pays you interest for keeping money with it. +The rate is shown as a yearly percentage. +Interest is usually added every month. + +## Deposit +You deposit money by transfer, at a branch, or with a cheque. +Each deposit raises the amount in the account. +Many people set up a regular transfer on payday. + +## Withdraw +When you need money, you withdraw it. +Last month I withdrew a little for a birthday present. +Some accounts limit how often you can take money out. + +## Balance +Your balance is the money in the account right now. +Check it in the app or on your statement. +A growing balance means your saving habit is working. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D4.fail-a.md b/docs/campaigns/open-model-qwen3/selftest-v5/D4.fail-a.md new file mode 100644 index 00000000..ca8e793f --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D4.fail-a.md @@ -0,0 +1,15 @@ +# Choir Rehearsal Summary + +## Key Points +- Marta led the warm-up and asked everyone to breathe from the belly. +- The altos need more practice on the second verse. +- The new folders will come with the printed scores. +- Priya noticed the tempo drifting in the final chorus. +- The hall is booked until nine next week. + +## Next Steps +- Everyone practises the second verse at home. +- The folders are handed out at the start of rehearsal. +- Priya brings a metronome for the chorus. +- Marta sends the recording of tonight's run-through. +- Meet ten minutes early next week for a sound check. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D4.fail-a.rows b/docs/campaigns/open-model-qwen3/selftest-v5/D4.fail-a.rows new file mode 100644 index 00000000..7785278e --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D4.fail-a.rows @@ -0,0 +1 @@ +RQ3 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D4.pass.md b/docs/campaigns/open-model-qwen3/selftest-v5/D4.pass.md new file mode 100644 index 00000000..ada70cae --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D4.pass.md @@ -0,0 +1,15 @@ +# Choir Rehearsal Summary + +## Key Points +- Marta led the warm-up and asked everyone to breathe from the belly. +- The altos need more practice on the second verse. +- Owen will bring the new folders with the printed scores. +- Priya noticed the tempo drifting in the final chorus. +- The hall is booked until nine next week. + +## Next Steps +- Everyone practises the second verse at home. +- Owen hands out the folders at the start of rehearsal. +- Priya brings a metronome for the chorus. +- Marta sends the recording of tonight's run-through. +- Meet ten minutes early next week for a sound check. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D5.fail-a.md b/docs/campaigns/open-model-qwen3/selftest-v5/D5.fail-a.md new file mode 100644 index 00000000..62713056 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D5.fail-a.md @@ -0,0 +1,19 @@ +# Carry-On Packing Checklist + +## Documents +- [ ] passport +- [ ] boarding pass +- [ ] travel insurance card +- [ ] hotel booking printout + +## Clothes +- [ ] one spare shirt +- [ ] socks and underwear +- [ ] light jumper +- [ ] sleep mask + +## Gadgets +- [ ] phone and charger +- [ ] headphones +- [ ] power bank +- [ ] travel adapter diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D5.fail-a.rows b/docs/campaigns/open-model-qwen3/selftest-v5/D5.fail-a.rows new file mode 100644 index 00000000..7d4415db --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D5.fail-a.rows @@ -0,0 +1 @@ +RQ4 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D5.fail-b.md b/docs/campaigns/open-model-qwen3/selftest-v5/D5.fail-b.md new file mode 100644 index 00000000..9ff8fd78 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D5.fail-b.md @@ -0,0 +1,34 @@ +# Carry-On Packing Checklist + +## Documents +- [ ] passport +- [ ] boarding pass +- [ ] travel insurance card +- [ ] hotel booking printout + +## Clothes +- [ ] one spare shirt +- [ ] socks and underwear +- [ ] light jumper +- [ ] sleep mask + +## Electronics +- [ ] phone and charger +- [ ] headphones +- [ ] power bank +- [ ] travel adapter +- [ ] extra item 1 +- [ ] extra item 2 +- [ ] extra item 3 +- [ ] extra item 4 +- [ ] extra item 5 +- [ ] extra item 6 +- [ ] extra item 7 +- [ ] extra item 8 +- [ ] extra item 9 +- [ ] extra item 10 +- [ ] extra item 11 +- [ ] extra item 12 +- [ ] extra item 13 +- [ ] extra item 14 +- [ ] extra item 15 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D5.fail-b.rows b/docs/campaigns/open-model-qwen3/selftest-v5/D5.fail-b.rows new file mode 100644 index 00000000..bbdca469 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D5.fail-b.rows @@ -0,0 +1 @@ +RQ2 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D5.pass.md b/docs/campaigns/open-model-qwen3/selftest-v5/D5.pass.md new file mode 100644 index 00000000..37154f1f --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D5.pass.md @@ -0,0 +1,19 @@ +# Carry-On Packing Checklist + +## Documents +- [ ] passport +- [ ] boarding pass +- [ ] travel insurance card +- [ ] hotel booking printout + +## Clothes +- [ ] one spare shirt +- [ ] socks and underwear +- [ ] light jumper +- [ ] sleep mask + +## Electronics +- [ ] phone and charger +- [ ] headphones +- [ ] power bank +- [ ] travel adapter diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D6.fail-a.md b/docs/campaigns/open-model-qwen3/selftest-v5/D6.fail-a.md new file mode 100644 index 00000000..61dc6c0c --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D6.fail-a.md @@ -0,0 +1,15 @@ +# Adopting a Rescue Cat + +We had talked about a cat for years before we finally visited the shelter. + +The first cat we met hid under a blanket and watched us with huge green eyes. + +## Bringing Her Home +The drive home was quiet except for one small, worried meow. + +We set up a quiet room with food, water and a box she could hide in. + +For three days she only came out at night. +On the fourth morning she was sitting on the windowsill when we opened the door. + +Now she follows us from room to room and sleeps at the end of the bed. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D6.fail-a.rows b/docs/campaigns/open-model-qwen3/selftest-v5/D6.fail-a.rows new file mode 100644 index 00000000..66467e81 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D6.fail-a.rows @@ -0,0 +1 @@ +RQ1 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D6.fail-b.md b/docs/campaigns/open-model-qwen3/selftest-v5/D6.fail-b.md new file mode 100644 index 00000000..646033bf --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D6.fail-b.md @@ -0,0 +1,16 @@ +# Adopting a Rescue Cat + +We had talked about a cat for years before we finally visited the shelter. + +The first cat we met hid under a blanket and watched us with huge green eyes. + +## Bringing Her Home +The drive home was quiet except for one small, worried meow. + +We set up a quiet room with food, water and a box she could hide in. + +For three days she only came out at night. + +- On the fourth morning she was sitting on the windowsill when we opened the door. + +- Now she follows us from room to room and sleeps at the end of the bed. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D6.fail-b.rows b/docs/campaigns/open-model-qwen3/selftest-v5/D6.fail-b.rows new file mode 100644 index 00000000..66467e81 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D6.fail-b.rows @@ -0,0 +1 @@ +RQ1 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/D6.pass.md b/docs/campaigns/open-model-qwen3/selftest-v5/D6.pass.md new file mode 100644 index 00000000..5df2feac --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/D6.pass.md @@ -0,0 +1,16 @@ +# Adopting a Rescue Cat + +We had talked about a cat for years before we finally visited the shelter. + +The first cat we met hid under a blanket and watched us with huge green eyes. + +## Bringing Her Home +The drive home was quiet except for one small, worried meow. + +We set up a quiet room with food, water and a box she could hide in. + +For three days she only came out at night. + +On the fourth morning she was sitting on the windowsill when we opened the door. + +Now she follows us from room to room and sleeps at the end of the bed. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/E1.fail-a.md b/docs/campaigns/open-model-qwen3/selftest-v5/E1.fail-a.md new file mode 100644 index 00000000..8da4fde3 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/E1.fail-a.md @@ -0,0 +1,15 @@ +# Fixing a Dripping Tap + +## Tools +- Adjustable wrench +- Flathead screwdriver +- Small bucket + +## Parts +- Replacement washer +- Spare O-ring + +## Safety +- Turn off the water supply first +- Keep a towel nearby +- Thread seal tape for the spout diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/E1.fail-a.rows b/docs/campaigns/open-model-qwen3/selftest-v5/E1.fail-a.rows new file mode 100644 index 00000000..c73661f5 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/E1.fail-a.rows @@ -0,0 +1 @@ +EO diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/E1.fail-b.md b/docs/campaigns/open-model-qwen3/selftest-v5/E1.fail-b.md new file mode 100644 index 00000000..e336226d --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/E1.fail-b.md @@ -0,0 +1,14 @@ +# Fixing a Dripping Tap + +## Tools +- Adjustable wrench +- Flathead screwdriver +- Small bucket + +## Parts +- Replacement washer +- Thread seal tape for the spout + +## Safety +- Turn off the water supply first +- Keep a towel nearby diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/E1.fail-b.rows b/docs/campaigns/open-model-qwen3/selftest-v5/E1.fail-b.rows new file mode 100644 index 00000000..c73661f5 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/E1.fail-b.rows @@ -0,0 +1 @@ +EO diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/E1.pass.md b/docs/campaigns/open-model-qwen3/selftest-v5/E1.pass.md new file mode 100644 index 00000000..fdc0d6f6 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/E1.pass.md @@ -0,0 +1,15 @@ +# Fixing a Dripping Tap + +## Tools +- Adjustable wrench +- Flathead screwdriver +- Small bucket + +## Parts +- Replacement washer +- Spare O-ring +- Thread seal tape for the spout + +## Safety +- Turn off the water supply first +- Keep a towel nearby diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/E2.fail-a.md b/docs/campaigns/open-model-qwen3/selftest-v5/E2.fail-a.md new file mode 100644 index 00000000..1cd3ef60 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/E2.fail-a.md @@ -0,0 +1,15 @@ +# Knitting a Simple Scarf + +## Materials +- Two skeins of chunky wool +- Size 10 knitting needles + +## Steps +4. Cast off loosely and weave in the ends. +1. Cast on twenty stitches. +2. Knit every row until the scarf is long enough. +3. Check the width against your shoulders. + +## Care +- Hand wash in cool water +- Dry flat diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/E2.fail-a.rows b/docs/campaigns/open-model-qwen3/selftest-v5/E2.fail-a.rows new file mode 100644 index 00000000..b47be77b --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/E2.fail-a.rows @@ -0,0 +1 @@ +EP diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/E2.fail-b.md b/docs/campaigns/open-model-qwen3/selftest-v5/E2.fail-b.md new file mode 100644 index 00000000..17f1c2d6 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/E2.fail-b.md @@ -0,0 +1,15 @@ +# Knitting a Simple Scarf + +## Materials +- Two skeins of chunky wool +- Size 10 knitting needles + +## Steps +1. Cast on twenty stitches. +2. Knit every row until the scarf is long enough. +3. Check the width against your shoulders. + +## Care +- Hand wash in cool water +- Dry flat +4. Cast off loosely and weave in the ends. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/E2.fail-b.rows b/docs/campaigns/open-model-qwen3/selftest-v5/E2.fail-b.rows new file mode 100644 index 00000000..35e15e7f --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/E2.fail-b.rows @@ -0,0 +1 @@ +EO EP diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/E2.pass.md b/docs/campaigns/open-model-qwen3/selftest-v5/E2.pass.md new file mode 100644 index 00000000..dcfa38f3 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/E2.pass.md @@ -0,0 +1,15 @@ +# Knitting a Simple Scarf + +## Materials +- Two skeins of chunky wool +- Size 10 knitting needles + +## Steps +1. Cast on twenty stitches. +2. Knit every row until the scarf is long enough. +3. Check the width against your shoulders. +4. Cast off loosely and weave in the ends. + +## Care +- Hand wash in cool water +- Dry flat diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/R1.fail-a.md b/docs/campaigns/open-model-qwen3/selftest-v5/R1.fail-a.md new file mode 100644 index 00000000..bb211329 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/R1.fail-a.md @@ -0,0 +1 @@ +Keep your shoulder relaxed. Reach forward on each stroke. diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/R1.fail-a.rows b/docs/campaigns/open-model-qwen3/selftest-v5/R1.fail-a.rows new file mode 100644 index 00000000..66467e81 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/R1.fail-a.rows @@ -0,0 +1 @@ +RQ1 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/R1.fail-b.md b/docs/campaigns/open-model-qwen3/selftest-v5/R1.fail-b.md new file mode 100644 index 00000000..9179dc64 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/R1.fail-b.md @@ -0,0 +1 @@ +Keep your shoulder relaxed as your arm reaches forward diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/R1.fail-b.rows b/docs/campaigns/open-model-qwen3/selftest-v5/R1.fail-b.rows new file mode 100644 index 00000000..66467e81 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/R1.fail-b.rows @@ -0,0 +1 @@ +RQ1 diff --git a/docs/campaigns/open-model-qwen3/selftest-v5/R1.pass.md b/docs/campaigns/open-model-qwen3/selftest-v5/R1.pass.md new file mode 100644 index 00000000..27f0c568 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/selftest-v5/R1.pass.md @@ -0,0 +1 @@ +Keep your shoulder relaxed as your arm reaches forward on each stroke. diff --git a/docs/campaigns/open-model-qwen3/tasks-oq3-v5.json b/docs/campaigns/open-model-qwen3/tasks-oq3-v5.json index f27222e1..8c3565f1 100644 --- a/docs/campaigns/open-model-qwen3/tasks-oq3-v5.json +++ b/docs/campaigns/open-model-qwen3/tasks-oq3-v5.json @@ -1,6 +1,6 @@ { "spec": "ACCEPTANCE-v5.md Section 2 (DRAFT, NOT FROZEN, NOT RUN)", - "authorship": "goal wording, destinations and seeds written 2026-10-08 by an independent author (a Sonnet 5.5 worker) told not to open any repository (brief: evidence-v5/task-author-brief.md); requirement kinds per task were given by the spec author; after authoring the spec author changed only the topic forms of interest and withdraw, the phrases of D3, E1, E2 and R1, and added D2 heading_order from the goal's words (ACCEPTANCE-v5 Sections 3.1 and 12); no goal text was changed", + "authorship": "goal wording, destinations and seeds written 2026-10-08 by an independent author (a Sonnet 5.5 worker) told not to open any repository (brief: evidence-v5/task-author-brief.md); requirement kinds per task were given by the spec author; after authoring the spec author changed only the topic forms of interest and withdraw, the phrases of D3, E1, E2 and R1, and added D2 heading_order from the goal's words (ACCEPTANCE-v5 Sections 3.1 and 12); no goal text was changed; after the product fixes merged, the machine fields the inherited row modules read were aligned with the v4 task file (ACCEPTANCE-v5 Section 12): min_lines, min_code_blocks, tail_heading and min_tail_words on the documents, D4 source as path plus sha256, N1 kind negative-boundary; no goal, destination, seed, phrase or requirement changed", "limits": { "edit_budget_ms": 29000, "doc_budget_ms": 120000, @@ -50,7 +50,11 @@ ], "max_tokens": 1024, "budget_ms": 120000, - "seed": null + "seed": null, + "min_lines": 22, + "min_code_blocks": 0, + "tail_heading": null, + "min_tail_words": 0 }, { "id": "D2", @@ -107,7 +111,11 @@ ], "max_tokens": 1024, "budget_ms": 120000, - "seed": null + "seed": null, + "min_lines": 18, + "min_code_blocks": 3, + "tail_heading": null, + "min_tail_words": 0 }, { "id": "D3", @@ -178,7 +186,11 @@ ], "max_tokens": 1024, "budget_ms": 120000, - "seed": null + "seed": null, + "min_lines": 18, + "min_code_blocks": 0, + "tail_heading": null, + "min_tail_words": 0 }, { "id": "D4", @@ -220,7 +232,14 @@ "max_tokens": 1024, "budget_ms": 120000, "seed": "seed-v5/D4", - "source": "notes/choir-rehearsal.txt" + "source": { + "path": "notes/choir-rehearsal.txt", + "sha256": "aa8780bbc1c587cc6f980e44d838b1dfc39e11d06365d3471126008c9b99b7b7" + }, + "min_lines": 13, + "min_code_blocks": 0, + "tail_heading": null, + "min_tail_words": 0 }, { "id": "D5", @@ -278,7 +297,11 @@ ], "max_tokens": 1024, "budget_ms": 120000, - "seed": null + "seed": null, + "min_lines": 16, + "min_code_blocks": 0, + "tail_heading": null, + "min_tail_words": 0 }, { "id": "D6", @@ -307,7 +330,11 @@ ], "max_tokens": 1024, "budget_ms": 120000, - "seed": null + "seed": null, + "min_lines": 1, + "min_code_blocks": 0, + "tail_heading": null, + "min_tail_words": 0 }, { "id": "E1", @@ -346,7 +373,7 @@ { "id": "N1", "group": "qualification", - "kind": "negative", + "kind": "negative-boundary", "goal": "Create a file at ../shared-stuff/reminder.txt containing just one line that says \"Renew the library card on Friday.\"", "destination": "../shared-stuff/reminder.txt", "phrases": [ diff --git a/docs/campaigns/open-model-qwen3/test-v5.sh b/docs/campaigns/open-model-qwen3/test-v5.sh new file mode 100755 index 00000000..295947c3 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/test-v5.sh @@ -0,0 +1,457 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v5 (ACCEPTANCE-v5.md Sections 3.5 and 9 gate G5, DRAFT, NOT FROZEN): CPU-only checks of the v5 files. +# No model, no GPU, no hold. Shell + jq only. Derived from test-v4.sh. Exit 0 only if every check passes. +# 1 the declaration is the generated one; row count; per launch counts +# 2 task file: the goals are the authored ones, machine fields agree with the requirements, every requirement is stated in +# the goal, freshness against every earlier campaign file +# 3 scorer dry run with made-up result lines +# 4 rows on synthetic run directories: a passing launch of every task, and red cases for every v5 row kind +# (RQ, EP, PRE, DEC, GR, OPR, PIN, MEAS, N1-NR, N1-NM, N1-RC, N1-RH) +# 5 wrapper refusals (exit 2 or 3 before any run) +# 6 the unchanged receipt builder, staged as the wrapper stages it, gives the declared v8-shape rows +# 7 the spec file carries the statements the brief requires; no dashes; v4 files untouched +set -u +HERE=$(cd "$(dirname "$0")" && pwd) +SC=$HERE/../scoring +TASKS=$HERE/tasks-oq3-v5.json +QD=$SC/declarations/oq3-v5.decl.json +A=$HERE/ACCEPTANCE-v5.md +FROZEN=$HERE/frozen-v5.json +T=$(mktemp -d); trap 'rm -rf "$T"' EXIT +pass=0; fail=0 +ok() { pass=$((pass + 1)); } +bad() { fail=$((fail + 1)); echo "FAIL: $1"; } +chk() { if (eval "$2"); then ok; else bad "$1"; fi; } + +# ---- 1 declaration +bash "$HERE/gen-decl-oq3-v5.sh" "$T/q.json" +chk "the declaration equals the generated one" 'cmp -s "$T/q.json" "$QD"' +QN=$(jq '.rows|length' "$QD") +chk "the row count is the one ACCEPTANCE-v5.md states ($QN)" 'grep -q "^QUALIFICATION_ROWS=$QN\$" "$A"' +chk "row ids unique" '[ "$(jq "[.rows[].row]|(length==(unique|length))" "$QD")" = true ]' +chk "the declaration holds exactly the qualification launches" '[ "$(jq -r --slurpfile d "$QD" "[.tasks[]|select(.group==\"qualification\")|.id] as \$ids | [\$d[0].rows[].row|split(\"/\")[0]]|unique|. == (\$ids|sort)" "$TASKS")" = true ]' +chk "per launch row counts (D1 34, D2 36, D3 36, D4 35, D5 36, D6 33, E1 33, E2 34, R1 32, N1 11, N2 14)" ' + [ "$(jq -c "[.rows[].row|split(\"/\")[0]]|group_by(.)|map({(.[0]): length})|add" "$QD")" = "{\"D1\":34,\"D2\":36,\"D3\":36,\"D4\":35,\"D5\":36,\"D6\":33,\"E1\":33,\"E2\":34,\"N1\":11,\"N2\":14,\"R1\":32}" ]' +chk "N1 declares NR, NM, RC and RH and none of N1-B, N1-C, N1-H, N1-D" ' + for r in NR NM RC RH NC BE OPR PIN MEAS Z E; do jq -e --arg r "N1/N1-$r" "any(.rows[]; .row == \$r)" "$QD" >/dev/null || exit 1; done + ! jq -r ".rows[].row" "$QD" | grep -Eq "^N1/N1-(B|C|H|D|PRE|DEC|GR)\$"' +chk "every committed launch declares PRE, DEC, GR, OPR, PIN, MEAS; N2 declares them without GR" ' + for id in D1 D2 D3 D4 D5 D6 E1 E2 R1; do for r in PRE DEC GR OPR PIN MEAS; do jq -e --arg r "$id/$id-$r" "any(.rows[]; .row == \$r)" "$QD" >/dev/null || exit 1; done; done + for r in PRE DEC OPR PIN MEAS; do jq -e --arg r "N2/N2-$r" "any(.rows[]; .row == \$r)" "$QD" >/dev/null || exit 1; done + ! jq -e "any(.rows[]; .row == \"N2/N2-GR\")" "$QD" >/dev/null' +chk "only E2 declares EP" '[ "$(jq -r ".rows[].row|select(endswith(\"-EP\"))" "$QD")" = "E2/E2-EP" ]' +chk "one repetition, role case, no control, none NOT_APPLICABLE" '[ "$(jq "[.rows[]|select(.reps!=1 or .role!=\"case\" or .control!=null or .not_applicable!=false or .expected!=\"PASS\")]|length" "$QD")" = 0 ]' + +# ---- 2 task file +GOALS=a42aae721e85bd3d0febb7a6ad2b0ebfc4f0a0c56f6ff135aaca42ace7996dee +chk "goals, destinations, seeds and phrases are the authored ones (digest $GOALS)" '[ "$(jq -c "[.tasks[]|{id,goal,destination,phrases,seed}]" "$TASKS" | sha256sum | cut -d" " -f1)" = "$GOALS" ]' +chk "eleven qualification tasks, ids unique, no regression group" '[ "$(jq "[.tasks[]|select(.group==\"qualification\")]|length" "$TASKS")" = 11 ] && [ "$(jq "[.tasks[].id]|(length==(unique|length))" "$TASKS")" = true ] && [ "$(jq "[.tasks[]|select(.group!=\"qualification\")]|length" "$TASKS")" = 0 ]' +chk "N1 is kind negative-boundary and N2 negative-budget" '[ "$(jq -r ".tasks[]|select(.id==\"N1\" or .id==\"N2\")|.kind" "$TASKS" | tr "\n" " ")" = "negative-boundary negative-budget " ]' +chk "document machine fields agree with the declared requirements (min_lines, min_code_blocks; no tail heading)" ' + [ "$(jq "[.tasks[]|select(.kind==\"long\")|. as \$t + | ((.requirements|map(select(.kind==\"min_lines\"))|first|.n) // 1) as \$ml + | ((.requirements|map(select(.kind==\"code_blocks\"))|first|.n) // 0) as \$cb + | select(\$t.min_lines != \$ml or \$t.min_code_blocks != \$cb or \$t.tail_heading != null or \$t.min_tail_words != 0)]|length" "$TASKS")" = 0 ]' +chk "every requirement count is an integer n and every word requirement a non-empty words list" ' + [ "$(jq "[.tasks[].requirements[]|select((.kind|IN(\"min_lines\",\"max_lines\",\"code_blocks\",\"prefixed_lines\",\"paragraphs\",\"tail\",\"sentences_exact\")) and ((.n|type)!=\"number\"))]|length" "$TASKS")" = 0 ] && + [ "$(jq "[.tasks[].requirements[]|select(.kind==\"word\" and ((.words|type)!=\"array\" or (.words|length)==0))]|length" "$TASKS")" = 0 ]' +chk "D4 source file exists in its seed with the declared sha256, is named in the goal and differs from the destination" ' + sp=$(jq -r ".tasks[]|select(.id==\"D4\")|.source.path" "$TASKS"); sd=$(jq -r ".tasks[]|select(.id==\"D4\")|.seed" "$TASKS") + [ "$(sha256sum "$HERE/$sd/$sp" | cut -d" " -f1)" = "$(jq -r ".tasks[]|select(.id==\"D4\")|.source.sha256" "$TASKS")" ] && + jq -e --arg p "$sp" ".tasks[]|select(.id==\"D4\")|(.goal|contains(\$p)) and .destination != \$p" "$TASKS" >/dev/null' +chk "no goal contains a backtick or a pipe" '! jq -r ".tasks[].goal" "$TASKS" | grep -q "[\`|]"' +chk "every phrase is a substring of its goal" '[ "$(jq "[.tasks[]|.goal as \$g|.phrases[]|select(. as \$p|\$g|contains(\$p)|not)]|length" "$TASKS")" = 0 ]' +chk "every declared requirement quotes its wording in the goal" ' + [ "$(jq -r "[.tasks[]| .goal as \$g | (.requirements//[])[] | . as \$r | select((\$g|ascii_downcase|contains(\$r.as_written|ascii_downcase)) | not)] | length" "$TASKS")" = 0 ]' +chk "every required title, word, topic name, prefix and heading is stated in the goal" ' + [ "$(jq -r "[.tasks[]| .goal as \$g | (.requirements//[])[] | ((.titles//[])[], (.words//[])[], (.name//empty), (.prefix//empty), (.heading//empty)) | . as \$s | select((\$g|ascii_downcase|contains(\$s|ascii_downcase)) | not)] | length" "$TASKS")" = 0 ]' +chk "every requirement number matches the goal wording (digits or number word)" ' + [ "$(jq -r "def w: {\"one\":1,\"three\":3,\"seven\":7,\"twelve\":12}; [.tasks[]| (.requirements//[])[] | select(.n!=null) | . as \$r | select(((\$r.as_written|test(\"\\\\b\" + (\$r.n|tostring) + \"\\\\b\")) or ((\$r.as_written|ascii_downcase|split(\" \")|map(split(\"-\")[0])|map(w[.]//empty)|index(\$r.n)) != null)) | not)] | length" "$TASKS")" = 0 ]' +chk "declared words and topic forms use only letters, digits and hyphen" '[ "$(jq -r "[.tasks[].requirements[]|(.words//[])[],(.accepted//[])[]|select(test(\"^[A-Za-z0-9-]+\$\")|not)]|length" "$TASKS")" = 0 ]' +chk "every accepted topic form is listed in ACCEPTANCE-v5.md Section 3.1" ' + for f in $(jq -r ".tasks[].requirements[]|select(.kind==\"topic\")|.accepted[]" "$TASKS"); do grep -q "\`$f\`" "$A" || { echo "missing form: $f"; exit 1; }; done' +chk "the goal names the D3 topic forms the product reads (gate G2: withdraw and withdrew)" 'jq -e ".tasks[]|select(.id==\"D3\")|.goal|contains(\"withdraw\") and contains(\"withdrew\")" "$TASKS" >/dev/null' +chk "limits equal the v4 limits; per task max_tokens and budgets as ACCEPTANCE-v5 Section 2" ' + [ "$(jq -c .limits "$TASKS")" = "$(jq -c .limits "$HERE/tasks-oq3-v4.json")" ] && + [ "$(jq -c "[.tasks[]|[.id,.max_tokens,.budget_ms]]" "$TASKS")" = "[[\"D1\",1024,120000],[\"D2\",1024,120000],[\"D3\",1024,120000],[\"D4\",1024,120000],[\"D5\",1024,120000],[\"D6\",1024,120000],[\"E1\",96,29000],[\"E2\",96,29000],[\"N1\",1024,120000],[\"N2\",16,120000],[\"R1\",96,120000]]" ]' +# freshness: no v5 goal, destination or distinctive word appears in any earlier campaign file +CORPUS=$T/corpus.txt +{ for f in $(cd "$HERE/.." && find . -name 'tasks*.json' ! -name 'tasks-oq3-v5.json') $(cd "$HERE/.." && find . -name 'ACCEPTANCE*.md' ! -name 'ACCEPTANCE-v5.md') $(cd "$HERE/.." && find . -name 'VERDICT*.md') $(cd "$HERE/.." && find . -name 'DIAGNOSTIC*'); do cat "$HERE/../$f"; done + git -C "$HERE" show origin/031756/oq3-long-diag:docs/campaigns/open-model-qwen3/diagnostic-long-1-tasks.json 2>/dev/null + git -C "$HERE" show origin/031756/oq3-long-diag:docs/campaigns/open-model-qwen3/DIAGNOSTIC-LONG-1.md 2>/dev/null; } >"$CORPUS" +chk "the freshness corpus is not empty ($(wc -c <"$CORPUS") bytes)" '[ "$(wc -c <"$CORPUS")" -gt 20000 ]' +chk "no v5 goal text appears in an earlier campaign file" ' + while IFS= read -r g; do if grep -Fq -- "$g" "$CORPUS"; then echo "reused: $g"; exit 1; fi; done < <(jq -r ".tasks[].goal" "$TASKS")' +chk "no v5 destination or source path appears in an earlier campaign file" ' + for p in $(jq -r ".tasks[]|(.destination//empty),(.named_path//empty),(.source.path//empty)" "$TASKS"); do + if grep -Fiq -- "$p" "$CORPUS"; then echo "reused path: $p"; exit 1; fi; done' +chk "no distinctive topic word of a v5 task appears in an earlier campaign file (Priya is the declared exception)" ' + for w in whetstone knife-sharpening rename-photos savings choir carry-on rescue-cat tap-repair scarf marathon swim-tip; do + if grep -Fiq -- "$w" "$CORPUS"; then echo "reused word: $w"; exit 1; fi; done' +chk "ACCEPTANCE-v5.md has the task row of every positive launch (the format make-receipt.sh greps)" ' + while IFS= read -r row; do grep -Fqx -- "$row" "$A" || { echo "missing row: ${row:0:40}"; exit 1; }; done < <(jq -r ".tasks[] | select(.kind != \"negative-boundary\" and .kind != \"negative-budget\") | \"| \(.id) | \`\(.goal)\` | \`\(.destination)\` | \(.phrases | map(\"\`\" + . + \"\`\") | join(\", \")) |\"" "$TASKS")' +chk "ACCEPTANCE-v5.md has the N1 and N2 goals" 'grep -Fq -- "N1 goal (declared negative, not a Q2 row): \`$(jq -r ".tasks[]|select(.id==\"N1\")|.goal" "$TASKS")\`" "$A" && grep -Fq -- "N2 goal (declared negative, not a Q2 row): \`$(jq -r ".tasks[]|select(.id==\"N2\")|.goal" "$TASKS")\`" "$A"' +chk "frozen-v5.json: the model digest is index+shards and is the manifest of the listed sha256s (not re-hashed)" ' + m=$(jq -j ".model | \"aien-checkpoint-digest v1\nindex \(.index_sha256)\n\" + (.shards | sort_by(.[0]) | map(\"\(.[1]) \(.[0])\n\") | join(\"\"))" "$FROZEN" | sha256sum | cut -d" " -f1) + [ "$m" = "$(jq -r .model.model_sha256 "$FROZEN")" ] && [ "$(jq -r .model.model_digest_kind "$FROZEN")" = index+shards ] && [ "$(jq -r .model.model_sha256 "$FROZEN")" = 17a78fbba447a4e66a3d886c0998fbcf2f9201d46e5e0c5bfec2d57c975976b7 ] && + [ "$(jq -r .model.index_sha256 "$FROZEN")" = d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c ] && [ "$(jq ".model.shards|length" "$FROZEN")" = 3 ] && + grep -q "NOT RE-HASHED" <<<"$(jq -r .model.model_sha256_note "$FROZEN")"' +chk "frozen-v5.json: the eight pins are the placeholder in this draft" '[ "$(jq -r ".placeholder as \$p|[.pins[]|select(. == \$p)]|length" "$FROZEN")" = 8 ]' + +# ---- 3 scorer dry run (made-up result lines) +jq -r '.rows[].row' "$QD" | jq -R -c '{row: ., rep: 1, verdict: "PASS", receipt: "made-up"}' >"$T/res-all.jsonl" +bash "$SC/score-rows.sh" "$QD" "$T/res-all.jsonl" >"$T/s1.json"; rc=$? +chk "scorer: all made-up PASS lines give PASS" '[ $rc = 0 ] && [ "$(jq -r .verdict "$T/s1.json")" = PASS ]' +sed '5d' "$T/res-all.jsonl" >"$T/res-missing.jsonl"; bash "$SC/score-rows.sh" "$QD" "$T/res-missing.jsonl" >"$T/s2.json" +chk "scorer: one missing row is not PASS" '[ "$(jq -r .verdict "$T/s2.json")" != PASS ]' +sed '7s/"PASS"/"FAIL"/' "$T/res-all.jsonl" >"$T/res-fail.jsonl"; bash "$SC/score-rows.sh" "$QD" "$T/res-fail.jsonl" >"$T/s3.json" +chk "scorer: one FAIL line gives FAIL" '[ "$(jq -r .verdict "$T/s3.json")" = FAIL ]' +{ cat "$T/res-all.jsonl"; head -n1 "$T/res-all.jsonl"; } >"$T/res-dup.jsonl"; bash "$SC/score-rows.sh" "$QD" "$T/res-dup.jsonl" >"$T/s4.json" +chk "scorer: a duplicate result line is not PASS" '[ "$(jq -r .verdict "$T/s4.json")" != PASS ]' +{ cat "$T/res-all.jsonl"; for r in B C H; do jq -n -c --arg r "N1/N1-$r" '{row: $r, rep: 1, verdict: "FAIL", receipt: "made-up"}'; done; } >"$T/res-extra.jsonl" +bash "$SC/score-rows.sh" "$QD" "$T/res-extra.jsonl" >"$T/s5.json" +chk "scorer: the undeclared v8 rows N1-B, N1-C, N1-H failing are extras and leave the verdict PASS" '[ "$(jq -r .verdict "$T/s5.json")" = PASS ]' + +# ---- 4 rows on synthetic run directories +sha() { printf '%s' "$1" | sha256sum | cut -d' ' -f1; } +M=$(jq -c .model "$FROZEN") +MSHA=$(jq -r .model_sha256 <<<"$M"); TSHA=$(jq -r .tokenizer_sha256 <<<"$M") +SHARDS=$(jq -r '"CHECKPOINT_SHARDS model_sha256=\(.model_sha256) model_digest_kind=\(.model_digest_kind) index_sha256=\(.index_sha256) shards=[\(.shards | map("\(.[0]):\(.[1])") | join(","))]"' <<<"$M") +OPS='rmsnorm,apply_rope,matmul_vec,matmul_batch,swiglu,gqa_attention,paged_attention,paged_attention_batch,compute_logits,rmsnorm_heads' +GBE='OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)' +STRICT=" STRICT strict=true dev_fallback_build=false require_checkpoint=true backend=$GBE" +OPR_LINE="OP_REPORT native=[$OPS] reference=[] native_fallbacks=[] reference_runs=[] backend=$GBE" +CT='Project constraints: every change stays inside the authorized workspace; one file per change; plain text only; no network.' +# a frozen file with filled pins, and a launch record that matches it +PINS='{"sovereign_core_commit":"1111111111111111111111111111111111111111","omega_lock_commit":"2222222222222222222222222222222222222222","physics_lock_commit":"3333333333333333333333333333333333333333","aienos_lock_commit":"4444444444444444444444444444444444444444","cargo_lock_sha256":"5555555555555555555555555555555555555555555555555555555555555555","aien_cli_sha256":"6666666666666666666666666666666666666666666666666666666666666666","np1_reference_sha256":"7777777777777777777777777777777777777777777777777777777777777777","np1_edit_merge_sha256":"8888888888888888888888888888888888888888888888888888888888888888"}' +FZ=$T/frozen-filled.json; jq --argjson p "$PINS" '.pins = $p' "$FROZEN" >"$FZ" +# mk_launch DIR WALL_MS: the wrapper's launch record for DIR (DIR.launch-v5.json) +mk_launch() { jq -n --argjson p "$PINS" --argjson w "${2:-600000}" '{launch: "x", wall_ms: $w, wall_clock: "made-up", driver_exit: 0, meminfo_before: {mem_free_kb: 100000000, cached_kb: 2000000}, pins: $p}' >"$1.launch-v5.json"; } +# mk_logs DIR [EXTRA_LOG_LINE]: two daemon logs with the start line, the shards line and one OP_REPORT line each +mk_logs() { + local k; for k in 1 2; do printf '\033[1mdaemon\033[0m up\n%s\n%s\n%s\n' "$STRICT" "$SHARDS" "$OPR_LINE" >"$1/daemon-$k.log"; done + [ -z "${2:-}" ] || printf '%s\n' "$2" >>"$1/daemon-2.log" +} +mk_daemons() { jq -n --arg b "$GBE" --arg m "checkpoint loaded from /m/model.safetensors.index.json (tokenizer loaded, model_id=qwen3, config=c, model_sha256=$MSHA, tokenizer_sha256=$TSHA)" \ + '[{pid: 1, backend: $b, model: $m, vmhwm_kb: 9000000, warm_up_ms: 900}, {pid: 2, backend: $b, model: $m, vmhwm_kb: 9100000, warm_up_ms: 950}]'; } +steps_ok() { jq -n '[range(1; 9) as $i | {step: "S\($i)", name: "s", rc: 0, wall_ms: 10, ok: true}]'; } +# one greedy attempt that produced REPLY (parsed), N tokens, MS milliseconds +att1() { jq -n --arg r "$1" --argjson n "${2:-40}" --argjson ms "${3:-42000}" --arg h "$(sha "$1")" \ + '[{attempt: 1, outcome: "parsed", reason: null, tokens: $n, ms: $ms, finish_reason: "eos", text: $r, text_sha256: $h, + token_ids: [range(0; $n)], decoding: {greedy_tokens: $n, sampled_tokens: 0}}]'; } +# mk_run DIR ID DEST CONTENT REPLY [ATTEMPTS_JSON] [SEEDCOPY_DIR]: a made-up committed launch, every v5 row green. +mk_run() { + local d=$1 id=$2 dest=$3 content=$4 reply=$5 att=${6:-} sc=${7:-} ws h + mkdir -p "$d/ws/$(dirname "$dest")" "$d/steps"; ws=$(cd "$d/ws" && pwd -P) + [ -n "$sc" ] && cp -R "$sc/." "$d/ws/" + printf '%s\n' "$content" >"$d/ws/$dest"; h=$(sha256sum "$d/ws/$dest" | cut -d' ' -f1) + [ -n "$att" ] || att=$(att1 "$reply") + jq -n --arg id "$id" --argjson a "$att" --arg h "$h" '{task: $id, committed: true, compose_commit: 101, generation_record: 100, + requirements_uncertain: [], proposal_attempts: $a, proposal_content_sha256: $h}' >"$d/s3-report.json" + jq -n --arg p "$ws/$dest" --arg h "$h" '{path: $p, content_sha256: $h, disk_sha256: $h}' >"$d/steps/S5.json" + local acc; acc=$(jq -c 'map(select(.outcome == "parsed")) | last' <<<"$att") + jq -n --arg id "$id" --arg h "$h" --argjson acc "$acc" --arg ms "$MSHA" --arg ts "$TSHA" --arg ct "$CT" ' + {ok: true, machine_id: "m1", constraints: [{id: 6, text: $ct, verified: true}], + authorizations: [{id: 1, verified: true, text: ({content_sha256: $h, provenance: {generation_record: 100}} | tojson)}], + recall: {host: [ + {id: 100, note: "generation", verified: true, text: ({generation: 1, origin: "compose_proposal", task: $id, attempt: $acc.attempt, + output_text_sha256: $acc.text_sha256, model_sha256: $ms, model_digest_kind: "index+shards", tokenizer_sha256: $ts, + decoding: {mode: "greedy", greedy_tokens: $acc.tokens, sampled_tokens: 0}} | tojson)}, + {id: 101, note: "compose_commit", verified: true, text: ({provenance: {generation_record: 100}} | tojson)}]}}' >"$d/steps/S8.json" + jq -n --argjson s "$(steps_ok)" --argjson dm "$(mk_daemons)" --arg ct "$CT" '{steps: $s, daemon: $dm, containment: {workspace_changed: []}, constraint_text: $ct}' >"$d/run.json" + mk_logs "$d"; mk_launch "$d" +} +rowres() { jq -r --arg r "$2" 'select(.row == $r) | .verdict' <<<"$1"; } +run_rows() { bash "$HERE/v5-rows.sh" "$1" "$2" "$TASKS" "$T" "made-up.json" "${3:-$1.launch-v5.json}" "${4:-$FZ}"; } +reply_of() { printf 'filename: %s\n```markdown\n%s\n```' "$1" "$2"; } +STD=$HERE/selftest-v5 + +# documents: one passing launch each (every v4 and v5 row PASS, exactly the declared extra rows), then the red fixtures +for id in $(jq -r '.tasks[]|select(.kind=="long")|.id' "$TASKS"); do + dest=$(jq -r --arg i "$id" '.tasks[]|select(.id==$i)|.destination' "$TASKS") + sd=$(jq -r --arg i "$id" '.tasks[]|select(.id==$i)|.seed//empty' "$TASKS"); scopy=; [ -n "$sd" ] && scopy=$HERE/$sd + doc=$(cat "$STD/$id.pass.md") + mk_run "$T/$id-pass" "$id" "$dest" "$doc" "$(reply_of "$dest" "$doc")" "" "$scopy" + out=$(run_rows "$T/$id-pass" "$id") + want=$(jq -r --arg i "$id" '.rows[].row | select(startswith($i + "/" + $i + "-")) | select(test("-(SB|F|CUT|RQ[0-9]+|SRC|D|BE|PRE|DEC|GR|OPR|PIN|MEAS)$"))' "$QD" | sort) + chk "$id: the rows v5-rows.sh emits are exactly the declared v4 and v5 rows" '[ "$want" = "$(jq -r .row <<<"$out" | sort)" ]' + chk "$id: the passing synthetic launch passes every row" '[ -n "$out" ] && [ "$(jq -r "select(.verdict != \"PASS\") | .row" <<<"$out" | wc -l)" = 0 ]' + for fr in "$STD/$id".fail-*.md; do + tag=$(basename "$fr" .md); tag=${tag#"$id".}; fdoc=$(cat "$fr") + mk_run "$T/$id-$tag" "$id" "$dest" "$fdoc" "$(reply_of "$dest" "$fdoc")" "" "$scopy" + out=$(run_rows "$T/$id-$tag" "$id") + exp=$(tr ' ' '\n' <"${fr%.md}.rows" | grep . | sort | tr '\n' ' ') + got=$(jq -r 'select(.verdict == "FAIL") | .row' <<<"$out" | sed "s#^$id/$id-##" | sort | tr '\n' ' ') + chk "$id $tag: exactly the intended rows fail ($exp)" '[ "$got" = "$exp" ]' + done +done +# rule details, each tested directly through the rows module +req_met() { cd "$HERE" && jq -L "$HERE" -n -r --arg t "$1" --argjson r "$2" 'include "rows-oq3-v5"; $r | v5_eval($t) | .met'; } +rule_chk() { local got; got=$(req_met "$3" "$4"); if [ "$got" = "$2" ]; then ok; else bad "rule: $1 (wanted $2, got $got)"; fi; } +rule_chk "a stated word inside a longer word does not count (triangle is not angle)" false $'a triangle' '{"kind":"word","words":["angle"]}' +rule_chk "every stated word is needed (angle without whetstone)" false $'the angle' '{"kind":"word","words":["whetstone","angle"]}' +rule_chk "stated words in any case, next to punctuation" true $'Whetstone, Angle.' '{"kind":"word","words":["whetstone","angle"]}' +rule_chk "a word requirement with no words list is FAIL (fail closed)" false $'angle' '{"kind":"word","word":"angle"}' +rule_chk "a count requirement without n is FAIL (fail closed)" false $'a\nb' '{"kind":"min_lines","min":1}' +rule_chk "an unknown requirement kind is FAIL" false $'a' '{"kind":"vibes","n":1}' +rule_chk "a topic form not in the table does not count (depositor)" false $'a depositor' '{"kind":"topic","name":"deposit","accepted":["deposit","deposits","deposited","depositing"]}' +rule_chk "a listed topic form counts (withdrew)" true $'I withdrew it' '{"kind":"topic","name":"withdraw","accepted":["withdraw","withdrew"]}' +rule_chk "paragraphs: blank lines, headings and list items end a run; fenced lines are not prose (5)" true $'a\nb\n\nc\n## H\nd\n- e\nf\n```\ng\n\nh\n```\ni' '{"kind":"paragraphs","n":5}' +rule_chk "paragraphs: the same text is not 6" false $'a\nb\n\nc\n## H\nd\n- e\nf\n```\ng\n\nh\n```\ni' '{"kind":"paragraphs","n":6}' +rule_chk "paragraphs: a paragraph split only by a heading counts as two" true $'a\n## H\nb' '{"kind":"paragraphs","n":2}' +rule_chk "paragraphs: a whitespace-only line ends a paragraph" true $'a\n \nb' '{"kind":"paragraphs","n":2}' +rule_chk "paragraphs: numbered items are not prose" false $'1. a\n2) b' '{"kind":"paragraphs","n":1}' +rule_chk "tail: 12 words after Wrap Up following the last code block" true $'```\nx\n```\n## Wrap Up\none two three four five six seven eight nine ten eleven twelve' '{"kind":"tail","heading":"Wrap Up","n":12}' +rule_chk "tail: 11 words is not enough" false $'```\nx\n```\n## Wrap Up\none two three four five six seven eight nine ten eleven' '{"kind":"tail","heading":"Wrap Up","n":12}' +rule_chk "heading order: in order" true $'## A\n## B\n## C' '{"kind":"heading_order","titles":["A","B","C"]}' +rule_chk "heading order: swapped" false $'## A\n## C\n## B' '{"kind":"heading_order","titles":["A","B","C"]}' +rule_chk "heading order: one missing" false $'## A\n## C' '{"kind":"heading_order","titles":["A","B","C"]}' +rule_chk "one sentence: a single line ending with a full stop" true $'Stretch your shoulders before you swim.\n' '{"kind":"sentences_exact","n":1}' +rule_chk "one sentence: two sentences on one line" false $'Stretch. Then swim.' '{"kind":"sentences_exact","n":1}' +rule_chk "one sentence: no final punctuation" false $'Stretch your shoulders' '{"kind":"sentences_exact","n":1}' +rule_chk "one sentence: two lines" false $'Stretch your shoulders\nbefore you swim.' '{"kind":"sentences_exact","n":1}' +rule_chk "one sentence: empty" false '' '{"kind":"sentences_exact","n":1}' +rule_chk "max lines: 31 non-empty lines is over 30" false "$(seq 1 31)" '{"kind":"max_lines","n":30}' + +# edit launches (with the real seeds): green, then the red fixtures +EA() { att1 "x" 40 4000; } +for id in E1 E2; do + dest=$(jq -r --arg i "$id" '.tasks[]|select(.id==$i)|.destination' "$TASKS"); sd=$(jq -r --arg i "$id" '.tasks[]|select(.id==$i)|.seed' "$TASKS") + doc=$(cat "$STD/$id.pass.md") + mk_run "$T/$id-pass" "$id" "$dest" "$doc" "$(reply_of "$dest" "$doc")" "$(att1 "$(reply_of "$dest" "$doc")" 40 4000)" "$HERE/$sd" + out=$(run_rows "$T/$id-pass" "$id") + want=$(jq -r --arg i "$id" '.rows[].row | select(startswith($i + "/" + $i + "-")) | select(test("-(SB|CUT|EO|EP|D|BE|PRE|DEC|GR|OPR|PIN|MEAS)$"))' "$QD" | sort) + chk "$id: the rows emitted are exactly the declared v4 and v5 rows" '[ "$want" = "$(jq -r .row <<<"$out" | sort)" ]' + chk "$id: the passing synthetic edit passes every row" '[ -n "$out" ] && [ "$(jq -r "select(.verdict != \"PASS\") | .row" <<<"$out" | wc -l)" = 0 ]' + for fr in "$STD/$id".fail-*.md; do + tag=$(basename "$fr" .md); tag=${tag#"$id".}; fdoc=$(cat "$fr") + mk_run "$T/$id-$tag" "$id" "$dest" "$fdoc" "$(reply_of "$dest" "$fdoc")" "$(att1 "$(reply_of "$dest" "$fdoc")" 40 4000)" "$HERE/$sd" + out=$(run_rows "$T/$id-$tag" "$id") + exp=$(tr ' ' '\n' <"${fr%.md}.rows" | grep . | sort | tr '\n' ' ') + got=$(jq -r 'select(.verdict == "FAIL") | .row' <<<"$out" | sed "s#^$id/$id-##" | sort | tr '\n' ' ') + chk "$id $tag: exactly the intended rows fail ($exp)" '[ "$got" = "$exp" ]' + done +done +# identity launch +R1D=notes/swim-tip.txt +for f in "$STD"/R1.pass.md "$STD"/R1.fail-*.md; do + tag=$(basename "$f" .md); tag=${tag#R1.}; doc=$(cat "$f") + mk_run "$T/R1-$tag" R1 "$R1D" "$doc" "$(reply_of "$R1D" "$doc")" "$(att1 "$(reply_of "$R1D" "$doc")" 20 4000)" + out=$(run_rows "$T/R1-$tag" R1) + if [ "$tag" = pass ]; then + chk "R1: the rows emitted are exactly the declared v4 and v5 rows" '[ "$(jq -r ".rows[].row | select(test(\"^R1/R1-(SB|CUT|RQ1|D|BE|PRE|DEC|GR|OPR|PIN|MEAS)\$\"))" "$QD" | sort)" = "$(jq -r .row <<<"$out" | sort)" ]' + chk "R1: the passing synthetic launch passes every row" '[ -n "$out" ] && [ "$(jq -r "select(.verdict != \"PASS\") | .row" <<<"$out" | wc -l)" = 0 ]' + else + chk "R1 $tag: exactly R1-RQ1 fails" '[ "$(jq -r "select(.verdict == \"FAIL\") | .row" <<<"$out")" = R1/R1-RQ1 ]' + fi +done + +# ---- product rows: red cases on the passing D1 launch (each case changes one thing; only the named row may fail) +D1DOC=$(cat "$STD/D1.pass.md"); D1R=$(reply_of docs/knife-sharpening.md "$D1DOC") +jqi() { local f=$1; shift; jq "$@" "$f" >"$f.x" && mv "$f.x" "$f"; } +# red RUNDIR EDIT_CMD ROW...: copy the green D1 launch, apply EDIT_CMD inside it, and expect exactly ROW... to fail +red() { + local name=$1 cmd=$2; shift 2; local d=$T/red-$name + rm -rf "$d" "$d.launch-v5.json"; cp -R "$T/D1-pass" "$d"; cp "$T/D1-pass.launch-v5.json" "$d.launch-v5.json" + jqi "$d/steps/S5.json" --arg p "$(cd "$d/ws" && pwd -P)/docs/knife-sharpening.md" '.path = $p' + (cd "$d" && eval "$cmd") + local out got exp; out=$(run_rows "$d" D1 "$d.launch-v5.json" "${FZX:-$FZ}") + got=$(jq -r 'select(.verdict == "FAIL") | .row' <<<"$out" | sed 's#^D1/D1-##' | sort | tr '\n' ' ') + exp=$(printf '%s\n' "$@" | sort | tr '\n' ' ') + if [ "$got" = "$exp" ]; then ok; else bad "red $name: wanted FAIL on [$exp], got FAIL on [$got]"; fi +} +S3R=s3-report.json; S8=steps/S8.json +# PRE +red pre-absent 'jqi $S3R "del(.requirements_uncertain)"' PRE +red pre-uncertain 'jqi $S3R ".requirements_uncertain = [\"between 16 and 30 lines\"]"' PRE +# DEC +red dec-null 'jqi $S3R ".proposal_attempts[0].decoding = null"' DEC +red dec-sampled 'jqi $S3R ".proposal_attempts[0].decoding.sampled_tokens = 1"' DEC +red dec-temperature 'jqi $S3R ".proposal_attempts[0].decoding.temperature = 0.7"' DEC +red dec-mixed 'jqi $S8 "(.recall.host[] | select(.id == 100) | .text) |= (fromjson | .decoding.mode = \"mixed\" | tojson)"' DEC +# GR +red gr-null 'jqi $S3R ".generation_record = null"' DEC GR +red gr-text 'jqi $S8 "(.recall.host[] | select(.id == 100) | .text) |= (fromjson | .output_text_sha256 = \"00\" | tojson)"' GR +red gr-index-only 'jqi $S8 "(.recall.host[] | select(.id == 100) | .text) |= (fromjson | .model_sha256 = \"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c\" | .model_digest_kind = \"index\" | tojson)"' GR +red gr-tokenizer 'jqi $S8 "(.recall.host[] | select(.id == 100) | .text) |= (fromjson | .tokenizer_sha256 = \"00\" | tojson)"' GR +red gr-unverified 'jqi $S8 "(.recall.host[] | select(.id == 100) | .verified) = false"' GR +red gr-not-in-recall 'jqi $S8 ".recall.host |= map(select(.id != 100))"' DEC GR +red gr-commit-prov 'jqi $S8 "(.recall.host[] | select(.id == 101) | .text) |= (fromjson | .provenance.generation_record = 99 | tojson)"' GR +red gr-auth-prov 'jqi $S8 ".authorizations[0].text |= (fromjson | del(.provenance) | tojson)"' GR +red gr-no-shards 'sed -i "/^CHECKPOINT_SHARDS /d" daemon-2.log' GR +red gr-shard-differs 'sed -i "s/0b48adbb/0b48adbc/" daemon-1.log' GR +red gr-daemon-model 'jqi run.json ".daemon[1].model |= sub(\"model_sha256=[0-9a-f]+\"; \"model_sha256=d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c\")"' GR +# OPR +red opr-fallback 'sed -i "s/native_fallbacks=\[\]/native_fallbacks=[matmul_vec:1]/" daemon-1.log' OPR +red opr-reference-run 'sed -i "s/reference_runs=\[\]/reference_runs=[rmsnorm]/" daemon-2.log' OPR +red opr-no-op-report 'sed -i "/^OP_REPORT /d" daemon-1.log daemon-2.log' OPR +red opr-op-missing 'sed -i "s/,rmsnorm_heads\]/]/" daemon-1.log' OPR +red opr-cpu-backend 'sed -i "s/backend=OmegaGb10Backend.*/backend=ReferenceCpuBackend/" daemon-2.log' OPR +red opr-not-strict 'sed -i "s/STRICT strict=true/STRICT strict=false/" daemon-1.log' OPR +red opr-dev-fallback 'sed -i "s/dev_fallback_build=false/dev_fallback_build=true/" daemon-2.log' OPR +red opr-no-strict 'sed -i "/STRICT strict=/d" daemon-1.log' OPR +red opr-two-strict 'printf "%s\n" "$STRICT" >>daemon-1.log' OPR +red opr-violation 'echo "STRICT_REAL_MODEL_VIOLATION op=matmul_vec" >>daemon-2.log' OPR +red opr-log-missing 'rm daemon-2.log' GR OPR +# PIN +red pin-off-by-one 'jqi ../red-pin-off-by-one.launch-v5.json ".pins.aien_cli_sha256 |= (.[0:-1] + \"7\")"' PIN +red pin-no-record 'jqi ../red-pin-no-record.launch-v5.json "del(.pins)"' PIN +FZX=$FROZEN red pin-placeholder 'jqi ../red-pin-placeholder.launch-v5.json --argjson p "$(jq .pins "$FROZEN")" ".pins = \$p"' PIN +# MEAS +red meas-sum-over-wall 'jqi ../red-meas-sum-over-wall.launch-v5.json ".wall_ms = 41999"' MEAS +red meas-no-wall 'jqi ../red-meas-no-wall.launch-v5.json "del(.wall_ms)"' MEAS +red meas-no-meminfo 'jqi ../red-meas-no-meminfo.launch-v5.json "del(.meminfo_before.cached_kb)"' MEAS +red meas-no-vmhwm 'jqi run.json ".daemon[0].vmhwm_kb = null"' MEAS +red meas-tokens-ids 'jqi $S3R ".proposal_attempts[0].token_ids |= .[1:]"' MEAS +red meas-no-token-ids 'jqi $S3R "del(.proposal_attempts[0].token_ids)"' MEAS +red meas-over-cap 'jqi $S3R ".proposal_attempts[0] |= (.tokens = 1025 | .token_ids = [range(0; 1025)] | .decoding.greedy_tokens = 1025)"' MEAS +# a refused attempt before the accepted one with no decoding (timed out or errored): DEC FAIL, the other rows unaffected +red dec-earlier-attempt 'jqi $S3R ".proposal_attempts = [{attempt: 0, outcome: \"refused\", reason: \"reply did not parse\", tokens: 5, ms: 1000, finish_reason: \"eos\", token_ids: [0,1,2,3,4], decoding: null}] + .proposal_attempts"' DEC +# EP on E2 is not the only check of the edit: EO still catches a lost line (fixture E2.fail-b above) + +# ---- N1 (negative-boundary): the refusal before the model, as recorded at gate G3 +N1ERR='RunComposeTask: destination ../shared-stuff/reminder.txt cannot be written safely (not a plain relative path inside the workspace); refusing' +mk_n1() { + local d=$1; mkdir -p "$d/ws" "$d/steps" + jq -n --arg e "$N1ERR" '{error: $e, ok: false, step: "propose"}' >"$d/steps/S3.json" + jq -n --arg ct "$CT" '{ok: true, machine_id: "m1", constraints: [{id: 6, text: $ct, verified: true}], authorizations: [], recall: {host: [{id: 7, note: "effect", verified: true, text: "{\"arguments_digest\":\"x\"}"}]}}' >"$d/steps/S8.json" + jq -n --arg ct "$CT" '{ok: true, machine_id: "m1", constraints: [{id: 6, text: $ct, verified: true}], authorizations: []}' >"$d/steps/pre-restart-recall.json" + jq -n --argjson dm "$(mk_daemons)" --arg ct "$CT" '{steps: [range(1; 9) as $i | {step: "S\($i)", name: "s", rc: (if $i >= 3 and $i <= 6 then 1 else 0 end), wall_ms: 10, ok: ($i < 3 or $i > 6)}], + daemon: $dm, containment: {workspace_changed: []}, constraint_text: $ct}' >"$d/run.json" + local k; for k in 1 2; do printf '%s\n%s\n' "$STRICT" "$SHARDS" >"$d/daemon-$k.log"; done + mk_launch "$d" 9000 +} +mk_n1 "$T/n1"; out=$(run_rows "$T/n1" N1) +chk "N1: the rows emitted are exactly the declared extra rows (NC BE NR NM RC RH OPR PIN MEAS)" '[ "$(jq -r ".rows[].row | select(test(\"^N1/N1-(NC|BE|NR|NM|RC|RH|OPR|PIN|MEAS)\$\"))" "$QD" | sort)" = "$(jq -r .row <<<"$out" | sort)" ]' +chk "N1: the refusal before the model passes every row (no OP_REPORT line is needed: no model call)" '[ -n "$out" ] && [ "$(jq -r "select(.verdict != \"PASS\") | .row" <<<"$out" | wc -l)" = 0 ]' +n1red() { + local name=$1 cmd=$2; shift 2; local d=$T/n1-$name + rm -rf "$d" "$d.launch-v5.json"; cp -R "$T/n1" "$d"; cp "$T/n1.launch-v5.json" "$d.launch-v5.json" + (cd "$d" && eval "$cmd") + local got exp; got=$(run_rows "$d" N1 | jq -r 'select(.verdict == "FAIL") | .row' | sed 's#^N1/N1-##' | sort | tr '\n' ' ') + exp=$(printf '%s\n' "$@" | sort | tr '\n' ' ') + if [ "$got" = "$exp" ]; then ok; else bad "N1 red $name: wanted FAIL on [$exp], got FAIL on [$got]"; fi +} +n1red uncertain-req 'jqi steps/S3.json ".error = \"RunComposeTask: the goal has an uncertain requirement (just one line that says); refusing\""' NR +n1red other-dest-text 'jqi steps/S3.json ".error |= sub(\"\\\\.\\\\./shared-stuff\"; \"../shared\")"' NR +n1red s3-ok 'jqi steps/S3.json ".ok = true" ; jqi run.json "(.steps[] | select(.step == \"S3\") | .rc) = 0"' NR RC +n1red s3-missing 'rm steps/S3.json' NR +n1red model-attempt 'jq -n "{proposal_attempts: [{attempt: 1, outcome: \"refused\", reason: \"path outside the workspace\", tokens: 12, ms: 3000, finish_reason: \"eos\", token_ids: [range(0; 12)]}]}" >s3-report.json' NM +n1red gen-record 'jqi steps/S8.json ".recall.host += [{id: 100, note: \"generation\", verified: true, text: ({generation: 1} | tojson)}]"' NM +n1red file-written 'mkdir -p shared-stuff && echo hi >shared-stuff/reminder.txt' NM +n1red authorized 'jqi steps/S8.json ".authorizations = [{id: 1, verified: true, text: \"{}\"}]"' NC NM RC +n1red s4-ran 'jqi run.json "(.steps[] | select(.step == \"S4\") | .rc) = 0"' RC +n1red s5-missing 'jqi run.json ".steps |= map(select(.step != \"S5\"))"' RC +n1red ws-changed 'jqi run.json ".containment.workspace_changed = [\"notes/x.txt\"]"' RC +n1red recall-lost 'jqi steps/S8.json ".constraints = []"' RH +n1red pre-unverified 'jqi steps/pre-restart-recall.json ".constraints[0].verified = false"' RH +n1red machine-differs 'jqi steps/S8.json ".machine_id = \"m2\""' RH +n1red no-pre-recall 'rm steps/pre-restart-recall.json' RH +n1red op-report-bad 'printf "%s\n" "OP_REPORT native=[] reference=[rmsnorm] native_fallbacks=[] reference_runs=[rmsnorm:1] backend=ReferenceCpuBackend" >>daemon-1.log' OPR +n1red cpu-start 'printf "%s\n" " STRICT strict=true dev_fallback_build=false require_checkpoint=true backend=ReferenceCpuBackend" >daemon-2.log' OPR +n1red no-launch-rec 'rm ../n1-no-launch-rec.launch-v5.json' PIN MEAS +# sc#353 review: a step record with no exit code is not a non-zero exit, and a missing S8 recall is not "no record" +n1red rc-absent 'jqi run.json ".steps |= map(del(.rc))"' NR RC +n1red s8-missing 'rm steps/S8.json' NM RH + +# ---- N2 (negative-budget): a token-limit cut, nothing committed, the model was asked +mk_n2() { + local d=$1; mkdir -p "$d/ws" "$d/steps" + jq -n '{task: "N2", committed: false, compose_commit: null, generation_record: null, requirements_uncertain: [], + proposal_attempts: [{attempt: 1, outcome: "refused", reason: "reply cut at the token limit after 16 tokens (finish_reason max_tokens); a cut reply is never a proposal", + tokens: 16, ms: 2100, finish_reason: "max_tokens", text: "x", text_sha256: "x", token_ids: [range(0; 16)], decoding: {greedy_tokens: 16, sampled_tokens: 0}}]}' >"$d/s3-report.json" + jq -n --arg ct "$CT" '{ok: true, machine_id: "m1", constraints: [{id: 6, text: $ct, verified: true}], authorizations: [], recall: {host: []}}' >"$d/steps/S8.json" + jq -n --argjson dm "$(mk_daemons)" --arg ct "$CT" '{steps: [range(1; 9) as $i | {step: "S\($i)", name: "s", rc: (if $i >= 3 and $i <= 6 then 1 else 0 end), wall_ms: 10, ok: ($i < 3 or $i > 6)}], + daemon: $dm, containment: {workspace_changed: []}, constraint_text: $ct}' >"$d/run.json" + mk_logs "$d"; mk_launch "$d" 9000 +} +mk_n2 "$T/n2"; out=$(run_rows "$T/n2" N2) +chk "N2: the rows emitted are exactly the declared extra rows (D NC R BE PRE DEC OPR PIN MEAS)" '[ "$(jq -r ".rows[].row | select(test(\"^N2/N2-(D|NC|R|BE|PRE|DEC|OPR|PIN|MEAS)\$\"))" "$QD" | sort)" = "$(jq -r .row <<<"$out" | sort)" ]' +chk "N2: a greedy token-limit cut with nothing committed passes every row" '[ -n "$out" ] && [ "$(jq -r "select(.verdict != \"PASS\") | .row" <<<"$out" | wc -l)" = 0 ]' +jqi "$T/n2/s3-report.json" '.requirements_uncertain = ["at least twelve paragraphs"] | .proposal_attempts = []' +out=$(run_rows "$T/n2" N2) +chk "N2 refused before the model (uncertain requirement): N2-PRE FAIL, and N2-D, N2-R, N2-DEC FAIL (no attempt)" '[ "$(jq -r "select(.verdict == \"FAIL\") | .row" <<<"$out" | sort | tr "\n" " ")" = "N2/N2-D N2/N2-DEC N2/N2-PRE N2/N2-R " ]' +chk "N2-OPR reads the daemon logs, not the attempts: still PASS" '[ "$(rowres "$out" N2/N2-OPR)" = PASS ]' + +# the rows module is always the one beside the scripts, whatever the working directory holds (jq searches the working +# directory for a top-level include before -L): a decoy module that passes everything must change nothing +mkdir -p "$T/decoy"; printf '%s\n' 'def v5_rows: [{row: "DECOY", criterion: "-", threshold: "-", value: null, result: "PASS"}];' 'def v5_end_of_section_ids: [];' >"$T/decoy/rows-oq3-v5.jq" +out=$(cd "$T/decoy" && run_rows "$T/red-opr-fallback" D1 "$T/red-opr-fallback.launch-v5.json") +chk "v5-rows.sh run from a folder with a decoy rows module still uses its own (D1-OPR FAIL on the fallback case)" '[ "$(rowres "$out" D1/D1-OPR)" = FAIL ] && ! grep -q DECOY <<<"$out"' +(cd "$T/decoy" && bash "$HERE/gen-decl-oq3-v5.sh" decl.json) +chk "gen-decl-oq3-v5.sh run from a folder with a decoy rows module (relative OUT) still gives the committed declaration" 'cmp -s "$T/decoy/decl.json" "$QD"' + +# a launch whose driver wrote nothing: every row FAIL +mkdir -p "$T/empty/ws"; out=$(run_rows "$T/empty" D1 - ) +chk "a launch with no run.json and no files FAILs every row" '[ -n "$out" ] && [ "$(jq -r "select(.verdict == \"PASS\") | .row" <<<"$out" | wc -l)" = 0 ]' + +# ---- 5 wrapper refusals (CPU, before any run) +W=$HERE/run-qwen3-v5.sh +PINNED=/home/drakestapleton/workspace/oq3-v5-runs +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) + wr() { local b=$1; shift; "${base[@]}" "$@" bash "$W" "$b" "$T/out" "$T" "$T" "$T/x" "$T/x" >/dev/null 2>"$T/w.err"; echo $?; } + chk "wrapper refuses a missing OQ3_PART (exit 2)" '[ "$(wr "$T/b")" = 2 ]' + chk "wrapper refuses part 5 (exit 2)" '[ "$(wr "$T/b" OQ3_PART=5)" = 2 ]' + chk "wrapper refuses a run base other than the pinned path (exit 2), nothing created" '[ "$(wr "$T/b" OQ3_PART=1 "${okenv[@]}")" = 2 ] && [ ! -e "$T/b" ]' + chk "wrapper refuses a real run while the pins are the placeholder (exit 2), pinned path not created" '[ "$(wr "$PINNED" OQ3_PART=1 "${okenv[@]}")" = 2 ] && [ ! -e "$PINNED" ] && grep -q "not frozen" "$T/w.err"' + chk "wrapper refuses changed dry-run task shape (exit 2)" ' + jq ".tasks[0].max_tokens = 512" "$TASKS" >"$T/dry-bad.json" + [ "$(wr "$T/b" OQ3_PART=1 OQ3_DRY_TASKS="$T/dry-bad.json" "${okenv[@]}")" = 2 ] && [ ! -e "$T/b" ]' + for v in AIEN_KV_CONTEXT_TOKENS=2048 AIEN_REQUIRE_BLACKWELL=0 AIEN_REQUIRE_CHECKPOINT=0 AIEN_GB10_QWEN3_DECLARED_ATTEMPT=0; do + chk "wrapper refuses $v (exit 3)" '[ "$(wr "$T/b" OQ3_PART=1 OQ3_DRY_TASKS="$TASKS" "${okenv[@]}" "$v")" = 3 ] && [ ! -e "$T/b" ]' + done + for v in AIEN_FORCE_CPU_STUB=1 AIEN_DEV_FALLBACK=1 AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK=0 AIEN_COMPOSE_BUDGET_MS=29000 AIEN_COMPOSE_DOC_MAX_TOKENS=1024 AIEN_OMEGA_SPIN_US=5; do + chk "wrapper refuses a preset ${v%%=*} (exit 3)" '[ "$(wr "$T/b" OQ3_PART=1 OQ3_DRY_TASKS="$TASKS" "${okenv[@]}" "$v")" = 3 ] && [ ! -e "$T/b" ]' + done + chk "wrapper refuses a model index file with a wrong digest (exit 3), base not created" '[ "$(wr "$T/b" OQ3_PART=1 OQ3_DRY_TASKS="$TASKS" "${okenv[@]}")" = 3 ] && [ ! -e "$T/b" ] && grep -q "digest mismatch" "$T/w.err"' + chk "wrapper reads the model and tokenizer digests and the pins from frozen-v5.json" 'grep -q "jq -r .model.index_sha256 \"\$FROZEN\"" "$W" && grep -q ".model.shards\[\]" "$W" && grep -q "jq -r .model.tokenizer_sha256 \"\$FROZEN\"" "$W" && grep -q "\.pins == \$p" "$W"' + chk "wrapper records the launch wall time, the memory before the part and the pins in .launch-v5.json" 'grep -q "launch-v5.json" "$W" && grep -q "meminfo_before" "$W" && grep -q "/proc/uptime" "$W"' + chk "the wrapper lists the launches of the four parts exactly as ACCEPTANCE-v5.md Section 8" ' + grep -q "1) LAUNCHES=\"D1 D2 D3\" ;; 2) LAUNCHES=\"D4 D5 D6\" ;; 3) LAUNCHES=\"E1 E2 N1\" ;; 4) LAUNCHES=\"N2 R1\"" "$W"' + chk "the wrapper runs the inherited v8 results and v5-rows.sh for every launch" 'grep -q "v8-results.sh\" \"\$id\" \"\$rec\"" "$W" && grep -q "v5-rows.sh\" \"\$BASE/\$id\" \"\$id\"" "$W"' +fi + +# ---- 6 the unchanged receipt builder, staged as the wrapper stages it, yields the declared v8-shape rows +NP1=$(cd "$HERE/../next-phase-1" && pwd); STAGE=$T/stage; mkdir -p "$STAGE" "$T/rec" +for f in "$NP1"/*; do n=$(basename "$f"); [ "$n" = tasks-v8.json ] && continue; ln -s "$f" "$STAGE/$n"; done +jq "(.tasks[] | select(.source != null) | .seed) = null" "$TASKS" >"$STAGE/tasks-v8.json"; ln -s "$HERE/seed-v5" "$STAGE/seed-v5" +chk "the wrapper's staging filter is the one used here" 'grep -qF "STAGE_FILTER='"'"'(.tasks[] | select(.source != null) | .seed) = null'"'"'" "$W"' +for id in $(jq -r '.tasks[].id' "$TASKS"); do + R=$T/stg-$id; mkdir -p "$R/ws" "$R/steps" "$R/prov"; echo '{"steps":[],"daemon":[],"containment":{}}' >"$R/run.json" + seed=$(jq -r --arg i "$id" '.tasks[]|select(.id==$i)|.seed//empty' "$TASKS"); [ -n "$seed" ] && cp -R "$HERE/$seed/." "$R/ws/" + e=(); [ "${id#N}" = "$id" ] && e=(TASK_ID="$id" TASK_SPEC="$TASKS" TASK_ACCEPTANCE=/dev/null) + env "${e[@]}" V6_ROWS=rows-v8.jq V6_TASK="$id" V6_MAX_TOKENS=1 V8_MERGE=null bash "$STAGE/make-receipt.sh" "$R" "$T/rec" sc omc omg 0 n >/dev/null 2>&1 + rec=$(ls -t "$T/rec"/*.json | head -1) + bash "$NP1/v8-results.sh" "$id" "$rec" | jq -r .row | sort >"$T/$id.got" + case $(jq -r --arg i "$id" ".tasks[]|select(.id==\$i)|.kind" "$TASKS") in + long) xs="SB|F|CUT|RQ[0-9]+|SRC|D|BE|PRE|DEC|GR|OPR|PIN|MEAS" ;; edit) xs="SB|CUT|EO|EP|D|BE|PRE|DEC|GR|OPR|PIN|MEAS" ;; + identity) xs="SB|CUT|RQ[0-9]+|D|BE|PRE|DEC|GR|OPR|PIN|MEAS" ;; negative-boundary) xs="NC|BE|NR|NM|RC|RH|OPR|PIN|MEAS" ;; + *) xs="D|NC|R|BE|PRE|DEC|OPR|PIN|MEAS" ;; esac + jq -r --arg i "$id" '.rows[].row | select(startswith($i + "/"))' "$QD" | grep -vE "^$id/$id-($xs)\$" | sort >"$T/$id.want" + if [ "$id" = N1 ]; then + chk "launch N1: receipt rows == declared v8-shape rows plus the three undeclared extras N1-B, N1-C, N1-H" '[ "$(grep -vE "^N1/N1-(B|C|H)\$" "$T/N1.got")" = "$(cat "$T/N1.want")" ] && [ "$(grep -cE "^N1/N1-(B|C|H)\$" "$T/N1.got")" = 3 ]' + else + chk "launch $id: receipt rows == declared v8-shape rows" 'cmp -s "$T/$id.got" "$T/$id.want"' + fi +done + +# ---- 7 spec file statements +chk "ACCEPTANCE-v5.md says DRAFT, NOT FROZEN, NOT RUN" 'grep -q "^\*\*Status: DRAFT, NOT FROZEN, NOT RUN\*\*" "$A"' +chk "Section 7 states the index+shards digest as computed from the listed sha256s, not re-hashed, and the re-hash as a freeze item" 'grep -q "17a78fbba447a4e66a3d886c0998fbcf2f9201d46e5e0c5bfec2d57c975976b7" "$A" && grep -q "COMPUTED FROM LISTED SHA256s, NOT RE-HASHED" "$A" && grep -q "model_digest_kind=index+shards" "$A"' +chk "the old caveat (shards bound by the wrapper pre-run hash only) is gone" '! grep -q "bound by the wrapper.s pre-run hash only" "$A" && ! grep -q "binds the index file of the checkpoint, not the shards" "$A"' +chk "Section 3.4 carries the STRICT start line, the OP_REPORT format and the ten ops" 'grep -qF "STRICT strict= dev_fallback_build= require_checkpoint= backend=" "$A" && grep -qF "OP_REPORT native=[a,b,..] reference=[..] native_fallbacks=[name:count,..] reference_runs=[..] backend=" "$A" && grep -qF "$(tr , " " <<<"$OPS" | sed "s/ /\`, \`/g")" "$A"' +chk "Section 3.4 carries the verbatim N1-NR string" 'grep -qF "$N1ERR" "$A"' +chk "the rows module carries the same STRICT and OP_REPORT forms and the verbatim N1 string" 'grep -qF "^STRICT strict=true dev_fallback_build=false require_checkpoint=true backend=" "$HERE/rows-oq3-v5.jq" && grep -qF "^OP_REPORT native=" "$HERE/rows-oq3-v5.jq" && grep -qF "$N1ERR" "$HERE/rows-oq3-v5.jq"' +chk "ACCEPTANCE-v5.md declares N1-RC and N1-RH and E2-EP" 'grep -q "\`N1-RC\`" "$A" && grep -q "\`N1-RH\`" "$A" && grep -q "\`E2-EP\`" "$A"' +chk "the G3 and G1 evidence files exist" '[ -s "$HERE/evidence-v5/g3-n1-stub-run.txt" ] && [ -s "$HERE/evidence-v5/requirements-probe-b2cae6d.txt" ] && grep -qF "$N1ERR" "$HERE/evidence-v5/g3-n1-stub-run.txt"' +chk "ACCEPTANCE-v5.md states no reruns of failures and no task edits after seeing answers" 'grep -q "no rerun of a failure" "$A" && grep -q "No task edit after seeing answers" "$A"' +chk "no em dash or en dash in the v5 files" '! LC_ALL=C grep -lP "\xe2\x80[\x93\x94]" "$A" "$TASKS" "$FROZEN" "$HERE/rows-oq3-v5.jq" "$HERE/v5-rows.sh" "$HERE/gen-decl-oq3-v5.sh" "$HERE/run-qwen3-v5.sh" "$HERE/test-v5.sh" "$HERE"/selftest-v5/* "$HERE"/evidence-v5/*.txt | grep -q .' +# The v4 files are compared with main once sc#294 (the v4 record) is on main, and with its head 58ff51c until then. +V4REF=origin/main; git -C "$HERE" cat-file -e origin/main:docs/campaigns/open-model-qwen3/rows-oq3-v4.jq 2>/dev/null || V4REF=58ff51c +chk "the v4 and v3 files are untouched by this change (against $V4REF)" '[ -z "$(git -C "$HERE" diff --name-only "$V4REF" -- "$HERE/ACCEPTANCE-v4.md" "$HERE/rows-oq3-v4.jq" "$HERE/v4-rows.sh" "$HERE/run-qwen3-v4.sh" "$HERE/test-v4.sh" "$HERE/tasks-oq3-v4.json" "$HERE/gen-decl-oq3-v4.sh" "$HERE/selftest-v4" "$HERE/rows-oq3-v3.jq" "$HERE/v3-rows.sh" "$HERE/tasks-oq3-v3.json" "$HERE/ACCEPTANCE-v3.md" "$HERE/../next-phase-1")" ]' + +echo "test-v5: $pass passed, $fail failed" +[ $fail = 0 ] diff --git a/docs/campaigns/open-model-qwen3/v5-rows.sh b/docs/campaigns/open-model-qwen3/v5-rows.sh new file mode 100755 index 00000000..218c4c37 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/v5-rows.sh @@ -0,0 +1,86 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v5 (ACCEPTANCE-v5.md Section 3, DRAFT, NOT FROZEN): the extra rows of one launch, computed +# from the run directory beside the v8 receipt. Derived from v4-rows.sh; shell + jq only. Usage: +# v5-rows.sh RUN_ROOT LAUNCH_ID TASKS.json OUT_DIR RECEIPT_BASENAME LAUNCH_RECORD|- [FROZEN.json] +# LAUNCH_RECORD is the wrapper's .launch-v5.json (wall time, memory before the part, build pins); "-" = none. +# FROZEN defaults to frozen-v5.json beside this script. +# Writes OUT_DIR/.v5rows.json (never edited afterwards) and prints one scoring-v5 result line +# per row: {row: "/", rep: 1, verdict, receipt}. The saved file, the source file and the seed are hashed +# or read here, after the run, not taken from the runtime's own report. +set -eu +R=${1:?RUN_ROOT} ID=${2:?LAUNCH_ID} TASKS=${3:?TASKS} OUT=${4:?OUT_DIR} REC=${5:?RECEIPT} LREC=${6:?LAUNCH_RECORD} +HERE=$(cd "$(dirname "$0")" && pwd) +FROZEN=${7:-$HERE/frozen-v5.json} +# Every path is made absolute, because the row module is read with the working directory set to HERE (below). +abs() { case $1 in /* | -) printf '%s' "$1" ;; *) printf '%s/%s' "$PWD" "$1" ;; esac; } +R=$(abs "$R") TASKS=$(abs "$TASKS") OUT=$(abs "$OUT") LREC=$(abs "$LREC") FROZEN=$(abs "$FROZEN") +S=$R/steps +task=$(jq -c --arg id "$ID" '.tasks[] | select(.id == $id)' "$TASKS") +[ -n "$task" ] || { echo "v5-rows: launch $ID not in $TASKS" >&2; exit 4; } +j() { if [ -s "$1" ]; then jq -c . "$1" 2>/dev/null || echo null; else echo null; fi; } +ws=$(cd "$R/ws" && pwd -P) +committed='{"path_rel":null,"text":null,"file_sha256":null}' +s5p=$(jq -r '.path // empty' "$S/S5.json" 2>/dev/null || true) +if [ -n "$s5p" ] && [ -f "$s5p" ]; then + real=$(realpath -e "$s5p") + case "$real" in "$ws"/*) + committed=$(jq -n --arg p "${real#"$ws"/}" --rawfile t "$real" --arg h "$(sha256sum "$real" | cut -d' ' -f1)" \ + '{path_rel: $p, text: $t, file_sha256: $h}') ;; + esac +fi +seed_text=null +if [ "$(jq -r '.kind' <<<"$task")" = edit ]; then + sd=$(jq -r '.seed // empty' <<<"$task"); dest=$(jq -r '.destination // empty' <<<"$task") + [ -n "$sd" ] && [ -f "$HERE/$sd/$dest" ] && seed_text=$(jq -n --rawfile t "$HERE/$sd/$dest" '$t') +fi +source_now=null +sp=$(jq -r '.source.path // empty' <<<"$task") +if [ -n "$sp" ] && [ -f "$ws/$sp" ]; then + source_now=$(jq -n --arg p "$sp" --arg h "$(sha256sum "$ws/$sp" | cut -d' ' -f1)" '{path: $p, sha256: $h}') +fi +# N1: is there anything at the requested destination, resolved against the workspace (it points outside it)? +dest_exists=null +if [ "$(jq -r '.kind' <<<"$task")" = negative-boundary ]; then + dp="$ws/$(jq -r '.destination' <<<"$task")" + if [ -e "$dp" ] || [ -L "$dp" ]; then dest_exists=true; else dest_exists=false; fi +fi +# Daemon logs, one per daemon start recorded in run.json, in that order: only the lines the rows read. +tmp=$(mktemp "$OUT/.v5rows.XXXXXX") +logs='[]' +nd=$(jq '(.daemon // []) | length' "$R/run.json" 2>/dev/null || echo 0) +for k in $(seq 1 "$nd"); do + f=$R/daemon-$k.log + if [ -f "$f" ]; then + sed 's/\x1b\[[0-9;]*m//g; s/^[[:space:]]*//' "$f" >"$tmp" + l=$(jq -n --arg n "daemon-$k.log" --rawfile c "$tmp" '($c | split("\n")) as $L + | {name: $n, strict: [$L[] | select(startswith("STRICT "))], op_reports: [$L[] | select(startswith("OP_REPORT "))], + shards: [$L[] | select(startswith("CHECKPOINT_SHARDS "))], violations: ([$L[] | select(contains("STRICT_REAL_MODEL_VIOLATION"))] | length)}') + else + l=$(jq -n --arg n "daemon-$k.log" '{name: $n, missing: true, strict: [], op_reports: [], shards: [], violations: 0}') + fi + logs=$(jq -c --argjson l "$l" '. + [$l]' <<<"$logs") +done +launch=null; [ "$LREC" != - ] && launch=$(j "$LREC") +mods=$(cat "$HERE/rows-oq3-v3.jq" "$HERE/rows-oq3-v4.jq" "$HERE/rows-oq3-v5.jq" | sha256sum | cut -d' ' -f1) +run=$(j "$R/run.json") +# jq looks for a top-level include in the working directory before -L, so a stray rows-oq3-v5.jq where the caller stands +# would be used instead of this one. Read the module from HERE only. +cd "$HERE" +jq -L "$HERE" -n --argjson task "$task" --argjson report "$(j "$R/s3-report.json")" --argjson s5 "$(j "$S/S5.json")" \ + --argjson s8 "$(j "$S/S8.json")" --argjson pre "$(j "$S/pre-restart-recall.json")" --argjson s3 "$(j "$S/S3.json")" \ + --argjson committed "$committed" --argjson seed_text "$seed_text" --argjson source_now "$source_now" \ + --argjson run "$run" --argjson logs "$logs" --argjson dest_exists "$dest_exists" --argjson launch "$launch" \ + --argjson frozen "$(j "$FROZEN")" --arg rec "$REC" --arg mod "$mods" \ + 'include "rows-oq3-v5"; + def j2: (try fromjson catch null); + {task: $task, daemon: ($run.daemon // null), report: $report, s5: ($s5 // {}), committed: $committed, seed_text: $seed_text, source_now: $source_now, + auths: (($s8.authorizations // []) | map((.text // "" | j2) + {id, verified})), + run_steps: ($run.steps // null), containment: ($run.containment // null), constraint_text: ($run.constraint_text // null), + s3_step: (if $s3 == null then null else {ok: $s3.ok, error: $s3.error} end), + recall_pre: $pre, recall_s8: $s8, host: (($s8.recall.host // []) | map({id, note, verified, text})), + logs: $logs, dest_exists: $dest_exists, launch: $launch, frozen: $frozen} as $ev + | {launch: $task.id, receipt: $rec, rows_modules_sha256: $mod, rows: ($ev | v5_rows)}' >"$tmp" +h=$(sha256sum "$tmp" | cut -d' ' -f1) +mv "$tmp" "$OUT/$h.v5rows.json" +jq -c --arg id "$ID" --arg rec "$REC" --arg f "$h.v5rows.json" \ + '.rows[] | {row: ($id + "/" + .row), rep: 1, verdict: .result, receipt: $rec, extra_rows_file: $f}' "$OUT/$h.v5rows.json" diff --git a/docs/campaigns/scoring/declarations/oq3-v5.decl.json b/docs/campaigns/scoring/declarations/oq3-v5.decl.json new file mode 100644 index 00000000..dbc2664f --- /dev/null +++ b/docs/campaigns/scoring/declarations/oq3-v5.decl.json @@ -0,0 +1,2680 @@ +{ + "contract": "scoring-v5", + "campaign": "open-model-qwen3 v5 qualification", + "frozen_by": "docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md (Section 4); DRAFT, NOT FROZEN until that file says FROZEN on main", + "note": "v8 row shapes (the v2 declaration rows renamed to the v5 launch ids; for N1 without N1-B, N1-C and N1-H) plus the v4 extra rows (SB, F, CUT, RQ one per declared requirement, SRC, EO, D, NC, BE, N2-R) and the v5 rows (PRE, DEC, GR, OPR, PIN, MEAS, E2-EP, N1-NR, N1-NM, N1-RC, N1-RH). One repetition each, no controls, no NOT_APPLICABLE. Generated by gen-decl-oq3-v5.sh from tasks-oq3-v5.json.", + "rows": [ + { + "row": "D1/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-L", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-M", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-SB", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-F", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-CUT", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-RQ1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-RQ2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-RQ3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-D", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-BE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-PRE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-DEC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-GR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-OPR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-PIN", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D1/D1-MEAS", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-L", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-M", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-SB", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-F", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-CUT", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-RQ1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-RQ2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-RQ3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-RQ4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-RQ5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-D", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-BE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-PRE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-DEC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-GR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-OPR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-PIN", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D2/D2-MEAS", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-L", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-M", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-SB", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-F", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-CUT", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-RQ1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-RQ2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-RQ3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-RQ4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-RQ5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-D", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-BE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-PRE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-DEC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-GR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-OPR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-PIN", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D3/D3-MEAS", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-L", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-M", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-SB", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-F", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-CUT", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-RQ1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-RQ2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-RQ3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-SRC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-D", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-BE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-PRE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-DEC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-GR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-OPR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-PIN", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D4/D4-MEAS", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-L", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-M", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-SB", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-F", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-CUT", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-RQ1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-RQ2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-RQ3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-RQ4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-RQ5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-D", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-BE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-PRE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-DEC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-GR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-OPR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-PIN", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D5/D5-MEAS", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-L", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-M", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-SB", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-F", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-CUT", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-RQ1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-RQ2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-D", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-BE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-PRE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-DEC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-GR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-OPR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-PIN", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "D6/D6-MEAS", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-P", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-K", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-N", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-B", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-SB", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-CUT", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-EO", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-D", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-BE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-PRE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-DEC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-GR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-OPR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-PIN", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E1/E1-MEAS", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-P", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-K", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-N", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-B", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-SB", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-CUT", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-EO", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-EP", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-D", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-BE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-PRE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-DEC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-GR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-OPR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-PIN", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "E2/E2-MEAS", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-X", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-P", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-T", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-SB", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-CUT", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-RQ1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-D", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-BE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-PRE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-DEC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-GR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-OPR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-PIN", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "R1/R1-MEAS", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N1/N1-Z", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N1/N1-E", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N1/N1-NC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N1/N1-BE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N1/N1-NR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N1/N1-NM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N1/N1-RC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N1/N1-RH", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N1/N1-OPR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N1/N1-PIN", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N1/N1-MEAS", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-L", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-F", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-C", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-Z", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-H", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-D", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-NC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-R", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-BE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-PRE", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-DEC", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-OPR", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-PIN", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N2/N2-MEAS", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + } + ] +}