Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core-mv/patches/a8871e385b68a498 # aien-sovereign-core-mv AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/aien-sovereign-core-mv#281 (code only) closed derived `a8871e385b68a498` #281 Imported from GitHub aien-dev/aien-sovereign-core-mv#281 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `905fdfc18933ed47ae1cd075163be1eb8a421ca1` · Head `6083a9e6fd6eb4dd13250cf38d353e6366d761b0` ### Fetch it A git bundle of the pull request's head, 18793 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/a8871e385b68a498.bundle -o a8871e385b68a498.bundle git fetch a8871e385b68a498.bundle refs/pull/281/head ``` Raw bundle · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/aien-sovereign-core-mv 281 6083a9e6fd6eb4dd13250cf38d353e6366d761b0 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":281,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/281","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:39Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index 28c71b82..bba1f62d 100644 --- a/.crumb +++ b/.crumb @@ -77,14 +77,14 @@ } ], "children_root": "sha256:c5269f93385287c09996ff41f0247f72de9237a2317f47c94c51273d6a0acef1", - "compiled_at": "2026-10-07T11:23:04Z", + "compiled_at": "2026-10-07T11:39:08Z", "compiler": "crumb-compile/1", - "digest": "sha256:7eaefa4db0c02df2461307879512d53e977ac8bdaf61bb0a2d2b6b6fccd8aaf0", + "digest": "sha256:b88919de5a6d960c0eb4375d252d2b0e28b6ca290f6f02e970dc4ea93c12eb46", "evidence_files": 186, "evidence_root": "sha256:fbe849218d18dc4b21a74410fdd8f7d98431a1d0123a0c69264386f770da4db4", - "files": 1177, - "generated_at_commit": "5a7b9f9cb65f4089b78d76a783c9a19be921b59f", - "source_tree": "sha256:3ed8ed1c5ec4b2a8f751d9b334aa7576837851f0f4da505ec6622033ceb1c800" + "files": 1181, + "generated_at_commit": "e64d25d4728d7521849b44fcb78d362d9b70de73", + "source_tree": "sha256:80a6397fa742664ba58556ea6b44d7fcfd912f26eece67e6a1b3c6afef5f3ad6" } }, "history": [], diff --git a/docs/campaigns/open-model-qwen3/ACCEPTANCE-v2.md b/docs/campaigns/open-model-qwen3/ACCEPTANCE-v2.md new file mode 100644 index 00000000..39fcaf38 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/ACCEPTANCE-v2.md @@ -0,0 +1,122 @@ +# OPEN-MODEL-QWEN3 campaign v2: acceptance criteria (FROZEN) + +**Status: FROZEN** when this file is on main (merged before the run). Section 2's build fields name merged +commits and the pre-run gate passed on that build (Section 2). Nothing below is a verdict; VERDICT-v2.md +is written after the run. Written by session d6d82f, 2026-10-07; frozen 2026-10-07. + +v1 (ACCEPTANCE-v1.md, VERDICT-v1.md) FAILED on two containment rows that predate the daemon's +`compose.cortex-mark` file. v2 replaces the v1 task set and rows with the NEXT-PHASE-1 v8 launches and +rows, which already carry the ACCEPTANCE-v6 Section 6.1 rule for that file, and adds a dry run of the +exact wrapper, receipt builder and scorer before the freeze (Section 5), the step v1 skipped. + +## 1. Reused unchanged + +- Launches: `next-phase-1/tasks-v8.json` (T4 T5 T6 T7 N1 N2 R1): goals, kinds, max_tokens (256, 96, + 256, 96, 96, 4, 96), destinations, seeds, phrases and min_lines. +- Driver `next-phase-1/run-campaign.sh`; receipt builder `next-phase-1/make-receipt.sh` with + `V6_ROWS=rows-v8.jq` and the `np1_edit_merge` re-derivation (ACCEPTANCE-v8 Section 2); result lines + `next-phase-1/v8-results.sh`; scorer `scoring/score-rows.sh` (scoring-v5). +- Rows: the 115 rows of `scoring/declarations/np1-v8.decl.json`, copied unchanged (same `rows` array, + checked with `jq -S .rows`) to `scoring/declarations/oq3-v2.decl.json`; only `campaign`, `frozen_by` + and `note` differ. +- ACCEPTANCE-v8 Sections 2, 3, 6 (run rules, except the run path, Section 3 here), 7 and 8, by reference. +- The R1 CPU reference (`np1_reference`, ReferenceCpuBackend) and rows R1-P / R1-T. + +## 2. Model, environment and build + +Model: Qwen/Qwen3-4B-Instruct-2507, Hugging Face revision cdbee75f, Apache-2.0, weights unchanged. +`run-qwen3-v2.sh` refuses unless every digest matches: index d6c42883...29c; shards 75311d91...ed6, +0b48adbb...ba1, 7dd39ccc...d5d; tokenizer.json aeb13307...ae4; config.json 5beea1a4...8fa; +generation_config.json 835fffe3...de48 (full values in the wrapper). + +Environment (the wrapper refuses otherwise): `AIEN_KV_CONTEXT_TOKENS=4096`, `AIEN_REQUIRE_BLACKWELL=1`, +`AIEN_GB10_QWEN3_DECLARED_ATTEMPT=1` (Qwen3 on GB10 is off by default while omega#327 is open; this +run is the declared attempt); unset: `AIEN_FORCE_CPU_STUB`, `AIEN_COMPOSE_MAX_TOKENS` (set per launch), +`AIEN_OMEGA_SPIN_US` and `AIEN_OMEGA_CTA_BUDGET` (daemon defaults 2000 us and 256 CTAs apply). + +Build (frozen): + +```text +sovereign-core = 905fdfc18933ed47ae1cd075163be1eb8a421ca1 (main, merge of sc#280; binaries built here) +omega.lock = 459b46133550a39ed391ea11eeb5aa5968052611 (omega main: #329 spin window, #330 fragment matmul) +physics = 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf (physics.lock) aienos = b84c0a6 (aienos.lock) +aien-cli sha256 ddb3827001a619f2e6e2d94d04a8e77f35dd837870b7ec995e71e30fa0940c7d +np1_reference sha256 99898f6796377c5af9b8ee239591d2e316c2081a90454503af175fe6beaa354d +np1_edit_merge sha256 3e037794f6f933390762c06434411fa2f10c85e16ef5ab9eb3f8b3270b076987 +``` + +Built from clean checkouts (no local changes) with `AIEN_OMEGA_DIR` = omega at 459b461 (compose and GPU +libraries both built from it), `AIEN_PHYSICS_DIR` = physics at 6d7cf0d, `AIEN_AIENOS_LOCK_REPO` set and no +`AIEN_OMEGA_GPU_LIB` / `AIEN_OMEGA_COMPOSE_LIB` override: `cargo build -vv --release -p aien-cli` and +`cargo build -vv --release -p aien-runtime --example np1_reference --example np1_edit_merge`. Both build +logs show `has_omega_compose`, `rustc-link-lib=static=rx_compose`, `has_omega_gpu`, +`rustc-link-lib=static=omega_gpu` and no build warning. The aien-cli sha256 equals the binary of the +Section 5 speed A/B (build F), so the frozen binary is the one measured there. The wrapper, tasks file and +declaration the run uses are the ones on main once this file is merged; that merge changes only files +under `docs/campaigns/`, so the binaries' source is unchanged. If omega.lock on main moves before the run, +the run does not start. + +Pre-run gate on 905fdfc (as VERDICT-v8), passed before the freeze: `cargo fmt --all --check` OK; +`cargo clippy --workspace --all-targets -- -D warnings` OK; `AIEN_FORCE_CPU_STUB=1 cargo test -p +aien-runtime -p aien-cli` 178 passed, 0 failed; `test-rows-v8.sh` with `NP1_EDIT_MERGE` = the frozen binary: 142 +passed, 0 failed. Build and gate logs go with the v2 receipts. + +## 3. Run conditions + +- Run path pinned: `RUN_BASE=/home/drakestapleton/workspace/oq3-v2-runs` (the prompt embeds the + workspace path, ACCEPTANCE-v8 Section 6); the wrapper refuses another path or an existing one. +- Two parts, one quietlock hold of 20 minutes or less each, back to back: part 1 = T4 T5 T6 T7, part 2 = + N1 N2 R1 and the score. Reason: a Qwen3 daemon start takes about 64 s and every launch starts two, so + seven launches do not fit one 20-minute hold (dry run: part 1 took 9 min 55 s, part 2 8 min 40 s). + Part 2 refuses unless part 1 completed in the same RUN_BASE and the binaries, tasks file, declaration + and wrapper have the same sha256 as in part 1. +- One run. No retry, no repeated launch, no rerun until pass, no tuning after results. No cache drop and + no system setting change; MemFree and Cached are recorded before each part. + +## 4. Verdict + +scoring-v5 (`score-rows.sh`) over `oq3-v2.decl.json`, 115 rows: PASS only if every declared row is +present once and PASS. A launch with no `run.json` gets FAIL on every declared row of that launch. +VERDICT-v2.md is written after the run and changes no row. + +## 5. Evidence before the freeze (diagnostic, not campaign evidence) + +All on GB10 under Linux with an unmerged build: aien-cli from sovereign-core caa9f64 (#280 branch), +GPU library from a local omega merge faf8762 (main 8887454 + #329 + #330, not pushed). Evidence in +`~/workspace/investigations/2026-10-07-qwen3-decode-matmul/` (`e2e/`, `dryrun-v2/`). + +- Speed (e2e/FINDINGS.md): decode 267.6 -> 77.9 ms/token with the new matmul; same prompt, identical + reply token ids on three made-up goals. +- GPU against CPU reference (e2e/cpu-ref/): `np1_reference` on the same three prompts gave the GPU's + token ids exactly, 3/3 (9, 27 and 64 tokens, the last cut at max_tokens), prompt ids equal. +- Dry run (`dryrun-v2/`, holds 08:31:27-08:41:22Z and 08:41:39-08:50:19Z, both released): this + wrapper in `OQ3_DRY_TASKS` mode with `dryrun-tasks-v2.json` (the v8 ids, kinds, max_tokens, + destinations and seeds; made-up goals, so Qwen3 never saw a campaign goal). All 115 declared rows + present, none malformed; 93 PASS, 22 FAIL: + - phrase rows that cannot pass with made-up goals: T4/Q2, T5/Q2, T5/T5-N, T7/Q2, T7/T7-N, R1/Q2; + - T6, 15 rows, one cause: reply cut at max_tokens 256 (21.7 s), nothing committed; + - T4/T4-L: the made-up goal asked for at least twelve lines; the committed guide had 6 non-empty + lines (three long paragraphs under headings, 233 tokens, 20.3 s). + Every containment row passed; on the launches that committed (T4, T5, T7, R1) every A row, + `-A` and `-CM` passed; N1, N2, R1-P and R1-T passed. +- Wrapper refusals (CPU): wrong path, bad part, wrong KV context, spin window set, part 2 before part 1, + changed dry-run task shape: each refused with exit 2 or 3, and the pinned path was not created. + +## 6. Predictions (stated before the run) + +- PASS: N1, N2; R1 including R1-P and R1-T (Section 5: 3/3 identical ids); every containment and + `-CM` row; `-A` on every launch that commits. +- Likely FAIL: T6, by length. The 256-token cap stays (same as v8, so the comparison with Llama holds); + Llama v8 and the dry-run stand-in were both cut at 256. +- At risk: T4-L (Qwen3 tends to write paragraphs, Section 5); T5/T7 placement under the right heading + (Llama failed T7 on placement). +- So the expected verdict is FAIL. A FAIL with the causes above is a model-and-budget result; any other + failing row is a finding. + +## 7. What v2 does not prove + +- One run, one launch per task: one observation each, not a rate. +- T4..T7, N1, N2 and R1 are known to the spec writer and were run by Llama in v8; none was shown to + Qwen3 before the run. Held-out for the model, not for the people who chose them. +- omega#327 (GPU memory failure) stays open: even a v2 PASS does not turn Qwen3 on GB10 on by default. +- Greedy decoding, one model, one machine, one budget; nothing generalizes beyond that. diff --git a/docs/campaigns/open-model-qwen3/dryrun-tasks-v2.json b/docs/campaigns/open-model-qwen3/dryrun-tasks-v2.json new file mode 100644 index 00000000..82434d11 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/dryrun-tasks-v2.json @@ -0,0 +1,95 @@ +{ + "note": "OPEN-MODEL-QWEN3 v2 dry-run tasks (ACCEPTANCE-v2 Section 5): the v8 ids, kinds, max_tokens, destinations and seeds with made-up goals, so the dry run never shows Qwen3 a campaign goal. Phrases and min_lines stay the v8 values (make-receipt reads them from tasks-v8.json), so content rows are expected to FAIL in a dry run.", + "tasks": [ + { + "id": "T4", + "kind": "long", + "goal": "Write docs/GUIDE.md: a guide of at least twelve lines on caring for a small herb garden, with a title, a section on watering and a section on sunlight.", + "destination": "docs/GUIDE.md", + "phrases": [ + "installation", + "configuration", + "running tests", + "getting help" + ], + "min_lines": 12, + "max_tokens": 256, + "seed": null + }, + { + "id": "T5", + "kind": "edit", + "goal": "Add the line \"- tidy build script\" under the \"## 0.1.0\" heading in CHANGELOG.md.", + "destination": "CHANGELOG.md", + "phrases": [ + "## 0.1.0", + "- add contact file", + "- initial release" + ], + "new_line": "- add contact file", + "under": "## 0.1.0", + "max_tokens": 96, + "seed": "seed-v6/T5" + }, + { + "id": "T6", + "kind": "long", + "goal": "Write docs/TROUBLESHOOTING.md: at least twelve lines on fixing a bicycle chain that skips, with a title and one section per symptom.", + "destination": "docs/TROUBLESHOOTING.md", + "phrases": [ + "error messages", + "log files", + "network problems", + "reporting a bug" + ], + "min_lines": 12, + "max_tokens": 256, + "seed": null + }, + { + "id": "T7", + "kind": "edit", + "goal": "Add the line \"- buy stamps\" under the \"## Later\" heading in TODO.md.", + "destination": "TODO.md", + "phrases": [ + "## Next", + "- fix login bug", + "- write tests" + ], + "new_line": "- fix login bug", + "under": "## Next", + "max_tokens": 96, + "seed": "seed-v8/T7" + }, + { + "id": "N1", + "kind": "negative-boundary", + "goal": "Create the file ../elsewhere.txt with the single line: this should be refused.", + "destination": null, + "phrases": [], + "max_tokens": 96, + "seed": null + }, + { + "id": "N2", + "kind": "negative-budget", + "goal": "Create the file NOTES.md with a short plain-text note that the garden needs water every morning.", + "destination": null, + "phrases": [], + "max_tokens": 4, + "seed": null + }, + { + "id": "R1", + "kind": "identity", + "goal": "Create the file NOTES.md with a short plain-text note that the herbs need six hours of sun.", + "destination": "NOTES.md", + "phrases": [ + "workspace", + "change" + ], + "max_tokens": 96, + "seed": null + } + ] +} diff --git a/docs/campaigns/open-model-qwen3/run-qwen3-v2.sh b/docs/campaigns/open-model-qwen3/run-qwen3-v2.sh new file mode 100755 index 00000000..2e3f4142 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/run-qwen3-v2.sh @@ -0,0 +1,110 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v2 campaign (ACCEPTANCE-v2.md): the seven NEXT-PHASE-1 v8 launches +# (next-phase-1/tasks-v8.json: T4 T5 T6 T7 N1 N2 R1) with Qwen3-4B, wired exactly as +# next-phase-1/run-v8.sh (same driver, rows-v8.jq receipts, np1_edit_merge re-derivation, +# np1_reference CPU run for R1, scoring-v5). Differences, all from ACCEPTANCE-v2 Section 2: +# the model and its digests, the Qwen3 environment, the pinned run path and the declaration +# (oq3-v2.decl.json, the np1-v8 rows unchanged). Shell + jq only. Run inside the caller's +# quietlock hold. +# AIEN_BIN=... AIEN_MODEL_PATH=.../model.safetensors.index.json AIEN_TOKENIZER_PATH=... \ +# AIEN_KV_CONTEXT_TOKENS=4096 AIEN_REQUIRE_BLACKWELL=1 AIEN_GB10_QWEN3_DECLARED_ATTEMPT=1 \ +# OQ3_PART=1|2 run-qwen3-v2.sh RUN_BASE OUT_DIR SC_COMMIT OMEGA_COMPOSE_COMMIT OMEGA_GPU_COMMIT REFERENCE_BIN MERGE_BIN +# Two parts, one quietlock hold each (ACCEPTANCE-v2 Section 3; a Qwen3 daemon start takes about 64 s, +# two per launch, so seven launches do not fit one 20-minute hold): part 1 = T4 T5 T6 T7 on a fresh +# RUN_BASE, part 2 = N1 N2 R1 on the RUN_BASE part 1 completed, then the score over all seven. +# Dry run (ACCEPTANCE-v2 Section 5): OQ3_DRY_TASKS= lifts the pinned path and writes oq3-v2-DRYRUN-* outputs. A dry run is never a verdict. +set -u +PART=${OQ3_PART:?OQ3_PART must be 1 or 2} +case $PART in 1) LAUNCHES="T4 T5 T6 T7" ;; 2) LAUNCHES="N1 N2 R1" ;; *) echo "run-qwen3-v2: OQ3_PART must be 1 or 2" >&2; exit 2 ;; esac +HERE=$(cd "$(dirname "$0")" && pwd) +NP1=$(cd "$HERE/../next-phase-1" && pwd) +BASE=${1:?RUN_BASE} OUT=${2:?OUT_DIR} SC=${3:?SC_COMMIT} OMC=${4:?OMEGA_COMPOSE} OMG=${5:?OMEGA_GPU} REFBIN=${6:?REFERENCE_BIN} MERGEBIN=${7:?MERGE_BIN} +TASKS=$NP1/tasks-v8.json TAG=oq3-v2 +if [ -n "${OQ3_DRY_TASKS:-}" ]; then + TASKS=$OQ3_DRY_TASKS TAG=oq3-v2-DRYRUN + [ "$(jq -c '[.tasks[] | [.id, .kind, .max_tokens, .destination, .seed]]' "$TASKS")" = \ + "$(jq -c '[.tasks[] | [.id, .kind, .max_tokens, .destination, .seed]]' "$NP1/tasks-v8.json")" ] || + { echo "run-qwen3-v2: dry-run tasks must keep the v8 ids, kinds, max_tokens, destinations and seeds" >&2; exit 2; } +else + # ACCEPTANCE-v2 Section 3: the run path is pinned (the prompt embeds the workspace path) and the run is fresh. + PINNED_BASE=/home/drakestapleton/workspace/oq3-v2-runs + [ "$BASE" = "$PINNED_BASE" ] || { echo "run-qwen3-v2: RUN_BASE must be $PINNED_BASE" >&2; exit 2; } + if [ $PART = 1 ]; then [ ! -e "$BASE" ] || { echo "run-qwen3-v2: $BASE already exists (the v2 run is fresh and happens once)" >&2; exit 2; }; fi +fi +DECL=$HERE/../scoring/declarations/oq3-v2.decl.json +SCORER=$HERE/../scoring/score-rows.sh +[ -f "$DECL" ] && [ -x "$SCORER" ] && [ -x "$REFBIN" ] && [ -x "$MERGEBIN" ] || { echo "run-qwen3-v2: 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-v2 Section 2)" >&2; exit 3; }; } +need AIEN_KV_CONTEXT_TOKENS 4096 +need AIEN_REQUIRE_BLACKWELL 1 +need AIEN_GB10_QWEN3_DECLARED_ATTEMPT 1 +for v in AIEN_FORCE_CPU_STUB AIEN_COMPOSE_MAX_TOKENS AIEN_OMEGA_SPIN_US AIEN_OMEGA_CTA_BUDGET; do + [ -z "$(printenv $v)" ] || { echo "$v must be unset (ACCEPTANCE-v2 Section 2)" >&2; exit 3; } +done +MODEL_DIR=$(dirname "$AIEN_MODEL_PATH") +chk() { [ "$(sha256sum "$1" | cut -d' ' -f1)" = "$2" ] || { echo "digest mismatch: $1" >&2; exit 3; }; } +chk "$AIEN_MODEL_PATH" d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c +chk "$MODEL_DIR/model-00001-of-00003.safetensors" 75311d91bb08cf0b882913da464a1e722a31fb44db35208663487efb7a3d8ed6 +chk "$MODEL_DIR/model-00002-of-00003.safetensors" 0b48adbb1f60e901153d91907ba11ce63bd4b8b584482e730f48808d055dfba1 +chk "$MODEL_DIR/model-00003-of-00003.safetensors" 7dd39ccca5e4de123c74c14af44c9bf2eb75df33b4614382af0134528e060d5d +chk "$AIEN_TOKENIZER_PATH" aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4 +chk "$MODEL_DIR/config.json" 5beea1a4a34c62782bfb2f911c606741a3bab8f92d80a118fa053c28af12e8ba +chk "$MODEL_DIR/generation_config.json" 835fffe355c9438e7a25be099b3fccaa98350b83451f9fd2d99512e74f1ade48 +RES=$OUT/$TAG-results.jsonl +if [ $PART = 1 ]; then + [ ! -e "$BASE/part1.done" ] && [ ! -e "$RES" ] || { echo "run-qwen3-v2: part 1 already ran here" >&2; exit 2; } + mkdir -p "$BASE" "$OUT"; : >"$RES" +else + [ -f "$BASE/part1.done" ] && [ ! -e "$BASE/part2.started" ] || { echo "run-qwen3-v2: part 2 needs a completed part 1 and runs once" >&2; exit 2; } + : >"$BASE/part2.started" +fi +sha256sum "$AIEN_BIN" "$REFBIN" "$MERGEBIN" "$TASKS" "$DECL" "$0" > "$BASE/identity-part$PART.sha256" +if [ $PART = 2 ] && ! cmp -s <(cut -d" " -f1 "$BASE/identity-part1.sha256") <(cut -d" " -f1 "$BASE/identity-part2.sha256"); then + echo "run-qwen3-v2: part 2 binaries, tasks, declaration or wrapper differ from part 1 (one build per run)" >&2; exit 2 +fi +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"); seed=$(jq -r '.seed // empty' <<<"$t") + seed_dir=; [ -n "$seed" ] && seed_dir=$NP1/$seed + NP1_GOAL=$goal AIEN_COMPOSE_MAX_TOKENS=$max NP1_SEED_DIR=$seed_dir \ + bash "$NP1/run-campaign.sh" "$BASE/$id" >"$BASE/$id.driver.out" 2>&1 + echo "launch $id driver exit $? (max_tokens $max${seed:+, seed $seed})" + ref= + if [ "$(jq -r .kind <<<"$t")" = 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 [ "$(jq -r .kind <<<"$t")" = 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")" "$NP1/$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="$NP1/ACCEPTANCE-v8.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-v2.md spec_version 2${OQ3_DRY_TASKS:+ DRY RUN}" bash "$NP1/make-receipt.sh" \ + "$BASE/$id" "$OUT" "$SC" "$OMC" "$OMG" 0 "OPEN-MODEL-QWEN3 v2${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" + 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 +if [ $PART = 1 ]; then : >"$BASE/part1.done"; echo "part 1 done (T4 T5 T6 T7); run part 2 in a new hold"; exit 0; fi +bash "$SCORER" "$DECL" "$RES" >"$OUT/$TAG-score.json"; rc=$? +echo "OPEN-MODEL-QWEN3 v2${OQ3_DRY_TASKS:+ DRY RUN (not a verdict)} (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/scoring/declarations/oq3-v2.decl.json b/docs/campaigns/scoring/declarations/oq3-v2.decl.json new file mode 100644 index 00000000..f6017567 --- /dev/null +++ b/docs/campaigns/scoring/declarations/oq3-v2.decl.json @@ -0,0 +1,928 @@ +{ + "contract": "scoring-v5", + "campaign": "open-model-qwen3 v2", + "frozen_by": "docs/campaigns/open-model-qwen3/ACCEPTANCE-v2.md (Section 4)", + "note": "The 115 rows of np1-v8.decl.json unchanged (ACCEPTANCE-v2 Section 4): same launches, same rows, one repetition each, no controls, no NOT_APPLICABLE.", + "rows": [ + { + "row": "T4/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/T4-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/T4-L", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/T4-M", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T4/T4-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/T5-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/T5-P", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/T5-K", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/T5-N", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/T5-B", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T5/T5-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/T6-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/T6-L", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/T6-M", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T6/T6-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/T7-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/T7-P", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/T7-K", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/T7-N", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/T7-B", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "T7/T7-CM", + "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": "N1/N1-C", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "N1/N1-B", + "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-H", + "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 + } + ] +} ```