aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
GitHub aien-dev/aien-sovereign-core-mv#339 (code only)
Fetch it
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/f996829b40425532.bundle -o f996829b40425532.bundle git fetch f996829b40425532.bundle refs/pull/339/head
Provenance
github-import 1
aien-dev/aien-sovereign-core-mv
339
9748cc1cac468a5786f8c46ea4e3f3daa2c8e345
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":339,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/339","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:50Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.crumb b/.crumb index b0ed7c25..5e238f82 100644 --- a/.crumb +++ b/.crumb @@ -77,14 +77,14 @@ } ], "children_root": "sha256:285ca7eafbe46d808ebe5e4fb533e464bfdf0fedaf3eef486ac2e2c8826baf6f", - "compiled_at": "2026-10-08T15:54:33Z", + "compiled_at": "2026-10-08T16:10:40Z", "compiler": "crumb-compile/1", - "digest": "sha256:ff6d2588d1d6900fe4e9e92eecce9d8c664df43b07e212a5011bba2612856839", + "digest": "sha256:96b4e798532e03d970a6d9b5f18d9b272a6f689bb7c0d50a4a28460e3fb3da9a", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", - "files": 1595, - "generated_at_commit": "fb51552e2acbc17addb2e4aa4565a89a5bbf412f", - "source_tree": "sha256:a8d87801d6bc6719228fc340ee2220a663448fa97296030ce9f3fd08784277c1" + "files": 1606, + "generated_at_commit": "c1f301db4cb3d52b9a17d5ce323b52390566b343", + "source_tree": "sha256:de88ac42111c4c20085f33df04172875c10a308d5a56a33e649fff5d903ccdbb" } }, "history": [], diff --git a/docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md b/docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md new file mode 100644 index 00000000..0e76d363 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md @@ -0,0 +1,388 @@ +# OPEN-MODEL-QWEN3 campaign v5: acceptance criteria (DRAFT) + +**Status: DRAFT, NOT FROZEN, NOT RUN** + +Written by session fb5693 on 2026-10-08 under Drake's decision (c) (`~/handoffs/2026-10-08-drake-decisions.md`): do not run +v4, write v5 first; keep v4 unchanged as a diagnostic spec and regression evidence; fix the product causes of legitimate +tasks being refused, never the scoring; v5 = fresh tasks, real output-byte checks, verified decoding mode, backend provenance, +no silent fallback; review, freeze, one chip slot. + +This file becomes FROZEN only when a later change fills every "TO FILL AT FREEZE" entry, passes every freeze gate of +Section 9, changes this status line, and is merged before the run with Drake's go-ahead. Until then no launch may run and +nothing here is a verdict. + +## 0. What is and is not established + +- **v1, v2, v3 stand as recorded** (VERDICT-v1.md; VERDICT-v2.md FAIL 85 of 115; VERDICT-v3.md FAIL 153 of 156). Nothing here + edits or reinterprets them. +- **v4 stays exactly as written** (sc#294, branch `e3d035/oq3-v4-campaign`, ACCEPTANCE-v4.md). It is not run (decision (c)). It is + kept as a diagnostic spec and as regression evidence. Its Section 10.1 finding stands as negative evidence: on the product of + 2026-10-08, four of its ten qualification goals (W3, W5, N2, R1) are refused before any model call. v5 changes no v4 file. +- **The v4 finding is wider than four tasks.** The wording of the v5 goals below is by an independent author who did not open + any repository (brief: `evidence-v5/task-author-brief.md`). On origin/main 9b5e6e8 (which contains #295, #319, #293 and #329) + the requirement reader marks **7 of the 11** goals uncertain (`evidence-v5/requirements-probe-v5-goals.txt`): **5 of the 9 + goals that should reach the model** (D1, D3, D5, D6, R1) are refused before any model call; N2, which should be stopped by its + 16-token cap, is stopped by the reader instead (the wrong reason); N1 is also marked, but the product refuses it earlier for + its destination (Section 3.3), so that mark has no effect. On the same commit the v4 table is reproduced exactly + (`evidence-v5/requirements-probe-v4-goals.txt`). The cause is the requirement reader, not the model: Section 1 lists each cause + with its issue. v5 cannot freeze until those are fixed (Section 9, gate G1); **the goals are never reworded to suit the reader**. +- **Three conclusions stay separate in the verdict**, as in v4: (1) document qualification (this campaign's rows); (2) GPU memory + reliability (omega#327, omega#277, sc#277 stay open and separate; Qwen3 on GB10 stays opt-in; a memory failure is reported as + its own finding); (3) release readiness, not claimed under any outcome. +- **Token-limit cut and wall-clock timeout** are scored separately, as in v3 and v4. + +## 1. Product fixes v5 depends on + +A legitimate goal refused by the product is a product failure. Each cause is fixed in the product; no row, count or goal is +changed to make a task pass. Probe evidence for every line is in `evidence-v5/`. + +| # | Cause (product) | Goals affected | Fix | +|---|---|---|---| +| P1 | Count wordings refused before the model: `between 16 and 30 lines`, `three sections titled ...`, `22 non-empty lines and ...`, `one section must be titled "T"` | v5 D1, D5, D6 | issue sc#331 | +| P2 | `cover N topics: a, b and c` refused before the model; and the topic check rejects forms the goal accepts (`dried`, `store`, `stored`, `Label`, `withdrew`), so a correct document would be refused at verify | v4 W3; v5 D3 | issue sc#332 | +| P3 | Required-word wordings refused (`make sure the words X and Y appear`, `the words X and Y show up`) or silently not read (`use the exact words`, `must name A, B and C`, `mention ... by name`) | v5 D1, D5 (refused); v4 W1, W4, W5, v5 D4 (not read) | issue sc#333 | +| P4 | Item counts that refer back (`twelve of them`, `12 of those items`) refused before the model | v4 W5; v5 D5 | issue sc#334 | +| P5 | Paragraph counts (`at least 7 paragraphs`) refused; no paragraph requirement kind | v4 N2; v5 D6, N2 | issue sc#335 | +| P6 | One-sentence and one-line files refused before the model (`a one-sentence reminder`, `just one line that says "..."`). The second wording only matters for a goal whose destination is valid; on 9b5e6e8 v5 N1 is refused for its destination first (`spine.rs`, `task_decision` runs before `analyze`), and gate G3 keeps that order checked | v4 R1; v5 R1 (N1 wording) | issue sc#336 | +| P7 | No positive fallback evidence: the daemon records neither strict mode nor op accounting (`OP_REPORT`) | every launch (row `<id>-OPR`) | issue sc#337 | +| P8 | The generation record binds only the index file of a sharded checkpoint (`model.safetensors.index.json`), not the three weight shards | every committed launch (row `<id>-GR`) | issue sc#338 | + +Already merged and used by v5: sc#329 (the generation record and every compose attempt state the decoding actually taken, +row `<id>-DEC`), sc#293 (the destination is the path the goal names to create, which D4 needs), sc#295 and sc#319 +(requirement enforcement end to end). + +Not a freeze dependency, reported separately: sc#277 / omega#327 / omega#277 (GPU memory). sc#294 (v4) should merge as the +diagnostic record so the v4 scripts v5 reuses (Section 4) are on main. + +## 2. Launches and limits + +Eleven qualification launches, once each, in this order: **D1, D2, D3, D4, D5, D6, E1, E2, N1, N2, R1**. Machine copy: +`tasks-oq3-v5.json`. No chip regression launches: the scope stays narrow and fits one chip slot. Regression evidence is the +CPU probe of all fourteen v4 goals on the frozen commit (Section 6), reported, not counted. + +Limits are the v3 and v4 product limits: small edit 29 s and 96 tokens; new document 120 s and 1024 tokens; N2 a document cap of +16 tokens (budget exhaustion); R1 a document cap of 96 (bounded CPU reference replay). The wrapper sets both budgets and both caps +for every launch; the retired `AIEN_COMPOSE_BUDGET_MS` must be unset. + +| id | kind | cap | budget | seed | expected completion | +|----|------|-----|--------|------|---------------------| +| D1 | document: line count, three titled sections, two stated words | 1024 | 120 s | none | DONE | +| D2 | document: three fenced code examples with titled sections, a closing section of at least 12 words | 1024 | 120 s | none | DONE | +| D3 | document: line count, four named topics with stated word forms | 1024 | 120 s | none | DONE | +| D4 | document created from a different existing file; titled sections; three names | 1024 | 120 s | `seed-v5/D4/notes/choir-rehearsal.txt` | DONE | +| D5 | document: line range, item prefix and item count, titled sections, two stated words | 1024 | 120 s | none | DONE | +| D6 | document: paragraph count, one titled section | 1024 | 120 s | none | DONE | +| E1 | small edit: add a bullet to one section | 96 | 29 s | `seed-v5/E1/repairs/tap-repair.md` | DONE | +| E2 | small edit, nested path: add a numbered item at the end of a list | 96 | 29 s | `seed-v5/E2/crafts/yarn/scarf.md` | DONE | +| N1 | declared negative: destination outside the workspace | 1024 | 120 s | none | REFUSED, for the destination | +| N2 | declared negative: budget exhaustion | 16 | 120 s | none | REFUSED, token limit | +| R1 | token-identity replay against the CPU reference; one sentence | 96 | 120 s | none | DONE | + +Task rows in the format the inherited Q2 check reads (`make-receipt.sh` builds this exact line from the task file and requires it +verbatim in the acceptance file; generated from `tasks-oq3-v5.json` with the same jq). Phrases are matched as case-insensitive +substrings after whitespace is collapsed (`rows-v5.jq`, Q2), so `shoulder` matches "shoulders" and `saving` matches "savings". + +| id | goal (exact text given to the driver; written by the independent author, unchanged) | requested destination | required phrases (all) | +|----|------|------|------| +| D1 | `Please create the file docs/knife-sharpening.md, a short how-to guide on sharpening a kitchen knife by hand. It should have at least 22 non-empty lines and three sections titled "Gather Your Tools", "Sharpen the Edge" and "Test and Store". Make sure the words whetstone and angle both appear somewhere in it.` | `docs/knife-sharpening.md` | `Gather Your Tools`, `Sharpen the Edge`, `Test and Store`, `whetstone`, `angle` | +| D2 | `I need a technical how-to saved as docs/rename-photos.md that shows how to rename a folder of holiday photos with a bash loop. Write at least 18 lines in total and include 3 fenced code examples, where each example is introduced by its own section titled "Example One: Date Prefix", "Example Two: Lowercase Names" and "Example Three: Number the Files" in that order. After the last code example, add a final section titled "Wrap Up" containing at least 12 words of plain text and no code.` | `docs/rename-photos.md` | `Example One: Date Prefix`, `Example Two: Lowercase Names`, `Example Three: Number the Files`, `Wrap Up` | +| D3 | `Write an explainer for beginners called docs/savings-basics.md about how a savings account works. It must cover four topics: interest, deposit, withdraw and balance, and the file needs at least 18 lines. A topic counts as covered when its word or another form of that word appears, for example interests or interested for the first one, deposits or deposited for the second, withdrew or withdrawing for the third, and balances or balancing for the last.` | `docs/savings-basics.md` | `saving` | +| D4 | `There is a file at notes/choir-rehearsal.txt with my rough notes from choir practice. Please create a new file called docs/choir-summary.md that summarises it, and leave the original alone. The summary needs at least 13 lines, two sections titled "Key Points" and "Next Steps", and must mention Marta, Owen and Priya by name.` | `docs/choir-summary.md` | `Key Points`, `Next Steps` | +| D5 | `Make me a carry-on packing checklist in docs/packing-carry-on.md. Keep it between 16 and 30 lines long. Every item must be its own line starting with "- [ ]" and I want at least 12 of those items. Organise it under three sections titled "Documents", "Clothes" and "Electronics", and be sure the words passport and charger show up.` | `docs/packing-carry-on.md` | `- [ ]`, `Documents`, `Clothes`, `Electronics`, `passport`, `charger` | +| D6 | `Please write a warm, longer essay about adopting a rescue cat and save it as docs/rescue-cat-essay.md. It should run to at least 7 paragraphs, and one section must be titled "Bringing Her Home".` | `docs/rescue-cat-essay.md` | `Bringing Her Home` | +| E1 | `In the existing file repairs/tap-repair.md, add the bullet line "- Thread seal tape for the spout" under the section called "Parts" and leave everything else as it is.` | `repairs/tap-repair.md` | `- Thread seal tape for the spout` | +| E2 | `Open crafts/yarn/scarf.md and put one more numbered item, "4. Cast off loosely and weave in the ends.", at the end of the list under the heading "Steps". Don't change the other sections.` | `crafts/yarn/scarf.md` | `4. Cast off loosely and weave in the ends.` | +| R1 | `Save a one-sentence reminder about stretching the shoulders before swimming into notes/swim-tip.txt.` | `notes/swim-tip.txt` | `shoulder` | + +N1 goal (declared negative, not a Q2 row): `Create a file at ../shared-stuff/reminder.txt containing just one line that says "Renew the library card on Friday."` +N2 goal (declared negative, not a Q2 row): `I would like a long, detailed history of the marathon as a race, from the legend of ancient Greece to modern city events, saved as docs/marathon-story.md. Please make it at least twelve paragraphs long.` + +Seeds (each edit seed has three level-two headings; the D4 source names the three people): + +```text +seed-v5/D4/notes/choir-rehearsal.txt sha256 aa8780bbc1c587cc6f980e44d838b1dfc39e11d06365d3471126008c9b99b7b7 +seed-v5/E1/repairs/tap-repair.md sha256 4766451b85a3cabde953959bb75c990fbf9f82e1caf41554c9a695e8937b91b9 +seed-v5/E2/crafts/yarn/scarf.md sha256 3a5a8494fbe60908c9a9431ac4839f17e4962a5a51f22399662087073cf00909 +``` + +## 3. Rows and exactly how each is counted + +Every row is computed by the scorer from the files the run leaves, never from a runtime verdict. The scorer computes every +sha256 itself. A launch with no `run.json` FAILs every declared row of that launch. Absent evidence is FAIL, never PASS. + +### 3.1 Counting rules (saved bytes) + +The v4 rules (ACCEPTANCE-v4 Section 3) apply unchanged: lines, sections (headings, fenced code skipped), stated word (whole +word, ASCII case-insensitive, neighbours not a letter or digit), topic (accepted forms only), code blocks (complete fenced +blocks), closing section after the last example (`tail`), item lines (`prefixed_lines`), maximum lines. New in v5: + +- **Paragraph** (`paragraphs`): outside fenced code blocks and fence lines, a maximal run of consecutive prose lines. A prose + line is a non-empty line (a line with at least one non-whitespace character) that is not a heading line and not a list item + (after leading whitespace it does not start with `- `, `* `, `+ ` or digits followed by `.` or `)` and a space). Blank lines + (including whitespace-only lines), heading lines and list-item lines end a run and are not part of any paragraph. This is the + rule asked of the product in sc#335. `at least N paragraphs` passes when the count is N or more. +- **Heading order** (`heading_order`, D2): for each listed title take the first heading (same title rule as sections) that + matches it; all are present and their line numbers increase in the listed order. +- **One sentence** (`sentences_exact`, R1): the saved text, trimmed, is one non-empty line that ends with `.`, `!` or `?` + and contains no `.`, `!` or `?` followed by whitespace before that last character. Abbreviations are not special-cased; the + goal asks for a reminder, not a citation, and this narrow reading is declared here before any run. +- **Edit position** (E2 only, `end_of_section`): in addition to the v4 edit-outcome rule, the new line is the last non-empty + line before the next heading after `## Steps`. + +Topic forms (fixed now, before any run; whole word, case-insensitive; a longer word that only contains a form does not count): + +| Topic (D3) | Accepted forms | +|---|---| +| interest | `interest`, `interests`, `interested` | +| deposit | `deposit`, `deposits`, `deposited`, `depositing` | +| withdraw | `withdraw`, `withdraws`, `withdrew`, `withdrawn`, `withdrawing`, `withdrawal`, `withdrawals` | +| balance | `balance`, `balances`, `balanced`, `balancing` | + +The independent author also listed `interesting` for interest; the spec author removed it before any run (it is not a form of +the banking sense of the word) and added `withdrawal`, `withdrawals` (the noun of withdraw). Both changes are recorded here and in +`tasks-oq3-v5.json`. + +### 3.2 Declared requirements per task (rows `<id>-RQ<k>`, in the order of `tasks-oq3-v5.json`) + +| Task | Rows | +|---|---| +| D1 | RQ1 at least 22 non-empty lines; RQ2 the three titled sections are headings; RQ3 the words whetstone and angle appear | +| D2 | RQ1 at least 18 non-empty lines; RQ2 at least 3 complete fenced code blocks; RQ3 the three example titles are headings; RQ4 after the last code block a Wrap Up heading followed by at least 12 words; RQ5 the three example headings are in the stated order | +| D3 | RQ1 at least 18 non-empty lines; RQ2 to RQ5 the topics interest, deposit, withdraw, balance | +| D4 | RQ1 at least 13 non-empty lines; RQ2 Key Points and Next Steps are headings; RQ3 Marta, Owen and Priya appear | +| D5 | RQ1 at least 16 and RQ2 at most 30 non-empty lines; RQ3 at least 12 lines starting with `- [ ]`; RQ4 the three titled sections are headings; RQ5 passport and charger appear | +| D6 | RQ1 at least 7 paragraphs; RQ2 Bringing Her Home is a heading | +| N2 | none: the paragraph requirement is recorded in the task file for the CPU probe (gate G1) and is never scored, because N2 is a declared negative | +| R1 | RQ1 exactly one sentence (the subject is checked only by the inherited Q2 phrase `shoulder`) | + +A word requirement with several words is one row that needs all of them (as in v4's headings rows). Two parts of the D2 goal are +not separate rows: "no code" in Wrap Up holds by construction for fenced code (RQ4 reads only text after the last complete +block), and inline backticks are not scored; "its own section" for each example is not scored beyond RQ3 and RQ5 (which section +holds a block is not scored, as in v4). + +### 3.3 Inherited rows: none weakened; one declared exception for N1, other N1 rows confirmed at gate G3 + +`rows-v8.jq`, `rows-v5.jq` and `rows-oq3-v3.jq` run unchanged; the v4 rows of ACCEPTANCE-v4 Section 3 are computed by the v4 row +module unchanged (`rows-oq3-v4.jq`): `<id>-SB` saved bytes equal approved bytes, `<id>-F` complete document saved, `<id>-CUT` +accepted reply not cut, `<id>-RQ<k>`, `D4-SRC` source unchanged (the v4 `W4-SRC` rule), `<id>-EO` edit outcome, `<id>-D` one +deadline, `<id>-NC` nothing committed on refusal, `<id>-BE` no CPU, stub or fallback backend per daemon start, `N2-R` token-limit +cut is not a timeout. These cover "real output-byte checks": every positive launch is judged on the sha256 and the text of the +file found in the workspace after the run. + +**One declared exception: where N1 is refused.** In v3 the product refused an outside-the-workspace goal at a model attempt, and +v8's `N1-B` ("at least one attempt refused with a reason naming outside the workspace", `rows-v8.jq`) and v4's `<id>-D` ("at least +one attempt") were written for that. On 9b5e6e8 the product refuses earlier: `task_decision` (`spine.rs`) runs before any +requirement reading or model call and returns `RunComposeTask: destination ../shared-stuff/reminder.txt cannot be written safely +(not a plain relative path inside the workspace); refusing` (reproduced on CPU by the reviewer of this draft). A correct refusal +made before the model can never pass `N1-B` or `N1-D`. For N1 only, those two rows are replaced by `N1-NR` and `N1-NM` +(Section 3.4), which test the same property (refused at the workspace boundary, nothing committed) where the product now refuses, +and are stricter on one point (no model call at all). This is a scorer change caused by a product change, declared here before +any run, with red and green controls (Section 3.5); it is not a relaxation and is flagged for the reviewer and Drake at freeze. +Which of the other inherited N1 rows (`N1-C`, `N1-Z`, `N1-E`, `N1-H`, v4 `N1-NC`) can read a refusal that leaves no S3 report is +confirmed at gate G3 by a stub-build run; any that cannot is listed and replaced the same declared way, never dropped silently. +The same product change means v4's N1 would now fail `N1-B` on 9b5e6e8; v4 is not edited, and this is recorded as a v4 finding +(Section 12). + +### 3.4 New rows in v5 + +| Row | Launches | What it requires | +|---|---|---| +| `<id>-PRE` Asked the model | every launch except N1 | the S3 report has the field `requirements_uncertain` and it is an empty list (the field is always written, so an absent field is FAIL), and at least one attempt exists. A product refusal before the model is named by this row, so the verdict can say "product" rather than "model" | +| `<id>-DEC` Decoding observed greedy | every launch except N1 | **On every attempt** of the S3 report: `decoding` is present and not null; `decoding.greedy_tokens` is at least 1; `decoding.sampled_tokens` is 0; `temperature`, `top_p` and `seed_request_id` are null or absent (an attempt's `decoding` is the plain `DecodeObservation`, which has no `mode` field). An attempt with no `decoding` (timed out, errored, or not observed) FAILs the row. **On the generation record** named by a committed launch's `provenance.generation_record`: `decoding.mode` is `greedy` and `decoding.sampled_tokens` is 0. sc#329: absent means no claim, so absent is FAIL. The value is never read from the request, `generation_config.json` or any config | +| `<id>-GR` Generation record binds model and text | committed launches | the commit chain names a generation record (not null); the scorer reads it with `aien compose recall` (verified); its `output_text_sha256` equals the parsed attempt's `text_sha256`; its `model_sha256` equals the frozen value of the file the daemon hashes (Section 7) and the daemon's `checkpoint loaded` line; its `tokenizer_sha256` equals the frozen tokenizer.json sha256. Until sc#338 is fixed this binds the index file only; the verdict says so | +| `<id>-OPR` No fallback, positive evidence | every launch | for **every daemon start** of the launch (the driver starts more than one: `daemon-1.log`, `daemon-2.log`, as `<id>-BE` counts them), that daemon's log has the start line of sc#337 with `strict=true`, `dev_fallback_build=false`, `require_checkpoint=true` and a backend containing `OmegaGb10`; every `OP_REPORT` line of the launch has `native_fallbacks=[]` and `reference_runs=[]` and lists all ten native ops; launches that call the model have at least one `OP_REPORT` line; the log has no `STRICT_REAL_MODEL_VIOLATION`. A missing line is FAIL. (The exact line format is fixed at freeze from the merged sc#337.) | +| `<id>-PIN` Build pins | every launch | `run.json` records the sovereign-core commit, the omega, physics and aienos lock commits, the sha256 of `aien`, `np1_reference` and `np1_edit_merge`, and `Cargo.lock`, each equal to its frozen value (Section 7). The wrapper refuses a mismatch; the row makes the check part of the score | +| `<id>-MEAS` Measurements present and consistent | every launch | `run.json` has the launch wall time (monotonic ms), and for each attempt its ms, `tokens`, and `token_ids`; every number is a non-negative integer; the attempts' ms sum to no more than the launch wall time; `tokens` equals the length of `token_ids`; no attempt's `tokens` exceeds the launch's cap; MemFree and Cached are recorded before the part and the daemon's `vmhwm_kb` after it | +| `N1-NR` Refused for the destination | N1 | the propose step (S3) did not succeed, and its error text (the place it is read from is fixed at gate G3) contains `destination ../shared-stuff/reminder.txt cannot be written safely` and `refusing`, and does not contain `uncertain requirement`. Replaces `N1-B` for N1 (Section 3.3) | +| `N1-NM` No model call, nothing committed | N1 | no attempt, no generation record, no authorization record, no S5 path, and no file at `../shared-stuff/reminder.txt` relative to the workspace. Replaces `N1-D` for N1 (Section 3.3) | + +Whether the product recognized a requirement is not a row condition (as in v4): the rows read the saved bytes. A reply the +runtime refuses leaves no committed file, so every row that needs one FAILs for that launch. + +### 3.5 Measurement checks of the scorer itself (negative controls) + +Before freeze the self-test (`test-v5.sh`, CPU only) must show, for every row kind above, at least one made-up result that +passes and at least one that fails exactly that row (red before green): a document one line short, a missing heading, a word +inside a longer word, a topic form not in the table, an unclosed fence, a paragraph split only by a heading, two sentences in R1, +an attempt whose `decoding` is null or has one sampled token, a record whose `decoding.mode` is `mixed`, swapped example headings in D2, a missing `requirements_uncertain` field, a null generation record, a record whose text digest differs, a log with +a fallback count of 1 or no `OP_REPORT` line, a pin off by one character, attempt ms summing above the wall time, and an N1 +refused for an uncertain requirement or after a model attempt. A row that cannot be made to fail is not a check and blocks the freeze. + +## 4. Declaration and tooling + +`gen-decl-oq3-v5.sh` writes `../scoring/declarations/oq3-v5.decl.json` from the v8 row shapes plus the rows above. One +repetition, role case, no control, none NOT_APPLICABLE. `test-v5.sh` fails if the committed file differs from the generated +one. The wrapper `run-qwen3-v5.sh`, the row module `rows-oq3-v5.jq` (including `rows-oq3-v4.jq` and `rows-oq3-v3.jq` +unchanged) and `v5-rows.sh` are derived from the v4 files of sc#294 without changing any inherited row. None of these exists in +this draft: they are written after the product fixes of Section 1 merge, so that the log line formats they read are the merged +ones. + +QUALIFICATION_ROWS = TO FILL AT FREEZE (generated; per launch counts listed in the generated declaration) + +## 5. Verdict + +scoring-v5 (`../scoring/score-rows.sh`) over `oq3-v5.decl.json` and the result file only: **PASS only if every declared row is +present once and PASS.** Binding rules, as in v4: + +- A failed campaign stays failed: no rerun of a failure, no repeated launch, no retry after seeing a result. +- No task edit after seeing answers. A spec defect found after the run is a finding for a later campaign, never this one. +- All attempts, outputs, exit codes, timings, receipts, logs, generation records and the sha256 of every file in the run base are + kept in `evidence-v5/`. Nothing is deleted, trimmed or regenerated. +- The legacy receipt `verdict` field is outside the verdict. +- The verdict reports the three conclusions of Section 0 on three separate lines, and for each failing launch says whether the + first failing row is a product row (`PRE`, `OPR`, `PIN`, `GR`, `N1-NR`) or a model row (`RQ`, `CUT`, `F`, `EO`, `SB`). + +## 6. Regression evidence (CPU, reported, not counted) + +At freeze the requirement-reader probe is re-run on the frozen commit over all fourteen v4 goals and all eleven v5 goals and +committed next to the 9b5e6e8 probes. For v4 it shows which of the four v4 refusals (W3, W5, N2, R1) the fixes of Section 1 +removed; v4's own files and its 10.1 table are not changed. The v4 regression launches (RG2, RG3, RT4, RT6) are not re-run on the +chip in v5. + +## 7. Model, environment and build + +Model: Qwen/Qwen3-4B-Instruct-2507, Hugging Face revision cdbee75f, Apache-2.0, weights unchanged, directory +`/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/`. Expected sha256 (re-hashed and confirmed at freeze; the values are +those of ACCEPTANCE-v4 Section 7, re-hashed there on 2026-10-08): + +```text +model.safetensors.index.json d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c +model-00001-of-00003.safetensors 75311d91bb08cf0b882913da464a1e722a31fb44db35208663487efb7a3d8ed6 +model-00002-of-00003.safetensors 0b48adbb1f60e901153d91907ba11ce63bd4b8b584482e730f48808d055dfba1 +model-00003-of-00003.safetensors 7dd39ccca5e4de123c74c14af44c9bf2eb75df33b4614382af0134528e060d5d +tokenizer.json aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4 +tokenizer_config.json a62ff0a2472a0fa1b8eaabcb57c59b58afa42a22831dc141400b6e0cf2b65ce3 +chat template string alone 64f85b198065d0fba2a81f37e10ed68161ce2c19a754c7100e67e0ca2ee9c326 +config.json 5beea1a4a34c62782bfb2f911c606741a3bab8f92d80a118fa053c28af12e8ba +generation_config.json 835fffe355c9438e7a25be099b3fccaa98350b83451f9fd2d99512e74f1ade48 +``` + +**What `generation_config.json` holds and how it is used** (review finding on v4: hashed but not described). Its contents: +`bos_token_id` 151643, `eos_token_id` [151645, 151643], `pad_token_id` 151643, `do_sample` true, `temperature` 0.7, `top_k` +20, `top_p` 0.8, `transformers_version` 4.51.0. The product reads only the stop set from it (`model_dir.rs`, `eos_token_ids`); +the sampling fields are the publisher's suggestion for other runtimes and are **not read** by this product. The campaign does not +rely on that reading: row `<id>-DEC` checks the decoding the backend actually took on every attempt. + +**Which file the generation record hashes.** The daemon is started with `AIEN_MODEL_PATH` = the index file, and +`model_sha256` is the sha256 of that file (sc#338). Until sc#338 is fixed, row `<id>-GR` compares with the index sha256 above and +the verdict states that the shards are bound by the wrapper's pre-run hash only. + +Environment, checked by the wrapper and recorded in `run.json`: + +```text +AIEN_KV_CONTEXT_TOKENS = 4096 +AIEN_REQUIRE_BLACKWELL = 1 (a missing GPU engine is fatal) +AIEN_REQUIRE_CHECKPOINT = 1 (already exported by the next-phase-1 driver, run-campaign.sh; the v5 wrapper also checks it; reference weights are fatal) +AIEN_GB10_QWEN3_DECLARED_ATTEMPT = 1 (opt-in while omega#327 is open) +AIEN_COMPOSE_EDIT_BUDGET_MS = 29000 +AIEN_COMPOSE_DOC_BUDGET_MS = 120000 +AIEN_COMPOSE_MAX_TOKENS = 96 +AIEN_COMPOSE_DOC_MAX_TOKENS = 1024 for documents, 16 for N2, 96 for R1 +unset: AIEN_FORCE_CPU_STUB, AIEN_DEV_FALLBACK (new in v5), AIEN_COMPOSE_BUDGET_MS, AIEN_OMEGA_SPIN_US, AIEN_OMEGA_CTA_BUDGET +build: release, linked (has_omega_compose, has_omega_gpu, has_omega_wait_ms in the build log), WITHOUT the dev-fallback feature; + the exact cargo command line is recorded in evidence-v5/build-summary.txt +``` + +Build pins (current main as of this draft; TO FILL AT FREEZE with the commit that contains the Section 1 fixes): + +```text +sovereign-core commit = TO FILL AT FREEZE (draft written on 9b5e6e82359f4ad6b6f03042e83ef6411c5f15ce) +omega.lock commit = TO FILL AT FREEZE (6c6180cf378075b61291f4565d226eba38b4decd at 9b5e6e8) +physics commit = TO FILL AT FREEZE (6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf at 9b5e6e8) +aienos.lock commit = TO FILL AT FREEZE (b84c0a67590a934f3f3e001b12ec85ebc086a9eb at 9b5e6e8) +Cargo.lock sha256 = TO FILL AT FREEZE +aien-cli sha256 = TO FILL AT FREEZE +np1_reference sha256 = TO FILL AT FREEZE +np1_edit_merge sha256 = TO FILL AT FREEZE +campaign files (wrapper, tasks file, declaration, row modules, generator, self-test, seeds, next-phase-1 driver) sha256 = TO FILL AT FREEZE +GPU hold names, one per part = TO FILL AT FREEZE +``` + +## 8. Run plan: one chip slot + +Run path pinned at freeze (`RUN_BASE=/home/drakestapleton/workspace/oq3-v5-runs`). One run: no retry, no repeated launch, no +cache drop. Four parts, one quietlock hold of 20 minutes or less each, back to back, together the one chip slot of decision (c). +Part k refuses unless part k-1 completed in the same RUN_BASE with the same binaries and campaign files. + +Time estimate, UNVERIFIED, from v3 (a launch costs about 140 s without decoding; documents decoded in 20 to 43 s): + +| Part | Launches | Worst case (documents at 120 s, edits at 29 s) | Hold | +|---|---|---|---| +| 1 | D1 D2 D3 | 3 x (140 + 120) s = 13 min | 20 min | +| 2 | D4 D5 D6 | 3 x (140 + 120) s = 13 min | 20 min | +| 3 | E1 E2 N1 | 2 x (140 + 29) + (140 + 120) s = 9 min 58 s | 20 min | +| 4 | N2 R1 and the score | (140 + 120) s + about 14 min if the CPU reference runs to its 96-token cap | 20 min | + +If the GPU dry run (Section 9, gate G6) shows more, a part is split before freezing; a part is never extended. + +## 9. Freeze gates + +All must hold on the commit being frozen. If one fails, the product or the tooling is fixed; **no goal is reworded and no row is +changed to pass a gate.** + +- **G1 Asked the model.** The requirement-reader probe on the frozen commit gives no uncertain span for any v5 goal except N1 + (sc#331 to sc#336 merged). Committed as `evidence-v5/requirements-probe-<commit>.txt`. +- **G2 Topic forms.** The product's topic check accepts every accepted form of Section 3.1 for its topic (the + `topic-forms-probe` re-run with the D3 forms; sc#332). +- **G3 N1 reason.** On the frozen commit a stub-build run of N1 through the driver is refused before any model call with the + reason of `N1-NR`; the exact error string (verbatim) and the file and field it lands in are recorded in `evidence-v5/` and copied into `N1-NR`; each inherited N1 row is run + on that output and any that cannot read it is listed and replaced as Section 3.3 says (sc#336 keeps the order tested). +- **G4 Fallback evidence.** sc#337 merged; a stub-build daemon prints the start line; the line format is copied into Section 3.4 + and `rows-oq3-v5.jq`. +- **G5 Self-test.** `test-v5.sh` passes, including every red case of Section 3.5, freshness of every v5 goal against every + earlier tasks file, acceptance file, verdict and the diagnostic (D4 shares the first name Priya with v4 W4: a name, declared + here, not a reused task), and the wrapper's refusals. +- **G6 GPU dry run.** One dry run of the exact wrapper in dry mode on the chip, with Drake's approval and its own holds: + measures part timings, confirms `decoding` reaches `steps/S3.json` attempts on the GB10 path, the generation record is + written, and the OP_REPORT lines appear. Not a qualification run; its outputs are kept and never scored. +- **G7 Pre-run gate.** `cargo fmt --all --check`, clippy `-D warnings`, the stub and linked test suites reported separately, + `test-rows-v8.sh`, `test-v3.sh`, `test-v5.sh` on the frozen build; combined build from clean checkouts at the pins. +- **G8 Review and freeze.** An independent review of this file, the tooling and the gate evidence; then every "TO FILL AT + FREEZE" is filled, the status line changes, and that change alone merges with Drake's go-ahead. + +## 10. Prediction (stated before any run; UNVERIFIED) + +Nothing here is measured. On today's product (9b5e6e8) the verdict would be FAIL with certainty: 5 of the 9 positive launches never reach +the model (Section 0), and `<id>-OPR` has no line to read. After the Section 1 fixes, from v3 and v4 judgment only: N1 and N2 +about 85 percent, R1 about 75 percent, E1 about 70 percent, E2 about 55 percent (the end-of-list position), D2 about 35 +percent, D4 about 40 percent, D1, D3, D5 about 35 percent each (line counts are the usual risk), D6 about 45 percent. Whole +qualification PASS: a few percent. A FAIL is the expected and acceptable outcome of an honest campaign. + +## 11. What v5 does not prove + +- One run, one launch per task: one observation each, not a rate. One model, one machine. +- `<id>-DEC` shows the backend's own count of how it chose each token. It is the daemon's report, not signed, and covers the + scheduler path only (DAEMON_GENERATION_RECORD.md, "What it does not prove"). +- `<id>-GR` binds the index file of the checkpoint, not the shards, until sc#338 is fixed. +- `<id>-OPR` shows the daemon's own accounting, not an independent measurement of where each op ran. +- The topic, paragraph and sentence rules are stated narrow readings, not judgements of quality. In particular: D3's goal says + "another form of that word" counts, but only the forms in the Section 3.1 table count (a document that uses only + "depositor" fails the deposit topic); D5's "between 16 and 30 lines long" counts non-empty lines; R1 checks one sentence and + the phrase `shoulder`, not that the sentence is a sensible reminder; D2's inline code in Wrap Up is not scored. +- A PASS would not close omega#327, omega#277 or sc#277, would not turn Qwen3 on GB10 on by default, and would not claim release + readiness. + +## 12. Independence and findings recorded while preparing + +- **Goals.** The wording of the eleven goals, the destinations and the seeds is by an independent author (a Sonnet 5.5 worker) + that was told not to open any repository, so no wording was shaped to the requirement reader. The brief is committed verbatim + (`evidence-v5/task-author-brief.md`). **The requirement kinds of each task were given by the spec author** and mirror v4 on + purpose (D4 is the shape of W4, D5 of W5, E1 and E2 of U1 and U2, N2 again asks for twelve paragraphs), so that v5 tests the + product fixes on fresh wording of the same kinds. The spec author (session fb5693) read `requirements.rs`, + `requirements_extract.rs` and `spine.rs` while finding the causes of the v4 refusals, and therefore did not write or edit any + goal. Post-authoring changes: the two topic-form changes of Section 3.1, the `phrases` of D3, E1, E2 and R1 (each a substring + of its goal), all made before any probe of their effect and before any run, and D2's `heading_order` requirement (the goal's own words "in that order", added after the draft review, also before any run). None + changes a goal. +- **Probes.** Both probes are throwaway examples calling the public functions on an unmodified checkout. Their sources are + committed as `evidence-v5/probes/*.rs.txt`; the requirement probe's sha256 equals the one in its evidence header. The draft + reviewer reproduced all three outputs at 9b5e6e8. CPU only, quietlock clear. +- **Silent misses (P3)** are worse than refusals: the product would approve a v4 W1, W4 or W5 document missing the stated words. + The campaign's rows catch it; the product fix is sc#333. +- **N1 is now refused before the model (v4 finding).** On 9b5e6e8 `task_decision` refuses an outside-the-workspace destination + before the requirement reader and before any model call. That is the safer behaviour, but v8's `N1-B` and v4's `N1-D` need a + model attempt, so v4's N1 (`../shared/readme-copy.txt`) would FAIL them on this commit whatever the model does. v4 is not + edited; v5 replaces those two rows for N1 as Section 3.3 declares. The reader also marks the v5 N1 wording uncertain, which has + no effect while the destination check comes first; `N1-NR` fails if that order ever changes. +- **The model's own sampling suggestion** (`generation_config.json`: sampled, temperature 0.7) differs from the campaign's + greedy decoding; the product does not read those fields, and `<id>-DEC` checks the result directly. +- v4 is not modified by this change; no product code is modified by this change. diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/probes/zz_req_probe.rs.txt b/docs/campaigns/open-model-qwen3/evidence-v5/probes/zz_req_probe.rs.txt new file mode 100644 index 00000000..6fdcf400 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v5/probes/zz_req_probe.rs.txt @@ -0,0 +1,12 @@ +use aien_runtime::requirements::analyze; +fn main() { + let path = std::env::args().nth(1).unwrap(); + let v: serde_json::Value = serde_json::from_str(&std::fs::read_to_string(path).unwrap()).unwrap(); + let arr = v.get("tasks").and_then(|t| t.as_array()).or_else(|| v.as_array()).unwrap().clone(); + for t in arr { + let ex = analyze(t["goal"].as_str().unwrap()); + let s = if !ex.uncertain.is_empty() { "REFUSED" } else if ex.requirements.is_empty() { "SILENT" } else { "RECOGNIZED" }; + let labels: Vec<String> = ex.requirements.iter().map(|r| r.label()).collect(); + println!("{}\t{}\t{:?}\t{:?}", t["id"].as_str().unwrap(), s, ex.uncertain, labels); + } +} diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/probes/zz_topic_probe.rs.txt b/docs/campaigns/open-model-qwen3/evidence-v5/probes/zz_topic_probe.rs.txt new file mode 100644 index 00000000..05de8568 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v5/probes/zz_topic_probe.rs.txt @@ -0,0 +1,21 @@ +use aien_runtime::requirements::Requirement; +fn main() { + // (topic as the goal names it, a sentence using a form the goal itself accepts) + let cases = [ + ("drying", "Leave the pods until they have dried on the plant."), + ("drying", "Dry the seeds on a plate."), + ("labelling", "Label each envelope with the variety."), + ("labelling", "Keep every packet labelled."), + ("storage", "Store the jars somewhere cool."), + ("storage", "The seeds are stored in a tin."), + ("withdraw", "She withdrew fifty pounds."), + ("withdraw", "Withdrawing money is free."), + ("interest", "The bank pays interest monthly."), + ("balance", "Check the balances each week."), + ]; + for (topic, text) in cases { + let r = Requirement::RequiredTopics(vec![topic.to_string()]); + let out = r.check(text).map_or("MET".to_string(), |why| format!("UNMET ({why})")); + println!("{topic}\t{text}\t{out}"); + } +} diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/requirements-probe-v4-goals.txt b/docs/campaigns/open-model-qwen3/evidence-v5/requirements-probe-v4-goals.txt new file mode 100644 index 00000000..23f252fa --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v5/requirements-probe-v4-goals.txt @@ -0,0 +1,32 @@ +# Requirement reader outcome per v4 goal, computed 2026-10-08T15:52Z on sovereign-core 9b5e6e82359f4ad6b6f03042e83ef6411c5f15ce (origin/main, no Rust changed). +# Method: aien_runtime::requirements::analyze(goal) on each goal. No model, no daemon, no GPU. CPU only, quietlock clear. +# Columns: id, outcome (REFUSED = uncertain spans non-empty, the task is refused before any model call; SILENT = nothing read; RECOGNIZED), uncertain spans, labels of the requirements read. +# Probe source (throwaway example, not committed): crates/aien-runtime/examples/zz_req_probe.rs, sha256 5695671b048bd90fd5d898a2d1eae7e10869e755ba84dac644fa595ccf90cb85 +W1 RECOGNIZED [] ["at least 22 non-empty lines", "the headings \"Choosing a bin\", \"What to add\", \"Common problems\""] +W2 RECOGNIZED [] ["at least 20 non-empty lines", "at least 15 words of plain text in the section \"Restore notes\"", "at least 3 fenced code blocks", "the headings \"Create the archive\", \"Copy it offsite\", \"Verify the copy\", \"Restore notes\""] +W3 REFUSED ["three topics"] ["at least 18 non-empty lines"] +W4 RECOGNIZED [] ["at least 14 non-empty lines", "the headings \"Highlights\", \"Open questions\""] +W5 REFUSED ["twelve of them"] ["at least 16 non-empty lines", "at most 45 non-empty lines", "the headings \"Shelter\", \"Food and water\", \"Safety\""] +U1 SILENT [] [] +U2 SILENT [] [] +N1 RECOGNIZED [] ["exactly 1 added non-empty lines"] +N2 REFUSED ["at least twelve paragraphs"] [] +R1 REFUSED ["one-sentence thank-you note for everyone who tested the project"] [] +RG2 RECOGNIZED [] ["at least 25 non-empty lines", "the topics \"preparing\", \"testing\", \"publishing\", \"announcing a release\""] +RG3 RECOGNIZED [] ["at least 35 non-empty lines", "at least 6 headings", "at least 2 sentences in every section", "the headings \"Welcome\", \"Accounts and access\", \"Tools to install\", \"Your first week\", \"Who to ask\", \"Glossary\""] +RT4 RECOGNIZED [] ["at least 12 non-empty lines", "the topics \"installation\", \"configuration\", \"running tests\", \"getting help\""] +RT6 RECOGNIZED [] ["at least 12 non-empty lines", "the topics \"error messages\", \"log files\", \"network problems\", \"reporting a bug\""] + +# Probe source: +# use aien_runtime::requirements::analyze; +# fn main() { +# let path = std::env::args().nth(1).unwrap(); +# let v: serde_json::Value = serde_json::from_str(&std::fs::read_to_string(path).unwrap()).unwrap(); +# let arr = v.get("tasks").and_then(|t| t.as_array()).or_else(|| v.as_array()).unwrap().clone(); +# for t in arr { +# let ex = analyze(t["goal"].as_str().unwrap()); +# let s = if !ex.uncertain.is_empty() { "REFUSED" } else if ex.requirements.is_empty() { "SILENT" } else { "RECOGNIZED" }; +# let labels: Vec<String> = ex.requirements.iter().map(|r| r.label()).collect(); +# println!("{}\t{}\t{:?}\t{:?}", t["id"].as_str().unwrap(), s, ex.uncertain, labels); +# } +# } diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/requirements-probe-v5-goals.txt b/docs/campaigns/open-model-qwen3/evidence-v5/requirements-probe-v5-goals.txt new file mode 100644 index 00000000..7598e4ef --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v5/requirements-probe-v5-goals.txt @@ -0,0 +1,29 @@ +# Requirement reader outcome per v5 goal, computed 2026-10-08T15:52Z on sovereign-core 9b5e6e82359f4ad6b6f03042e83ef6411c5f15ce (origin/main, no Rust changed). +# Method: aien_runtime::requirements::analyze(goal) on each goal. No model, no daemon, no GPU. CPU only, quietlock clear. +# Columns: id, outcome (REFUSED = uncertain spans non-empty, the task is refused before any model call; SILENT = nothing read; RECOGNIZED), uncertain spans, labels of the requirements read. +# Probe source (throwaway example, not committed): crates/aien-runtime/examples/zz_req_probe.rs, sha256 5695671b048bd90fd5d898a2d1eae7e10869e755ba84dac644fa595ccf90cb85 +D1 REFUSED ["at least 22 non-empty lines and three sections titled \"Gather", "22 non-empty lines and three sections titled \"Gather Your Tools\"", "sure the words whetstone and angle both appear somewhere in"] ["the headings \"Gather Your Tools\", \"Sharpen the Edge\", \"Test and Store\""] +D2 RECOGNIZED [] ["at least 18 non-empty lines", "at least 12 words of plain text in the section \"Wrap Up\"", "at least 3 fenced code blocks", "the headings \"Example One: Date Prefix\", \"Example Two: Lowercase Names\", \"Example Three: Number the Files\", \"Wrap Up\""] +D3 REFUSED ["cover four topics: interest, deposit, withdraw and balance, and the"] ["at least 18 non-empty lines"] +D4 RECOGNIZED [] ["at least 13 non-empty lines", "the headings \"Key Points\", \"Next Steps\""] +D5 REFUSED ["between 16 and 30 lines long", "12 of those items", "under three sections titled \"Documents\"", "sure the words passport and charger show up"] ["the headings \"Documents\", \"Clothes\", \"Electronics\""] +D6 REFUSED ["at least 7 paragraphs", "one section must be titled \"Bringing Her Home\""] [] +E1 RECOGNIZED [] ["the headings \"Parts\""] +E2 SILENT [] [] +N1 REFUSED ["one line that says \"Renew the library card on Friday.\""] [] +N2 REFUSED ["at least twelve paragraphs long"] [] +R1 REFUSED ["one-sentence reminder about stretching the shoulders before swimming into notes/swim-tip.txt"] [] + +# Probe source: +# use aien_runtime::requirements::analyze; +# fn main() { +# let path = std::env::args().nth(1).unwrap(); +# let v: serde_json::Value = serde_json::from_str(&std::fs::read_to_string(path).unwrap()).unwrap(); +# let arr = v.get("tasks").and_then(|t| t.as_array()).or_else(|| v.as_array()).unwrap().clone(); +# for t in arr { +# let ex = analyze(t["goal"].as_str().unwrap()); +# let s = if !ex.uncertain.is_empty() { "REFUSED" } else if ex.requirements.is_empty() { "SILENT" } else { "RECOGNIZED" }; +# let labels: Vec<String> = ex.requirements.iter().map(|r| r.label()).collect(); +# println!("{}\t{}\t{:?}\t{:?}", t["id"].as_str().unwrap(), s, ex.uncertain, labels); +# } +# } diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/task-author-brief.md b/docs/campaigns/open-model-qwen3/evidence-v5/task-author-brief.md new file mode 100644 index 00000000..31263340 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v5/task-author-brief.md @@ -0,0 +1,35 @@ +# Brief given to the independent v5 task author (verbatim) + +Given on 2026-10-08 by session fb5693 to a Sonnet 5.5 worker. The worker's one tool call wrote `tasks.json` and the seeds; its +goals, destinations and seeds are committed unchanged in `tasks-oq3-v5.json` and `seed-v5/` (the spec author changed only the two +topic-form lists recorded in ACCEPTANCE-v5 Section 3.1, and the `phrases` of D3, E1, E2 and R1, which the scorer's inherited Q2 row +reads; every phrase is a substring of its goal). **The requirement kinds per task were given by the spec author** and mirror v4's +kinds on purpose, including the four kinds v4 found refused, so that v5 checks the product fixes on fresh wording. The wording of +every goal is the author's. + +--- + +You are writing FRESH test tasks for a qualification campaign of a local document-writing AI assistant. A user gives the assistant a one-paragraph goal in plain English ("Create the file docs/X.md ..."); the assistant writes or edits one file in a workspace. Your goals will later be checked mechanically against the saved file. + +INDEPENDENCE RULE (most important): do NOT open, read, grep or list anything under /home/drakestapleton/.claude/jobs/a7c5d201/tmp/sc-dec, ~/workspace, or any git repository on this machine, and do not search the web for the product. You must write the goals the way a real user would phrase them, without knowing how the product parses goals. Write only into /home/drakestapleton/.claude/jobs/a7c5d201/tmp/v5-tasks/ (create it with mkdir -p). Do not run cargo or any build. No GitHub actions. + +Write these 10 tasks (ids fixed). Every goal: one paragraph, plain natural English as a normal person would type it, varied wording between tasks (do not reuse one sentence template), no backticks, no pipe characters "|", no line breaks. Every measurable requirement must be stated explicitly in the goal (a number, exact section titles in double quotes, exact words), so a checker can test it on the saved file without judgement. Use some numbers as digits and some as words (e.g. "fifteen"). + +- D1 (new document): a how-to guide. Requirements: a minimum number of non-empty lines (pick 20 to 26), three sections with exact titles in double quotes, and two exact single words that must appear. +- D2 (new document): technical how-to with code. Requirements: a minimum line count (18 to 24), a stated number (2 or 3) of fenced code examples, each introduced by a section with an exact quoted title, and a final section with an exact quoted title, placed after the last code example, that holds at least a stated number (10 to 15) of words of plain text. +- D3 (new document): an explainer that must cover a stated number of named topics (3 or 4 topics, each named by one word). Also a minimum line count (16 to 20). State explicitly that the topic counts as covered when its word, or another form of that word, appears; give example forms. Then list, for the JSON (not in the goal), the full set of accepted whole-word forms for each topic (base, plural, past, -ing, and both British/American spellings where relevant). +- D4 (new document created from an existing file): the goal asks to create a NEW file that summarises an EXISTING seed file at a different path (e.g. notes/xyz.txt). Write the seed file too (12 to 20 lines, plain text, mentions three people by first name). Requirements: minimum lines (12 to 16), two exact quoted section titles, and the three first names must appear. +- D5 (new document): a checklist. Requirements: a minimum AND a maximum line count, every item written as a line starting with "- [ ]" (state that prefix in double quotes), at least N such items (N between 10 and 14; refer to the items naturally, however you like), three exact quoted section titles, and two exact words that must appear. +- D6 (new document): a longer piece of prose that must have at least a stated number of paragraphs (6 to 8) and one exact quoted section title. +- E1 (small edit): add one stated bullet line (in double quotes, starting with "- ") to a named section of an existing markdown file. Write the seed file: at least two level-two headings ("## ..."), 2 to 4 bullet lines under each. +- E2 (small edit, nested path like a/b/FILE.md): add one stated numbered item (e.g. "4. ...") under a named heading of an existing markdown file with a numbered list. Write the seed (two or more "## " headings). +- N1 (should be refused): ask to create a file whose path is outside the workspace (starts with ../), with a single stated line of content. +- N2 (long request): ask for a long new document (e.g. a long history or report) with at least a stated number of paragraphs (10 to 14). It will be run with a tiny output cap on purpose. +- R1 (tiny new plain-text file, .txt): a one-sentence note (say "one-sentence" or "a single sentence" naturally). + +Topics FORBIDDEN (already used in earlier campaigns; do not use these subjects or file names): build pipeline, release checklist, onboarding, roadmap, operations/log rotation weekly, handover, project overview, hello/greeting, composting, backups, seed saving, standup/week summary, camping, garage/car, chores, thank-you note, project history, user guide/installation, troubleshooting, architecture of a CLI tool, contributing, FAQ, herb garden, bicycle chain, changelog, TODO/buy stamps, plants needing water or sun. Pick fresh everyday subjects (for example cooking, home repair, pets, music practice, travel, money, sports, crafts), each task a different subject. File names must not be any of: GUIDE, TROUBLESHOOTING, ARCHITECTURE, CONTRIBUTING, FAQ, NOTES, PIPELINE, RELEASE-CHECKLIST, ONBOARDING, ROADMAP, OPERATIONS, OVERVIEW, HELLO, HISTORY, COMPOST, BACKUPS, SEED-SAVING, WEEK-SUMMARY, CAMPING-LIST, GARAGE, CHORES, THANKS, CHANGELOG, TODO. + +Deliver: +1. /home/drakestapleton/.claude/jobs/a7c5d201/tmp/v5-tasks/tasks.json: an array of objects {id, kind ("document"|"edit"|"negative"|"replay"), goal (exact text), destination (relative path, or the ../ path for N1), seed ({path, file} or null), requirements: [ {kind: one of min_lines|max_lines|headings|word|topic|code_blocks|tail|prefixed_lines|paragraphs|sentences_exact, as_written: the exact substring of the goal that states it, n: number when there is one, titles/words/forms/prefix/heading as relevant} ], phrases: [every literal string the goal states that must appear in the saved file] }. For edits, requirements may be empty; put the new line and the heading in phrases. Every as_written MUST be an exact substring of the goal; every phrase MUST be an exact (case-insensitive) substring of the goal. +2. Seed files under /home/drakestapleton/.claude/jobs/a7c5d201/tmp/v5-tasks/seed/<ID>/<path>. +3. Check yourself with jq/grep that every as_written and phrase is literally in its goal and that no goal contains a backtick or "|". Report: the list of goals (verbatim), and the result of your self-check. Keep the report short. diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/topic-forms-probe.txt b/docs/campaigns/open-model-qwen3/evidence-v5/topic-forms-probe.txt new file mode 100644 index 00000000..f6cbcbee --- /dev/null +++ b/docs/campaigns/open-model-qwen3/evidence-v5/topic-forms-probe.txt @@ -0,0 +1,35 @@ +# Topic check (Requirement::RequiredTopics.check) on one sentence that uses a word form the goal itself accepts. sovereign-core 9b5e6e82359f4ad6b6f03042e83ef6411c5f15ce, CPU only, no model. +# Columns: topic, text, outcome. +drying Leave the pods until they have dried on the plant. UNMET (the topics "drying", not covered: drying (use those words, or their word forms, in the text)) +drying Dry the seeds on a plate. MET +labelling Label each envelope with the variety. UNMET (the topics "labelling", not covered: labelling (use those words, or their word forms, in the text)) +labelling Keep every packet labelled. MET +storage Store the jars somewhere cool. UNMET (the topics "storage", not covered: storage (use those words, or their word forms, in the text)) +storage The seeds are stored in a tin. UNMET (the topics "storage", not covered: storage (use those words, or their word forms, in the text)) +withdraw She withdrew fifty pounds. UNMET (the topics "withdraw", not covered: withdraw (use those words, or their word forms, in the text)) +withdraw Withdrawing money is free. MET +interest The bank pays interest monthly. MET +balance Check the balances each week. MET + +# Probe source: +# use aien_runtime::requirements::Requirement; +# fn main() { +# // (topic as the goal names it, a sentence using a form the goal itself accepts) +# let cases = [ +# ("drying", "Leave the pods until they have dried on the plant."), +# ("drying", "Dry the seeds on a plate."), +# ("labelling", "Label each envelope with the variety."), +# ("labelling", "Keep every packet labelled."), +# ("storage", "Store the jars somewhere cool."), +# ("storage", "The seeds are stored in a tin."), +# ("withdraw", "She withdrew fifty pounds."), +# ("withdraw", "Withdrawing money is free."), +# ("interest", "The bank pays interest monthly."), +# ("balance", "Check the balances each week."), +# ]; +# for (topic, text) in cases { +# let r = Requirement::RequiredTopics(vec![topic.to_string()]); +# let out = r.check(text).map_or("MET".to_string(), |why| format!("UNMET ({why})")); +# println!("{topic}\t{text}\t{out}"); +# } +# } diff --git a/docs/campaigns/open-model-qwen3/seed-v5/D4/notes/choir-rehearsal.txt b/docs/campaigns/open-model-qwen3/seed-v5/D4/notes/choir-rehearsal.txt new file mode 100644 index 00000000..b5be093b --- /dev/null +++ b/docs/campaigns/open-model-qwen3/seed-v5/D4/notes/choir-rehearsal.txt @@ -0,0 +1,15 @@ +Choir rehearsal, Tuesday evening, church hall +Attendance was good: fourteen singers turned up. +Marta led the warm-up and worked on breathing for ten minutes. +Owen arrived late because his bus was delayed. +The group started with the folk song Down by the River. +Priya pointed out that the altos keep rushing the second verse. +We slowed the tempo and clapped the rhythm together. +Marta suggested marking the breath points in everyone's sheet music. +Owen offered to print fresh copies of the score before Friday. +The tenors still struggle with the high note near the end. +Priya will book the hall for two extra rehearsals in March. +We agreed the spring concert should be on the second Saturday of April. +Tea and biscuits were provided by the hall committee. +The next rehearsal starts at seven thirty sharp. +Everyone should bring a pencil and a water bottle. diff --git a/docs/campaigns/open-model-qwen3/seed-v5/E1/repairs/tap-repair.md b/docs/campaigns/open-model-qwen3/seed-v5/E1/repairs/tap-repair.md new file mode 100644 index 00000000..a51cf0c1 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/seed-v5/E1/repairs/tap-repair.md @@ -0,0 +1,14 @@ +# Fixing a Dripping Tap + +## Tools +- Adjustable wrench +- Flathead screwdriver +- Small bucket + +## Parts +- Replacement washer +- Spare O-ring + +## Safety +- Turn off the water supply first +- Keep a towel nearby diff --git a/docs/campaigns/open-model-qwen3/seed-v5/E2/crafts/yarn/scarf.md b/docs/campaigns/open-model-qwen3/seed-v5/E2/crafts/yarn/scarf.md new file mode 100644 index 00000000..52908bde --- /dev/null +++ b/docs/campaigns/open-model-qwen3/seed-v5/E2/crafts/yarn/scarf.md @@ -0,0 +1,14 @@ +# Knitting a Simple Scarf + +## Materials +- Two skeins of chunky wool +- Size 10 knitting needles + +## Steps +1. Cast on twenty stitches. +2. Knit every row until the scarf is long enough. +3. Check the width against your shoulders. + +## Care +- Hand wash in cool water +- Dry flat diff --git a/docs/campaigns/open-model-qwen3/tasks-oq3-v5.json b/docs/campaigns/open-model-qwen3/tasks-oq3-v5.json new file mode 100644 index 00000000..f27222e1 --- /dev/null +++ b/docs/campaigns/open-model-qwen3/tasks-oq3-v5.json @@ -0,0 +1,402 @@ +{ + "spec": "ACCEPTANCE-v5.md Section 2 (DRAFT, NOT FROZEN, NOT RUN)", + "authorship": "goal wording, destinations and seeds written 2026-10-08 by an independent author (a Sonnet 5.5 worker) told not to open any repository (brief: evidence-v5/task-author-brief.md); requirement kinds per task were given by the spec author; after authoring the spec author changed only the topic forms of interest and withdraw, the phrases of D3, E1, E2 and R1, and added D2 heading_order from the goal's words (ACCEPTANCE-v5 Sections 3.1 and 12); no goal text was changed", + "limits": { + "edit_budget_ms": 29000, + "doc_budget_ms": 120000, + "edit_max_tokens": 96, + "doc_max_tokens": 1024 + }, + "tasks": [ + { + "id": "D1", + "group": "qualification", + "kind": "long", + "goal": "Please create the file docs/knife-sharpening.md, a short how-to guide on sharpening a kitchen knife by hand. It should have at least 22 non-empty lines and three sections titled \"Gather Your Tools\", \"Sharpen the Edge\" and \"Test and Store\". Make sure the words whetstone and angle both appear somewhere in it.", + "destination": "docs/knife-sharpening.md", + "phrases": [ + "Gather Your Tools", + "Sharpen the Edge", + "Test and Store", + "whetstone", + "angle" + ], + "requirements": [ + { + "kind": "min_lines", + "as_written": "at least 22 non-empty lines", + "n": 22, + "label": "at least 22 non-empty lines" + }, + { + "kind": "headings", + "as_written": "three sections titled \"Gather Your Tools\", \"Sharpen the Edge\" and \"Test and Store\"", + "titles": [ + "Gather Your Tools", + "Sharpen the Edge", + "Test and Store" + ], + "label": "the named sections are headings" + }, + { + "kind": "word", + "as_written": "the words whetstone and angle both appear", + "words": [ + "whetstone", + "angle" + ], + "label": "the words whetstone, angle appear" + } + ], + "max_tokens": 1024, + "budget_ms": 120000, + "seed": null + }, + { + "id": "D2", + "group": "qualification", + "kind": "long", + "goal": "I need a technical how-to saved as docs/rename-photos.md that shows how to rename a folder of holiday photos with a bash loop. Write at least 18 lines in total and include 3 fenced code examples, where each example is introduced by its own section titled \"Example One: Date Prefix\", \"Example Two: Lowercase Names\" and \"Example Three: Number the Files\" in that order. After the last code example, add a final section titled \"Wrap Up\" containing at least 12 words of plain text and no code.", + "destination": "docs/rename-photos.md", + "phrases": [ + "Example One: Date Prefix", + "Example Two: Lowercase Names", + "Example Three: Number the Files", + "Wrap Up" + ], + "requirements": [ + { + "kind": "min_lines", + "as_written": "at least 18 lines in total", + "n": 18, + "label": "at least 18 non-empty lines" + }, + { + "kind": "code_blocks", + "as_written": "3 fenced code examples", + "n": 3, + "label": "at least 3 complete fenced code blocks" + }, + { + "kind": "headings", + "as_written": "section titled \"Example One: Date Prefix\", \"Example Two: Lowercase Names\" and \"Example Three: Number the Files\"", + "titles": [ + "Example One: Date Prefix", + "Example Two: Lowercase Names", + "Example Three: Number the Files" + ], + "label": "the named sections are headings" + }, + { + "kind": "tail", + "as_written": "a final section titled \"Wrap Up\" containing at least 12 words of plain text", + "heading": "Wrap Up", + "n": 12, + "label": "after the last code block, a Wrap Up heading followed by at least 12 words" + }, + { + "kind": "heading_order", + "as_written": "in that order", + "titles": [ + "Example One: Date Prefix", + "Example Two: Lowercase Names", + "Example Three: Number the Files" + ], + "label": "the three example headings appear in that order" + } + ], + "max_tokens": 1024, + "budget_ms": 120000, + "seed": null + }, + { + "id": "D3", + "group": "qualification", + "kind": "long", + "goal": "Write an explainer for beginners called docs/savings-basics.md about how a savings account works. It must cover four topics: interest, deposit, withdraw and balance, and the file needs at least 18 lines. A topic counts as covered when its word or another form of that word appears, for example interests or interested for the first one, deposits or deposited for the second, withdrew or withdrawing for the third, and balances or balancing for the last.", + "destination": "docs/savings-basics.md", + "phrases": [ + "saving" + ], + "requirements": [ + { + "kind": "min_lines", + "as_written": "at least 18 lines", + "n": 18, + "label": "at least 18 non-empty lines" + }, + { + "kind": "topic", + "name": "interest", + "as_written": "interest", + "accepted": [ + "interest", + "interests", + "interested" + ], + "label": "covers the topic interest" + }, + { + "kind": "topic", + "name": "deposit", + "as_written": "deposit", + "accepted": [ + "deposit", + "deposits", + "deposited", + "depositing" + ], + "label": "covers the topic deposit" + }, + { + "kind": "topic", + "name": "withdraw", + "as_written": "withdraw", + "accepted": [ + "withdraw", + "withdraws", + "withdrew", + "withdrawn", + "withdrawing", + "withdrawal", + "withdrawals" + ], + "label": "covers the topic withdraw" + }, + { + "kind": "topic", + "name": "balance", + "as_written": "balance", + "accepted": [ + "balance", + "balances", + "balanced", + "balancing" + ], + "label": "covers the topic balance" + } + ], + "max_tokens": 1024, + "budget_ms": 120000, + "seed": null + }, + { + "id": "D4", + "group": "qualification", + "kind": "long", + "goal": "There is a file at notes/choir-rehearsal.txt with my rough notes from choir practice. Please create a new file called docs/choir-summary.md that summarises it, and leave the original alone. The summary needs at least 13 lines, two sections titled \"Key Points\" and \"Next Steps\", and must mention Marta, Owen and Priya by name.", + "destination": "docs/choir-summary.md", + "phrases": [ + "Key Points", + "Next Steps" + ], + "requirements": [ + { + "kind": "min_lines", + "as_written": "at least 13 lines", + "n": 13, + "label": "at least 13 non-empty lines" + }, + { + "kind": "headings", + "as_written": "two sections titled \"Key Points\" and \"Next Steps\"", + "titles": [ + "Key Points", + "Next Steps" + ], + "label": "the named sections are headings" + }, + { + "kind": "word", + "as_written": "mention Marta, Owen and Priya by name", + "words": [ + "Marta", + "Owen", + "Priya" + ], + "label": "the words Marta, Owen, Priya appear" + } + ], + "max_tokens": 1024, + "budget_ms": 120000, + "seed": "seed-v5/D4", + "source": "notes/choir-rehearsal.txt" + }, + { + "id": "D5", + "group": "qualification", + "kind": "long", + "goal": "Make me a carry-on packing checklist in docs/packing-carry-on.md. Keep it between 16 and 30 lines long. Every item must be its own line starting with \"- [ ]\" and I want at least 12 of those items. Organise it under three sections titled \"Documents\", \"Clothes\" and \"Electronics\", and be sure the words passport and charger show up.", + "destination": "docs/packing-carry-on.md", + "phrases": [ + "- [ ]", + "Documents", + "Clothes", + "Electronics", + "passport", + "charger" + ], + "requirements": [ + { + "kind": "min_lines", + "as_written": "between 16 and 30 lines", + "n": 16, + "label": "at least 16 non-empty lines" + }, + { + "kind": "max_lines", + "as_written": "between 16 and 30 lines", + "n": 30, + "label": "at most 30 non-empty lines" + }, + { + "kind": "prefixed_lines", + "as_written": "starting with \"- [ ]\" and I want at least 12 of those items", + "prefix": "- [ ]", + "n": 12, + "label": "at least 12 lines starting with - [ ]" + }, + { + "kind": "headings", + "as_written": "three sections titled \"Documents\", \"Clothes\" and \"Electronics\"", + "titles": [ + "Documents", + "Clothes", + "Electronics" + ], + "label": "the named sections are headings" + }, + { + "kind": "word", + "as_written": "the words passport and charger", + "words": [ + "passport", + "charger" + ], + "label": "the words passport, charger appear" + } + ], + "max_tokens": 1024, + "budget_ms": 120000, + "seed": null + }, + { + "id": "D6", + "group": "qualification", + "kind": "long", + "goal": "Please write a warm, longer essay about adopting a rescue cat and save it as docs/rescue-cat-essay.md. It should run to at least 7 paragraphs, and one section must be titled \"Bringing Her Home\".", + "destination": "docs/rescue-cat-essay.md", + "phrases": [ + "Bringing Her Home" + ], + "requirements": [ + { + "kind": "paragraphs", + "as_written": "at least 7 paragraphs", + "n": 7, + "label": "at least 7 paragraphs" + }, + { + "kind": "headings", + "as_written": "one section must be titled \"Bringing Her Home\"", + "titles": [ + "Bringing Her Home" + ], + "label": "the named sections are headings" + } + ], + "max_tokens": 1024, + "budget_ms": 120000, + "seed": null + }, + { + "id": "E1", + "group": "qualification", + "kind": "edit", + "goal": "In the existing file repairs/tap-repair.md, add the bullet line \"- Thread seal tape for the spout\" under the section called \"Parts\" and leave everything else as it is.", + "destination": "repairs/tap-repair.md", + "phrases": [ + "- Thread seal tape for the spout" + ], + "new_line": "- Thread seal tape for the spout", + "under": "## Parts", + "position": "in_section", + "requirements": [], + "max_tokens": 96, + "budget_ms": 29000, + "seed": "seed-v5/E1" + }, + { + "id": "E2", + "group": "qualification", + "kind": "edit", + "goal": "Open crafts/yarn/scarf.md and put one more numbered item, \"4. Cast off loosely and weave in the ends.\", at the end of the list under the heading \"Steps\". Don't change the other sections.", + "destination": "crafts/yarn/scarf.md", + "phrases": [ + "4. Cast off loosely and weave in the ends." + ], + "new_line": "4. Cast off loosely and weave in the ends.", + "under": "## Steps", + "position": "end_of_section", + "requirements": [], + "max_tokens": 96, + "budget_ms": 29000, + "seed": "seed-v5/E2" + }, + { + "id": "N1", + "group": "qualification", + "kind": "negative", + "goal": "Create a file at ../shared-stuff/reminder.txt containing just one line that says \"Renew the library card on Friday.\"", + "destination": "../shared-stuff/reminder.txt", + "phrases": [ + "Renew the library card on Friday." + ], + "requirements": [], + "max_tokens": 1024, + "budget_ms": 120000, + "seed": null + }, + { + "id": "N2", + "group": "qualification", + "kind": "negative-budget", + "goal": "I would like a long, detailed history of the marathon as a race, from the legend of ancient Greece to modern city events, saved as docs/marathon-story.md. Please make it at least twelve paragraphs long.", + "destination": null, + "named_path": "docs/marathon-story.md", + "phrases": [], + "requirements": [ + { + "kind": "paragraphs", + "as_written": "at least twelve paragraphs", + "n": 12, + "label": "at least 12 paragraphs" + } + ], + "max_tokens": 16, + "budget_ms": 120000, + "seed": null + }, + { + "id": "R1", + "group": "qualification", + "kind": "identity", + "goal": "Save a one-sentence reminder about stretching the shoulders before swimming into notes/swim-tip.txt.", + "destination": "notes/swim-tip.txt", + "phrases": [ + "shoulder" + ], + "requirements": [ + { + "kind": "sentences_exact", + "as_written": "a one-sentence reminder", + "n": 1, + "label": "exactly 1 sentence" + } + ], + "max_tokens": 96, + "budget_ms": 120000, + "seed": null + } + ] +}