diff --git a/.crumb b/.crumb index 4c011eb2..508db376 100644 --- a/.crumb +++ b/.crumb @@ -64,8 +64,8 @@ "generated": { "children": [ { - "digest": "34c2e4d71c2a46774f19d31a149c5b8635347a0c1c907c7df04a70094123a74a", - "last_commit": "1fac70c", + "digest": "7e9d76bc40bcec942fdced347b2575dd2d86bb8047ec7c506d66d4c84cdfe218", + "last_commit": "45ef0b5", "name": "scripts", "purpose": "" }, @@ -76,15 +76,15 @@ "purpose": "" } ], - "children_root": "sha256:9a27d2c98660aef35ed94ecfcb47d82d317ef88f97d0303db847c52915aad07f", - "compiled_at": "2026-10-11T04:25:14Z", + "children_root": "sha256:0c69c37ec527d2183340aa639635588d47acef703c467df22a0c42b2c22d4740", + "compiled_at": "2026-10-11T04:40:59Z", "compiler": "crumb-compile/1", - "digest": "sha256:ae80ae2144c0d35ac665a879ab91c3fbf1ed68363437b71306ccd3a86eda59c7", + "digest": "sha256:bc34fa6cd73fb9128340b123554ec6e3963e09b00bf1da0305e0a6d155790f4f", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", - "files": 3086, - "generated_at_commit": "0abd537d88deacac4db6a061565d388feb33e9fe", - "source_tree": "sha256:704b9ac0786302770e3fac05da95f085f3368dff967f02324ca3ce62fdf6a5ce" + "files": 3087, + "generated_at_commit": "99e905d4d3d3b74af705297dfcc115d815618d4d", + "source_tree": "sha256:39afc5fc41747ff41e8762eea916fb6d55926ccfb26ed776d5b7a3d06ceed3c2" } }, "history": [], diff --git a/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.3.1-e3m.md b/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.3.1-e3m.md new file mode 100644 index 00000000..39ee1dee --- /dev/null +++ b/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.3.1-e3m.md @@ -0,0 +1,55 @@ +# WHOLE-SYSTEM-E2E, harness v1.3.1: E3m topic words (for RUN-3-GB10) + +Tracking: aien-dev/aien-sovereign-core#402 (owning issue), aien-dev/aien-architecture#190 milestone R6. Contract: +`ACCEPTANCE_E2E.md` FROZEN at aien-architecture b2400fe, sha256 +`9e3d5f4e23d65ac17be8f2f4ca48355f0aaa486f67ff5a8a8044dcdd646d34e8`. This file is committed before the harness change +that implements it. `ACCEPTANCE-v1.md` to `-v1.3-gb10.md` and `-v1.3-ctrl-e5.md` stay as written. RUN-1 and RUN-2-GB10 +stay as recorded; RUN-2-GB10 stays FAIL. + +## Disclosure + +This rule was written **after** RUN-2-GB10 (`runs/RUN-2-GB10-20261011T030554Z/`) showed the mismatch. There, row E3m +failed check D4 because the generated report names the windmill only in its heading, as `Windmill`, and the harness +matched the topic word `windmill` exactly and case-sensitively. The coordinator ruled this a harness defect in matching +a topic word (2026-10-11): `ACCEPTANCE-v1.1.md` row E3m says "Mention the harbour, the orchard and the windmill" (topic +words) with the rule "as E3, with the three topic words in place of the file names", and the harness reused the +check written for file names. The next declared attempt, RUN-3-GB10, is a new attempt under this pre-registered rule. + +## What changes, and what does not + +Only check D4 of row E3m changes. Everything else of `ACCEPTANCE-v1.3-gb10.md` and the rows it builds on applies +unchanged: the objective text, D1 (UTF-8), D2 (first line starts with `# `), D3 (at most 200 words), the digest and +single-spend checks, every other row, the GB10 rules G1 to G6, the frozen contract. + +| check | before (v1.1 to v1.3) | v1.3.1 | +|---|---|---| +| E3 D4: required file names | exact, case-sensitive substring (`grep -F`) | **unchanged** | +| E3m D4: topic words `harbour`, `orchard`, `windmill` | exact, case-sensitive substring (`grep -F`) | case-insensitive whole word: `LC_ALL=C grep -q -i -w -- WORD FILE` | + +The exact rule implemented (GNU grep `-w`, ASCII case folding under `LC_ALL=C`): a topic word counts when it occurs +anywhere in the report, in any letter case, with no letter, digit or underscore directly before or after it. So +`Windmill`, `WINDMILL`, `windmill.`, `windmill,` and `windmill's` count; `windmills`, `windmill_x` and `wind-mill` do +not count; the heading counts like any other line. Each E3m receipt gains `d4_rule` naming the rule used. + +The independent verifier (`tools/aien-verify`, owned by Lane E) is not changed by this file. Its E3m document row +(supplementary, not a frozen contract row) uses an exact substring match. Unless a merged verifier change applies the +same rule to E3m topic words, an E3m that passes here only through letter case shows as a `status_disagreement` on +E3m in `VERIFIER_VERDICT.txt`; that would be recorded, not hidden. + +## Predictions for RUN-3-GB10 (written before the run) + +| row | prediction | why | +|---|---|---| +| PRE, CTRL-E3a, E2, CTRL-E2, E3, E6, CTRL-E3b, NET, CTRL-E6, CTRL-E5 | PASS | all PASS in RUN-2-GB10 with fallback 0; unchanged | +| E3m | PASS | UNVERIFIED (confidence moderate): greedy decoding, same model and same workspace path should give RUN-2's text, which passes D1 to D4 under this rule; a merged change on main since RUN-2 could still move the text | +| E4 | PASS or FAIL as measured | first run of E4 on the chip; passed on CPU in RUN-1 | +| CTRL-E4 | PASS | store-loss refusal is backend independent; passed in RUN-1 | +| CTRL-E4b | RECORDED | not judged (v1.2) | +| E1, E5, CTRL-E1 | NOT_RUN | R8, R7 | +| G4, G5 | `fallback_detected: false`; every model-calling row `gpu_executions >= 1` | as RUN-2-GB10 | + +## Rules of this run + +As `ACCEPTANCE-v1.3-gb10.md`: one declared attempt from the merged main commit, folder `runs/RUN-3-GB10-/`, a note +in the result naming RUN-2-GB10 as the previous attempt, started detached, never killed, `quietlock check` first, +nothing under `runs/` edited afterwards. No program PASS is claimed by any outcome of this run. diff --git a/scripts/.crumb b/scripts/.crumb index e8cbb573..ce017cce 100644 --- a/scripts/.crumb +++ b/scripts/.crumb @@ -4,14 +4,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-11T03:08:06Z", + "compiled_at": "2026-10-11T03:45:48Z", "compiler": "crumb-compile/1", - "digest": "sha256:34c2e4d71c2a46774f19d31a149c5b8635347a0c1c907c7df04a70094123a74a", + "digest": "sha256:7e9d76bc40bcec942fdced347b2575dd2d86bb8047ec7c506d66d4c84cdfe218", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 33, - "generated_at_commit": "ae062d8d2775029b721daae33c672b345dc7fd1c", - "source_tree": "sha256:59cdf538dd41ff42740971a834bb2d49dff1eb92679cb1324327df447ca57990" + "generated_at_commit": "dea1d4b6a55362989d87d2d03bd5b8e97051f59f", + "source_tree": "sha256:2a606695f73a6a9c88d94afe7be93b83653cdac5c31e880857ed697ebf70637b" } }, "parent": { diff --git a/scripts/whole_system_e2e.sh b/scripts/whole_system_e2e.sh index 6f66f9f9..2ddd2e1d 100755 --- a/scripts/whole_system_e2e.sh +++ b/scripts/whole_system_e2e.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # WHOLE-SYSTEM-E2E harness v1.3 (aien-architecture#190, lane L1; GB10 mode for milestone R6, sovereign-core#402). -# Rows: docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.md, -v1.1.md, -v1.2.md, -v1.3-gb10.md, -v1.3-ctrl-e5.md (each committed before the script +# Rows: docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.md, -v1.1.md, -v1.2.md, -v1.3-gb10.md, -v1.3-ctrl-e5.md, -v1.3.1-e3m.md (each committed before the script # change that implements it; never edited by the script). # Contract: aien-architecture docs/plans/release-readiness/ACCEPTANCE_E2E.md, FROZEN at commit b2400fe, # sha256 9e3d5f4e23d65ac17be8f2f4ca48355f0aaa486f67ff5a8a8044dcdd646d34e8 (CONTRACT_SHA below). @@ -10,6 +10,8 @@ # v1.3: WSE2E_BACKEND=gb10 (default cpu, unchanged) builds from the pinned GPU engine (scripts/pins.sh --gpu), runs # the zero-CUDA gate, requires the native Omega GB10 backend line on every daemon start, and adds gpu_executions, # fallback_count, fallback_detected, pins, nvidia_driver and host_load to every receipt (ACCEPTANCE-v1.3-gb10.md). +# v1.3.1: E3m topic words are matched case-insensitively as whole words; E3 file names stay exact +# (ACCEPTANCE-v1.3.1-e3m.md); the gb10 run folder is RUN-3-GB10-. # # scripts/whole_system_e2e.sh run build the CLI, run the chain E2..E6 + controls, write one run folder # scripts/whole_system_e2e.sh check F the document checks of rows E3/E3m on file F (prints failed ids) @@ -25,14 +27,19 @@ set -u # ---- document checks (rows E3, E3m) ----------------------------------------------------------------------- # Prints failed ids, space separated: D1 missing/unreadable, D2 first line not "# ", D3 over 200 words, -# D4 a required name missing. $1 file, $2.. required names. +# D4 a required name missing. $1 file, $2.. required names, matched exactly and case-sensitively (E3 file names). +# --topics as the first argument: the names are topic words, matched case-insensitively as whole words (E3m, v1.3.1). +D4_TOPIC_RULE="case-insensitive whole word: LC_ALL=C grep -q -i -w (ACCEPTANCE-v1.3.1-e3m.md)" check_doc() { + local mode=exact; [ "${1:-}" = --topics ] && { mode=topics; shift; } local f=$1; shift; local failed="" [ -s "$f" ] || { echo "D1"; return; } iconv -f UTF-8 -t UTF-8 "$f" >/dev/null 2>&1 || failed="$failed D1" [ "$(head -c 2 "$f")" = "# " ] || failed="$failed D2" [ "$(wc -w <"$f")" -le 200 ] || failed="$failed D3" - local n; for n in "$@"; do grep -qF -- "$n" "$f" || { failed="$failed D4"; break; }; done + local n; for n in "$@"; do + if [ $mode = topics ]; then LC_ALL=C grep -q -i -w -- "$n" "$f"; else grep -qF -- "$n" "$f"; fi || { failed="$failed D4"; break; } + done echo "${failed# }" } # ---- sc#386: ALLEN engagement and the E4 token budget ------------------------------------------------------- @@ -110,6 +117,18 @@ selftest() { [ -z "$(check_doc "$t/good.md" alpha.txt beta.txt gamma.txt)" ] || { echo "selftest: good document failed: $(check_doc "$t/good.md" alpha.txt beta.txt gamma.txt)"; rc=1; } [ "$(check_doc "$t/bad.md" alpha.txt beta.txt gamma.txt)" = "D2 D4" ] || { echo "selftest: bad document gave '$(check_doc "$t/bad.md" alpha.txt beta.txt gamma.txt)', want 'D2 D4'"; rc=1; } [ "$(check_doc "$t/absent.md")" = "D1" ] || { echo "selftest: absent file not D1"; rc=1; } + # v1.3.1 (ACCEPTANCE-v1.3.1-e3m.md): E3m topic words, case-insensitive whole words; E3 file names stay exact. + printf '# Harbour, Orchard, and Windmill\n\nThe harbour is busy. The orchard is quiet.\n' >"$t/topic-heading.md" + printf '# Report\n\nThe harbour, the orchard and two windmills.\n' >"$t/topic-plural.md" + printf '# Report\n\nThe harbour and the orchard.\n' >"$t/topic-absent.md" + printf '# Report\n\nThe HARBOUR, the orchard, and the windmill.\n' >"$t/topic-punct.md" + printf '# Report\n\nabout Alpha.txt, beta.txt and gamma.txt\n' >"$t/name-case.md" + [ -z "$(check_doc --topics "$t/topic-heading.md" harbour orchard windmill)" ] || { echo "selftest: topic named only in a capitalised heading was not accepted"; rc=1; } + [ -z "$(check_doc --topics "$t/topic-punct.md" harbour orchard windmill)" ] || { echo "selftest: upper-case or punctuated topic words were not accepted"; rc=1; } + [ "$(check_doc --topics "$t/topic-plural.md" harbour orchard windmill)" = "D4" ] || { echo "selftest: plural 'windmills' was accepted as 'windmill'"; rc=1; } + [ "$(check_doc --topics "$t/topic-absent.md" harbour orchard windmill)" = "D4" ] || { echo "selftest: absent topic word was accepted"; rc=1; } + [ "$(check_doc "$t/name-case.md" alpha.txt beta.txt gamma.txt)" = "D4" ] || { echo "selftest: E3 file name with changed case was accepted"; rc=1; } + [ "$(check_doc "$t/topic-heading.md" harbour orchard windmill)" = "D4" ] || { echo "selftest: the exact rule no longer rejects 'Windmill' for 'windmill' (E3 rule changed)"; rc=1; } # sc#386: the ALLEN engagement lines and the E4 token budget are fixed, documented values. [ "$(allen_env /x/subject.bin abc123 | tr '\n' ' ')" = "AIEN_ALLEN_SUBJECT=/x/subject.bin AIEN_ALLEN_ADOPT=abc123 " ] || { echo "selftest: allen_env adopt lines wrong"; rc=1; } [ "$(allen_env /x/subject.bin | tr '\n' ' ')" = "AIEN_ALLEN_SUBJECT=/x/subject.bin " ] || { echo "selftest: allen_env without adopt wrong"; rc=1; } @@ -170,7 +189,7 @@ D=$JOB/tmp/e2e MODE=${WSE2E_BACKEND:-cpu} # v1.3: cpu (default, v1.2 behaviour) or gb10 (ACCEPTANCE-v1.3-gb10.md) case $MODE in cpu|gb10) ;; *) echo "WSE2E_BACKEND must be cpu or gb10, not '$MODE'" >&2; exit 2 ;; esac TGT=$D/target; RUN_NAME0=RUN-1 -[ "$MODE" = gb10 ] && { TGT=$D/target-gb10; RUN_NAME0=RUN-2-GB10; } +[ "$MODE" = gb10 ] && { TGT=$D/target-gb10; RUN_NAME0=RUN-3-GB10; } BIN=$TGT/release/aien-cli MDIR=${WSE2E_MODEL_DIR:-$(ls -d "$HOME"/.cache/huggingface/hub/models--unsloth--Llama-3.2-1B-Instruct/snapshots/*/ 2>/dev/null | head -1)} UTC0=$(date -u +%Y%m%dT%H%M%SZ) @@ -393,6 +412,7 @@ echo "run folder: $OUT" | tee "$OUT/console.txt" cp "$REPO/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.md" "$OUT/ACCEPTANCE-v1.as-run.md" cp "$REPO/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.1.md" "$OUT/ACCEPTANCE-v1.1.as-run.md" 2>/dev/null cp "$REPO/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.2.md" "$OUT/ACCEPTANCE-v1.2.as-run.md" 2>/dev/null +cp "$REPO/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.3.1-e3m.md" "$OUT/ACCEPTANCE-v1.3.1-e3m.as-run.md" if [ "$MODE" = gb10 ]; then # v1.3: the gb10 rows as run, the zero-CUDA gate output and the pin log cp "$REPO/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.3-gb10.md" "$OUT/ACCEPTANCE-v1.3-gb10.as-run.md" cp "$D/zero-cuda-gate.txt" "$ART/zero-cuda-gate.txt"; cp "$D/pins.txt" "$ART/pins.txt" @@ -474,12 +494,12 @@ E3M_OK=0; REPORT="" if [ -z "$ABORT" ]; then if task E3m "$WS" "$OBJ_M"; then REPORT=$(find_written "$WS" report.md); [ -n "$REPORT" ] || REPORT=$WS/${T_PATH:-report.md} - FAILED=$(check_doc "$REPORT" "$T1" "$T2" "$T3"); DSHA=none; [ -f "$REPORT" ] && DSHA=$(sha_of "$REPORT") + FAILED=$(check_doc --topics "$REPORT" "$T1" "$T2" "$T3"); DSHA=none; [ -f "$REPORT" ] && DSHA=$(sha_of "$REPORT") G=$T_GRANT; CS=$T_CSHA; execute E3m "$WS" -again >/dev/null 2>&1; AGAIN=$T_REFUSAL [ -f "$REPORT" ] && cp "$REPORT" "$ART/E3m-report.md" if [ -z "$FAILED" ] && [ "$DSHA" = "$CS" ] && [ "$AGAIN" = AlreadySpent ]; then ST=PASS; E3M_OK=1; else ST=FAIL; fi rcpt E3m $ST "state DONE; written ${REPORT#$WS/}; checks failed [${FAILED:-none}]; second execute: ${AGAIN:-none}" \ - "$(doc_fields "$REPORT" DONE "$CS" "$G" "$FAILED" | jq -c --arg a "$AGAIN" --arg o "$OBJ_M" '. + {second_execute_refusal:$a, objective_text:$o}')" + "$(doc_fields "$REPORT" DONE "$CS" "$G" "$FAILED" | jq -c --arg a "$AGAIN" --arg o "$OBJ_M" --arg dr "$D4_TOPIC_RULE" '. + {second_execute_refusal:$a, objective_text:$o, d4_rule:$dr}')" else rcpt E3m FAIL "$T_EV" "$(doc_fields none "$T_STATE" "" "$T_GRANT" "")" fi