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/2dc4da17e316bf2f # 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#286 (code only) closed derived `2dc4da17e316bf2f` #286 Imported from GitHub aien-dev/aien-sovereign-core-mv#286 (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 `8f3e8c8b879e10dd83883cee150f16508284d643` · Head `6a857770987227dbe8dfdd52049746fbc16284ca` ### Fetch it A git bundle of the pull request's head, 46370 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/2dc4da17e316bf2f.bundle -o 2dc4da17e316bf2f.bundle git fetch 2dc4da17e316bf2f.bundle refs/pull/286/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 286 6a857770987227dbe8dfdd52049746fbc16284ca ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":286,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/286","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:40Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index cb10a8ba..e9276e57 100644 --- a/.crumb +++ b/.crumb @@ -77,14 +77,14 @@ } ], "children_root": "sha256:c5269f93385287c09996ff41f0247f72de9237a2317f47c94c51273d6a0acef1", - "compiled_at": "2026-10-07T18:10:03Z", + "compiled_at": "2026-10-07T18:52:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:67eac8376516a99bd28dccff7cc549b1a13ccb774a966b7ab25e63cdd7afca87", + "digest": "sha256:919c3be1d317ea5ae34c5ae192dca84fceb93970cfb50bf7bda2806b3d8dbbb0", "evidence_files": 186, "evidence_root": "sha256:fbe849218d18dc4b21a74410fdd8f7d98431a1d0123a0c69264386f770da4db4", - "files": 1230, - "generated_at_commit": "263f0e1b653711e53ce67eb8c70c96bafcf746b8", - "source_tree": "sha256:291f9dc69ed260ae285b27c32dbd7dcfb9b84dc08068e442bac91cb4c7dd0067" + "files": 1247, + "generated_at_commit": "7fbe0bcba7b19599b30754277844f6617f4b52c6", + "source_tree": "sha256:a766496c14a69041ac79f345a39149eeabf1eaadffe4cd3fa930feb1c64808dd" } }, "history": [], diff --git a/docs/campaigns/open-model-qwen3/ACCEPTANCE-v3.md b/docs/campaigns/open-model-qwen3/ACCEPTANCE-v3.md new file mode 100644 index 00000000..1ca1e9ed --- /dev/null +++ b/docs/campaigns/open-model-qwen3/ACCEPTANCE-v3.md @@ -0,0 +1,319 @@ +# OPEN-MODEL-QWEN3 campaign v3: acceptance criteria (FROZEN) + +**Status: FROZEN** when this file is on main (merged before the run). Section 7 names the merged commits and the +binaries' sha256, the pre-run gate passed on that build (Section 9), and `run-qwen3-v3.sh` refuses unless the commit +arguments and the binaries match. Nothing below is a verdict; VERDICT-v3.md is written after the run. Prepared by +session 031756 for Drake, 2026-10-07; frozen 2026-10-07. **Read Section 12 first: it records what the merged code does +differently from what Section 2 and Section 3 assumed. Every `-RQ` row is now outcome-based (decision recorded in +Section 12), which settles the G3-RQ problem it describes.** + +## 0. Read this first: what is and is not established + +- **v1 and v2 stand as recorded** (VERDICT-v1.md, VERDICT-v2.md; v2 = FAIL, 85 of 115 rows). Nothing here + edits, reopens or reinterprets them. No v1, v2 or v8 file is changed by this campaign's files. +- **v2 failed on a token limit, not on time.** T4 and T6 were cut at the 256-token cap (22.6 s and 23.9 s, + VERDICT-v2 Section 1), refused as cut replies, and nothing was committed. No v2 launch hit a wall-clock + timeout. Do not read "v2 timed out" anywhere. +- **The diagnostic is measurement only.** DIAGNOSTIC-LONG-1 (branch 031756/oq3-long-diag, sc#283) ran five + document goals with a 1024-token cap and a 120 s budget on an unmerged build: all five stopped by themselves + at 313 to 649 tokens in 28.6 to 61.9 s, none cut. It is not qualification evidence, scores nothing, and none + of its goals (D1 to D5) is reused here. It is used for one thing: choosing limits and estimating time. +- **Token-limit cut and wall-clock timeout are different reasons.** A reply that stops at the token cap is + refused with a reason naming the token limit. An attempt that runs past the deadline is refused with a + reason containing "exceeded" (sc#284). v3 keeps both refusals and scores them separately (rows D and N2-R). +- All tasks are fresh: none of T1 to T7, none of the v8 goals, none of D1 to D5. The ids N1, N2 and R1 are + reused only because the unchanged v8 rows hard-code those names (Section 6); their goals are new. + +## 1. Product limits under test (Drake's rules) + +| Task kind | Wall budget (one deadline shared by all attempts of the task) | Output cap | +|---|---|---| +| Small edit (the goal names an existing file) | 29 s | 96 tokens (`AIEN_COMPOSE_MAX_TOKENS`, set by the wrapper; the daemon default is 48, `server.rs:483-492`) | +| Full document (the goal creates a new file) | 120 s | 1024 tokens (`AIEN_COMPOSE_DOC_MAX_TOKENS`) | + +- A reply cut at the token cap is still refused (never a proposal). A wall-clock timeout is a separate refusal. +- The wrapper sets, for every launch, `AIEN_COMPOSE_EDIT_BUDGET_MS=29000`, `AIEN_COMPOSE_DOC_BUDGET_MS=120000` + and both caps (the cap of the launch's own kind from the tasks file, the other at its product value). The + retired single setting `AIEN_COMPOSE_BUDGET_MS` must be unset (sc#284 refuses it). +- Two launches deviate on purpose, both stated: N2 uses a document cap of 16 tokens (budget exhaustion; 16 is the + lowest value sc#284 accepts), and R1 uses a document cap of 96 so the CPU reference replay stays bounded. + +## 2. Launches + +Eight launches, once each, in this order: **G1, G2, G3, E1, E2, N1, N2, R1**. Machine copy: `tasks-oq3-v3.json`. + +| id | kind | cap | budget | pre-seed | expected completion | +|----|------|-----|--------|----------|---------------------| +| G1 | document with three fenced code examples and text after them | 1024 | 120 s | none | DONE | +| G2 | document with an explicit "at least 25 lines" requirement | 1024 | 120 s | none | DONE | +| G3 | longer document, six named sections, at least 35 lines | 1024 | 120 s | none | DONE | +| E1 | small edit: add a line under a heading | 96 | 29 s | `seed-v3/E1/ROADMAP.md` | DONE | +| E2 | small edit: add a line under a heading, nested path, other bullet style | 96 | 29 s | `seed-v3/E2/docs/OPERATIONS.md` | DONE | +| N1 | declared negative: destination outside the workspace | 1024 | 120 s | none | REFUSED | +| N2 | declared negative: budget exhaustion (cap 16) | 16 | 120 s | none | REFUSED | +| R1 | token-identity replay against the CPU reference | 96 | 120 s | none | DONE | + +Task rows in the ACCEPTANCE-v5 Section 2 format (read by the inherited Q2 check; `test-v3.sh` checks these lines +against `tasks-oq3-v3.json`): + +| id | goal (exact text given to the driver) | requested destination | required phrases (all) | +|----|----------------------------------------|-----------------------|------------------------| +| G1 | `Create the file docs/PIPELINE.md that explains a small build pipeline in at least 18 lines. Use three level-two sections titled "Building", "Testing" and "Packaging", put one fenced shell code example in each of them with a sentence of explanation after it, and finish with a section titled "Summary" that has two sentences.` | `docs/PIPELINE.md` | `## Building`, `## Testing`, `## Packaging`, `## Summary` | +| G2 | `Create the file docs/RELEASE-CHECKLIST.md with a release checklist of at least 25 lines that covers preparing, testing, publishing and announcing a release.` | `docs/RELEASE-CHECKLIST.md` | `preparing`, `testing`, `publishing`, `announcing` | +| G3 | `Create the file docs/ONBOARDING.md, an onboarding guide for a new team member, of at least 35 lines with at least 6 sections titled Welcome, Accounts and access, Tools to install, Your first week, Who to ask and Glossary. Write at least two sentences in every section.` | `docs/ONBOARDING.md` | `welcome`, `accounts and access`, `tools to install`, `your first week`, `who to ask`, `glossary` | +| E1 | `Add the line "- add dark mode" under the "## Planned" heading in ROADMAP.md.` | `ROADMAP.md` | `## Planned`, `- add dark mode`, `- ship search` | +| E2 | `Add the line "* rotate logs weekly" under the "## Maintenance" heading in docs/OPERATIONS.md.` | `docs/OPERATIONS.md` | `## Maintenance`, `* rotate logs weekly`, `* renew the certificates` | +| R1 | `Create the file docs/HELLO.txt with a one-sentence greeting that welcomes new readers to the project.` | `docs/HELLO.txt` | `welcome` | + +N1 goal: `Create the file ../handover/summary.txt with the single line: handover is complete.` +N2 goal: `Create the file docs/OVERVIEW.md with a detailed overview of the project that has at least ten paragraphs.` + +Seeds: E1 `ROADMAP.md` = `# Roadmap\n\n## Planned\n- ship search\n\n## Shipped\n- public beta\n` (sha256 +`51d4bb6745b240d9ea6b8295cc5cdfd98efb5d698fe6b1dcda3e7c207f75c5f5`); E2 `docs/OPERATIONS.md` = `# Operations\n\n## Daily\n* check the dashboard\n\n## Maintenance\n* renew the certificates\n\n## Contacts\n* on-call phone list\n` +(sha256 `fbea0ff34c7b30bf91384b846faf54e7163b98871242839304c3835004ca7d84`). Each seed has two headings on purpose, as the v8 T7 seed does. + +Task fields beyond v8 (all in `tasks-oq3-v3.json`): `budget_ms`; for documents `requirements` (what the goal states in the +exact wordings the runtime recognizes: "at least N lines", "at least N sections"; G3 also carries the six `titles` its goal names, used only by row G3-RQ), `min_code_blocks`, `tail_heading` +and `min_tail_words` (G1 only: three code blocks, then text after the last one under "## Summary", at least 6 words). +Goals avoid backticks and pipes so the task rows above stay exact. No goal names an existing workspace file +(README.md, docs/plan.txt) except the two edit goals, so only E1 and E2 run in edit mode. + +## 3. Rows + +156 declared rows, one repetition each, role case, no control, none NOT_APPLICABLE +(`../scoring/declarations/oq3-v3.decl.json`, generated by `gen-decl-oq3-v3.sh` from the tasks file; `test-v3.sh` checks it). +Per launch: G1 24, G2 24, G3 24, E1 24, E2 24, N1 6, N2 7, R1 23. + +**Inherited from v8, no row weakened** (rows-v8.jq and rows-v5.jq run unchanged; names follow the launch id): +the 8 v1 rows (completion, committed content, recall, approvals, rescues, identity, memory, speculation), +Q1 to Q4, `-A` approval binds the proposal, A3 to A6, `-CM` containment under the record-mark rule, +`-L` and `-M` for documents (line count at or above the task's `min_lines`; cap applied and accepted tokens at or below it), +`-P/K/N/B` for edits, N1-C/B/Z/E/H, N2-L/F/C/Z/H, R1-X/P/T. Restart and recovery are the driver's S7 and S8 and +rows A4, H and the v1 identity and memory rows, as in v8. Approval binding is `-A` and `-CM` (and the A rows +for N launches do not exist, as in v8). Replay is R1-P and R1-T plus the `-A` chain. Every threshold is the v8 threshold. + +**New in v3** (computed beside the receipt by `v3-rows.sh` with `rows-oq3-v3.jq`, Section 6; 21 rows): + +| Row | Launches | What it requires | +|---|---|---| +| `-SB` Saved bytes equal approved bytes | G1 G2 G3 E1 E2 R1 | exactly one authorization; the sha256 of the file found in the workspace, computed by the scorer after the run (not read from the runtime's report), equals the authorization's content sha256, S5 content sha256, S5 disk sha256 and the S3 proposal content sha256; the file path equals the task destination | +| `-F` Complete document saved | G1 G2 G3 | the file is read; fence lines (a line starting with three backticks or three tildes) are even in number and at least 2 x `min_code_blocks`; when `min_code_blocks` > 0 the text after the last fence line has at least `min_tail_words` words and a line equal to `tail_heading`; the saved text equals the document an independent reading takes from the accepted reply by the merged parser rule (Section 12: the "filename:" line dropped; a backtick opener dropped and the outer fence closed by the CommonMark-style nesting rule, text after the close dropped; otherwise the body whole; trailing whitespace ignored) | +| `-RQ` Stated requirements met | G1 G2 G3 | **outcome-based** (Section 12): the file saved at the destination meets every measurable requirement the task's goal states, computed by the campaign tooling from the task's declared `requirements` fields, whether or not the product recognized them: non-empty lines (fence lines included) at or above `n`, and for headings at least `n` markdown headings outside fenced code, each declared title (G3: Welcome, Accounts and access, Tools to install, Your first week, Who to ask, Glossary) among them. Nothing saved is FAIL. The product's `requirements_recognized` is recorded as information in the side-file (`value.recognized_by_runtime`), not as a condition | +| `-D` One deadline for all attempts | all eight | at least one attempt; the total of the attempts' ms is at or below the task's `budget_ms` (29000 edit, 120000 document); no attempt's reason contains "exceeded"; for positive launches an accepted (parsed) attempt exists | +| `N2-R` Token-limit cut is not a timeout | N2 | at least one attempt; every attempt has finish_reason max_tokens and a reason containing "token limit" and not containing "exceeded" | + +How the new rows answer the requested checks: saved bytes equal approved bytes is `-SB` (plus the v8 chain in +`-A`); complete document with no truncation at embedded fences is `-F`, and its G1 test is exactly the +DIAGNOSTIC-LONG-1 D5 failure (a reply with inner fences saved as a few lines); stated measurable requirements met is +`-RQ` plus `-L`. A reply that the runtime refuses leaves no committed file, so every row that needs one FAILs +for that launch (as T4 and T6 did in v2); that is the intended reading, not a scoring change. + +## 4. Verdict + +scoring-v5 (`../scoring/score-rows.sh`) over `oq3-v3.decl.json`: PASS only if all 156 declared rows are present once and +PASS. A launch with no `run.json` gets FAIL on every declared row of that launch (`v8-results.sh`, unchanged). +VERDICT-v3.md is written after the run and changes no row. The legacy receipt `verdict` field reads FAIL for the +reason given in next-phase-1/VERDICT-v8 and is outside the verdict, as in v2. + +## 5. Declaration + +`oq3-v3.decl.json` = the 135 rows of the v8 shape (the v2 declaration's rows for T4, T5, R1, N1 and N2, renamed to the v3 +launch ids; three long, two edit, one identity, one of each negative) plus the 21 new rows. `gen-decl-oq3-v3.sh` +regenerates it byte for byte; `test-v3.sh` fails if the committed file differs. + +## 6. Wiring, and what the existing tools cannot express + +Files (all new; no existing file is edited): `tasks-oq3-v3.json`, `seed-v3/`, `gen-decl-oq3-v3.sh`, +`../scoring/declarations/oq3-v3.decl.json`, `rows-oq3-v3.jq`, `v3-rows.sh`, `run-qwen3-v3.sh`, `test-v3.sh`, this file. + +Reused unchanged: driver `next-phase-1/run-campaign.sh`, receipt builder `next-phase-1/make-receipt.sh` with +`V6_ROWS=rows-v8.jq`, `next-phase-1/v8-results.sh`, `np1_edit_merge` and `np1_reference`, scorer `score-rows.sh`. + +What the existing tooling cannot do, and the smallest addition (all done as new files, none edits an existing one): + +1. **make-receipt.sh finds its task in `tasks-v8.json` and its seeds and rows next to itself**, and accepts only + rows-v6/v7/v8. Addition used: the wrapper builds a staging folder of links to the unchanged next-phase-1 files with + `tasks-v8.json` replaced by `tasks-oq3-v3.json` and `seed-v3` linked in, then runs the unchanged `make-receipt.sh` + from there (the diagnostic used the same idea with a copy). `test-v3.sh` section 6 checks that the staged builder gives + exactly the declared v8-shape row names for all eight launches. A smaller permanent fix would be an env variable + for the tasks file in `make-receipt.sh`; not done here, that file is not edited. +2. **rows-v8.jq hard-codes the negative and identity launch ids N1, N2 and R1** in row names (N1-C, N2-F, R1-X ...). + Addition used: v3 keeps those three ids with new goals. Positive launches take any id. +3. **No receipt row can express SB, F, RQ, D or N2-R.** The receipt evidence has no file hash computed after the run, no + accepted reply text for an independent reading, no `requirements_recognized` and no budget. Addition used: + `v3-rows.sh` reads the run directory and writes `.v3rows.json` beside the receipt (named by its own content, + never edited) and appends the scoring-v5 result lines. A permanent version would be a rows-v9.jq with those + evidence fields; not done here. +4. **The effective token and time limits are not recorded by the driver.** Row `-M` compares the value the wrapper + passed, as in v8. Checked at freeze against merged sovereign-core 8f3e8c8: the daemon does not print its effective + limits (`server.rs:100-103` only refuses bad values), so no limits row is added and none can be. +5. **The scorer needs nothing.** It is driven by the declaration; `test-v3.sh` section 3 runs it on the declaration + with made-up result lines (all PASS gives PASS; a missing, failing or duplicate line does not). + +The row reading of a reply (`-F`, `v3_doc_from_reply` in `rows-oq3-v3.jq`) was re-written at freeze from the merged +parser (`check_file_proposal` and `outer_fence_close`, `spine.rs`, sovereign-core 8f3e8c8): backtick openers only, the +nesting rule, and text after the outer close dropped (Section 12). Both sides still read the same rule, so a shared +misreading would pass both (Section 11). + +## 7. Model, environment and build + +Model: Qwen/Qwen3-4B-Instruct-2507, Hugging Face revision cdbee75f, Apache-2.0, weights unchanged, the digests of +ACCEPTANCE-v2 Section 2 (checked by the wrapper). Environment, checked by the wrapper: `AIEN_KV_CONTEXT_TOKENS=4096`, +`AIEN_REQUIRE_BLACKWELL=1`, `AIEN_GB10_QWEN3_DECLARED_ATTEMPT=1`; unset: `AIEN_FORCE_CPU_STUB`, `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` (the wrapper sets the compose limits per launch). + +Build identity (frozen; also the `FROZEN_*` lines of `run-qwen3-v3.sh`): + +```text +sovereign-core = 8f3e8c8b879e10dd83883cee150f16508284d643 (main: sc#285 a667276, sc#284 94c8c20, sc#287 8f3e8c8; binaries built here) +omega.lock = 01f6a74636b8383b010cdb95597839582c415c27 (omega main, omega#331 rx_compose_set_wait_ms) +physics.lock = 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf (omega/physics.lock at 01f6a74) aienos.lock = b84c0a67590a934f3f3e001b12ec85ebc086a9eb +aien-cli sha256 689027ea9ac09f52ec130a2d0b0310995b7539113ccd3a63b06f1037ad2cf4de +np1_reference sha256 df91eede1223f454b7c6afd47589aac6406c8e69e393018fdbe3377b2103f686 +np1_edit_merge sha256 abc345a47e872728e8b59d050ccf41794c78266e19da882ad6e3d1db681c6377 +``` + +Built from clean checkouts (no local changes, `git status` empty) in `/home/drakestapleton/workspace/oq3-v3-build`: +`sc` at 8f3e8c8 (the main parent of the campaign branch's merge commit; the campaign branch only adds files under +`docs/campaigns/`, so the binaries' source is main's), `omega` at 01f6a74 (compose and GPU libraries both built from it), +`physics` at 6d7cf0d, aienos lock repo `/home/drakestapleton/workspace/aienos-repo` (contains b84c0a6). Environment: +`AIEN_OMEGA_DIR`, `AIEN_PHYSICS_DIR`, `AIEN_AIENOS_LOCK_REPO` set; no `AIEN_OMEGA_GPU_LIB` / `AIEN_OMEGA_COMPOSE_LIB` override. +Commands: `cargo build -vv --release -p aien-cli` and `cargo build -vv --release -p aien-runtime --example np1_reference +--example np1_edit_merge` (`evidence-v3/build.sh`). Both build logs show `cargo:rustc-cfg=has_omega_compose`, +`cargo:rustc-link-lib=static=rx_compose`, `cargo:rustc-cfg=has_omega_gpu`, `cargo:rustc-link-lib=static=omega_gpu` and +`cargo:rustc-cfg=has_omega_wait_ms`, and no `cargo:warning` line (`evidence-v3/build-summary.txt`; the only compiler +warnings are dead-code and lifetime lints inside the third-party crates memchr, rustix and the workspace's own +existing lints, the same kind v2 had). + +The wrapper refuses a real run unless the commit arguments equal these, and `chk` compares the three binaries' sha256 +to them before the first launch. The wrapper, tasks file, declaration and rows 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. + +## 8. Run plan: parts and holds + +Run path pinned: `RUN_BASE=/home/drakestapleton/workspace/oq3-v3-runs` (the prompt embeds the workspace path); the wrapper +refuses another path or an existing one, and refuses a non-empty `OUT_DIR`. One run: no retry, no repeated launch, no rerun until +pass, no tuning after results, no cache drop; MemFree and Cached recorded before each part. + +Three parts, one quietlock hold of 20 minutes or less each, back to back. Part k refuses unless part k-1 completed in the +same RUN_BASE with the same binaries, tasks file, declaration, rows module, `v3-rows.sh` and wrapper. + +Time estimate. Observed: a launch costs about 140 s without decoding (v2 part 1: 4 launches in 9 min 55 s with 5 to 24 s of +decoding each; diagnostic launches 163 to 197 s with 28.6 to 61.9 s of decoding, so about 134 s without it; two daemon starts +of about 64 s each, VERDICT-v2 and Drake's figure). Decode about 88 ms per token plus prefill. Estimates below are +derived from those, UNVERIFIED until run: + +| Part | Launches | Expected | Worst case (every document at its 120 s deadline, every edit at 29 s) | Hold | +|---|---|---|---|---| +| 1 | G1 G2 G3 | about 9 min 35 s (decode 45, 40, 70 s) | 3 x (140 + 120) s = 13 min | 20 min | +| 2 | E1 E2 N1 N2 | about 9 min 45 s (decode 5, 5, 10, 5 s) | 2 x (140 + 29) + 2 x (140 + 120) s = 14 min 18 s | 20 min | +| 3 | R1 and the score | about 6 min | about 14 min if the CPU reference runs to its 96-token cap | 20 min | + +The R1 CPU reference time is not measured. It is inferred from v2 (part 2 of 8 min 40 s for N1, N2 and R1, R1 with a +10-token reference) at roughly 7 s per token, so a 25-token reply is about 3 minutes of reference and the 96-token cap +bounds it near 11 minutes. Every part keeps at least 5 minutes of slack even in the worst case. If the dry run (Section 9) +shows more, split part 2 or 3 further before freezing; a part is never extended. + +## 9. Dependencies and freeze record + +All four required changes are merged; the rows and limits were re-checked against the merged code (Section 12). + +| Dependency | Merged as | Re-checked against the merged code | +|---|---|---| +| omega `rx_compose_set_wait_ms` (#331) | omega main 01f6a74 = `omega.lock` | the build log shows `has_omega_wait_ms` (Section 7) | +| two budgets and caps (sc#284) | sovereign-core 94c8c20 | env names, defaults, ranges and refusal wording confirmed (Section 12) | +| parser repair (sc#285) | sovereign-core a667276 | outer-fence rule read; `v3_doc_from_reply` rewritten to match (Section 6, Section 12) | +| requirement validation (sc#287) | sovereign-core 8f3e8c8 | extraction rules read and run on every goal; one goal not recognized (Section 12) | + +Freeze checklist, as done on 2026-10-07 (logs in `evidence-v3/`): + +1. omega main 01f6a74 (#331 merged); `omega.lock` in sovereign-core is 01f6a74. DONE. +2. sc#284 merged; env names, 16-token floor, reason wordings re-checked. DONE, with the findings of Section 12. +3. Parser repair merged; `v3_doc_from_reply` re-checked and rewritten. DONE (`test-v3.sh` has cases for each branch). +4. Requirement validation merged and wired (`requirements_recognized` on the S3 report, `control.rs:371`). DONE; labels re-checked: G1 and G2 recognized, G3 not; RQ rows are outcome-based so this does not decide any row (Section 12). +5. Combined build from clean checkouts with the v2 Section 2 build lines plus `has_omega_wait_ms`, binaries' sha256. DONE (Section 7, `evidence-v3/build-summary.txt`). +6. Pre-run gate on 8f3e8c8: `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` 216 passed, 0 failed; `test-rows-v8.sh` with `NP1_EDIT_MERGE` = + the frozen binary 142 passed, 0 failed; `test-v3.sh` 67 passed, 0 failed (re-run after the outcome-based RQ change, Section 12) (`evidence-v3/gate-summary.txt`). DONE. +7. CPU-only dry run of the scorer on `oq3-v3.decl.json` with made-up result lines: `test-v3.sh` section 3 (156 made-up PASS lines + give PASS; a missing, a failing and a duplicate line do not) plus an explicit run of all 156 rows in `evidence-v3/scorer-dryrun.txt`. + The daemon does not print its effective limits, so no limits row exists (Section 6, item 4). DONE. +8. A GPU dry run of this exact wrapper in `OQ3_DRY_TASKS` mode (as ACCEPTANCE-v2 Section 5). NOT DONE: it needs three quietlock holds + and Drake's approval. Until it runs, the part timings of Section 8, the `-M` cap row for document launches and the live reading of + `requirements_recognized` are unmeasured. +9. Section 7 and the `FROZEN_*` lines of `run-qwen3-v3.sh` filled; Status FROZEN; merge this change alone. DONE here; the merge is Drake's. + +## 10. Prediction (stated before any run; UNVERIFIED) + +Written now from VERDICT-v2 and DIAGNOSTIC-LONG-1 numbers and judgment. No claim here is measured; confidence is my own +estimate, and the rows decide. + +- N1: PASS, about 90 percent (v2 N1 passed on a similar goal). N2: PASS, about 85 percent (a reply cut at 16 tokens, refused as a token-limit cut). R1: PASS, about 80 percent (v2 gave 3 of 3 identical token ids; a 25-token reply is longer, and greedy ties are the risk). +- E1 and E2: PASS, about 75 percent each (v2 edits passed in about 5 s; risks are the different bullet style and the nested path of E2). +- G1: all rows PASS about 40 percent, and only if the parser repair is in; the model should finish in about 450 tokens and 40 to 50 s; risks are the exact heading words and text after the last example. +- G2 (25 lines): about 35 percent. Qwen3 tends to write paragraphs (13 lines when 20 were asked); with requirement validation the first short answer is refused and a second attempt fits inside 120 s, which is the point of the task. +- G3 (35 lines, 6 sections): about 35 percent. Expected 600 to 800 tokens, 55 to 75 s; a retry after a short first answer may not fit the shared 120 s. +- Whole campaign PASS (all 156 rows): about 5 to 10 percent. The expected verdict is FAIL, and the likely failing rows are in G2 or G3 (length or time), not in containment, approval, replay or recovery. +- Cause of any failure: a cut at 1024 tokens is unlikely (about 5 percent; the longest diagnostic reply was 649). A wall-clock timeout on G3 is plausible (about 15 percent). If a document launch fails, expect "unmet requirement" or the deadline, not the token cap that failed v2. +- Per-token speed about 88 ms (v2) to 95 ms (diagnostic D5); documents between 313 and 700 tokens finish in 28 to 70 s. + +## 11. What v3 does not prove + +- One run, one launch per task: one observation each, not a rate. +- The tasks are fresh to Qwen3, but the spec writer chose them after seeing v2 and the diagnostic; this is not a held-out set in the strict sense. +- The rows were re-checked against the merged code at freeze (Section 12), not against a live run: the GPU dry run (Section 9, item 8) has not happened, so how the daemon reports its caps and attempts live is read from code, not observed. +- Requirement validation covers only the wordings it lists; "at least two sentences" in G3 is deliberately not covered and no row checks it. Its wording rules also leave the G3 goal unrecognized (Section 12, finding 1). +- `-F` reads the merged parser's rule, restated in jq; a shared misreading would pass both. +- omega#327 (GPU memory failure) stays open: a PASS does not turn Qwen3 on GB10 on by default. +- R1 and N2 use document caps of 96 and 16, not 1024. Greedy decoding, one model, one machine. + +## 12. Findings from re-checking against the merged code (sovereign-core 8f3e8c8, 2026-10-07) + +Quoted file:line are in sovereign-core at 8f3e8c8. Nothing in the tasks file was changed to avoid a product weakness. + +**Confirmed as the spec assumed** + +- Env names and defaults: `AIEN_COMPOSE_EDIT_BUDGET_MS` (default 29 s, `spine.rs:841,845`), `AIEN_COMPOSE_DOC_BUDGET_MS` (default 120 s, + `spine.rs:843,847`), `AIEN_COMPOSE_DOC_MAX_TOKENS` (default 1024, range 16..=4096, `spine.rs:850,854,856`); budgets accepted in + 1000..=599000 ms (`spine.rs:858`); edit cap `AIEN_COMPOSE_MAX_TOKENS` read by the daemon, default 48 (`server.rs:483-492`). + N2's cap of 16 is the lowest accepted value. A stale `AIEN_COMPOSE_BUDGET_MS` is refused: `"AIEN_COMPOSE_BUDGET_MS is retired; set ..."` + (`spine.rs:852,970-973`); bad values stop the daemon at start (`server.rs:100-103`). +- Reasons: a token-limit cut is `"reply cut at the token limit after N tokens (finish_reason max_tokens); a cut reply is never a proposal"` + (`spine.rs:1306-1312`), which contains "token limit" and not "exceeded" (rows D, N2-R). A wall-clock timeout starts `"model proposal exceeded "` + (`spine.rs:997`) and is classed "timeout". +- Report fields: `proposal_content_sha256` (`control.rs:358`), `proposal_attempts` (`control.rs:367`), `requirements_recognized` (`control.rs:371`, + filled from the goal at `spine.rs:1869`), per-attempt `unmet_requirements` (`control.rs:410`, reason `"unmet requirement: ..."`, `requirements.rs:189`), + `finish_reason` and `text` per attempt (`control.rs`). Labels are `"at least N non-empty lines"` and `"at least N headings"` (`requirements.rs:78-81`, `61`). +- Kind by goal (`classify_target`, `spine.rs:1091`, first existing path named in the goal, issue #288): run over all eight goals with the workspace the driver + builds (README.md, docs/plan.txt, plus the launch's seed): E1 finds ROADMAP.md and E2 finds docs/OPERATIONS.md (edit, 29 s, cap 96); G1, G2, G3, N1, N2, R1 find no + existing file (new document, 120 s). No task's kind differs from Section 2. N1's path is refused by the path check (`..`), not classified. + +**Differs from what the spec assumed** + +1. **G3's requirements are not recognized, so G3-RQ cannot pass as written.** `requirements::extract` (`requirements.rs:273`) only takes a count whose noun ends its + clause (`clause_ends_after`, `requirements.rs:248`; "of/per/each/in/with ..." after the noun disqualifies it). The G3 goal reads "at least 35 lines **with** at least 6 + sections **titled** ...", so neither "at least 35 lines" nor "at least 6 sections" is extracted. Run on all eight goals with the merged module itself (`requirements::extract`): + G1 gives `["at least 18 non-empty lines"]`, G2 gives `["at least 25 non-empty lines"]`, G3 gives `[]`, the other five give `[]`. Consequences: the runtime would not refuse a short G3 + reply and would not retry it; `requirements_recognized` is empty for G3. As first written, row G3-RQ demanded recognition (both labels in the report), so it would FAIL + whatever the model wrote. G3-L (line count) and G3-F still run. This is a real weakness of requirement validation (a plain sentence like G3's is not covered). The goal + was NOT rewritten, and sovereign-core was not changed. + **Decision (orchestrator, 2026-10-07; replaces the open question to Drake about options a, b, c):** every RQ row (G1-RQ, G2-RQ, G3-RQ) is OUTCOME-BASED. It passes iff + the bytes actually saved at the destination meet every measurable requirement the goal states, computed by the campaign tooling (`rows-oq3-v3.jq`, `v3_row_rq`) from the + task file's declared requirement fields, independent of whether the product recognized them. Counting follows the `requirements.rs` doc comments: non-empty lines count + every line with a non-whitespace character, code and fence marker lines included (`requirements.rs:36-37`, "Counting"); sections are markdown headings, 1 to 6 `#`, a space, + then text (`requirements.rs:24`), skipping fenced code blocks and the fence lines themselves (CommonMark close rule, an unclosed fence runs to the end, `requirements.rs:37-41`), + so a heading inside a code fence does not count. G3 therefore passes iff the saved ONBOARDING.md has at least 35 non-empty lines and the six named sections present as + headings outside code fences (the six titles are a new `titles` field on G3's declared headings requirement in `tasks-oq3-v3.json`; goal text, ids and budgets are unchanged). If + nothing was saved, RQ is FAIL. Why: the row used to measure the product's wording coverage, which `-L` and the prediction already treat separately, and made G3-RQ unable + to pass; the campaign question is whether the document the user would get meets the stated requirements. Whether the product recognized each requirement + (`requirements_recognized`) is kept as information in the receipt side-file (`value.recognized_by_runtime`), not as a row. Row count is unchanged: 156 declared rows, + 21 new, because RQ stays one row per document launch and the declaration is byte-identical. Not changed: goals, task ids, budgets, the prediction section. +2. **Outer-fence rule differs from the prepared reading** (`check_file_proposal`, `outer_fence_close`, `spine.rs:733-830`): only a backtick opener is an outer fence + (tilde is not); the opener line is always dropped; the close is found by the nesting rule (info-string fences nest; a bare fence at depth 0 with more fences after it opens + a bare inner block; none balanced uses the last bare fence); text after the close is dropped, not kept; no close at all keeps the whole body. `v3_doc_from_reply` now + follows this exactly (the earlier version kept an unclosed opener and text after the close, which would have failed honest replies). Known limit stated by the parser: + prose holding a fence after the real close is read as part of the file. +3. **The daemon does not print its effective limits**, so no limits row (Section 6, item 4). +4. **Build warnings:** the build logs contain compiler warnings from third-party crates (dead-code lints) but no `cargo:warning` line from any build script. diff --git a/docs/campaigns/open-model-qwen3/evidence-v3/build-lines.txt b/docs/campaigns/open-model-qwen3/evidence-v3/build-lines.txt new file mode 100644 index 00000000..4ed0fbe4 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v3/build-lines.txt @@ -0,0 +1,12 @@ +== build-cli.log +14812: [aien-omega-gpu 0.1.0] cargo:rustc-link-lib=static=omega_gpu +14816: [aien-omega-gpu 0.1.0] cargo:rustc-cfg=has_omega_gpu +14855: [aien-omega-compose 0.1.0] cargo:rustc-cfg=has_omega_wait_ms +14857: [aien-omega-compose 0.1.0] cargo:rustc-link-lib=static=rx_compose +14861: [aien-omega-compose 0.1.0] cargo:rustc-cfg=has_omega_compose +== build-examples.log +4362: [aien-omega-gpu 0.1.0] cargo:rustc-link-lib=static=omega_gpu +4366: [aien-omega-gpu 0.1.0] cargo:rustc-cfg=has_omega_gpu +4369: [aien-omega-compose 0.1.0] cargo:rustc-cfg=has_omega_wait_ms +4371: [aien-omega-compose 0.1.0] cargo:rustc-link-lib=static=rx_compose +4375: [aien-omega-compose 0.1.0] cargo:rustc-cfg=has_omega_compose diff --git a/docs/campaigns/open-model-qwen3/evidence-v3/build-summary.txt b/docs/campaigns/open-model-qwen3/evidence-v3/build-summary.txt new file mode 100644 index 00000000..d59504e9 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v3/build-summary.txt @@ -0,0 +1,10 @@ +aien-cli rc=0 +examples rc=0 +01f6a74636b8383b010cdb95597839582c415c27 +0 +6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +8f3e8c8b879e10dd83883cee150f16508284d643 +0 +689027ea9ac09f52ec130a2d0b0310995b7539113ccd3a63b06f1037ad2cf4de /home/drakestapleton/workspace/oq3-v3-build/target/release/aien-cli +df91eede1223f454b7c6afd47589aac6406c8e69e393018fdbe3377b2103f686 /home/drakestapleton/workspace/oq3-v3-build/target/release/examples/np1_reference +abc345a47e872728e8b59d050ccf41794c78266e19da882ad6e3d1db681c6377 /home/drakestapleton/workspace/oq3-v3-build/target/release/examples/np1_edit_merge diff --git a/docs/campaigns/open-model-qwen3/evidence-v3/build.sh b/docs/campaigns/open-model-qwen3/evidence-v3/build.sh new file mode 100755 index 00000000..73e9aea6 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v3/build.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v3 frozen build: sovereign-core 8f3e8c8 (main with sc#285, #284, #287), omega 01f6a74 (= omega.lock, +# omega#331), physics 6d7cf0d (physics.lock), aienos b84c0a6 (aienos.lock). Real compose + GPU libraries, never the stub. +set -u +B=/home/drakestapleton/workspace/oq3-v3-build +cd $B/sc +export AIEN_AIENOS_LOCK_REPO=/home/drakestapleton/workspace/aienos-repo AIEN_OMEGA_DIR=$B/omega AIEN_PHYSICS_DIR=$B/physics CARGO_TARGET_DIR=$B/target +unset AIEN_FORCE_CPU_STUB AIEN_OMEGA_GPU_LIB AIEN_OMEGA_COMPOSE_LIB AIEN_OMEGA_COMPOSE_DIR AIEN_OMEGA_COMPOSE_SHA +cargo build -vv --release -p aien-cli > $B/build-cli.log 2>&1; echo "aien-cli rc=$?" +cargo build -vv --release -p aien-runtime --example np1_reference --example np1_edit_merge > $B/build-examples.log 2>&1; echo "examples rc=$?" +git -C $B/omega rev-parse HEAD; git -C $B/omega status --short | wc -l; git -C $B/physics rev-parse HEAD; git -C $B/sc rev-parse HEAD; git -C $B/sc status --short | wc -l +sha256sum $B/target/release/aien-cli $B/target/release/examples/np1_reference $B/target/release/examples/np1_edit_merge diff --git a/docs/campaigns/open-model-qwen3/evidence-v3/gate-summary.txt b/docs/campaigns/open-model-qwen3/evidence-v3/gate-summary.txt new file mode 100644 index 00000000..6bb28ff5 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v3/gate-summary.txt @@ -0,0 +1,6 @@ +fmt rc=0 +clippy rc=0 +test rc=0 +tests passed=216 failed=0 +test-rows-v8 (NP1_EDIT_MERGE = the frozen np1_edit_merge): test-rows-v8: 142 passed, 0 failed +test-v3.sh: test-v3: 67 passed, 0 failed diff --git a/docs/campaigns/open-model-qwen3/evidence-v3/gate.sh b/docs/campaigns/open-model-qwen3/evidence-v3/gate.sh new file mode 100755 index 00000000..f30cd056 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v3/gate.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +# Pre-run gate on sovereign-core 8f3e8c8 (ACCEPTANCE-v3 Section 7). +set -u +B=/home/drakestapleton/workspace/oq3-v3-build +cd $B/sc +export AIEN_AIENOS_LOCK_REPO=/home/drakestapleton/workspace/aienos-repo AIEN_OMEGA_DIR=$B/omega AIEN_PHYSICS_DIR=$B/physics CARGO_TARGET_DIR=$B/target-gate +cargo fmt --all --check > $B/gate-fmt.log 2>&1; echo "fmt rc=$?" +cargo clippy --workspace --all-targets -- -D warnings > $B/gate-clippy.log 2>&1; echo "clippy rc=$?" +AIEN_FORCE_CPU_STUB=1 cargo test -p aien-runtime -p aien-cli > $B/gate-test.log 2>&1; echo "test rc=$?" +grep -E '^test result' $B/gate-test.log | awk '{p+=$4; f+=$6} END {print "tests passed="p" failed="f}' diff --git a/docs/campaigns/open-model-qwen3/evidence-v3/scorer-dryrun.txt b/docs/campaigns/open-model-qwen3/evidence-v3/scorer-dryrun.txt new file mode 100644 index 00000000..b73d4ba6 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v3/scorer-dryrun.txt @@ -0,0 +1,6 @@ +CPU-only scorer dry run, made-up result lines (no run, no GPU), sovereign-core 8f3e8c8 + campaign files, after the outcome-based RQ change (head 7fbe0bc + working change) +declared rows: 156; result lines: 156; score-rows.sh exit 0 +{"verdict":"PASS","rows":156,"malformed":0,"extras":0,"not_applicable":0} +variant missing: exit 1 verdict NOT_RUN +variant malformed: exit 1 verdict INCOMPLETE +variant failing: exit 1 verdict FAIL diff --git a/docs/campaigns/open-model-qwen3/evidence-v3/test-rows-v8-summary.txt b/docs/campaigns/open-model-qwen3/evidence-v3/test-rows-v8-summary.txt new file mode 100644 index 00000000..22d5ef1d --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v3/test-rows-v8-summary.txt @@ -0,0 +1 @@ +test-rows-v8: 142 passed, 0 failed diff --git a/docs/campaigns/open-model-qwen3/gen-decl-oq3-v3.sh b/docs/campaigns/open-model-qwen3/gen-decl-oq3-v3.sh new file mode 100755 index 00000000..1bbd4207 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/gen-decl-oq3-v3.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v3 (ACCEPTANCE-v3.md Section 5, FROZEN): writes the declaration +# ../scoring/declarations/oq3-v3.decl.json from the v8 row shapes of the v2 declaration plus the +# v3 extra rows. Shell + jq only. Usage: gen-decl-oq3-v3.sh [OUT] (default: the committed path) +# Row shapes: long = the T4 rows, edit = the T5 rows, identity = the R1 rows, negatives = N1 and N2 +# (the v8 rows hard-code the ids N1, N2 and R1, so v3 keeps those ids; its goals are new). +set -eu +HERE=$(cd "$(dirname "$0")" && pwd) +V2=$HERE/../scoring/declarations/oq3-v2.decl.json +OUT=${1:-$HERE/../scoring/declarations/oq3-v3.decl.json} +TASKS=$HERE/tasks-oq3-v3.json +jq -n --slurpfile v2 "$V2" --slurpfile t "$TASKS" ' + 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}]; + ($t[0].tasks) as $tasks + | ([$tasks[] | select(.kind == "long") | .id as $i | shape("T4"; $i) + extra($i; ["SB", "F"] + (if ((.requirements // []) | length) > 0 then ["RQ"] else [] end) + ["D"])] + + [$tasks[] | select(.kind == "edit") | .id as $i | shape("T5"; $i) + extra($i; ["SB", "D"])] + + [$tasks[] | select(.kind == "identity") | .id as $i | shape("R1"; $i) + extra($i; ["SB", "D"])] + + [$tasks[] | select(.kind == "negative-boundary") | .id as $i | shape("N1"; $i) + extra($i; ["D"])] + + [$tasks[] | select(.kind == "negative-budget") | .id as $i | shape("N2"; $i) + extra($i; ["D", "R"])] + | add) as $rows + | {contract: "scoring-v5", campaign: "open-model-qwen3 v3", + frozen_by: "docs/campaigns/open-model-qwen3/ACCEPTANCE-v3.md (Section 5); FROZEN when that file is on main", + note: "v8 row shapes (115 rows of the v2 declaration, renamed to the v3 launch ids) plus the v3 extra rows SB, F, RQ, D (and N2-R). One repetition each, no controls, no NOT_APPLICABLE. Generated by gen-decl-oq3-v3.sh from tasks-oq3-v3.json.", + rows: $rows}' >"$OUT" diff --git a/docs/campaigns/open-model-qwen3/rows-oq3-v3.jq b/docs/campaigns/open-model-qwen3/rows-oq3-v3.jq new file mode 100644 index 00000000..a895c06a --- /dev/null +++ b/docs/campaigns/open-model-qwen3/rows-oq3-v3.jq @@ -0,0 +1,173 @@ +# OPEN-MODEL-QWEN3 v3 extra rows (ACCEPTANCE-v3.md Section 4), jq module. FROZEN when ACCEPTANCE-v3.md is on main. +# These rows are computed beside the v8 receipt rows, not inside the receipt (the receipt tool and +# rows-v8.jq stay byte-identical; ACCEPTANCE-v3 Section 6). v3-rows.sh gathers the evidence of one +# launch; v3_rows turns it into [{row, criterion, threshold, value, result}]. +# +# Evidence object $ev: +# task the launch's entry of tasks-oq3-v3.json +# report the S3 report (s3-report.json) or null +# s5 S5.json (execute step output) or {} +# auths the authorization records at S8, each the parsed record text plus {id} +# committed {path_rel, text, file_sha256}: the file in the workspace, hashed by v3-rows.sh itself +# after the run (not read from the runtime's own report); nulls when there is none +# Results are PASS or FAIL; a missing input is FAIL (fail closed). + +def v3_okv: if . then "PASS" else "FAIL" end; +def v3_rtrim: sub("\\s+$"; ""); +def v3_lines: split("\n") | map(v3_rtrim); +def v3_fence: test("^\\s*(```|~~~)"); +def v3_bare_fence: test("^\\s*(```+|~~~+)\\s*$"); +def v3_nonempty($t): ($t | split("\n") | map(select(test("\\S"))) | length); +def v3_headings($t): ($t | split("\n") | map(select(test("^#{1,6} +\\S"))) | length); + +# The accepted attempt: the last attempt of the S3 report whose outcome is "parsed". +def v3_accepted: ((.report.proposal_attempts // []) | map(select(.outcome == "parsed")) | last); + +# Independent reading of a model reply as a document (ACCEPTANCE-v3 Section 4, row -F), written from the +# merged parser's documented rule (sovereign-core 8f3e8c8, spine.rs check_file_proposal / outer_fence_close): +# the first non-blank line is the "filename:" line and is dropped; blank lines after it are dropped; if the +# next line starts (after indentation) with three or more backticks, that opener is dropped and its length n +# is taken; among the lines after it, a "fence" is a line of at least n backticks (an info string is allowed +# but not a backtick in it); a fence with an info string opens a nested block (depth + 1); a bare fence at +# depth > 0 closes it (depth - 1, remembered as the last bare fence); a bare fence at depth 0 that is the last +# fence closes the outer fence; a bare fence at depth 0 with fences after it opens a bare inner block (depth + 1). +# The outer close is the first outer-closing line, else the last remembered bare fence, else none. Everything +# from the close on is dropped (none: the body is kept whole), then trailing blank lines. Tilde fences are +# not an outer opener for the parser and are left in the text. +def v3_fence_info: + sub("^\\s+"; "") | capture("^(?`*)(?.*)$") | (.b | length) as $n | (.r | sub("^\\s+"; "") | sub("\\s+$"; "")) as $info + | if $n < 3 or ($info | contains("`")) then null else {n: $n, info: ($info != "")} end; +def v3_outer_close($body; $open): + ([$body | to_entries[] | (.value | v3_fence_info) as $f | select($f != null and $f.n >= $open) | {i: .key, info: $f.info}]) as $fx + | (reduce range(0; $fx | length) as $k ({depth: 0, last: null, ret: null}; + if .ret != null then . + elif $fx[$k].info then .depth += 1 + elif .depth > 0 then .depth -= 1 | .last = $fx[$k].i + elif $k + 1 == ($fx | length) then .ret = $fx[$k].i + else .depth += 1 end)) as $s + | ($s.ret // $s.last); +def v3_doc_from_reply: + v3_lines as $l + | (($l | map(test("\\S")) | index(true))) as $f + | (if $f == null then [] else $l[$f + 1:] end) as $rest + | (($rest | map(test("\\S")) | index(true)) // ($rest | length)) as $skip + | $rest[$skip:] as $b + | (if ($b | length) > 0 and ($b[0] | sub("^\\s+"; "") | startswith("```")) + then ($b[0] | sub("^\\s+"; "") | capture("^(?`*)") | .b | length) as $open + | $b[1:] as $in | (v3_outer_close($in; $open)) as $c + | (if $c == null then $in else $in[0:$c] end) + else $b end) as $d + | ($d | map(test("\\S")) | rindex(true)) as $last + | (if $last == null then [] else $d[0:$last + 1] end) + | join("\n") | v3_rtrim; + +# SB: saved bytes equal approved bytes. The file's own sha256 is computed by the scorer after the run. +def v3_row_sb($id): + . as $ev | ($ev.auths | .[0] // {}) as $auth + | {row: "\($id)-SB", criterion: "Saved bytes equal approved bytes", + threshold: "exactly one authorization; the sha256 of the file found in the workspace (computed by the scorer, not the runtime) == the authorization content_sha256 == S5 content_sha256 == S5 disk_sha256 == the S3 proposal content sha256; the file path == the task destination", + value: {authorizations: ($ev.auths | length), file_sha256: $ev.committed.file_sha256, approved: ($auth.content_sha256 // null), + s5_content: ($ev.s5.content_sha256 // null), s5_disk: ($ev.s5.disk_sha256 // null), + s3_content: ($ev.report.proposal_content_sha256 // null), path: $ev.committed.path_rel, destination: $ev.task.destination}, + result: (($ev.auths | length) == 1 and ($ev.committed.file_sha256 | type) == "string" and ($ev.committed.file_sha256 | length) > 0 + and $ev.committed.file_sha256 == ($auth.content_sha256 // null) + and $ev.committed.file_sha256 == ($ev.s5.content_sha256 // null) + and $ev.committed.file_sha256 == ($ev.s5.disk_sha256 // null) + and $ev.committed.file_sha256 == ($ev.report.proposal_content_sha256 // null) + and $ev.committed.path_rel == $ev.task.destination) | v3_okv}; + +# F: complete document saved, no truncation at embedded fences (long launches only). +def v3_row_f($id): + . as $ev | ($ev.committed.text) as $t | (v3_accepted) as $acc + | (if $t == null then null else $t | v3_lines end) as $L + | (if $L == null then [] else [$L | to_entries[] | select(.value | v3_fence) | .key] end) as $fx + | (($ev.task.min_code_blocks // 0)) as $minb + | (if ($fx | length) == 0 then null else $fx[-1] end) as $lastf + | (if $L == null then [] elif $lastf == null or $minb == 0 then [] else $L[$lastf + 1:] end) as $after + | (($after | join(" ") | [scan("\\S+")] | length)) as $tailw + | (if $acc == null then null else ($acc.text | v3_doc_from_reply) end) as $rd + | (if $t == null then null else ($t | v3_lines | join("\n") | v3_rtrim) end) as $ct + | {row: "\($id)-F", criterion: "Complete document saved (no truncation at embedded fences)", + threshold: "the file is read; its fence lines (``` or ~~~ at line start) are even in number and at least 2 x min_code_blocks; when min_code_blocks > 0 the text after the last fence line has at least min_tail_words words and, if tail_heading is set, a line equal to it; the saved text equals the document an independent reading takes from the accepted reply (outer fence stripped, trailing whitespace ignored)", + value: {fence_lines: ($fx | length), min_code_blocks: $minb, last_fence_line: $lastf, words_after_last_fence: $tailw, + min_tail_words: ($ev.task.min_tail_words // 0), tail_heading_found: (if ($ev.task.tail_heading // null) == null then null else ($after | map(. == $ev.task.tail_heading) | any) end), + saved_lines: (if $L == null then null else ($L | length) end), reply_document_lines: (if $rd == null then null else ($rd | split("\n") | length) end), + saved_equals_reply_document: ($ct != null and $rd != null and $ct == $rd)}, + result: ($t != null and $acc != null and ($fx | length) % 2 == 0 and ($fx | length) >= 2 * $minb + and ($minb == 0 or ($tailw >= ($ev.task.min_tail_words // 0) + and (($ev.task.tail_heading // null) == null or ($after | map(. == $ev.task.tail_heading) | any)))) + and $ct == $rd) | v3_okv}; + +# RQ: OUTCOME-BASED (ACCEPTANCE-v3 Section 12, decision of the orchestrator 2026-10-07). The row passes iff the bytes +# actually saved at the destination meet every measurable requirement the task's goal states, computed here from the +# task's declared requirement fields, whether or not the product recognized them. Nothing saved: FAIL. Whether the +# runtime recognized each requirement (S3 report requirements_recognized) is information in the receipt side-file +# (value.recognized_by_runtime), not part of the result. +# Counting rules are those of crates/aien-runtime/src/requirements.rs (doc comments, "Counting", requirements.rs:36-41): +# lines every non-empty line (a non-whitespace character), code lines and fence marker lines included; +# headings markdown headings, 1 to 6 "#" then a space then text, skipping fenced code blocks (``` or ~~~, +# CommonMark close rule: same marker, at least as long, no info string; an unclosed fence runs to the end) +# and the fence lines themselves (table at requirements.rs:24, "sections" = markdown headings). +# A declared requirement may carry "titles": each title must equal (case-insensitive, trimmed) the text of a heading +# found by that rule (G3: the six named sections). +def v3_heading_texts($t): + (reduce ($t | split("\n"))[] as $ln ({open: null, h: []}; + ($ln | 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)} + elif ($l | test("^#{1,6} +\\S")) then .h += [$l | sub("^#{1,6} +"; "") | sub(" +#+$"; "") | sub("^\\s+"; "") | sub("\\s+$"; "") | ascii_downcase] + else . end + else + (.open) as $op + | if ($l | test("^\\s*" + (if $op.c == "`" then "`" else "~" end) + "{" + ($op.n | tostring) + ",}\\s*$")) then .open = null else . end + end)) | .h; +def v3_req_found($t): . as $r + | if $r.kind == "min_lines" then v3_nonempty($t) + elif $r.kind == "min_headings" then (v3_heading_texts($t) | length) + else null end; +def v3_req_ok($t): . as $r + | if $r.kind == "min_lines" then v3_nonempty($t) >= $r.n + elif $r.kind == "min_headings" then + (v3_heading_texts($t)) as $h + | ($h | length) >= $r.n and (($r.titles // []) | all(. as $x | ($h | index($x | sub("^\\s+"; "") | sub("\\s+$"; "") | ascii_downcase)) != null)) + else false end; +def v3_row_rq($id): + . as $ev | ($ev.committed.text) as $t | ($ev.task.requirements // []) as $reqs + | ($ev.report.requirements_recognized // null) as $rec + | {row: "\($id)-RQ", criterion: "Stated requirements met (outcome of the saved bytes)", + threshold: "the file saved at the destination exists and meets every requirement declared for the task, counted by the campaign tooling on the saved text by the requirements.rs rules (non-empty lines including fence lines; markdown headings outside fenced code; each declared title present as a heading); nothing saved = FAIL; whether the runtime recognized the requirement does not matter", + value: {declared: ($reqs | map(.label)), recognized_by_runtime: $rec, + recount: (if $t == null then null else $reqs | map({label, n, titles, found: v3_req_found($t), + titles_missing: (if .kind == "min_headings" then ((.titles // []) | map(select(. as $x | (v3_heading_texts($t) | index($x | sub("^\\s+"; "") | sub("\\s+$"; "") | ascii_downcase)) == null))) else null end), + met: v3_req_ok($t)}) end)}, + result: ($t != null and ($reqs | length) > 0 and ($reqs | all(v3_req_ok($t)))) | v3_okv}; + +# D: one wall-clock deadline for all attempts of the launch, and no attempt ended by timeout. +def v3_row_d($id; $positive): + . as $ev | ($ev.report.proposal_attempts // []) as $at | ($ev.task.budget_ms) as $b + | ($at | map(.ms // 0) | add // 0) as $sum + | {row: "\($id)-D", criterion: "One deadline for all attempts", + threshold: ("at least one attempt; the attempts total ms <= the task budget_ms (edit 29000, document 120000); no attempt reason contains \"exceeded\" (the wall-clock timeout wording)" + (if $positive then "; an accepted (parsed) attempt exists" else "" end)), + value: {budget_ms: $b, total_attempt_ms: $sum, attempts: ($at | map({attempt, outcome, ms, tokens, finish_reason, reason}))}, + result: (($at | length) > 0 and $b != null and $sum <= $b + and ($at | all(((.reason // "") | contains("exceeded")) | not)) + and ((($positive | not)) or (v3_accepted != null))) | v3_okv}; + +# N2-R: a token-limit cut is its own reason, never a wall-clock timeout. +def v3_row_n2r: + . as $ev | ($ev.report.proposal_attempts // []) as $at + | {row: "N2-R", criterion: "Token-limit cut is not a timeout", + threshold: "at least one attempt; every attempt has finish_reason max_tokens and a reason containing \"token limit\" and not containing \"exceeded\"", + value: {attempts: ($at | map({attempt, outcome, finish_reason, reason}))}, + result: (($at | length) > 0 + and ($at | all(.finish_reason == "max_tokens" and ((.reason // "") | contains("token limit")) and (((.reason // "") | contains("exceeded")) | not)))) | v3_okv}; + +def v3_rows: + . as $ev | ($ev.task.id) as $id | ($ev.task.kind) as $k + | (if $k == "long" then [v3_row_sb($id), v3_row_f($id), (if (($ev.task.requirements // []) | length) > 0 then v3_row_rq($id) else empty end), v3_row_d($id; true)] + elif $k == "edit" or $k == "identity" then [v3_row_sb($id), v3_row_d($id; true)] + elif $k == "negative-boundary" then [v3_row_d($id; false)] + elif $k == "negative-budget" then [v3_row_d($id; false), v3_row_n2r] + else [{row: "?", criterion: "unknown launch kind", threshold: "-", value: $ev.task, result: "FAIL"}] end); diff --git a/docs/campaigns/open-model-qwen3/run-qwen3-v3.sh b/docs/campaigns/open-model-qwen3/run-qwen3-v3.sh new file mode 100755 index 00000000..1a2a8590 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/run-qwen3-v3.sh @@ -0,0 +1,158 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v3 campaign (ACCEPTANCE-v3.md; FROZEN when this file is on main: it refuses to run unless the +# commits and the binaries sha256 below match). Eight launches in three parts, Qwen3-4B, adapted from +# run-qwen3-v2.sh: same driver (next-phase-1/run-campaign.sh), same receipt builder and v8 rows, same +# scorer; new tasks (tasks-oq3-v3.json), declaration (oq3-v3.decl.json) and extra rows (v3-rows.sh). +# 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|3 run-qwen3-v3.sh RUN_BASE OUT_DIR SC_COMMIT OMEGA_COMPOSE_COMMIT OMEGA_GPU_COMMIT REFERENCE_BIN MERGE_BIN +# Parts (ACCEPTANCE-v3 Section 8): 1 = G1 G2 G3, 2 = E1 E2 N1 N2, 3 = R1 and the score. Part k needs part k-1 +# completed in the same RUN_BASE with the same binaries, tasks file, declaration and wrapper. +# Dry run (ACCEPTANCE-v3 Section 9): OQ3_DRY_TASKS= lifts the pinned paths and writes oq3-v3-DRYRUN-* +# outputs. A dry run is never a verdict. +set -u +PART=${OQ3_PART:?OQ3_PART must be 1, 2 or 3} +case $PART in 1) LAUNCHES="G1 G2 G3" ;; 2) LAUNCHES="E1 E2 N1 N2" ;; 3) LAUNCHES="R1" ;; *) echo "run-qwen3-v3: OQ3_PART must be 1, 2 or 3" >&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} + +# ---- Build identity (ACCEPTANCE-v3 Section 7), filled at the freeze: sovereign-core main 8f3e8c8 (sc#285, #284, #287 merged), +# omega.lock 01f6a74 (omega#331). A real run refuses unless the commit arguments and the three binaries sha256 equal these. +PLACEHOLDER="TO BE FILLED at freeze, after all required changes merge and the combined build passes review and checks" +FROZEN_SC_COMMIT=8f3e8c8b879e10dd83883cee150f16508284d643 +FROZEN_OMEGA_COMMIT=01f6a74636b8383b010cdb95597839582c415c27 +FROZEN_AIEN_CLI_SHA256=689027ea9ac09f52ec130a2d0b0310995b7539113ccd3a63b06f1037ad2cf4de +FROZEN_NP1_REFERENCE_SHA256=df91eede1223f454b7c6afd47589aac6406c8e69e393018fdbe3377b2103f686 +FROZEN_NP1_EDIT_MERGE_SHA256=abc345a47e872728e8b59d050ccf41794c78266e19da882ad6e3d1db681c6377 + +TASKS=$HERE/tasks-oq3-v3.json TAG=oq3-v3 +if [ -n "${OQ3_DRY_TASKS:-}" ]; then + TASKS=$OQ3_DRY_TASKS TAG=oq3-v3-DRYRUN + shape='[.tasks[] | [.id, .kind, .max_tokens, .budget_ms, .destination, .seed]]' + [ "$(jq -c "$shape" "$TASKS")" = "$(jq -c "$shape" "$HERE/tasks-oq3-v3.json")" ] || + { echo "run-qwen3-v3: dry-run tasks must keep the v3 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 the build identity must be filled in and must match. + PINNED_BASE=/home/drakestapleton/workspace/oq3-v3-runs + [ "$BASE" = "$PINNED_BASE" ] || { echo "run-qwen3-v3: RUN_BASE must be $PINNED_BASE" >&2; exit 2; } + if [ $PART = 1 ]; then + [ ! -e "$BASE" ] || { echo "run-qwen3-v3: $BASE already exists (the v3 run is fresh and happens once)" >&2; exit 2; } + [ ! -e "$OUT" ] || [ -z "$(ls -A "$OUT" 2>/dev/null)" ] || { echo "run-qwen3-v3: OUT_DIR must be new or empty" >&2; exit 2; } + fi + for v in "$FROZEN_SC_COMMIT" "$FROZEN_OMEGA_COMMIT" "$FROZEN_AIEN_CLI_SHA256" "$FROZEN_NP1_REFERENCE_SHA256" "$FROZEN_NP1_EDIT_MERGE_SHA256"; do + [ "$v" != "$PLACEHOLDER" ] || { echo "run-qwen3-v3: the build identity is not frozen yet (ACCEPTANCE-v3 Section 7)" >&2; exit 2; } + done + [ "$SC" = "$FROZEN_SC_COMMIT" ] && [ "$OMC" = "$FROZEN_OMEGA_COMMIT" ] && [ "$OMG" = "$FROZEN_OMEGA_COMMIT" ] || + { echo "run-qwen3-v3: SC_COMMIT, OMEGA_COMPOSE_COMMIT and OMEGA_GPU_COMMIT must equal the frozen commits" >&2; exit 2; } +fi +DECL=$HERE/../scoring/declarations/oq3-v3.decl.json +SCORER=$HERE/../scoring/score-rows.sh +[ -f "$DECL" ] && [ -x "$SCORER" ] && [ -x "$REFBIN" ] && [ -x "$MERGEBIN" ] || { echo "run-qwen3-v3: 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-v3 Section 7)" >&2; exit 3; }; } +need AIEN_KV_CONTEXT_TOKENS 4096 +need AIEN_REQUIRE_BLACKWELL 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). +for v in AIEN_FORCE_CPU_STUB 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-v3 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; }; } +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 +if [ -z "${OQ3_DRY_TASKS:-}" ]; then + chk "$AIEN_BIN" "$FROZEN_AIEN_CLI_SHA256" + chk "$REFBIN" "$FROZEN_NP1_REFERENCE_SHA256" + chk "$MERGEBIN" "$FROZEN_NP1_EDIT_MERGE_SHA256" +fi +RES=$OUT/$TAG-results.jsonl +if [ $PART = 1 ]; then + [ ! -e "$BASE/part1.done" ] && [ ! -e "$RES" ] || { echo "run-qwen3-v3: 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-v3: 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" "$HERE/rows-oq3-v3.jq" "$HERE/v3-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-v3: part $PART binaries, tasks, declaration, rows or wrapper differ from part 1 (one build per run)" >&2; exit 2 +fi +# The receipt builder looks for tasks-v8.json, rows-v5/v8.jq and the seed folders next to itself. A staging folder of +# links to the unchanged next-phase-1 files, with tasks-v8.json replaced by this campaign's tasks file and seed-v3 +# linked in, lets the unchanged make-receipt.sh and rows-v8.jq be used (ACCEPTANCE-v3 Section 6). +STAGE=$BASE/stage +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 + cp "$TASKS" "$STAGE/tasks-v8.json" + ln -s "$HERE/seed-v3" "$STAGE/seed-v3" +fi +cmp -s "$TASKS" "$STAGE/tasks-v8.json" || { echo "run-qwen3-v3: staged tasks file differs from the tasks file" >&2; exit 2; } +# Product limits (ACCEPTANCE-v3 Section 1), 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 + 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 + echo "launch $id driver exit $? (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-v3.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-v3.md spec_version 3${OQ3_DRY_TASKS:+ DRY RUN}" bash "$STAGE/make-receipt.sh" \ + "$BASE/$id" "$OUT" "$SC" "$OMC" "$OMG" 0 "OPEN-MODEL-QWEN3 v3${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/v3-rows.sh" "$BASE/$id" "$id" "$TASKS" "$OUT" "$(basename "$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 +: >"$BASE/part$PART.done" +if [ $PART != 3 ]; then echo "part $PART done ($LAUNCHES); run part $((PART + 1)) in a new hold"; exit 0; fi +bash "$SCORER" "$DECL" "$RES" >"$OUT/$TAG-score.json"; rc=$? +echo "OPEN-MODEL-QWEN3 v3${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/open-model-qwen3/seed-v3/E1/ROADMAP.md b/docs/campaigns/open-model-qwen3/seed-v3/E1/ROADMAP.md new file mode 100644 index 00000000..5273e34b --- /dev/null +++ b/docs/campaigns/open-model-qwen3/seed-v3/E1/ROADMAP.md @@ -0,0 +1,7 @@ +# Roadmap + +## Planned +- ship search + +## Shipped +- public beta diff --git a/docs/campaigns/open-model-qwen3/seed-v3/E2/docs/OPERATIONS.md b/docs/campaigns/open-model-qwen3/seed-v3/E2/docs/OPERATIONS.md new file mode 100644 index 00000000..b7d2f3a6 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/seed-v3/E2/docs/OPERATIONS.md @@ -0,0 +1,10 @@ +# Operations + +## Daily +* check the dashboard + +## Maintenance +* renew the certificates + +## Contacts +* on-call phone list diff --git a/docs/campaigns/open-model-qwen3/tasks-oq3-v3.json b/docs/campaigns/open-model-qwen3/tasks-oq3-v3.json new file mode 100644 index 00000000..22ca900d --- /dev/null +++ b/docs/campaigns/open-model-qwen3/tasks-oq3-v3.json @@ -0,0 +1,108 @@ +{ + "spec": "ACCEPTANCE-v3.md Section 2 (FROZEN when this file is on main)", + "limits": {"edit_budget_ms": 29000, "doc_budget_ms": 120000, "edit_max_tokens": 96, "doc_max_tokens": 1024}, + "tasks": [ + { + "id": "G1", + "kind": "long", + "goal": "Create the file docs/PIPELINE.md that explains a small build pipeline in at least 18 lines. Use three level-two sections titled \"Building\", \"Testing\" and \"Packaging\", put one fenced shell code example in each of them with a sentence of explanation after it, and finish with a section titled \"Summary\" that has two sentences.", + "destination": "docs/PIPELINE.md", + "phrases": ["## Building", "## Testing", "## Packaging", "## Summary"], + "min_lines": 18, + "requirements": [{"kind": "min_lines", "n": 18, "label": "at least 18 non-empty lines"}], + "min_code_blocks": 3, + "tail_heading": "## Summary", + "min_tail_words": 6, + "max_tokens": 1024, + "budget_ms": 120000, + "seed": null + }, + { + "id": "G2", + "kind": "long", + "goal": "Create the file docs/RELEASE-CHECKLIST.md with a release checklist of at least 25 lines that covers preparing, testing, publishing and announcing a release.", + "destination": "docs/RELEASE-CHECKLIST.md", + "phrases": ["preparing", "testing", "publishing", "announcing"], + "min_lines": 25, + "requirements": [{"kind": "min_lines", "n": 25, "label": "at least 25 non-empty lines"}], + "min_code_blocks": 0, + "tail_heading": null, + "min_tail_words": 0, + "max_tokens": 1024, + "budget_ms": 120000, + "seed": null + }, + { + "id": "G3", + "kind": "long", + "goal": "Create the file docs/ONBOARDING.md, an onboarding guide for a new team member, of at least 35 lines with at least 6 sections titled Welcome, Accounts and access, Tools to install, Your first week, Who to ask and Glossary. Write at least two sentences in every section.", + "destination": "docs/ONBOARDING.md", + "phrases": ["welcome", "accounts and access", "tools to install", "your first week", "who to ask", "glossary"], + "min_lines": 35, + "requirements": [ + {"kind": "min_lines", "n": 35, "label": "at least 35 non-empty lines"}, + {"kind": "min_headings", "n": 6, "label": "at least 6 headings", "titles": ["Welcome", "Accounts and access", "Tools to install", "Your first week", "Who to ask", "Glossary"]} + ], + "min_code_blocks": 0, + "tail_heading": null, + "min_tail_words": 0, + "max_tokens": 1024, + "budget_ms": 120000, + "seed": null + }, + { + "id": "E1", + "kind": "edit", + "goal": "Add the line \"- add dark mode\" under the \"## Planned\" heading in ROADMAP.md.", + "destination": "ROADMAP.md", + "phrases": ["## Planned", "- add dark mode", "- ship search"], + "new_line": "- add dark mode", + "under": "## Planned", + "max_tokens": 96, + "budget_ms": 29000, + "seed": "seed-v3/E1" + }, + { + "id": "E2", + "kind": "edit", + "goal": "Add the line \"* rotate logs weekly\" under the \"## Maintenance\" heading in docs/OPERATIONS.md.", + "destination": "docs/OPERATIONS.md", + "phrases": ["## Maintenance", "* rotate logs weekly", "* renew the certificates"], + "new_line": "* rotate logs weekly", + "under": "## Maintenance", + "max_tokens": 96, + "budget_ms": 29000, + "seed": "seed-v3/E2" + }, + { + "id": "N1", + "kind": "negative-boundary", + "goal": "Create the file ../handover/summary.txt with the single line: handover is complete.", + "destination": null, + "phrases": [], + "max_tokens": 1024, + "budget_ms": 120000, + "seed": null + }, + { + "id": "N2", + "kind": "negative-budget", + "goal": "Create the file docs/OVERVIEW.md with a detailed overview of the project that has at least ten paragraphs.", + "destination": null, + "phrases": [], + "max_tokens": 16, + "budget_ms": 120000, + "seed": null + }, + { + "id": "R1", + "kind": "identity", + "goal": "Create the file docs/HELLO.txt with a one-sentence greeting that welcomes new readers to the project.", + "destination": "docs/HELLO.txt", + "phrases": ["welcome"], + "max_tokens": 96, + "budget_ms": 120000, + "seed": null + } + ] +} diff --git a/docs/campaigns/open-model-qwen3/test-v3.sh b/docs/campaigns/open-model-qwen3/test-v3.sh new file mode 100644 index 00000000..38f6e714 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/test-v3.sh @@ -0,0 +1,224 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v3 (ACCEPTANCE-v3.md Section 9, FROZEN): CPU-only checks of the v3 files. +# No model, no GPU, no quietlock. Shell + jq only. Exit 0 only if every check passes. +# 1 declaration is the generated one, 156 rows, ids unique +# 2 every positive task row is a line of ACCEPTANCE-v3.md in the exact format make-receipt.sh greps for +# 3 scorer dry run on the declaration with made-up result lines (all PASS, one missing, one FAIL) +# 4 extra rows on synthetic run directories (made-up replies): positive and named negative cases +# 5 wrapper refusals (exit 2 or 3 before any run) +set -u +HERE=$(cd "$(dirname "$0")" && pwd) +SC=$HERE/../scoring +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-v3.sh" "$T/decl.json" +chk "declaration equals the generated one" 'cmp -s "$T/decl.json" "$SC/declarations/oq3-v3.decl.json"' +chk "156 declared rows" '[ "$(jq ".rows|length" "$SC/declarations/oq3-v3.decl.json")" = 156 ]' +chk "row ids unique" '[ "$(jq ".rows|map(.row)|(length==(unique|length))" "$SC/declarations/oq3-v3.decl.json")" = true ]' +chk "21 extra rows, 135 rows of the v8 shape" '[ "$(jq "[.rows[]|select(.row|test(\"-(SB|RQ|D)\$\") or test(\"^G[0-9]/G[0-9]-F\$\") or . == \"N2/N2-R\")]|length" "$SC/declarations/oq3-v3.decl.json")" = 21 ]' + +# ---- 2 task rows in ACCEPTANCE-v3.md +if [ -f "$HERE/ACCEPTANCE-v3.md" ]; then + while IFS= read -r row; do + chk "ACCEPTANCE-v3.md has task row: ${row:0:50}" 'grep -Fqx -- "$row" "$HERE/ACCEPTANCE-v3.md"' + done < <(jq -r '.tasks[] | select(.kind != "negative-boundary" and .kind != "negative-budget") | "| \(.id) | `\(.goal)` | `\(.destination)` | \(.phrases | map("`" + . + "`") | join(", ")) |"' "$HERE/tasks-oq3-v3.json") + chk "ACCEPTANCE-v3.md says Status: FROZEN" 'grep -q "^\*\*Status: FROZEN\*\*" "$HERE/ACCEPTANCE-v3.md"' +fi +chk "no goal contains a backtick or a pipe" '! jq -r ".tasks[].goal" "$HERE/tasks-oq3-v3.json" | grep -q "[\`|]"' +chk "no goal of v8 or the diagnostic is reused" '! jq -r ".tasks[].goal" "$HERE/tasks-oq3-v3.json" | grep -Fxf <(jq -r ".tasks[].goal" "$HERE/../next-phase-1/tasks-v8.json") | grep -q .' + +# ---- 3 scorer dry run (made-up result lines) +jq -r '.rows[].row' "$SC/declarations/oq3-v3.decl.json" | jq -R -c '{row: ., rep: 1, verdict: "PASS", receipt: "made-up"}' >"$T/res-all.jsonl" +bash "$SC/score-rows.sh" "$SC/declarations/oq3-v3.decl.json" "$T/res-all.jsonl" >"$T/s1.json"; rc=$? +chk "scorer: all 156 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" "$SC/declarations/oq3-v3.decl.json" "$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" "$SC/declarations/oq3-v3.decl.json" "$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"; echo '{"row":"G1/G1-SB","rep":1,"verdict":"PASS"}'; } >"$T/res-extra.jsonl" +bash "$SC/score-rows.sh" "$SC/declarations/oq3-v3.decl.json" "$T/res-extra.jsonl" >"$T/s4.json" +chk "scorer: a duplicate result line is not PASS" '[ "$(jq -r .verdict "$T/s4.json")" != PASS ]' + +# ---- 4 extra rows on synthetic run directories +sha() { printf '%s' "$1" | sha256sum | cut -d' ' -f1; } +# mk_run DIR ID DEST CONTENT REPLY [ATTEMPTS_JSON] [RECOGNIZED_JSON]: a made-up launch directory. +mk_run() { + local d=$1 id=$2 dest=$3 content=$4 reply=$5 att=${6:-} rec=${7:-'[]'} ws + mkdir -p "$d/ws/$(dirname "$dest")" "$d/steps"; ws=$(cd "$d/ws" && pwd -P) + printf '%s\n' "$content" >"$d/ws/$dest" + local h; h=$(sha256sum "$d/ws/$dest" | cut -d' ' -f1) + [ -n "$att" ] || att=$(jq -n --arg r "$reply" '[{attempt: 1, outcome: "parsed", reason: null, tokens: 400, ms: 42000, finish_reason: "eos", text: $r, text_sha256: "x"}]') + jq -n --argjson a "$att" --arg h "$h" --argjson rec "$rec" '{proposal_attempts: $a, proposal_content_sha256: $h, requirements_recognized: $rec}' >"$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" + jq -n --arg h "$h" '{authorizations: [{id: 1, verified: true, text: ({content_sha256: $h} | tojson)}]}' >"$d/steps/S8.json" +} +rowres() { jq -r --arg r "$2" 'select(.row == $r) | .verdict' <<<"$1"; } +run_rows() { bash "$HERE/v3-rows.sh" "$1" "$2" "$HERE/tasks-oq3-v3.json" "$T" "made-up.json"; } + +DOC=$'# Pipeline\n\n## Building\n```bash\nmake build\n```\nThis builds it.\n\n## Testing\n```bash\nmake test\n```\nThis tests it.\n\n## Packaging\n```bash\nmake dist\n```\nThis packs it.\n\n## Summary\nThe pipeline builds, tests and packs the project. It is small and easy to read.' +REPLY=$'filename: docs/PIPELINE.md\n```markdown\n'"$DOC"$'\n```' +RECG1='["at least 18 non-empty lines"]' +mk_run "$T/g1" G1 docs/PIPELINE.md "$DOC" "$REPLY" "" "$RECG1" +out=$(run_rows "$T/g1" G1) +for r in SB F RQ D; do chk "G1 good launch: G1-$r PASS" '[ "$(rowres "$out" "G1/G1-$r")" = PASS ]'; done + +# truncated at the first inner closing fence (the DIAGNOSTIC-LONG-1 D5 failure) +TRUNC=$'# Pipeline\n\n## Building\n```bash\nmake build' +mk_run "$T/g1t" G1 docs/PIPELINE.md "$TRUNC" "$REPLY" "" "$RECG1" +out=$(run_rows "$T/g1t" G1) +chk "G1 truncated at an inner fence: G1-F FAIL" '[ "$(rowres "$out" G1/G1-F)" = FAIL ]' +chk "G1 truncated: G1-RQ FAIL (too few lines)" '[ "$(rowres "$out" G1/G1-RQ)" = FAIL ]' +chk "G1 truncated: G1-SB still PASS (the bytes saved are the bytes approved)" '[ "$(rowres "$out" G1/G1-SB)" = PASS ]' + +# balanced fences but nothing after the last example +NOTAIL=$'# Pipeline\n\n## Building\n```bash\nmake build\n```\n## Testing\n```bash\nmake test\n```\n## Packaging\n```bash\nmake dist\n```' +NOTAILR=$'filename: docs/PIPELINE.md\n```markdown\n'"$NOTAIL"$'\n```' +mk_run "$T/g1n" G1 docs/PIPELINE.md "$NOTAIL" "$NOTAILR" "" "$RECG1" +out=$(run_rows "$T/g1n" G1) +chk "G1 no text after the last example: G1-F FAIL" '[ "$(rowres "$out" G1/G1-F)" = FAIL ]' + + +# merged-parser outer-fence rule (sovereign-core 8f3e8c8): text after the outer close is not part of the file; +# an opener without any bare fence is dropped and the body kept; an unfenced reply is taken whole. +REPLYT="$REPLY"$'\nHope this helps.' +mk_run "$T/g1x" G1 docs/PIPELINE.md "$DOC" "$REPLYT" "" "$RECG1" +out=$(run_rows "$T/g1x" G1) +chk "G1 prose after the outer close is not in the file: G1-F PASS" '[ "$(rowres "$out" G1/G1-F)" = PASS ]' +REPLYU=$'filename: docs/PIPELINE.md\n'"$DOC" +mk_run "$T/g1u" G1 docs/PIPELINE.md "$DOC" "$REPLYU" "" "$RECG1" +out=$(run_rows "$T/g1u" G1) +chk "G1 unfenced reply taken whole: G1-F PASS" '[ "$(rowres "$out" G1/G1-F)" = PASS ]' +PLAIN=$'# Pipeline\n\n## Building\nRun make build.\n\n## Summary\nIt builds.' +REPLYO=$'FILENAME: docs/PIPELINE.md\n\n```md\n'"$PLAIN" +mk_run "$T/g1o" G1 docs/PIPELINE.md "$PLAIN" "$REPLYO" "" "$RECG1" +out=$(run_rows "$T/g1o" G1) +chk "G1 opener with no close: reading equals the saved file (opener dropped, body whole)" '[ "$(jq -r ".rows[]|select(.row==\"G1-F\")|.value.saved_equals_reply_document" "$T/$(jq -r "select(.row==\"G1/G1-F\")|.extra_rows_file" <<<"$out")")" = true ]' +# saved bytes differ from approved bytes +mk_run "$T/g1b" G1 docs/PIPELINE.md "$DOC" "$REPLY" "" "$RECG1" +jq '.authorizations[0].text = ({content_sha256: "0000"} | tojson)' "$T/g1b/steps/S8.json" >"$T/g1b/x" && mv "$T/g1b/x" "$T/g1b/steps/S8.json" +out=$(run_rows "$T/g1b" G1) +chk "G1 approved digest differs from the file: G1-SB FAIL" '[ "$(rowres "$out" G1/G1-SB)" = FAIL ]' +mk_run "$T/g1c" G1 docs/PIPELINE.md "$DOC" "$REPLY" "" "$RECG1" +printf 'changed after approval\n' >"$T/g1c/ws/docs/PIPELINE.md" +out=$(run_rows "$T/g1c" G1) +chk "G1 file changed after approval: G1-SB FAIL" '[ "$(rowres "$out" G1/G1-SB)" = FAIL ]' + +# outcome-based RQ (ACCEPTANCE-v3 Section 12): runtime recognition is information, not a condition +mk_run "$T/g1r" G1 docs/PIPELINE.md "$DOC" "$REPLY" "" '[]' +out=$(run_rows "$T/g1r" G1) +chk "G1 requirement not recognized by the runtime but met by the saved bytes: G1-RQ PASS" '[ "$(rowres "$out" G1/G1-RQ)" = PASS ]' +chk "G1 recognition is recorded as information in the side-file" '[ "$(jq -c ".rows[]|select(.row==\"G1-RQ\")|.value.recognized_by_runtime" "$T/$(jq -r "select(.row==\"G1/G1-RQ\")|.extra_rows_file" <<<"$out")")" = "[]" ]' + +# deadline: attempts over the shared budget, and a timeout reason +ATT=$(jq -n --arg r "$REPLY" '[{attempt: 1, outcome: "refused", reason: "model proposal exceeded 30000 ms", tokens: 300, ms: 61000, finish_reason: "eos"}, + {attempt: 2, outcome: "parsed", reason: null, tokens: 400, ms: 60000, finish_reason: "eos", text: $r}]') +mk_run "$T/g1d" G1 docs/PIPELINE.md "$DOC" "$REPLY" "$ATT" "$RECG1" +out=$(run_rows "$T/g1d" G1) +chk "G1 attempts total 121000 ms over a 120000 ms deadline, one timed out: G1-D FAIL" '[ "$(rowres "$out" G1/G1-D)" = FAIL ]' +ATT2=$(jq '.[0].ms = 30000 | .[1].ms = 60000' <<<"$ATT") +mk_run "$T/g1e" G1 docs/PIPELINE.md "$DOC" "$REPLY" "$ATT2" "$RECG1" +out=$(run_rows "$T/g1e" G1) +chk "G1 within the deadline but an attempt ended by timeout: G1-D FAIL" '[ "$(rowres "$out" G1/G1-D)" = FAIL ]' +ATT3=$(jq '.[0].reason = "unmet requirement: at least 18 non-empty lines, found 9" | .[0].ms = 30000' <<<"$ATT") +mk_run "$T/g1f" G1 docs/PIPELINE.md "$DOC" "$REPLY" "$ATT3" "$RECG1" +out=$(run_rows "$T/g1f" G1) +chk "G1 first attempt refused for an unmet requirement, second accepted, within 120 s: G1-D PASS" '[ "$(rowres "$out" G1/G1-D)" = PASS ]' + +# G3: outcome-based RQ, 36 lines, six named headings +G3=$'# Onboarding\n## Welcome\na\nb\n## Accounts and access\na\nb\n## Tools to install\na\nb\n## Your first week\na\nb\n## Who to ask\na\nb\n## Glossary\na\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk\nl\nm\nn\no\np\nq\nr\ns' +G3R=$'filename: docs/ONBOARDING.md\n'"$G3" +mk_run "$T/g3" G3 docs/ONBOARDING.md "$G3" "$G3R" "" '["at least 35 non-empty lines","at least 6 headings"]' +out=$(run_rows "$T/g3" G3) +chk "G3 unfenced reply taken whole: G3-F PASS" '[ "$(rowres "$out" G3/G3-F)" = PASS ]' +chk "G3 36 lines, 6 named headings, recognition recorded: G3-RQ PASS" '[ "$(rowres "$out" G3/G3-RQ)" = PASS ]' +mk_run "$T/g3b" G3 docs/ONBOARDING.md "$G3" "$G3R" "" '[]' +out=$(run_rows "$T/g3b" G3) +chk "G3 36 lines, 6 named headings, recognition EMPTY (the product's real behaviour): G3-RQ PASS" '[ "$(rowres "$out" G3/G3-RQ)" = PASS ]' +G3S=$(printf '%s\n' "$G3" | head -n 30) +mk_run "$T/g3c" G3 docs/ONBOARDING.md "$G3S" $'filename: docs/ONBOARDING.md\n'"$G3S" "" '[]' +out=$(run_rows "$T/g3c" G3) +chk "G3 30 lines (all six headings present): G3-RQ FAIL" '[ "$(rowres "$out" G3/G3-RQ)" = FAIL ]' +G3F=$'# Onboarding\n```markdown\n## Welcome\na\nb\n## Accounts and access\na\nb\n## Tools to install\na\nb\n## Your first week\na\nb\n## Who to ask\na\nb\n## Glossary\na\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk\nl\nm\nn\no\np\nq\nr\n```\nEnd of file.' +mk_run "$T/g3d" G3 docs/ONBOARDING.md "$G3F" $'filename: docs/ONBOARDING.md\n'"$G3F" "" '[]' +out=$(run_rows "$T/g3d" G3) +chk "G3 headings only inside a code fence (36+ lines): G3-RQ FAIL" '[ "$(rowres "$out" G3/G3-RQ)" = FAIL ]' +G3M=$(printf '%s\n' "$G3" | sed 's/^## Glossary$/Glossary/') +mk_run "$T/g3e" G3 docs/ONBOARDING.md "$G3M" $'filename: docs/ONBOARDING.md\n'"$G3M" "" '[]' +out=$(run_rows "$T/g3e" G3) +chk "G3 one named section missing as a heading: G3-RQ FAIL" '[ "$(rowres "$out" G3/G3-RQ)" = FAIL ]' +# nothing saved: no file, no authorization +mkdir -p "$T/g3n/ws" "$T/g3n/steps"; echo '{"proposal_attempts":[],"requirements_recognized":["at least 35 non-empty lines","at least 6 headings"]}' >"$T/g3n/s3-report.json" +out=$(run_rows "$T/g3n" G3) +chk "G3 nothing saved (even if recognized): G3-RQ FAIL" '[ "$(rowres "$out" G3/G3-RQ)" = FAIL ]' + +# negatives +NAT=$(jq -n '[{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"}]') +mkdir -p "$T/n2/steps" "$T/n2/ws"; jq -n --argjson a "$NAT" '{proposal_attempts: $a}' >"$T/n2/s3-report.json" +out=$(run_rows "$T/n2" N2) +chk "N2 token-limit cut: N2-R PASS" '[ "$(rowres "$out" N2/N2-R)" = PASS ]' +chk "N2 token-limit cut: N2-D PASS" '[ "$(rowres "$out" N2/N2-D)" = PASS ]' +jq -n --argjson a "$(jq '.[0].reason = "model proposal exceeded 120000 ms" | .[0].finish_reason = "eos"' <<<"$NAT")" '{proposal_attempts: $a}' >"$T/n2/s3-report.json" +out=$(run_rows "$T/n2" N2) +chk "N2 a timeout is not a token-limit cut: N2-R FAIL" '[ "$(rowres "$out" N2/N2-R)" = FAIL ]' + +# edit launch +E1S=$'# Roadmap\n\n## Planned\n- ship search\n- add dark mode\n\n## Shipped\n- public beta' +mk_run "$T/e1" E1 ROADMAP.md "$E1S" $'filename: ROADMAP.md\n'"$E1S" "$(jq -n '[{attempt: 1, outcome: "parsed", reason: null, tokens: 40, ms: 4000, finish_reason: "eos", text: "x"}]')" +out=$(run_rows "$T/e1" E1) +chk "E1 edit: E1-SB and E1-D PASS" '[ "$(rowres "$out" E1/E1-SB)" = PASS ] && [ "$(rowres "$out" E1/E1-D)" = PASS ]' +mk_run "$T/e1b" E1 ROADMAP.md "$E1S" x "$(jq -n '[{attempt: 1, outcome: "parsed", reason: null, tokens: 40, ms: 29500, finish_reason: "eos", text: "x"}]')" +out=$(run_rows "$T/e1b" E1) +chk "E1 edit over 29000 ms: E1-D FAIL" '[ "$(rowres "$out" E1/E1-D)" = FAIL ]' +chk "row count: G1 gives 4 extra rows, E1 gives 2, N2 gives 2" '[ "$(run_rows "$T/g1" G1 | wc -l)" = 4 ] && [ "$(run_rows "$T/e1" E1 | wc -l)" = 2 ] && [ "$(run_rows "$T/n2" N2 | wc -l)" = 2 ]' + +# ---- 5 wrapper refusals (CPU, before any run) +W=$HERE/run-qwen3-v3.sh +PINNED=/home/drakestapleton/workspace/oq3-v3-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_GB10_QWEN3_DECLARED_ATTEMPT=1) + wr() { local b=$1; shift; "${base[@]}" "$@" bash "$W" "$b" "$T/out" 0000 1111 2222 "$T/x" "$T/x" >/dev/null 2>"$T/w.err"; echo $?; } + chk "wrapper refuses a missing OQ3_PART" '[ "$(wr "$T/b")" != 0 ]' + chk "wrapper refuses part 4 (exit 2)" '[ "$(wr "$T/b" OQ3_PART=4)" = 2 ]' + chk "wrapper refuses a run base other than the pinned path (exit 2)" '[ "$(wr "$T/b" OQ3_PART=1 "${okenv[@]}")" = 2 ] && [ ! -e "$T/b" ]' + chk "wrapper refuses commit arguments that are not the frozen ones (exit 2), pinned path not created" '[ "$(wr "$PINNED" OQ3_PART=1 "${okenv[@]}")" = 2 ] && [ ! -e "$PINNED" ] && grep -q "must equal the frozen commits" "$T/w.err"' + chk "ACCEPTANCE-v3.md Section 7 build identity equals the wrapper FROZEN_* lines" ' + for kv in "sovereign-core = $(sed -n "s/^FROZEN_SC_COMMIT=//p" "$W")" "omega.lock = $(sed -n "s/^FROZEN_OMEGA_COMMIT=//p" "$W")" "aien-cli sha256 $(sed -n "s/^FROZEN_AIEN_CLI_SHA256=//p" "$W")" "np1_reference sha256 $(sed -n "s/^FROZEN_NP1_REFERENCE_SHA256=//p" "$W")" "np1_edit_merge sha256 $(sed -n "s/^FROZEN_NP1_EDIT_MERGE_SHA256=//p" "$W")"; do + grep -q -- "^$kv" "$HERE/ACCEPTANCE-v3.md" || { echo "missing: $kv"; false; break; } + done' + chk "wrapper refuses a binary whose sha256 differs (the three chk lines are present)" 'grep -q "chk \"\$AIEN_BIN\" \"\$FROZEN_AIEN_CLI_SHA256\"" "$W" && grep -q "chk \"\$REFBIN\" \"\$FROZEN_NP1_REFERENCE_SHA256\"" "$W" && grep -q "chk \"\$MERGEBIN\" \"\$FROZEN_NP1_EDIT_MERGE_SHA256\"" "$W"' + chk "wrapper refuses changed dry-run task shape (exit 2)" ' + jq ".tasks[0].max_tokens = 512" "$HERE/tasks-oq3-v3.json" >"$T/dry-bad.json" + [ "$(wr "$T/b" OQ3_PART=1 OQ3_DRY_TASKS="$T/dry-bad.json" "${okenv[@]}")" = 2 ] && [ ! -e "$T/b" ]' + chk "wrapper refuses a retired AIEN_COMPOSE_BUDGET_MS (exit 3)" '[ "$(wr "$T/b" OQ3_PART=1 OQ3_DRY_TASKS="$HERE/tasks-oq3-v3.json" AIEN_COMPOSE_BUDGET_MS=29000 "${okenv[@]}")" = 3 ] && [ ! -e "$T/b" ]' + chk "wrapper refuses a preset AIEN_COMPOSE_DOC_MAX_TOKENS (exit 3)" '[ "$(wr "$T/b" OQ3_PART=1 OQ3_DRY_TASKS="$HERE/tasks-oq3-v3.json" AIEN_COMPOSE_DOC_MAX_TOKENS=1024 "${okenv[@]}")" = 3 ]' + chk "wrapper refuses a wrong KV context (exit 3)" '[ "$(wr "$T/b" OQ3_PART=1 OQ3_DRY_TASKS="$HERE/tasks-oq3-v3.json" "${okenv[@]}" AIEN_KV_CONTEXT_TOKENS=2048)" = 3 ]' + chk "wrapper refuses a model file with a wrong digest (exit 3), base not created" '[ "$(wr "$T/b" OQ3_PART=1 OQ3_DRY_TASKS="$HERE/tasks-oq3-v3.json" "${okenv[@]}")" = 3 ] && [ ! -e "$T/b" ]' +fi + +# ---- 6 the unchanged receipt builder, staged as the wrapper stages it, yields exactly 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 +cp "$HERE/tasks-oq3-v3.json" "$STAGE/tasks-v8.json"; ln -s "$HERE/seed-v3" "$STAGE/seed-v3" +for id in $(jq -r '.tasks[].id' "$HERE/tasks-oq3-v3.json"); 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' "$HERE/tasks-oq3-v3.json"); [ -n "$seed" ] && cp -R "$HERE/$seed/." "$R/ws/" + e=(); [ "${id#N}" = "$id" ] && e=(TASK_ID="$id" TASK_SPEC="$HERE/tasks-oq3-v3.json" 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) + xs="SB|D"; [ "$(jq -r --arg i "$id" ".tasks[]|select(.id==\$i)|.kind" "$HERE/tasks-oq3-v3.json")" = long ] && xs="SB|F|RQ|D" + bash "$NP1/v8-results.sh" "$id" "$rec" | jq -r .row | sort >"$T/$id.got" + jq -r --arg i "$id" '.rows[].row | select(startswith($i + "/"))' "$SC/declarations/oq3-v3.decl.json" | grep -vE "^$id/$id-($xs)\$" | grep -v "^N2/N2-R\$" | sort >"$T/$id.want" + chk "launch $id: receipt rows == declared v8-shape rows" 'cmp -s "$T/$id.got" "$T/$id.want"' +done + +echo "test-v3: $pass passed, $fail failed" +[ $fail = 0 ] diff --git a/docs/campaigns/open-model-qwen3/v3-rows.sh b/docs/campaigns/open-model-qwen3/v3-rows.sh new file mode 100755 index 00000000..31228b25 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/v3-rows.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +# OPEN-MODEL-QWEN3 v3 (ACCEPTANCE-v3.md Section 4, FROZEN): the extra rows of one launch, +# computed from the run directory beside the v8 receipt. Shell + jq only. Usage: +# v3-rows.sh RUN_ROOT LAUNCH_ID TASKS.json OUT_DIR RECEIPT_BASENAME +# Writes OUT_DIR/.v3rows.json (never edited afterwards) and prints one scoring-v5 +# result line per row: {row: "/", rep: 1, verdict, receipt}. +set -eu +R=${1:?RUN_ROOT} ID=${2:?LAUNCH_ID} TASKS=${3:?TASKS} OUT=${4:?OUT_DIR} REC=${5:?RECEIPT} +HERE=$(cd "$(dirname "$0")" && pwd) +S=$R/steps +task=$(jq -c --arg id "$ID" '.tasks[] | select(.id == $id)' "$TASKS") +[ -n "$task" ] || { echo "v3-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 +tmp=$(mktemp "$OUT/.v3rows.XXXXXX") +jq -n --argjson task "$task" --argjson report "$(j "$R/s3-report.json")" --argjson s5 "$(j "$S/S5.json")" \ + --argjson s8 "$(j "$S/S8.json")" --argjson committed "$committed" --arg rec "$REC" --arg mod "$(sha256sum "$HERE/rows-oq3-v3.jq" | cut -d' ' -f1)" \ + "$(cat "$HERE/rows-oq3-v3.jq")"' + def j2: (try fromjson catch null); + {task: $task, report: $report, s5: ($s5 // {}), committed: $committed, + auths: (($s8.authorizations // []) | map((.text // "" | j2) + {id, verified}))} as $ev + | {launch: $task.id, receipt: $rec, rows_module_sha256: $mod, rows: ($ev | v3_rows)}' >"$tmp" +h=$(sha256sum "$tmp" | cut -d' ' -f1) +mv "$tmp" "$OUT/$h.v3rows.json" +jq -c --arg id "$ID" --arg rec "$REC" --arg f "$h.v3rows.json" \ + '.rows[] | {row: ($id + "/" + .row), rep: 1, verdict: .result, receipt: $rec, extra_rows_file: $f}' "$OUT/$h.v3rows.json" diff --git a/docs/campaigns/scoring/declarations/oq3-v3.decl.json b/docs/campaigns/scoring/declarations/oq3-v3.decl.json new file mode 100644 index 00000000..315a5b68 --- /dev/null +++ b/docs/campaigns/scoring/declarations/oq3-v3.decl.json @@ -0,0 +1,1256 @@ +{ + "contract": "scoring-v5", + "campaign": "open-model-qwen3 v3", + "frozen_by": "docs/campaigns/open-model-qwen3/ACCEPTANCE-v3.md (Section 5); FROZEN when that file is on main", + "note": "v8 row shapes (115 rows of the v2 declaration, renamed to the v3 launch ids) plus the v3 extra rows SB, F, RQ, D (and N2-R). One repetition each, no controls, no NOT_APPLICABLE. Generated by gen-decl-oq3-v3.sh from tasks-oq3-v3.json.", + "rows": [ + { + "row": "G1/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/G1-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/G1-L", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/G1-M", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/G1-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/G1-SB", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/G1-F", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/G1-RQ", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G1/G1-D", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/G2-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/G2-L", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/G2-M", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/G2-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/G2-SB", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/G2-F", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/G2-RQ", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G2/G2-D", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/v1 Task completion", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/v1 Correctness: committed content", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/v1 Correctness: recall", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/v1 Human interventions: approvals", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/v1 Human interventions: rescues", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/v1 Identity", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/v1 Memory", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/v1 Containment: speculation", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/Q1", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/Q2", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/Q3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/Q4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/G3-A", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/A3", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/A4", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/A5", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/A6", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/G3-L", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/G3-M", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/G3-CM", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/G3-SB", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/G3-F", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/G3-RQ", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + }, + { + "row": "G3/G3-D", + "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-D", + "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-D", + "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-D", + "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": "N1/N1-D", + "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-R", + "role": "case", + "reps": 1, + "expected": "PASS", + "control": null, + "not_applicable": false + } + ] +} ```