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/8968aee78a065e6b # 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#326 (code only) closed derived `8968aee78a065e6b` #326 Imported from GitHub aien-dev/aien-sovereign-core-mv#326 (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 `015c282e9cfba5ab4865eaecf3c571e3cca3cbd0` · Head `3d076b4f22b1c24db5ad3680af02e62006a013ac` ### Fetch it A git bundle of the pull request's head, 44876 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/8968aee78a065e6b.bundle -o 8968aee78a065e6b.bundle git fetch 8968aee78a065e6b.bundle refs/pull/326/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 326 3d076b4f22b1c24db5ad3680af02e62006a013ac ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":326,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/326","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:49Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index 16fd224c..f89f348f 100644 --- a/.crumb +++ b/.crumb @@ -64,8 +64,8 @@ "generated": { "children": [ { - "digest": "74a477db88f9514eddafa944edf5fcb54c121c0fdba97b24980362a056e6dea6", - "last_commit": "fb9c2c4", + "digest": "2ee39207bb3a0f0466731ae4e9adbe2063cd8b4f82456a1c2b3fd7588974a557", + "last_commit": "19549b0", "name": "scripts", "purpose": "" }, @@ -76,15 +76,15 @@ "purpose": "" } ], - "children_root": "sha256:c4df3d1702ee8c25a0fe7eb9a108f29afc2f07485c611250594e9f4a542d9052", - "compiled_at": "2026-10-08T12:46:30Z", + "children_root": "sha256:285ca7eafbe46d808ebe5e4fb533e464bfdf0fedaf3eef486ac2e2c8826baf6f", + "compiled_at": "2026-10-08T13:07:13Z", "compiler": "crumb-compile/1", - "digest": "sha256:cfd44c2a4d1a61a84cf08605af0f80ca485adddaf68ca4fdbc144f422c78281e", + "digest": "sha256:fa03dfcea50b3119665d76176631edeb792ec89ccebc5b8f5256dc7e9f5f4121", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", - "files": 1533, - "generated_at_commit": "fb9c2c4440cd756d547f37730749abda43dbfe91", - "source_tree": "sha256:c9962a1e0ba7ebc579abf65366e7a9c9ec2098803ada351e475051870d3a3de5" + "files": 1594, + "generated_at_commit": "e6a0bf74914fcc3eaf7547f88398ea3bb0c48054", + "source_tree": "sha256:2e1c0bc765ab0483542fb82c70f6e796bc4a598eb33441cc9f5ac5a36d9db9c6" } }, "history": [], diff --git a/docs/campaigns/allen-e2e/DEMO-v4-gb10.md b/docs/campaigns/allen-e2e/DEMO-v4-gb10.md new file mode 100644 index 00000000..e40cdb1d --- /dev/null +++ b/docs/campaigns/allen-e2e/DEMO-v4-gb10.md @@ -0,0 +1,90 @@ +# ALLEN end-to-end demo v4-gb10 (predeclared) + +Status: PREDECLARED. To be committed and pushed before any v4-gb10 run. v1 to v3 and their results stay as recorded. +Refs aien-architecture#159, #162. + +Question: does the v3 ALLEN chain (identity, memory, inference, capability, AEGIS, approved effect, World commit, Cortex, +evidence) hold when inference runs on the qualified GB10 candidate instead of the CPU reference? + +## Candidate +sovereign-core main 6bbe2ec269768c7c9b94b9484c757ca45f55f564 (the sc#277 attempt-3 build: #311 + #313), omega 6c6180cf, +PHYSICS 6d7cf0d4, the same environment as ~/workspace/hive/Q277/DECLARATION.md. The GB10 daemon is the SEALED binary +`~/workspace/hive/Q277/bin/aien-cli-main`, sha256 `152c0aecce662f618bf683c8854d6de56a7075e0461c2433570f4c15b68571a5` +(Q277 `SHA256SUMS`, `IDENTITY.txt`). The driver checks the file against that sha256 (written in the script and in `SHA256SUMS`) +and refuses on any mismatch, and refuses unless the tree is 6bbe2ec2 plus demo-only files. All client commands and the M-B +daemon use the v3-style CPU build of the same tree. Environment label: Linux-hosted GB10. Not native AIENOS. + +GB10 daemon environment: `AIEN_GB10_QWEN3_DECLARED_ATTEMPT=1 AIEN_REQUIRE_BLACKWELL=1 AIEN_REQUIRE_CHECKPOINT=1 +AIEN_KV_CONTEXT_TOKENS=4096`, `AIEN_MODEL_PATH=/model.safetensors.index.json`; `AIEN_OMEGA_*`, `AIEN_FORCE_CPU_STUB`, +`AIEN_OMEGA_SPIN_US`, `AIEN_OMEGA_CTA_BUDGET`, `AIEN_COMPOSE_BUDGET_MS` unset (the driver refuses if the last three are set). + +## Steps +DEMO-v2.md unchanged (S0-S8, S3-red, checker C1-C5, request text with the stated format rules), with these substitutions: +- M-A = Qwen3-4B-Instruct-2507 (`~/models/qwen3-4b-instruct-2507-cdbee75`) on the GB10. M-B = SmolLM2-1.7B on the CPU reference. +- The driver is run as `DEMO_VERSION=v4-gb10 scripts/allen_e2e_demo.sh run` INSIDE a quietlock hold given by the coordinator + (the driver refuses to start when the quiet flag is not held, and never takes or clears it). +- GB10 daemon lives: S0 start, S1 restart with the identity subject, S5 restart: three lives. (The draft said two; v3's flow + starts the daemon at S0 and again at S1 once the identity fixture exists, so the driver's S0 and S1 are two lives.) + Each life is one daemon on the chip. Estimate 5-8 min each, about 15-25 min in total. + +## Chip safety (hard rule) +No signal of any kind is sent to a process that holds a GB10 channel (gpu-chip-test-no-kill; omega 03d2820: destroying a +channel under a spinning seat makes the driver's stop request time out). The driver stops a GB10 daemon only through +`aien-cli compose shutdown` (the control Shutdown op, `crates/aien-cli/src/compose.rs` "shutdown", answered +`ShutdownAck`, `crates/aien-runtime/src/spine.rs` Shutdown), then waits with NO timeout for the daemon to exit. This applies at +S1, S5, the S7 switch-over, to every error path, and to the exit trap. `aien-cli stop` is not used (it also runs `pkill`). +If a GB10 daemon never takes the request or never exits, the driver waits and a human decides; it does not kill. +A stop is "clean" only if: a shutdown request was sent at least once, the daemon exits 0, its socket file is removed, and the +daemon log has no `seat kill` line. After an unclean stop the driver starts no further GB10 daemon. +No "session closed" line exists: the daemon prints none (checked in the Q277 logs and the sources). The four clean-stop signs used are (1) ShutdownAck received, (2) exit code 0, (3) the socket file removed, (4) no `seat kill` line in the log; the +kernel-log NVRM delta below is recorded as well, and a delta above 0 blocks any further GB10 life (Q277 judged a close by exit 0 and no new NVRM lines). + +## Evidence recorded per GB10 life (receipt `GB10-lives`) +The `Backend:` line, the `GB10_SERVING_RESERVATION reserved bytes=` line, count of lines matching `fallback`, count of NVRM +lines in the daemon log, count of allocation failures (`failures=` or `failures_since_warmup=` non-zero, or `refused`), +count of RM failures (`NV_ERR_NO_MEMORY`, `status 0x51`, `RM_ALLOC ... fail`), kernel-log NVRM line count before and after the +life, the daemon exit code, the stop result. + +## PASS +All 10 steps PASS as v3 did, and for every GB10 life: Backend line is the GB10 one (`OmegaGb10Backend`), reservation line +present, 0 allocation and RM failures, 0 fallback lines, 0 NVRM lines (daemon log and kernel-log delta), clean graceful stop +as defined above. S7 must show both the `Model:` line and the `Backend:` line changed (GB10 to CPU reference) and the model +digest changed. If the kernel log cannot be read, the `GB10-lives` receipt is UNKNOWN, not PASS. If M-A does not show the GB10 +Backend line and the reservation line, the run stops there (after a graceful stop). Any FAIL is kept, no rerun. + +## Labels and outputs +S0-S6 real-GB10 (Linux-hosted). S7-S8 real-CPU. Stack label as v3 computes it. native-AIENOS: NOT_RUN. +Outputs: `receipts-v4-gb10.jsonl`, `artifacts-v4-gb10/`, `RESULT-v4-gb10.md`. RESULT-v4-gb10.md must state: +"hard-crash recovery on GB10: NOT TESTED (chip safety rule)"; the S5 receipt reads "graceful stop (exit 0, session closed) +then restart on M-A (GB10)". Kill -9 recovery evidence comes from the CPU legs (v3 S5/S7, recovery matrix sc#307, +concurrency test sc#325). + +## Limits +One request per GB10 life; no endurance; no cache fill, no drop_caches, no setting change. v3's SmolLM2/Qwen3 order is swapped, +so S3 and S8 texts are not comparable to v3. Whether the CLI client built without the GPU library can drive the GB10 daemon +over the socket is expected (same commit, same wire protocol) but untested here. The daemon runs with the driver's isolated +HOME, which the Q277 run did not use: UNKNOWN whether the GB10 path reads HOME. + +## Signals to the driver +The GB10 daemon is started in its own session (`setsid`, with HUP and INT ignored, `$!` still its pid; the driver checks that it +is its own session leader). A Ctrl-C, a terminal hangup or a signal to the driver's process group therefore cannot reach it. +The driver traps INT, TERM, HUP, QUIT, USR1, USR2, PIPE and ALRM: it stops a live GB10 daemon gracefully (unbounded wait, a repeated signal only +queues the exit) and only then exits (130); it never exits while a GB10 daemon is alive. `selftest-gb` proves this with a +fake daemon, including a control showing an ordinary child in the same group does receive the signal. +A SIGKILL of the driver itself, or a power loss, cannot be handled and is outside this rule. +Signals that arrive while the daemon is being spawned are deferred until its pid is recorded, then handled by the graceful +stop. The pid of a live GB10 daemon is held in `GB_LIVE_PID` until the stop's wait returns; the only function that sends a +kill (`safe_kill9`, CPU daemons only) refuses that pid. The one unprotected instant is the few microseconds between the +fork and `setsid`, when the child is still a plain shell that has not opened the chip. + +### What the driver cannot survive +SIGKILL of the driver, or a tree-kill by a harness (kill of the whole process tree or container), bypasses every handler. The +GB10 daemon then survives orphaned in its own session and no Shutdown has been sent. A human must stop it gracefully, +without any signal. At every GB10 spawn the driver writes the exact command, with absolute paths, to +`$CLAUDE_JOB_DIR/tmp/demo/run/logs/STOP-BY-HAND.txt` (a human shell may not have `CLAUDE_JOB_DIR`; for this campaign's job +that is `/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/logs/STOP-BY-HAND.txt`). Its form is: + + AIEN_RUNTIME_SOCK=/tmp/demo/run/s /tmp/demo/target/release/aien-cli compose shutdown + +(expect `{"step": "S7", "shutdown": true}`), then wait until `pgrep -f 'aien-cli-main daemon'` shows nothing and check the +kernel log for new NVRM lines. Never `kill` it. diff --git a/docs/campaigns/allen-e2e/RESULT-v4-gb10.md b/docs/campaigns/allen-e2e/RESULT-v4-gb10.md new file mode 100644 index 00000000..29e9e14d --- /dev/null +++ b/docs/campaigns/allen-e2e/RESULT-v4-gb10.md @@ -0,0 +1,56 @@ +# ALLEN end-to-end demo v4-gb10: result + +Spec: DEMO-v4-gb10.md = DEMO-v2.md with M-A = Qwen3-4B-Instruct-2507 (cdbee75) on the GB10 and M-B = SmolLM2-1.7B on the +CPU reference. Frozen declaration: aien-architecture#159 issuecomment-6060242596, pre-run note issuecomment-6060283301. +Driver: scripts/allen_e2e_demo.sh with DEMO_VERSION=v4-gb10, run from a detached tree at 6e24bbc (scripts/ and docs/ +byte-identical to PR head fe778ec; driver sha256 24e14919234c8660ba01072610efd497693cccd8c5a8f70299c68149ba64c6e4). +Receipts: receipts-v4-gb10.jsonl (one line per step, 10 steps plus the GB10-lives line). Raw outputs: artifacts-v4-gb10/. +GB10 daemon: the sealed sc#277 attempt-3 candidate binary, sha256 152c0aecce662f618bf683c8854d6de56a7075e0461c2433570f4c15b68571a5, +built from sovereign-core 6bbe2ec2 (hash checked before the hold and by the driver before every GB10 life). +CPU leg daemon/CLI: built from 6e24bbc, sha256 d133c38a0062... (in every receipt). +Label: S0-S6 real-GB10 (Linux-hosted GB10, native Omega engine, no CUDA). S7-S8 real-CPU. Native AIENOS: NOT_RUN. +Not a physical-Spark AIENOS result. mock: not used. +Run: 2026-10-08, 12:59:45 to 13:03:31 UTC, inside one quietlock hold (owner f68569-allen-gb10, 20 minutes booked, +3 min 46 s used), slot from coordinator 8985c8. + +v1 (FAIL), v2 (FAIL) and v3 (PASS, real-CPU) stay recorded as they were. This run does not change them. + +## Verdict: PASS (10 of 10 steps, plus every GB10 life clean) + +## Step table + +| Step | Result | Evidence | +|------|--------|----------| +| S0 | PASS | Daemon up on M-A on the GB10 (Backend: OmegaGb10Backend, native Omega engine, no CUDA, sm_121). "Authorize MAC: on". allen status not_engaged, no ALLEN state before S1. | +| S1 | PASS | One identity, ID0 = 9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c. AgentRoot 24293fdde359... | +| S2 | PASS | Profile revision 1 with plain-language on, under ID0. Memory inspect shows exactly N-work, N-pers, G1. Goals list shows exactly G1. | +| S3 | PASS | Commit DONE, inference on the GB10. MemoryReport context work, items_included 2. C1-C5 hold. 54 words. garden.md sha256 280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04. | +| S3-red | PASS | Checker on the hand-written document reports exactly C3 C5. The good control reports none. | +| S4 | PASS | Ledger links grant id, proposal sha256, content sha256 (equal to garden.md on disk), the M-A model digest and ID0. | +| S5 | PASS | Graceful stop (exit 0), restart on M-A on the GB10. ID0, profile, notes, G1 identical. S3 intent still DONE, ledger and record count unchanged (not re-executed). garden.md same sha256, inode and mtime. Replay reconcile: 0 claims. | +| S6 | PASS | Forgot N-pers. Inspect shows no text (row state forgotten). Recall in personal returns 0 items. 0 files under daemon state still hold the canary. | +| S7 | PASS | Graceful stop of the GB10 daemon (exit 0), start on M-B on the CPU. Model line, Backend line and model digest changed (d6c42883a895 to f55217be716b). ID0, profile, N-work, G1 unchanged. N-pers still absent. | +| S8 | PASS | Commit DONE on M-B (CPU). MemoryReport context work, items_included 2. C1-C5 hold. 107 words. garden-b.md sha256 092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189. Provenance links all present, including the M-B digest and ID0. | + +## GB10 lives (3, as declared) + +Each of daemon-1, daemon-2 and daemon-3: OmegaGb10Backend line; GB10_SERVING_RESERVATION line (194170880 bytes, context +4096, 1536 matmul kernel calls prepared in 21-29 ms, then sealed); 0 allocation failures, 0 RM failures, 0 fallback lines, +0 seat-kill lines; stop by `aien-cli compose shutdown` (1 request each, acknowledged), daemon exit 0, socket removed; kernel +log NVRM count 1533 before and 1533 after every life (delta 0). No process holding a GB10 channel was signalled. + +## Contamination check + +A 1 s camera (pgrep cargo|rustc|make|qemu, 222 samples, 12:59:45 to 13:03:30) saw no foreign build or QEMU process. The +only build activity was the driver's own S1 fixture build (cargo test of e2e_demo_subject into this job's target dir), +which is part of the declared steps, as in v3. The driver itself has no per-life quiet gate; the camera replaces it as +evidence. No timing is claimed, so this does not affect any criterion. + +## Limits + +- Linux-hosted GB10 only. Nothing here is a native AIENOS result or a physical-Spark AIENOS result. +- Hard-crash recovery on the GB10: NOT TESTED (chip safety rule: no kill of a process holding a GB10 channel). kill -9 + recovery evidence is from CPU legs only (v3 S5/S7, recovery matrix sc#307, concurrency test sc#325). +- One request per GB10 life; no endurance, no throughput or latency claim. +- v3's model order is swapped (Qwen3 first here), so the S3 and S8 texts are not comparable to v3. +- The models are the fixed demo checkpoints; this says nothing about model quality beyond C1-C5. diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S0-deskkey.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S0-deskkey.json new file mode 100644 index 00000000..33eaed8a --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S0-deskkey.json @@ -0,0 +1 @@ +{"desk_key_id":"5a2c9cca9a1d8485","ok":true,"path":"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/compose/approval-desk.key"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-goal.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-goal.json new file mode 100644 index 00000000..808104a9 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-goal.json @@ -0,0 +1 @@ +{"ok":true,"result":{"action":"goal_add","context":"work","result":{"item":"8ca2e443a16d14fc38aaedd698b60eda","label":"host goal record, not a subject intent"}},"step":"goals"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-goals.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-goals.json new file mode 100644 index 00000000..1b5f06af --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-goals.json @@ -0,0 +1,13 @@ +{ + "goals": [ + { + "created": "2026-10-08T13:00:20Z", + "item": "8ca2e443a16d14fc38aaedd698b60eda", + "label": "host goal record, not a subject intent", + "scope": "work", + "state": "open", + "text": "Keep the garden plan short." + } + ], + "label": "host goal record, not a subject intent" +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-ledger.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-ledger.json new file mode 100644 index 00000000..85b3c3ec --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-ledger.json @@ -0,0 +1,8 @@ +{ + "intents": [], + "legacy_spent": [], + "resumes": [], + "revoked": [], + "stopped": null, + "stops": [] +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-memory.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-memory.json new file mode 100644 index 00000000..660937d0 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-memory.json @@ -0,0 +1,32 @@ +[ + { + "created": "2026-10-08T13:00:20Z", + "item": "ade5fe92896b50b4ddf5dd85d50a1347", + "kind": "fact", + "label": null, + "scope": "work", + "state": "live", + "text": "The garden plan must mention tomatoes.", + "version": 1 + }, + { + "created": "2026-10-08T13:00:20Z", + "item": "b258db67404334616697c70d01117639", + "kind": "fact", + "label": null, + "scope": "personal", + "state": "live", + "text": "PERSONAL-CANARY-7741", + "version": 1 + }, + { + "created": "2026-10-08T13:00:20Z", + "item": "8ca2e443a16d14fc38aaedd698b60eda", + "kind": "goal", + "label": "host goal record, not a subject intent", + "scope": "work", + "state": "live", + "text": "Keep the garden plan short.", + "version": 1 + } +] diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-profile.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-profile.json new file mode 100644 index 00000000..0f118b30 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-profile.json @@ -0,0 +1,22 @@ +{ + "defaults": null, + "profile": { + "agent": "9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c", + "author": "user", + "note": "", + "persona": { + "display_name": "ALLEN", + "plain_language": true, + "tone": "neutral", + "verbosity": "normal" + }, + "prev_sha256": "0000000000000000000000000000000000000000000000000000000000000000", + "revision": 1, + "root": "24293fdde35975affd77f8f99b4ecc02ef2f8ef0e3e44c4964f650c42bf39c40", + "schema": "aien.allen.profile/1", + "working_preferences": [], + "written_at": "2026-10-08T13:00:20Z" + }, + "revision": 1, + "state": "applied" +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-put-pers.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-put-pers.json new file mode 100644 index 00000000..93b5ea13 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-put-pers.json @@ -0,0 +1 @@ +{"ok":true,"result":{"action":"memory_put","context":"personal","result":{"context":"personal","item":"b258db67404334616697c70d01117639"}},"step":"memory"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-put-work.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-put-work.json new file mode 100644 index 00000000..884d15d8 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-put-work.json @@ -0,0 +1 @@ +{"ok":true,"result":{"action":"memory_put","context":"work","result":{"context":"work","item":"ade5fe92896b50b4ddf5dd85d50a1347"}},"step":"memory"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-records-total.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-records-total.json new file mode 100644 index 00000000..f599e28b --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-records-total.json @@ -0,0 +1 @@ +10 diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-records.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-records.json new file mode 100644 index 00000000..573541ac --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-records.json @@ -0,0 +1 @@ +0 diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-set.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-set.json new file mode 100644 index 00000000..da98202a --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S2-set.json @@ -0,0 +1 @@ +{"ok":true,"result":{"defaults":null,"profile":{"agent":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","author":"user","note":"","persona":{"display_name":"ALLEN","plain_language":true,"tone":"neutral","verbosity":"normal"},"prev_sha256":"0000000000000000000000000000000000000000000000000000000000000000","revision":1,"root":"24293fdde35975affd77f8f99b4ecc02ef2f8ef0e3e44c4964f650c42bf39c40","schema":"aien.allen.profile/1","working_preferences":[],"written_at":"2026-10-08T13:00:20Z"},"revision":1,"state":"applied"},"step":"set"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-authorize.err b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-authorize.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-authorize.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-authorize.json new file mode 100644 index 00000000..ee4d26cf --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-authorize.json @@ -0,0 +1 @@ +{"approvals":1,"authorization":{"digest":"f249f9096667c4b8fef16ab669647bb7c6d6c066c16b2b5fcff07e2fb8d4787e","id":23,"kind":"authorization","links":[22],"machine_id":"6bf6aa257a726d031369194ad1edd5482b79a01395d6a5e486f6ad7ed93be261","text_sha256":"24c1bf812bd85dc9f2e5e5aafb1380750ef13f62e0ae37769dffe368d0adc895"},"ok":true,"receipt":{"arguments_digest":"sha256:9d51a833ea82be20f4f72e51becc51a16fe468f527d516c76f1dafb42088ab00","path":"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/prov/1791464433388025395-1535798.json","result_digest":"sha256:6414dc695e72fd2d32fc1253e782a33ce86f43b6e886e4286ad42974f034d394","sha256":"abe1c8958ec22b030c1d091f466a0a24a9d1c8af013418510ab193e29346059e","success":true,"tool":"authorize"},"step":"S4"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-effects.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-effects.json new file mode 100644 index 00000000..a9af314a --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-effects.json @@ -0,0 +1,27 @@ +{ + "ledger": { + "intents": [ + { + "authorization": 23, + "content_sha256": "280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04", + "executor": { + "pid": 1535822, + "start": 17814380 + }, + "intent": 24, + "path": "garden.md", + "prior_sha256": null, + "state": "DONE", + "state_record": 25, + "target": "/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md" + } + ], + "legacy_spent": [], + "resumes": [], + "revoked": [], + "stopped": null, + "stops": [] + }, + "machine_id": "6bf6aa257a726d031369194ad1edd5482b79a01395d6a5e486f6ad7ed93be261", + "ok": true +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-execute.err b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-execute.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-execute.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-execute.json new file mode 100644 index 00000000..d34618fb --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-execute.json @@ -0,0 +1 @@ +{"ack_error":null,"bytes":349,"content_sha256":"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04","disk_sha256":"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04","effect":{"id":25},"intent":{"digest":"aeb036a7be917c36e039da7cb26f23f292811609857ba28e4def7fbc3ace86f1","id":24,"kind":"effect","links":[23],"machine_id":"6bf6aa257a726d031369194ad1edd5482b79a01395d6a5e486f6ad7ed93be261","text_sha256":"2121c57a7810d978f764ad43ed44df9cbe2303380bb1e275e2b66f4494f62c32"},"ok":true,"path":"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md","receipt":{"arguments_digest":"sha256:99627836a65511aad0b1b7d45d018f52df8de36d6ce8e74c2db8ae7b98165194","path":"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/prov/1791464433418050725-1535822.json","result_digest":"sha256:2796731b1eb2001f50f20585e7a0ce1632ee280a85484b9a50108c7f0a94517d","sha256":"13cf8e0af56a57d6ec4ad34fb9c2f554a49d6a061df4345df95fdf68a36053fb","success":true,"tool":"write_file"},"state":"DONE","step":"S5"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-propose.err b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-propose.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-propose.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-propose.json new file mode 100644 index 00000000..da6856c7 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-propose.json @@ -0,0 +1 @@ +{"ok":true,"report":{"aegis_pass_mask":1,"branch_count":1,"branches_reclaimed":0,"committed":true,"compose_commit":22,"compose_dir":"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/compose","cx_admissions":[20],"cx_candidates":[16,17],"cx_evidence":18,"cx_goal":11,"cx_promotion":19,"generation_record":21,"machine_id":"6bf6aa257a726d031369194ad1edd5482b79a01395d6a5e486f6ad7ed93be261","memory":{"context":"work","items_included":2,"items_omitted":0,"items_unresolved":0,"reason":null,"state":"included"},"outcome":1,"persona":{"display_name":"ALLEN","reason":null,"revision":1,"state":"applied"},"proposal":"filename: garden.md\n# Garden Plan\n\n- Tomatoes: Plant in the sunny south-facing bed. \n- Space: 18 inches between plants. \n- Soil: Well-draining, enriched with compost. \n- Water: Daily morning watering. \n- Companion plants: Marigolds to deter pests. \n- Harvest: Begin in late June. \n\nKeep it simple and focused. No extra details. Tomatoes are included as required.","proposal_attempts":[{"aegis":"pass","attempt":1,"finish_reason":"eos","ms":12973,"outcome":"parsed","prompt_ids_sha256":"9cd06f289717495d0ff18fb51b73fa9c260df85879be1f65eb413db0cb93f010","prompt_tokens":258,"reason":null,"text":"filename: garden.md\n# Garden Plan\n\n- Tomatoes: Plant in the sunny south-facing bed. \n- Space: 18 inches between plants. \n- Soil: Well-draining, enriched with compost. \n- Water: Daily morning watering. \n- Companion plants: Marigolds to deter pests. \n- Harvest: Begin in late June. \n\nKeep it simple and focused. No extra details. Tomatoes are included as required.","text_sha256":"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726","token_ids":[13551,21324,198,2,19021,9680,271,12,8364,20187,25,17838,304,279,39698,9806,63306,4845,13,2303,12,11487,25,220,16,23,14924,1948,10779,13,2303,12,75519,25,8325,18643,2056,11,68571,448,56723,13,2303,12,9959,25,13385,6556,72741,13,2303,12,68975,10779,25,2876,343,18431,311,4040,74956,13,2303,12,55835,25,18597,304,3309,5534,13,18611,19434,432,4285,323,10735,13,2308,4960,3565,13,8364,20187,525,5230,438,2567,13],"tokens":89,"unmet_requirements":[]}],"proposal_content_sha256":"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04","proposal_path":"garden.md","proposal_sha256":"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726","proposer":"model:StreamTurn-path","proposer_error":null,"record_digest":"5a2ff39f358642833654946dabd308b10206bda90205dc56834905eed617a9f6","requirements_recognized":["at most 200 words","a level-1 markdown heading (\"# \") as the first line"],"requirements_uncertain":[],"task":3819644049534990415,"uncommitted_proposal":null,"winner":0,"winner_digest":"c601d979f56856a4a580722226b589cfd6266ebbb366e7f8e42e1ddcd0afa138"},"step":"S3"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-recall.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-recall.json new file mode 100644 index 00000000..ea45ffbc --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S3-recall.json @@ -0,0 +1 @@ +{"authorizations":[{"digest":"f249f9096667c4b8fef16ab669647bb7c6d6c066c16b2b5fcff07e2fb8d4787e","id":23,"text":"{\"approver\":\"drake\",\"compose_commit\":22,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"cx_evidence\":18,\"cx_promotion\":19,\"desk_key_id\":\"5a2c9cca9a1d8485\",\"desk_nonce\":\"019afab61e2b0ea9eb22c9e6200aeee0\",\"minted_grant\":1,\"path\":\"garden.md\",\"prior_sha256\":null,\"proposal_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"target\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md\",\"workspace\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws\"}","verified":true}],"constraints":[],"effects":[{"digest":"2a7177c9b9465b4589bf25c947483a025d0fad6b5b4a79b22296430374ddca9a","id":21,"text":"{\"attempt\":1,\"daemon\":{\"pid\":1518831,\"start_ticks\":17811852,\"started_unix_ms\":\"1791464416363\"},\"finish_reason\":\"eos\",\"generation\":1,\"model_path\":\"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json\",\"model_sha256\":\"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c\",\"operation_id\":\"0\",\"origin\":\"compose_proposal\",\"output_text_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"output_token_ids_sha256\":\"de439e5bc460cba30389ca1a6ef79575ffee79609f924765ad8aed2fcaa0eb8b\",\"output_tokens\":89,\"prompt_ids_sha256\":\"9cd06f289717495d0ff18fb51b73fa9c260df85879be1f65eb413db0cb93f010\",\"request_id\":0,\"task\":3819644049534990415,\"tokenizer_path\":\"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/tokenizer.json\",\"tokenizer_sha256\":\"aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4\",\"total_tokens\":347,\"v\":1}","verified":true},{"digest":"c037294dc6d807c9eec49c00f6775c1b2329b9dea029ce76888be769b73b271d","id":22,"text":"{\"compose_commit\":1,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"cx_evidence\":18,\"cx_promotion\":19,\"path\":\"garden.md\",\"proposal_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"task\":3819644049534990415,\"workspace\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws\"}","verified":true},{"digest":"aeb036a7be917c36e039da7cb26f23f292811609857ba28e4def7fbc3ace86f1","id":24,"text":"{\"authorization\":23,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"executor\":{\"pid\":1535822,\"start\":17814380},\"path\":\"garden.md\",\"phase\":\"intent\",\"prior_sha256\":null,\"proposal_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"target\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md\",\"tool\":\"write_file\"}","verified":true},{"digest":"88f1567d22097211ce27cb45b0332116b5bdfe61802b9b6b3a30b8857e68747f","id":25,"text":"{\"authorization\":23,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"disk_error\":null,\"disk_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"executor_reported\":{\"bytes\":349,\"disk_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"error\":null},\"intent\":24,\"path\":\"garden.md\",\"phase\":\"ack\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"state\":\"DONE\",\"tool\":\"write_file\"}","verified":true}],"machine_id":"6bf6aa257a726d031369194ad1edd5482b79a01395d6a5e486f6ad7ed93be261","ok":true,"recall":{"cited":[],"compose_dir":"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/compose","host":[{"cls":6,"digest":"2a7177c9b9465b4589bf25c947483a025d0fad6b5b4a79b22296430374ddca9a","id":21,"kind":65554,"links":[0,0,0,0],"note":"effect","subject":0,"tag":4,"text":"{\"attempt\":1,\"daemon\":{\"pid\":1518831,\"start_ticks\":17811852,\"started_unix_ms\":\"1791464416363\"},\"finish_reason\":\"eos\",\"generation\":1,\"model_path\":\"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json\",\"model_sha256\":\"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c\",\"operation_id\":\"0\",\"origin\":\"compose_proposal\",\"output_text_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"output_token_ids_sha256\":\"de439e5bc460cba30389ca1a6ef79575ffee79609f924765ad8aed2fcaa0eb8b\",\"output_tokens\":89,\"prompt_ids_sha256\":\"9cd06f289717495d0ff18fb51b73fa9c260df85879be1f65eb413db0cb93f010\",\"request_id\":0,\"task\":3819644049534990415,\"tokenizer_path\":\"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/tokenizer.json\",\"tokenizer_sha256\":\"aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4\",\"total_tokens\":347,\"v\":1}","verified":true},{"cls":6,"digest":"c037294dc6d807c9eec49c00f6775c1b2329b9dea029ce76888be769b73b271d","id":22,"kind":65554,"links":[19,18,0,0],"note":"effect","subject":0,"tag":4,"text":"{\"compose_commit\":1,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"cx_evidence\":18,\"cx_promotion\":19,\"path\":\"garden.md\",\"proposal_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"task\":3819644049534990415,\"workspace\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws\"}","verified":true},{"cls":6,"digest":"f249f9096667c4b8fef16ab669647bb7c6d6c066c16b2b5fcff07e2fb8d4787e","id":23,"kind":65556,"links":[22,0,0,0],"note":"authorization","subject":0,"tag":3,"text":"{\"approver\":\"drake\",\"compose_commit\":22,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"cx_evidence\":18,\"cx_promotion\":19,\"desk_key_id\":\"5a2c9cca9a1d8485\",\"desk_nonce\":\"019afab61e2b0ea9eb22c9e6200aeee0\",\"minted_grant\":1,\"path\":\"garden.md\",\"prior_sha256\":null,\"proposal_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"target\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md\",\"workspace\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws\"}","verified":true},{"cls":6,"digest":"aeb036a7be917c36e039da7cb26f23f292811609857ba28e4def7fbc3ace86f1","id":24,"kind":65554,"links":[23,0,0,0],"note":"effect","subject":0,"tag":4,"text":"{\"authorization\":23,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"executor\":{\"pid\":1535822,\"start\":17814380},\"path\":\"garden.md\",\"phase\":\"intent\",\"prior_sha256\":null,\"proposal_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"target\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md\",\"tool\":\"write_file\"}","verified":true},{"cls":6,"digest":"88f1567d22097211ce27cb45b0332116b5bdfe61802b9b6b3a30b8857e68747f","id":25,"kind":65554,"links":[24,23,0,0],"note":"effect","subject":0,"tag":4,"text":"{\"authorization\":23,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"disk_error\":null,\"disk_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"executor_reported\":{\"bytes\":349,\"disk_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"error\":null},\"intent\":24,\"path\":\"garden.md\",\"phase\":\"ack\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"state\":\"DONE\",\"tool\":\"write_file\"}","verified":true}],"machine_id":"6bf6aa257a726d031369194ad1edd5482b79a01395d6a5e486f6ad7ed93be261","missing":[],"prefix":null,"prefix_digest":null,"records_total":25},"repairs":[],"step":"S8"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-goals.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-goals.json new file mode 100644 index 00000000..1b5f06af --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-goals.json @@ -0,0 +1,13 @@ +{ + "goals": [ + { + "created": "2026-10-08T13:00:20Z", + "item": "8ca2e443a16d14fc38aaedd698b60eda", + "label": "host goal record, not a subject intent", + "scope": "work", + "state": "open", + "text": "Keep the garden plan short." + } + ], + "label": "host goal record, not a subject intent" +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-ledger.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-ledger.json new file mode 100644 index 00000000..e6141023 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-ledger.json @@ -0,0 +1,23 @@ +{ + "intents": [ + { + "authorization": 23, + "content_sha256": "280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04", + "executor": { + "pid": 1535822, + "start": 17814380 + }, + "intent": 24, + "path": "garden.md", + "prior_sha256": null, + "state": "DONE", + "state_record": 25, + "target": "/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md" + } + ], + "legacy_spent": [], + "resumes": [], + "revoked": [], + "stopped": null, + "stops": [] +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-memory.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-memory.json new file mode 100644 index 00000000..660937d0 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-memory.json @@ -0,0 +1,32 @@ +[ + { + "created": "2026-10-08T13:00:20Z", + "item": "ade5fe92896b50b4ddf5dd85d50a1347", + "kind": "fact", + "label": null, + "scope": "work", + "state": "live", + "text": "The garden plan must mention tomatoes.", + "version": 1 + }, + { + "created": "2026-10-08T13:00:20Z", + "item": "b258db67404334616697c70d01117639", + "kind": "fact", + "label": null, + "scope": "personal", + "state": "live", + "text": "PERSONAL-CANARY-7741", + "version": 1 + }, + { + "created": "2026-10-08T13:00:20Z", + "item": "8ca2e443a16d14fc38aaedd698b60eda", + "kind": "goal", + "label": "host goal record, not a subject intent", + "scope": "work", + "state": "live", + "text": "Keep the garden plan short.", + "version": 1 + } +] diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-profile.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-profile.json new file mode 100644 index 00000000..0f118b30 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-profile.json @@ -0,0 +1,22 @@ +{ + "defaults": null, + "profile": { + "agent": "9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c", + "author": "user", + "note": "", + "persona": { + "display_name": "ALLEN", + "plain_language": true, + "tone": "neutral", + "verbosity": "normal" + }, + "prev_sha256": "0000000000000000000000000000000000000000000000000000000000000000", + "revision": 1, + "root": "24293fdde35975affd77f8f99b4ecc02ef2f8ef0e3e44c4964f650c42bf39c40", + "schema": "aien.allen.profile/1", + "working_preferences": [], + "written_at": "2026-10-08T13:00:20Z" + }, + "revision": 1, + "state": "applied" +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-records-total.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-records-total.json new file mode 100644 index 00000000..7273c0fa --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-records-total.json @@ -0,0 +1 @@ +25 diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-records.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-records.json new file mode 100644 index 00000000..7ed6ff82 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5a-records.json @@ -0,0 +1 @@ +5 diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-goals.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-goals.json new file mode 100644 index 00000000..1b5f06af --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-goals.json @@ -0,0 +1,13 @@ +{ + "goals": [ + { + "created": "2026-10-08T13:00:20Z", + "item": "8ca2e443a16d14fc38aaedd698b60eda", + "label": "host goal record, not a subject intent", + "scope": "work", + "state": "open", + "text": "Keep the garden plan short." + } + ], + "label": "host goal record, not a subject intent" +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-ledger.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-ledger.json new file mode 100644 index 00000000..e6141023 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-ledger.json @@ -0,0 +1,23 @@ +{ + "intents": [ + { + "authorization": 23, + "content_sha256": "280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04", + "executor": { + "pid": 1535822, + "start": 17814380 + }, + "intent": 24, + "path": "garden.md", + "prior_sha256": null, + "state": "DONE", + "state_record": 25, + "target": "/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md" + } + ], + "legacy_spent": [], + "resumes": [], + "revoked": [], + "stopped": null, + "stops": [] +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-memory.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-memory.json new file mode 100644 index 00000000..660937d0 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-memory.json @@ -0,0 +1,32 @@ +[ + { + "created": "2026-10-08T13:00:20Z", + "item": "ade5fe92896b50b4ddf5dd85d50a1347", + "kind": "fact", + "label": null, + "scope": "work", + "state": "live", + "text": "The garden plan must mention tomatoes.", + "version": 1 + }, + { + "created": "2026-10-08T13:00:20Z", + "item": "b258db67404334616697c70d01117639", + "kind": "fact", + "label": null, + "scope": "personal", + "state": "live", + "text": "PERSONAL-CANARY-7741", + "version": 1 + }, + { + "created": "2026-10-08T13:00:20Z", + "item": "8ca2e443a16d14fc38aaedd698b60eda", + "kind": "goal", + "label": "host goal record, not a subject intent", + "scope": "work", + "state": "live", + "text": "Keep the garden plan short.", + "version": 1 + } +] diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-profile.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-profile.json new file mode 100644 index 00000000..0f118b30 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-profile.json @@ -0,0 +1,22 @@ +{ + "defaults": null, + "profile": { + "agent": "9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c", + "author": "user", + "note": "", + "persona": { + "display_name": "ALLEN", + "plain_language": true, + "tone": "neutral", + "verbosity": "normal" + }, + "prev_sha256": "0000000000000000000000000000000000000000000000000000000000000000", + "revision": 1, + "root": "24293fdde35975affd77f8f99b4ecc02ef2f8ef0e3e44c4964f650c42bf39c40", + "schema": "aien.allen.profile/1", + "working_preferences": [], + "written_at": "2026-10-08T13:00:20Z" + }, + "revision": 1, + "state": "applied" +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-records-total.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-records-total.json new file mode 100644 index 00000000..64bb6b74 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-records-total.json @@ -0,0 +1 @@ +30 diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-records.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-records.json new file mode 100644 index 00000000..7ed6ff82 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S5b-records.json @@ -0,0 +1 @@ +5 diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-forget.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-forget.json new file mode 100644 index 00000000..bde30262 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-forget.json @@ -0,0 +1 @@ +{"ok":true,"result":{"action":"memory_forget","context":"personal","result":{"forgotten":["b258db67404334616697c70d01117639"]}},"step":"memory"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-goals.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-goals.json new file mode 100644 index 00000000..1b5f06af --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-goals.json @@ -0,0 +1,13 @@ +{ + "goals": [ + { + "created": "2026-10-08T13:00:20Z", + "item": "8ca2e443a16d14fc38aaedd698b60eda", + "label": "host goal record, not a subject intent", + "scope": "work", + "state": "open", + "text": "Keep the garden plan short." + } + ], + "label": "host goal record, not a subject intent" +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-ledger.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-ledger.json new file mode 100644 index 00000000..e6141023 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-ledger.json @@ -0,0 +1,23 @@ +{ + "intents": [ + { + "authorization": 23, + "content_sha256": "280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04", + "executor": { + "pid": 1535822, + "start": 17814380 + }, + "intent": 24, + "path": "garden.md", + "prior_sha256": null, + "state": "DONE", + "state_record": 25, + "target": "/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md" + } + ], + "legacy_spent": [], + "resumes": [], + "revoked": [], + "stopped": null, + "stops": [] +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-memory.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-memory.json new file mode 100644 index 00000000..35c2df6d --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-memory.json @@ -0,0 +1,32 @@ +[ + { + "created": "2026-10-08T13:00:20Z", + "item": "ade5fe92896b50b4ddf5dd85d50a1347", + "kind": "fact", + "label": null, + "scope": "work", + "state": "live", + "text": "The garden plan must mention tomatoes.", + "version": 1 + }, + { + "created": "2026-10-08T13:00:20Z", + "item": "b258db67404334616697c70d01117639", + "kind": "fact", + "label": null, + "scope": "personal", + "state": "forgotten", + "text": null, + "version": 1 + }, + { + "created": "2026-10-08T13:00:20Z", + "item": "8ca2e443a16d14fc38aaedd698b60eda", + "kind": "goal", + "label": "host goal record, not a subject intent", + "scope": "work", + "state": "live", + "text": "Keep the garden plan short.", + "version": 1 + } +] diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-profile.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-profile.json new file mode 100644 index 00000000..0f118b30 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-profile.json @@ -0,0 +1,22 @@ +{ + "defaults": null, + "profile": { + "agent": "9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c", + "author": "user", + "note": "", + "persona": { + "display_name": "ALLEN", + "plain_language": true, + "tone": "neutral", + "verbosity": "normal" + }, + "prev_sha256": "0000000000000000000000000000000000000000000000000000000000000000", + "revision": 1, + "root": "24293fdde35975affd77f8f99b4ecc02ef2f8ef0e3e44c4964f650c42bf39c40", + "schema": "aien.allen.profile/1", + "working_preferences": [], + "written_at": "2026-10-08T13:00:20Z" + }, + "revision": 1, + "state": "applied" +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-recall-personal.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-recall-personal.json new file mode 100644 index 00000000..12d532de --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-recall-personal.json @@ -0,0 +1 @@ +{"ok":true,"result":{"action":"memory_recall","context":"personal","result":{"context":"personal","items":[],"omitted":0,"unresolved":[]}},"step":"memory"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-records-total.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-records-total.json new file mode 100644 index 00000000..64bb6b74 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-records-total.json @@ -0,0 +1 @@ +30 diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-records.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-records.json new file mode 100644 index 00000000..7ed6ff82 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S6-records.json @@ -0,0 +1 @@ +5 diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-goals.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-goals.json new file mode 100644 index 00000000..1b5f06af --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-goals.json @@ -0,0 +1,13 @@ +{ + "goals": [ + { + "created": "2026-10-08T13:00:20Z", + "item": "8ca2e443a16d14fc38aaedd698b60eda", + "label": "host goal record, not a subject intent", + "scope": "work", + "state": "open", + "text": "Keep the garden plan short." + } + ], + "label": "host goal record, not a subject intent" +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-ledger.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-ledger.json new file mode 100644 index 00000000..e6141023 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-ledger.json @@ -0,0 +1,23 @@ +{ + "intents": [ + { + "authorization": 23, + "content_sha256": "280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04", + "executor": { + "pid": 1535822, + "start": 17814380 + }, + "intent": 24, + "path": "garden.md", + "prior_sha256": null, + "state": "DONE", + "state_record": 25, + "target": "/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md" + } + ], + "legacy_spent": [], + "resumes": [], + "revoked": [], + "stopped": null, + "stops": [] +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-memory.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-memory.json new file mode 100644 index 00000000..35c2df6d --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-memory.json @@ -0,0 +1,32 @@ +[ + { + "created": "2026-10-08T13:00:20Z", + "item": "ade5fe92896b50b4ddf5dd85d50a1347", + "kind": "fact", + "label": null, + "scope": "work", + "state": "live", + "text": "The garden plan must mention tomatoes.", + "version": 1 + }, + { + "created": "2026-10-08T13:00:20Z", + "item": "b258db67404334616697c70d01117639", + "kind": "fact", + "label": null, + "scope": "personal", + "state": "forgotten", + "text": null, + "version": 1 + }, + { + "created": "2026-10-08T13:00:20Z", + "item": "8ca2e443a16d14fc38aaedd698b60eda", + "kind": "goal", + "label": "host goal record, not a subject intent", + "scope": "work", + "state": "live", + "text": "Keep the garden plan short.", + "version": 1 + } +] diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-profile.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-profile.json new file mode 100644 index 00000000..0f118b30 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-profile.json @@ -0,0 +1,22 @@ +{ + "defaults": null, + "profile": { + "agent": "9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c", + "author": "user", + "note": "", + "persona": { + "display_name": "ALLEN", + "plain_language": true, + "tone": "neutral", + "verbosity": "normal" + }, + "prev_sha256": "0000000000000000000000000000000000000000000000000000000000000000", + "revision": 1, + "root": "24293fdde35975affd77f8f99b4ecc02ef2f8ef0e3e44c4964f650c42bf39c40", + "schema": "aien.allen.profile/1", + "working_preferences": [], + "written_at": "2026-10-08T13:00:20Z" + }, + "revision": 1, + "state": "applied" +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-recall-personal.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-recall-personal.json new file mode 100644 index 00000000..12d532de --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-recall-personal.json @@ -0,0 +1 @@ +{"ok":true,"result":{"action":"memory_recall","context":"personal","result":{"context":"personal","items":[],"omitted":0,"unresolved":[]}},"step":"memory"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-records-total.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-records-total.json new file mode 100644 index 00000000..8f92bfdd --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-records-total.json @@ -0,0 +1 @@ +35 diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-records.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-records.json new file mode 100644 index 00000000..7ed6ff82 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S7-records.json @@ -0,0 +1 @@ +5 diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-authorize.err b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-authorize.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-authorize.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-authorize.json new file mode 100644 index 00000000..69ea0a11 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-authorize.json @@ -0,0 +1 @@ +{"approvals":1,"authorization":{"digest":"fa090e05cafa2b3cf7a471cfafea7019a04fa542c4e7edb037b4c3396725c5b8","id":48,"kind":"authorization","links":[47],"machine_id":"6bf6aa257a726d031369194ad1edd5482b79a01395d6a5e486f6ad7ed93be261","text_sha256":"5929fba5726392f6fae00111aa0ba59909aa46f896d9df5574404bd05eae290e"},"ok":true,"receipt":{"arguments_digest":"sha256:e916494ddb91663d11aa0912127082ffd16e6280c9fe206cf162884d52e02963","path":"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/prov/1791464609499687258-1551031.json","result_digest":"sha256:779953a0dcbb3add4adc87ebf65cfa9589a5a3effe79d38758d0aa6ff77fb46e","sha256":"e9f16efa49512db31bc3de1fcf5210ae2f24d4eb93196eb15fe39a0777a3d830","success":true,"tool":"authorize"},"step":"S4"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-effects.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-effects.json new file mode 100644 index 00000000..f9a0d6d5 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-effects.json @@ -0,0 +1,41 @@ +{ + "ledger": { + "intents": [ + { + "authorization": 23, + "content_sha256": "280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04", + "executor": { + "pid": 1535822, + "start": 17814380 + }, + "intent": 24, + "path": "garden.md", + "prior_sha256": null, + "state": "DONE", + "state_record": 25, + "target": "/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md" + }, + { + "authorization": 48, + "content_sha256": "092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189", + "executor": { + "pid": 1551055, + "start": 17831991 + }, + "intent": 49, + "path": "garden-b.md", + "prior_sha256": null, + "state": "DONE", + "state_record": 50, + "target": "/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden-b.md" + } + ], + "legacy_spent": [], + "resumes": [], + "revoked": [], + "stopped": null, + "stops": [] + }, + "machine_id": "6bf6aa257a726d031369194ad1edd5482b79a01395d6a5e486f6ad7ed93be261", + "ok": true +} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-execute.err b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-execute.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-execute.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-execute.json new file mode 100644 index 00000000..dc14a2ad --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-execute.json @@ -0,0 +1 @@ +{"ack_error":null,"bytes":602,"content_sha256":"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189","disk_sha256":"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189","effect":{"id":50},"intent":{"digest":"8cf4ba06836acdfe457763088c141b347301f74816b9bc591bc9b7c3e45da4f8","id":49,"kind":"effect","links":[48],"machine_id":"6bf6aa257a726d031369194ad1edd5482b79a01395d6a5e486f6ad7ed93be261","text_sha256":"b2a17ddf537c2b3818b59dc8c0d2fea5035ef778fcc79d2dda5c134315e23c58"},"ok":true,"path":"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden-b.md","receipt":{"arguments_digest":"sha256:79baa56c1be7844f8583e8a621fe42f8486a9f06eeb7e546f07f63e11d77f721","path":"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/prov/1791464609525640777-1551055.json","result_digest":"sha256:a72750f26569edc3c53561a9973f874c130ec3a33f5776b3b399fae77ed7260e","sha256":"81e75530ee0faf5f7c33d520c91d412ac7652fae2cd73803dddd142dbc6193c1","success":true,"tool":"write_file"},"state":"DONE","step":"S5"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-propose.err b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-propose.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-propose.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-propose.json new file mode 100644 index 00000000..fb5da427 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-propose.json @@ -0,0 +1 @@ +{"ok":true,"report":{"aegis_pass_mask":1,"branch_count":1,"branches_reclaimed":0,"committed":true,"compose_commit":47,"compose_dir":"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/compose","cx_admissions":[45],"cx_candidates":[41,42],"cx_evidence":43,"cx_goal":36,"cx_promotion":44,"generation_record":46,"machine_id":"6bf6aa257a726d031369194ad1edd5482b79a01395d6a5e486f6ad7ed93be261","memory":{"context":"work","items_included":2,"items_omitted":0,"items_unresolved":0,"reason":null,"state":"included"},"outcome":1,"persona":{"display_name":"ALLEN","reason":null,"revision":1,"state":"applied"},"proposal":"filename: garden-b.md\n# Garden Plan for B\n\nThis is a garden plan for B. It includes a variety of plants and a detailed layout.\n\n## Plants\n\n* Tomatoes\n* Cucumbers\n* Carrots\n* Lettuce\n\n## Layout\n\nThe garden is divided into four sections:\n\n* Section A: Tomatoes and Cucumbers\n* Section B: Carrots and Lettuce\n* Section C: Tomatoes and Cucumbers\n* Section D: Carrots and Lettuce\n\n## Tools and Equipment\n\n* Gardening gloves\n* Watering can\n* Pruning shears\n* Rake\n\n## Maintenance\n\n* Water plants regularly\n* Prune plants to promote growth\n* Remove weeds\n\nThis garden plan should help you maintain a healthy and productive garden.","proposal_attempts":[{"aegis":"pass","attempt":1,"finish_reason":"eos","ms":127275,"outcome":"parsed","prompt_ids_sha256":"a97f2ac638317ed5bda172ee55833d49ea310928c558374a677cdab88eed7706","prompt_tokens":320,"reason":null,"text":"filename: garden-b.md\n# Garden Plan for B\n\nThis is a garden plan for B. It includes a variety of plants and a detailed layout.\n\n## Plants\n\n* Tomatoes\n* Cucumbers\n* Carrots\n* Lettuce\n\n## Layout\n\nThe garden is divided into four sections:\n\n* Section A: Tomatoes and Cucumbers\n* Section B: Carrots and Lettuce\n* Section C: Tomatoes and Cucumbers\n* Section D: Carrots and Lettuce\n\n## Tools and Equipment\n\n* Gardening gloves\n* Watering can\n* Pruning shears\n* Rake\n\n## Maintenance\n\n* Water plants regularly\n* Prune plants to promote growth\n* Remove weeds\n\nThis garden plan should help you maintain a healthy and productive garden.","text_sha256":"98e0200fcab86529b9f1847755a8f77a104bbbea92f554d9f5bc78457f45ae02","token_ids":[4480,29,82,30,13738,198,19,11273,4873,327,389,198,198,1348,314,253,4480,1252,327,389,30,657,2978,253,3175,282,2109,284,253,5861,10220,30,198,198,712,14081,198,198,26,8581,10674,198,26,47584,30465,198,26,2974,13073,198,26,37473,10139,198,198,712,45507,198,198,504,4480,314,6066,618,1876,6924,42,198,198,26,9961,330,42,8581,10674,284,47584,30465,198,26,9961,389,42,2974,13073,284,37473,10139,198,26,9961,340,42,8581,10674,284,47584,30465,198,26,9961,422,42,2974,13073,284,37473,10139,198,198,712,15204,284,21217,198,198,26,33961,16539,198,26,4643,274,416,198,26,2383,14575,1041,954,198,26,428,575,198,198,712,26153,198,198,26,4643,2109,5578,198,26,2383,1935,2109,288,4058,2063,198,26,15812,15741,198,198,1348,4480,1252,868,724,346,2125,253,2458,284,10231,4480,30],"tokens":171,"unmet_requirements":[]}],"proposal_content_sha256":"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189","proposal_path":"garden-b.md","proposal_sha256":"98e0200fcab86529b9f1847755a8f77a104bbbea92f554d9f5bc78457f45ae02","proposer":"model:StreamTurn-path","proposer_error":null,"record_digest":"d269dcc7c2d6aedcfb7edb5c7ef76774104d533a424c919ad68a1e8bdaf25176","requirements_recognized":["at most 200 words","a level-1 markdown heading (\"# \") as the first line"],"requirements_uncertain":[],"task":17745158645165492957,"uncommitted_proposal":null,"winner":0,"winner_digest":"474cb860f0f8c3450d4f0a9ef5200ce6400e60e791a52dd86ffd968aca701b11"},"step":"S3"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-recall.json b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-recall.json new file mode 100644 index 00000000..f816729d --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/S8-recall.json @@ -0,0 +1 @@ +{"authorizations":[{"digest":"f249f9096667c4b8fef16ab669647bb7c6d6c066c16b2b5fcff07e2fb8d4787e","id":23,"text":"{\"approver\":\"drake\",\"compose_commit\":22,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"cx_evidence\":18,\"cx_promotion\":19,\"desk_key_id\":\"5a2c9cca9a1d8485\",\"desk_nonce\":\"019afab61e2b0ea9eb22c9e6200aeee0\",\"minted_grant\":1,\"path\":\"garden.md\",\"prior_sha256\":null,\"proposal_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"target\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md\",\"workspace\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws\"}","verified":true},{"digest":"fa090e05cafa2b3cf7a471cfafea7019a04fa542c4e7edb037b4c3396725c5b8","id":48,"text":"{\"approver\":\"drake\",\"compose_commit\":47,\"content_sha256\":\"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189\",\"cx_evidence\":43,\"cx_promotion\":44,\"desk_key_id\":\"5a2c9cca9a1d8485\",\"desk_nonce\":\"330ab4f5e8c44dae3b4b27156aa968d8\",\"minted_grant\":1,\"path\":\"garden-b.md\",\"prior_sha256\":null,\"proposal_sha256\":\"98e0200fcab86529b9f1847755a8f77a104bbbea92f554d9f5bc78457f45ae02\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":46},\"target\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden-b.md\",\"workspace\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws\"}","verified":true}],"constraints":[],"effects":[{"digest":"2a7177c9b9465b4589bf25c947483a025d0fad6b5b4a79b22296430374ddca9a","id":21,"text":"{\"attempt\":1,\"daemon\":{\"pid\":1518831,\"start_ticks\":17811852,\"started_unix_ms\":\"1791464416363\"},\"finish_reason\":\"eos\",\"generation\":1,\"model_path\":\"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json\",\"model_sha256\":\"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c\",\"operation_id\":\"0\",\"origin\":\"compose_proposal\",\"output_text_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"output_token_ids_sha256\":\"de439e5bc460cba30389ca1a6ef79575ffee79609f924765ad8aed2fcaa0eb8b\",\"output_tokens\":89,\"prompt_ids_sha256\":\"9cd06f289717495d0ff18fb51b73fa9c260df85879be1f65eb413db0cb93f010\",\"request_id\":0,\"task\":3819644049534990415,\"tokenizer_path\":\"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/tokenizer.json\",\"tokenizer_sha256\":\"aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4\",\"total_tokens\":347,\"v\":1}","verified":true},{"digest":"c037294dc6d807c9eec49c00f6775c1b2329b9dea029ce76888be769b73b271d","id":22,"text":"{\"compose_commit\":1,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"cx_evidence\":18,\"cx_promotion\":19,\"path\":\"garden.md\",\"proposal_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"task\":3819644049534990415,\"workspace\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws\"}","verified":true},{"digest":"aeb036a7be917c36e039da7cb26f23f292811609857ba28e4def7fbc3ace86f1","id":24,"text":"{\"authorization\":23,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"executor\":{\"pid\":1535822,\"start\":17814380},\"path\":\"garden.md\",\"phase\":\"intent\",\"prior_sha256\":null,\"proposal_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"target\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md\",\"tool\":\"write_file\"}","verified":true},{"digest":"88f1567d22097211ce27cb45b0332116b5bdfe61802b9b6b3a30b8857e68747f","id":25,"text":"{\"authorization\":23,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"disk_error\":null,\"disk_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"executor_reported\":{\"bytes\":349,\"disk_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"error\":null},\"intent\":24,\"path\":\"garden.md\",\"phase\":\"ack\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"state\":\"DONE\",\"tool\":\"write_file\"}","verified":true},{"digest":"f820236821189a4434f07a4725395e6a550ab48bf447a02a44d7765077bc922b","id":46,"text":"{\"attempt\":1,\"daemon\":{\"pid\":1538038,\"start_ticks\":17815839,\"started_unix_ms\":\"1791464471040\"},\"finish_reason\":\"eos\",\"generation\":1,\"model_path\":\"/home/drakestapleton/models/SmolLM2-1.7B-Instruct-31b70e2e869a/model.safetensors\",\"model_sha256\":\"f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8\",\"operation_id\":\"0\",\"origin\":\"compose_proposal\",\"output_text_sha256\":\"98e0200fcab86529b9f1847755a8f77a104bbbea92f554d9f5bc78457f45ae02\",\"output_token_ids_sha256\":\"871f99744854c35b9f1e6036d10662db54275b93fa2baf6abf0b993b4a07ddaf\",\"output_tokens\":171,\"prompt_ids_sha256\":\"a97f2ac638317ed5bda172ee55833d49ea310928c558374a677cdab88eed7706\",\"request_id\":0,\"task\":17745158645165492957,\"tokenizer_path\":\"/home/drakestapleton/models/SmolLM2-1.7B-Instruct-31b70e2e869a/tokenizer.json\",\"tokenizer_sha256\":\"9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c\",\"total_tokens\":491,\"v\":1}","verified":true},{"digest":"dc9bb21350fe0f485a276e3c0864ef0e7b1e10fd887c47d89be65e3d1c3a0b32","id":47,"text":"{\"compose_commit\":1,\"content_sha256\":\"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189\",\"cx_evidence\":43,\"cx_promotion\":44,\"path\":\"garden-b.md\",\"proposal_sha256\":\"98e0200fcab86529b9f1847755a8f77a104bbbea92f554d9f5bc78457f45ae02\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":46},\"task\":17745158645165492957,\"workspace\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws\"}","verified":true},{"digest":"8cf4ba06836acdfe457763088c141b347301f74816b9bc591bc9b7c3e45da4f8","id":49,"text":"{\"authorization\":48,\"content_sha256\":\"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189\",\"executor\":{\"pid\":1551055,\"start\":17831991},\"path\":\"garden-b.md\",\"phase\":\"intent\",\"prior_sha256\":null,\"proposal_sha256\":\"98e0200fcab86529b9f1847755a8f77a104bbbea92f554d9f5bc78457f45ae02\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":46},\"target\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden-b.md\",\"tool\":\"write_file\"}","verified":true},{"digest":"ea8b9b7b3f26cbe56adc764a58c26fa8dbef6be39ee7cec9cee27b3aff64d28f","id":50,"text":"{\"authorization\":48,\"content_sha256\":\"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189\",\"disk_error\":null,\"disk_sha256\":\"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189\",\"executor_reported\":{\"bytes\":602,\"disk_sha256\":\"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189\",\"error\":null},\"intent\":49,\"path\":\"garden-b.md\",\"phase\":\"ack\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":46},\"state\":\"DONE\",\"tool\":\"write_file\"}","verified":true}],"machine_id":"6bf6aa257a726d031369194ad1edd5482b79a01395d6a5e486f6ad7ed93be261","ok":true,"recall":{"cited":[],"compose_dir":"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/compose","host":[{"cls":6,"digest":"2a7177c9b9465b4589bf25c947483a025d0fad6b5b4a79b22296430374ddca9a","id":21,"kind":65554,"links":[0,0,0,0],"note":"effect","subject":0,"tag":4,"text":"{\"attempt\":1,\"daemon\":{\"pid\":1518831,\"start_ticks\":17811852,\"started_unix_ms\":\"1791464416363\"},\"finish_reason\":\"eos\",\"generation\":1,\"model_path\":\"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json\",\"model_sha256\":\"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c\",\"operation_id\":\"0\",\"origin\":\"compose_proposal\",\"output_text_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"output_token_ids_sha256\":\"de439e5bc460cba30389ca1a6ef79575ffee79609f924765ad8aed2fcaa0eb8b\",\"output_tokens\":89,\"prompt_ids_sha256\":\"9cd06f289717495d0ff18fb51b73fa9c260df85879be1f65eb413db0cb93f010\",\"request_id\":0,\"task\":3819644049534990415,\"tokenizer_path\":\"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/tokenizer.json\",\"tokenizer_sha256\":\"aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4\",\"total_tokens\":347,\"v\":1}","verified":true},{"cls":6,"digest":"c037294dc6d807c9eec49c00f6775c1b2329b9dea029ce76888be769b73b271d","id":22,"kind":65554,"links":[19,18,0,0],"note":"effect","subject":0,"tag":4,"text":"{\"compose_commit\":1,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"cx_evidence\":18,\"cx_promotion\":19,\"path\":\"garden.md\",\"proposal_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"task\":3819644049534990415,\"workspace\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws\"}","verified":true},{"cls":6,"digest":"f249f9096667c4b8fef16ab669647bb7c6d6c066c16b2b5fcff07e2fb8d4787e","id":23,"kind":65556,"links":[22,0,0,0],"note":"authorization","subject":0,"tag":3,"text":"{\"approver\":\"drake\",\"compose_commit\":22,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"cx_evidence\":18,\"cx_promotion\":19,\"desk_key_id\":\"5a2c9cca9a1d8485\",\"desk_nonce\":\"019afab61e2b0ea9eb22c9e6200aeee0\",\"minted_grant\":1,\"path\":\"garden.md\",\"prior_sha256\":null,\"proposal_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"target\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md\",\"workspace\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws\"}","verified":true},{"cls":6,"digest":"aeb036a7be917c36e039da7cb26f23f292811609857ba28e4def7fbc3ace86f1","id":24,"kind":65554,"links":[23,0,0,0],"note":"effect","subject":0,"tag":4,"text":"{\"authorization\":23,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"executor\":{\"pid\":1535822,\"start\":17814380},\"path\":\"garden.md\",\"phase\":\"intent\",\"prior_sha256\":null,\"proposal_sha256\":\"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"target\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden.md\",\"tool\":\"write_file\"}","verified":true},{"cls":6,"digest":"88f1567d22097211ce27cb45b0332116b5bdfe61802b9b6b3a30b8857e68747f","id":25,"kind":65554,"links":[24,23,0,0],"note":"effect","subject":0,"tag":4,"text":"{\"authorization\":23,\"content_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"disk_error\":null,\"disk_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"executor_reported\":{\"bytes\":349,\"disk_sha256\":\"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04\",\"error\":null},\"intent\":24,\"path\":\"garden.md\",\"phase\":\"ack\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":21},\"state\":\"DONE\",\"tool\":\"write_file\"}","verified":true},{"cls":6,"digest":"f820236821189a4434f07a4725395e6a550ab48bf447a02a44d7765077bc922b","id":46,"kind":65554,"links":[0,0,0,0],"note":"effect","subject":0,"tag":4,"text":"{\"attempt\":1,\"daemon\":{\"pid\":1538038,\"start_ticks\":17815839,\"started_unix_ms\":\"1791464471040\"},\"finish_reason\":\"eos\",\"generation\":1,\"model_path\":\"/home/drakestapleton/models/SmolLM2-1.7B-Instruct-31b70e2e869a/model.safetensors\",\"model_sha256\":\"f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8\",\"operation_id\":\"0\",\"origin\":\"compose_proposal\",\"output_text_sha256\":\"98e0200fcab86529b9f1847755a8f77a104bbbea92f554d9f5bc78457f45ae02\",\"output_token_ids_sha256\":\"871f99744854c35b9f1e6036d10662db54275b93fa2baf6abf0b993b4a07ddaf\",\"output_tokens\":171,\"prompt_ids_sha256\":\"a97f2ac638317ed5bda172ee55833d49ea310928c558374a677cdab88eed7706\",\"request_id\":0,\"task\":17745158645165492957,\"tokenizer_path\":\"/home/drakestapleton/models/SmolLM2-1.7B-Instruct-31b70e2e869a/tokenizer.json\",\"tokenizer_sha256\":\"9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c\",\"total_tokens\":491,\"v\":1}","verified":true},{"cls":6,"digest":"dc9bb21350fe0f485a276e3c0864ef0e7b1e10fd887c47d89be65e3d1c3a0b32","id":47,"kind":65554,"links":[44,43,0,0],"note":"effect","subject":0,"tag":4,"text":"{\"compose_commit\":1,\"content_sha256\":\"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189\",\"cx_evidence\":43,\"cx_promotion\":44,\"path\":\"garden-b.md\",\"proposal_sha256\":\"98e0200fcab86529b9f1847755a8f77a104bbbea92f554d9f5bc78457f45ae02\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":46},\"task\":17745158645165492957,\"workspace\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws\"}","verified":true},{"cls":6,"digest":"fa090e05cafa2b3cf7a471cfafea7019a04fa542c4e7edb037b4c3396725c5b8","id":48,"kind":65556,"links":[47,0,0,0],"note":"authorization","subject":0,"tag":3,"text":"{\"approver\":\"drake\",\"compose_commit\":47,\"content_sha256\":\"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189\",\"cx_evidence\":43,\"cx_promotion\":44,\"desk_key_id\":\"5a2c9cca9a1d8485\",\"desk_nonce\":\"330ab4f5e8c44dae3b4b27156aa968d8\",\"minted_grant\":1,\"path\":\"garden-b.md\",\"prior_sha256\":null,\"proposal_sha256\":\"98e0200fcab86529b9f1847755a8f77a104bbbea92f554d9f5bc78457f45ae02\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":46},\"target\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden-b.md\",\"workspace\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws\"}","verified":true},{"cls":6,"digest":"8cf4ba06836acdfe457763088c141b347301f74816b9bc591bc9b7c3e45da4f8","id":49,"kind":65554,"links":[48,0,0,0],"note":"effect","subject":0,"tag":4,"text":"{\"authorization\":48,\"content_sha256\":\"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189\",\"executor\":{\"pid\":1551055,\"start\":17831991},\"path\":\"garden-b.md\",\"phase\":\"intent\",\"prior_sha256\":null,\"proposal_sha256\":\"98e0200fcab86529b9f1847755a8f77a104bbbea92f554d9f5bc78457f45ae02\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":46},\"target\":\"/home/drakestapleton/.claude/jobs/294ea9b6/tmp/demo/run/ws/garden-b.md\",\"tool\":\"write_file\"}","verified":true},{"cls":6,"digest":"ea8b9b7b3f26cbe56adc764a58c26fa8dbef6be39ee7cec9cee27b3aff64d28f","id":50,"kind":65554,"links":[49,48,0,0],"note":"effect","subject":0,"tag":4,"text":"{\"authorization\":48,\"content_sha256\":\"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189\",\"disk_error\":null,\"disk_sha256\":\"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189\",\"executor_reported\":{\"bytes\":602,\"disk_sha256\":\"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189\",\"error\":null},\"intent\":49,\"path\":\"garden-b.md\",\"phase\":\"ack\",\"provenance\":{\"allen_agent\":\"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c\",\"generation_record\":46},\"state\":\"DONE\",\"tool\":\"write_file\"}","verified":true}],"machine_id":"6bf6aa257a726d031369194ad1edd5482b79a01395d6a5e486f6ad7ed93be261","missing":[],"prefix":null,"prefix_digest":null,"records_total":50},"repairs":[],"step":"S8"} diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/garden-b.md b/docs/campaigns/allen-e2e/artifacts-v4-gb10/garden-b.md new file mode 100644 index 00000000..fa8e996f --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/garden-b.md @@ -0,0 +1,34 @@ +# Garden Plan for B + +This is a garden plan for B. It includes a variety of plants and a detailed layout. + +## Plants + +* Tomatoes +* Cucumbers +* Carrots +* Lettuce + +## Layout + +The garden is divided into four sections: + +* Section A: Tomatoes and Cucumbers +* Section B: Carrots and Lettuce +* Section C: Tomatoes and Cucumbers +* Section D: Carrots and Lettuce + +## Tools and Equipment + +* Gardening gloves +* Watering can +* Pruning shears +* Rake + +## Maintenance + +* Water plants regularly +* Prune plants to promote growth +* Remove weeds + +This garden plan should help you maintain a healthy and productive garden. diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/garden.md b/docs/campaigns/allen-e2e/artifacts-v4-gb10/garden.md new file mode 100644 index 00000000..7ac10f4c --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/garden.md @@ -0,0 +1,10 @@ +# Garden Plan + +- Tomatoes: Plant in the sunny south-facing bed. +- Space: 18 inches between plants. +- Soil: Well-draining, enriched with compost. +- Water: Daily morning watering. +- Companion plants: Marigolds to deter pests. +- Harvest: Begin in late June. + +Keep it simple and focused. No extra details. Tomatoes are included as required. diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/good-control.md b/docs/campaigns/allen-e2e/artifacts-v4-gb10/good-control.md new file mode 100644 index 00000000..66d73772 --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/good-control.md @@ -0,0 +1,3 @@ +# Garden plan + +Plant tomatoes in May. diff --git a/docs/campaigns/allen-e2e/artifacts-v4-gb10/red-garden.md b/docs/campaigns/allen-e2e/artifacts-v4-gb10/red-garden.md new file mode 100644 index 00000000..1229bc8c --- /dev/null +++ b/docs/campaigns/allen-e2e/artifacts-v4-gb10/red-garden.md @@ -0,0 +1,4 @@ +# Garden plan + +Plant carrots and beans along the south fence. +Note: PERSONAL-CANARY-7741 diff --git a/docs/campaigns/allen-e2e/receipts-v4-gb10.jsonl b/docs/campaigns/allen-e2e/receipts-v4-gb10.jsonl new file mode 100644 index 00000000..df78a19b --- /dev/null +++ b/docs/campaigns/allen-e2e/receipts-v4-gb10.jsonl @@ -0,0 +1,11 @@ +{"step":"S0","status":"PASS","label":"real-GB10","stack":"candidate stack at 6e24bbce2b1b, not main","spec":"DEMO-v4-gb10","evidence":"daemon up on M-A (GB10, native Omega engine), log: 'Authorize MAC: on (aien compose authorize requires the approval desk key MAC)', allen status identity=not_engaged, 0 ALLEN state directories before S1","repo_commit":"6e24bbce2b1b2a83269de8d74402d10fb8c8b45b","daemon_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","cli_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","backend_line":"Backend: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json (tokenizer loaded, model_id=qwen3-4b-instruct-2507-cdbee75, config=qwen3-4b-instruct-2507-cdbee75 (config.json), model_sha256=d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c, tokenizer_sha256=aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4)","model_dir":"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75","model_weights_digest":"eb97565b601744f836884f12d7803767fc82ffc94addb02904d5c2e13882fd6b","daemon_model_sha256":"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c","tokenizer_sha256":"aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4","authorize_mac_line":"Authorize MAC: on (aien compose authorize requires the approval desk key MAC)","allen_logical_agent_id":"none","utc":"2026-10-08T13:00:03Z","gb10_reservation_line":"GB10_SERVING_RESERVATION reserved bytes=194170880 (attention pool 33554432 + q/out 16384x2 + table 20480; matmul activation 4980736 + result 155582464) bounds: context<=4096 seqs<=1 rows<=256 k<=9728 n<=151936 logits_n<=151936 kernel_slots=128; prepared 1536 matmul kernel calls in 29 ms, then sealed"} +{"step":"S1","status":"PASS","label":"real-GB10","stack":"candidate stack at 6e24bbce2b1b, not main","spec":"DEMO-v4-gb10","evidence":"ID0=9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c (daemon log 'ALLEN: engaged agent=...', allen status fingerprint 9ff5d749); AgentRoot 24293fdde35975affd77f8f99b4ecc02ef2f8ef0e3e44c4964f650c42bf39c40; one identity","repo_commit":"6e24bbce2b1b2a83269de8d74402d10fb8c8b45b","daemon_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","cli_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","backend_line":"Backend: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json (tokenizer loaded, model_id=qwen3-4b-instruct-2507-cdbee75, config=qwen3-4b-instruct-2507-cdbee75 (config.json), model_sha256=d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c, tokenizer_sha256=aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4)","model_dir":"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75","model_weights_digest":"eb97565b601744f836884f12d7803767fc82ffc94addb02904d5c2e13882fd6b","daemon_model_sha256":"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c","tokenizer_sha256":"aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4","authorize_mac_line":"Authorize MAC: on (aien compose authorize requires the approval desk key MAC)","allen_logical_agent_id":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","utc":"2026-10-08T13:00:20Z","agent_root":"24293fdde35975affd77f8f99b4ecc02ef2f8ef0e3e44c4964f650c42bf39c40","cortex_lineage_record1":"58e75bb57fc374ca2ffada14418c828f800c5a38d9cc41e12fa45b6773482b25","subject_kind":"host-built fixture (test-only encoder), adopted once by AIEN_ALLEN_ADOPT; real subjects come only from AIENOS cs_provision (NOT_RUN)"} +{"step":"S2","status":"PASS","label":"real-GB10","stack":"candidate stack at 6e24bbce2b1b, not main","spec":"DEMO-v4-gb10","evidence":"profile revision 1 plain-language=1 under ID0; memory inspect shows exactly N-work (work), N-pers (personal), G1 (work goal); goals list shows exactly G1","repo_commit":"6e24bbce2b1b2a83269de8d74402d10fb8c8b45b","daemon_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","cli_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","backend_line":"Backend: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json (tokenizer loaded, model_id=qwen3-4b-instruct-2507-cdbee75, config=qwen3-4b-instruct-2507-cdbee75 (config.json), model_sha256=d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c, tokenizer_sha256=aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4)","model_dir":"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75","model_weights_digest":"eb97565b601744f836884f12d7803767fc82ffc94addb02904d5c2e13882fd6b","daemon_model_sha256":"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c","tokenizer_sha256":"aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4","authorize_mac_line":"Authorize MAC: on (aien compose authorize requires the approval desk key MAC)","allen_logical_agent_id":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","utc":"2026-10-08T13:00:20Z"} +{"step":"S3","status":"PASS","label":"real-GB10","stack":"candidate stack at 6e24bbce2b1b, not main","spec":"DEMO-v4-gb10","evidence":"commit DONE, MemoryReport context=work items_included=2, C1-C5 hold, 54 words, sha256 280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04","repo_commit":"6e24bbce2b1b2a83269de8d74402d10fb8c8b45b","daemon_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","cli_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","backend_line":"Backend: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json (tokenizer loaded, model_id=qwen3-4b-instruct-2507-cdbee75, config=qwen3-4b-instruct-2507-cdbee75 (config.json), model_sha256=d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c, tokenizer_sha256=aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4)","model_dir":"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75","model_weights_digest":"eb97565b601744f836884f12d7803767fc82ffc94addb02904d5c2e13882fd6b","daemon_model_sha256":"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c","tokenizer_sha256":"aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4","authorize_mac_line":"Authorize MAC: on (aien compose authorize requires the approval desk key MAC)","allen_logical_agent_id":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","utc":"2026-10-08T13:00:33Z","file":"garden.md","constraints_failed":"","effect_state":"DONE","memory_context":"work","items_included":2,"grant_id":23} +{"step":"S3-red","status":"PASS","label":"real-GB10","stack":"candidate stack at 6e24bbce2b1b, not main","spec":"DEMO-v4-gb10","evidence":"checker on the hand-written document (breaks C3 and C5) reports exactly: C3 C5; positive control (good document) reports: [none]","repo_commit":"6e24bbce2b1b2a83269de8d74402d10fb8c8b45b","daemon_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","cli_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","backend_line":"Backend: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json (tokenizer loaded, model_id=qwen3-4b-instruct-2507-cdbee75, config=qwen3-4b-instruct-2507-cdbee75 (config.json), model_sha256=d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c, tokenizer_sha256=aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4)","model_dir":"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75","model_weights_digest":"eb97565b601744f836884f12d7803767fc82ffc94addb02904d5c2e13882fd6b","daemon_model_sha256":"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c","tokenizer_sha256":"aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4","authorize_mac_line":"Authorize MAC: on (aien compose authorize requires the approval desk key MAC)","allen_logical_agent_id":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","utc":"2026-10-08T13:00:33Z","checker_failed":"C3 C5"} +{"step":"S4","status":"PASS","label":"real-GB10","stack":"candidate stack at 6e24bbce2b1b, not main","spec":"DEMO-v4-gb10","evidence":"ledger links grant id, proposal sha256, content sha256 (= garden.md on disk), M-A model digest and ID0","repo_commit":"6e24bbce2b1b2a83269de8d74402d10fb8c8b45b","daemon_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","cli_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","backend_line":"Backend: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json (tokenizer loaded, model_id=qwen3-4b-instruct-2507-cdbee75, config=qwen3-4b-instruct-2507-cdbee75 (config.json), model_sha256=d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c, tokenizer_sha256=aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4)","model_dir":"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75","model_weights_digest":"eb97565b601744f836884f12d7803767fc82ffc94addb02904d5c2e13882fd6b","daemon_model_sha256":"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c","tokenizer_sha256":"aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4","authorize_mac_line":"Authorize MAC: on (aien compose authorize requires the approval desk key MAC)","allen_logical_agent_id":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","utc":"2026-10-08T13:00:33Z","grant_id":"23","proposal_sha256":"486f8cf8687a912c1a0331834816c437b672e862f4a155bdd0dd35b93df8a726","content_sha256":"280270d87bc25cbd20068ee1f69d7ac23e3ef6ba8abce3f43a986698ab9b6e04","model_digest_expected":"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c","link_chain":{"generation_record":"21","generation_record_model_sha256":"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c","chain":{"compose_commit":"22","grant":"23","intent":"24","ack":"25"},"records":[{"record":22,"provenance":{"allen_agent":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","generation_record":21}},{"record":23,"provenance":{"allen_agent":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","generation_record":21}},{"record":24,"provenance":{"allen_agent":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","generation_record":21}},{"record":25,"provenance":{"allen_agent":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","generation_record":21}}]},"ledger_links":{"grant_id":true,"proposal_sha256":true,"content_sha256_equals_disk":true,"model_digest":true,"logical_agent_id":true}} +{"step":"S5","status":"PASS","label":"real-GB10","stack":"candidate stack at 6e24bbce2b1b, not main","spec":"DEMO-v4-gb10","evidence":"graceful stop (exit 0, session closed) then restart on M-A (GB10): ID0 same, profile/notes/G1 identical, S3 intent still DONE and ledger+record count unchanged (not re-executed), garden.md same sha256, inode and mtime; Replay reconcile: 0 claims, 0 -> NOT_EXECUTED, 0 -> UNCERTAIN; hard-crash recovery on GB10: NOT TESTED (chip safety rule)","repo_commit":"6e24bbce2b1b2a83269de8d74402d10fb8c8b45b","daemon_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","cli_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","backend_line":"Backend: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json (tokenizer loaded, model_id=qwen3-4b-instruct-2507-cdbee75, config=qwen3-4b-instruct-2507-cdbee75 (config.json), model_sha256=d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c, tokenizer_sha256=aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4)","model_dir":"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75","model_weights_digest":"eb97565b601744f836884f12d7803767fc82ffc94addb02904d5c2e13882fd6b","daemon_model_sha256":"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c","tokenizer_sha256":"aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4","authorize_mac_line":"Authorize MAC: on (aien compose authorize requires the approval desk key MAC)","allen_logical_agent_id":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","utc":"2026-10-08T13:00:46Z"} +{"step":"S6","status":"PASS","label":"real-GB10","stack":"candidate stack at 6e24bbce2b1b, not main","spec":"DEMO-v4-gb10","evidence":"forgot N-pers: inspect no longer shows its text (its row remains as state 'forgotten' with no text), recall --context personal returns 0 items; files under daemon state still containing the canary text: 0","repo_commit":"6e24bbce2b1b2a83269de8d74402d10fb8c8b45b","daemon_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","cli_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","backend_line":"Backend: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json (tokenizer loaded, model_id=qwen3-4b-instruct-2507-cdbee75, config=qwen3-4b-instruct-2507-cdbee75 (config.json), model_sha256=d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c, tokenizer_sha256=aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4)","model_dir":"/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75","model_weights_digest":"eb97565b601744f836884f12d7803767fc82ffc94addb02904d5c2e13882fd6b","daemon_model_sha256":"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c","tokenizer_sha256":"aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4","authorize_mac_line":"Authorize MAC: on (aien compose authorize requires the approval desk key MAC)","allen_logical_agent_id":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","utc":"2026-10-08T13:00:46Z","canary_files_remaining_in_daemon_state":0} +{"step":"S7","status":"PASS","label":"real-CPU","stack":"candidate stack at 6e24bbce2b1b, not main","spec":"DEMO-v4-gb10","evidence":"graceful stop (exit 0, session closed) then start on M-B: Model: line and Backend: line and model digest changed (d6c42883a895 -> f55217be716b); ID0 same; profile, N-work, G1 unchanged; N-pers still absent","repo_commit":"6e24bbce2b1b2a83269de8d74402d10fb8c8b45b","daemon_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","cli_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","backend_line":"Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/SmolLM2-1.7B-Instruct-31b70e2e869a/model.safetensors (tokenizer loaded, model_id=SmolLM2-1.7B-Instruct-31b70e2e869a, config=SmolLM2-1.7B-Instruct-31b70e2e869a (config.json), model_sha256=f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8, tokenizer_sha256=9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c)","model_dir":"/home/drakestapleton/models/SmolLM2-1.7B-Instruct-31b70e2e869a","model_weights_digest":"f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8","daemon_model_sha256":"f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8","tokenizer_sha256":"9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c","authorize_mac_line":"Authorize MAC: on (aien compose authorize requires the approval desk key MAC)","allen_logical_agent_id":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","utc":"2026-10-08T13:01:22Z","before":{"backend_line":"Backend: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json (tokenizer loaded, model_id=qwen3-4b-instruct-2507-cdbee75, config=qwen3-4b-instruct-2507-cdbee75 (config.json), model_sha256=d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c, tokenizer_sha256=aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4)","daemon_model_sha256":"d6c42883a895dfef5b0080ed2116a1bcd764f558406b98923d675978a1abf29c"},"after":{"backend_line":"Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/SmolLM2-1.7B-Instruct-31b70e2e869a/model.safetensors (tokenizer loaded, model_id=SmolLM2-1.7B-Instruct-31b70e2e869a, config=SmolLM2-1.7B-Instruct-31b70e2e869a (config.json), model_sha256=f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8, tokenizer_sha256=9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c)","daemon_model_sha256":"f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8"}} +{"step":"S8","status":"PASS","label":"real-CPU","stack":"candidate stack at 6e24bbce2b1b, not main","spec":"DEMO-v4-gb10","evidence":"commit DONE, MemoryReport context=work items_included=2, C1-C5 hold, 107 words, sha256 092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189; provenance links all present (incl. M-B digest and ID0)","repo_commit":"6e24bbce2b1b2a83269de8d74402d10fb8c8b45b","daemon_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","cli_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","backend_line":"Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/SmolLM2-1.7B-Instruct-31b70e2e869a/model.safetensors (tokenizer loaded, model_id=SmolLM2-1.7B-Instruct-31b70e2e869a, config=SmolLM2-1.7B-Instruct-31b70e2e869a (config.json), model_sha256=f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8, tokenizer_sha256=9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c)","model_dir":"/home/drakestapleton/models/SmolLM2-1.7B-Instruct-31b70e2e869a","model_weights_digest":"f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8","daemon_model_sha256":"f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8","tokenizer_sha256":"9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c","authorize_mac_line":"Authorize MAC: on (aien compose authorize requires the approval desk key MAC)","allen_logical_agent_id":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","utc":"2026-10-08T13:03:29Z","file":"garden-b.md","constraints_failed":"","effect_state":"DONE","memory_context":"work","items_included":2,"grant_id":48,"provenance":{"grant_id":"48","proposal_sha256":"98e0200fcab86529b9f1847755a8f77a104bbbea92f554d9f5bc78457f45ae02","content_sha256":"092c4c5ca2383308a27f325e8b8959e6b82aa31bd449feada263dd85385b9189","model_digest_expected":"f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8","link_chain":{"generation_record":"46","generation_record_model_sha256":"f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8","chain":{"compose_commit":"47","grant":"48","intent":"49","ack":"50"},"records":[{"record":47,"provenance":{"allen_agent":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","generation_record":46}},{"record":48,"provenance":{"allen_agent":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","generation_record":46}},{"record":49,"provenance":{"allen_agent":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","generation_record":46}},{"record":50,"provenance":{"allen_agent":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","generation_record":46}}]},"ledger_links":{"grant_id":true,"proposal_sha256":true,"content_sha256_equals_disk":true,"model_digest":true,"logical_agent_id":true}}} +{"step":"GB10-lives","status":"PASS","label":"real-GB10","stack":"candidate stack at 6e24bbce2b1b, not main","spec":"DEMO-v4-gb10","evidence":"per GB10 daemon life: GB10 Backend line, reservation line, 0 allocation/RM failures, 0 fallback lines, 0 NVRM log lines (daemon log and kernel log delta), no seat-kill line, graceful stop (exit 0, shutdown acked, socket removed). Sealed binary sha256 152c0aecce662f618bf683c8854d6de56a7075e0461c2433570f4c15b68571a5. UNKNOWN means the kernel log was unreadable. hard-crash recovery on GB10: NOT TESTED (chip safety rule)","repo_commit":"6e24bbce2b1b2a83269de8d74402d10fb8c8b45b","daemon_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","cli_sha256":"d133c38a00621396594974b4f989e87e7aa606d2b1eb74d26d344984fb8c4b85","backend_line":"Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)","model_line":"Model: checkpoint loaded from /home/drakestapleton/models/SmolLM2-1.7B-Instruct-31b70e2e869a/model.safetensors (tokenizer loaded, model_id=SmolLM2-1.7B-Instruct-31b70e2e869a, config=SmolLM2-1.7B-Instruct-31b70e2e869a (config.json), model_sha256=f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8, tokenizer_sha256=9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c)","model_dir":"/home/drakestapleton/models/SmolLM2-1.7B-Instruct-31b70e2e869a","model_weights_digest":"f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8","daemon_model_sha256":"f55217be716b6a997b97b9d8d7eb6fad02e00858f5010ec24f64603c3a98a0e8","tokenizer_sha256":"9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c","authorize_mac_line":"Authorize MAC: on (aien compose authorize requires the approval desk key MAC)","allen_logical_agent_id":"9ff5d749bf9a56d3dad935eed21e3129debf24425322e72a90c8928ad5970a3c","utc":"2026-10-08T13:03:30Z","gb10_lives":[{"life":1,"log":"daemon-1.log","backend_line":"Backend: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)","backend_gb10":true,"reservation_line":"GB10_SERVING_RESERVATION reserved bytes=194170880 (attention pool 33554432 + q/out 16384x2 + table 20480; matmul activation 4980736 + result 155582464) bounds: context<=4096 seqs<=1 rows<=256 k<=9728 n<=151936 logits_n<=151936 kernel_slots=128; prepared 1536 matmul kernel calls in 29 ms, then sealed","reservation_line_present":true,"fallback_lines":0,"nvrm_log_lines":0,"alloc_failure_lines":0,"rm_failure_lines":0,"seat_kill_lines":0,"daemon_exit":"0","stop":"graceful stop (exit 0, session closed)","stop_clean":true,"shutdown_requests_sent":1,"shutdown_acked":"yes","socket_removed":"yes","nvrm_kernel_before":"1533","nvrm_kernel_after":"1533","nvrm_kernel_delta":0},{"life":2,"log":"daemon-2.log","backend_line":"Backend: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)","backend_gb10":true,"reservation_line":"GB10_SERVING_RESERVATION reserved bytes=194170880 (attention pool 33554432 + q/out 16384x2 + table 20480; matmul activation 4980736 + result 155582464) bounds: context<=4096 seqs<=1 rows<=256 k<=9728 n<=151936 logits_n<=151936 kernel_slots=128; prepared 1536 matmul kernel calls in 22 ms, then sealed","reservation_line_present":true,"fallback_lines":0,"nvrm_log_lines":0,"alloc_failure_lines":0,"rm_failure_lines":0,"seat_kill_lines":0,"daemon_exit":"0","stop":"graceful stop (exit 0, session closed)","stop_clean":true,"shutdown_requests_sent":1,"shutdown_acked":"yes","socket_removed":"yes","nvrm_kernel_before":"1533","nvrm_kernel_after":"1533","nvrm_kernel_delta":0},{"life":3,"log":"daemon-3.log","backend_line":"Backend: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)","backend_gb10":true,"reservation_line":"GB10_SERVING_RESERVATION reserved bytes=194170880 (attention pool 33554432 + q/out 16384x2 + table 20480; matmul activation 4980736 + result 155582464) bounds: context<=4096 seqs<=1 rows<=256 k<=9728 n<=151936 logits_n<=151936 kernel_slots=128; prepared 1536 matmul kernel calls in 21 ms, then sealed","reservation_line_present":true,"fallback_lines":0,"nvrm_log_lines":0,"alloc_failure_lines":0,"rm_failure_lines":0,"seat_kill_lines":0,"daemon_exit":"0","stop":"graceful stop (exit 0, session closed)","stop_clean":true,"shutdown_requests_sent":1,"shutdown_acked":"yes","socket_removed":"yes","nvrm_kernel_before":"1533","nvrm_kernel_after":"1533","nvrm_kernel_delta":0}],"gb10_binary_sha256":"152c0aecce662f618bf683c8854d6de56a7075e0461c2433570f4c15b68571a5","gb10_binary_source_commit":"6bbe2ec269768c7c9b94b9484c757ca45f55f564","hard_crash_recovery_on_gb10":"NOT TESTED (chip safety rule)"} diff --git a/scripts/.crumb b/scripts/.crumb index 7aa5f548..84ce2fb0 100644 --- a/scripts/.crumb +++ b/scripts/.crumb @@ -4,14 +4,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-08T12:46:30Z", + "compiled_at": "2026-10-08T13:07:13Z", "compiler": "crumb-compile/1", - "digest": "sha256:74a477db88f9514eddafa944edf5fcb54c121c0fdba97b24980362a056e6dea6", + "digest": "sha256:2ee39207bb3a0f0466731ae4e9adbe2063cd8b4f82456a1c2b3fd7588974a557", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 26, - "generated_at_commit": "fb9c2c4440cd756d547f37730749abda43dbfe91", - "source_tree": "sha256:df1592ba8b677a857115865bd5fbed1af5294f6e91e12c8f86901449e82c8a77" + "generated_at_commit": "e6a0bf74914fcc3eaf7547f88398ea3bb0c48054", + "source_tree": "sha256:aa5aca35630193b84fef860fcb8135160b2652f731958e913b50ca6c255b3248" } }, "parent": { diff --git a/scripts/allen_e2e_demo.sh b/scripts/allen_e2e_demo.sh index a1359ef5..6696da5e 100755 --- a/scripts/allen_e2e_demo.sh +++ b/scripts/allen_e2e_demo.sh @@ -1,15 +1,18 @@ #!/usr/bin/env bash # ALLEN end-to-end demo driver (docs/campaigns/allen-e2e/DEMO-v1.md and DEMO-v2.md, arch#162). -# DEMO_VERSION=v1 (default), v2 or v3 selects the predeclared spec; v2 differs only by its three named changes, -# v3 is v2 unchanged. +# DEMO_VERSION=v1 (default), v2, v3 or v4-gb10 selects the predeclared spec; v2 differs only by its three named changes, +# v3 is v2 unchanged; v4-gb10 is v2 with M-A = Qwen3-4B on the GB10 (sealed sc#277 candidate binary) and M-B = SmolLM2 on CPU +# (DEMO-v4-gb10.md). v4-gb10 sends no signal to a live GB10 daemon: see "stopping a GB10 daemon" below. # # scripts/allen_e2e_demo.sh run build, run S0-S8 + S3-red, write the receipts # scripts/allen_e2e_demo.sh check F the C1-C5 document checker on file F (prints failed ids) # scripts/allen_e2e_demo.sh selftest checker positive and negative controls only (no daemon) +# scripts/allen_e2e_demo.sh selftest-gb GB10 graceful-stop logic against fake daemons, kill shadowed (no chip) # # The spec is followed as written. Nothing here edits it, retries a model step # with a changed prompt, or weakens a criterion. Real CPU only: the daemon must -# print the CPU-reference backend line or the run stops. No Python, no GPU. +# print the CPU-reference backend line or the run stops (v4-gb10: M-A must print the GB10 line and the +# reservation line). No Python. The GPU is used only by v4-gb10, only by the sealed daemon. # # Needs: CLAUDE_JOB_DIR (state under $CLAUDE_JOB_DIR/tmp/demo), the prebuilt omega # compose archive at $CLAUDE_JOB_DIR/tmp/librx_compose.a, jq, iconv, sha256sum. @@ -53,11 +56,193 @@ selftest() { return $rc } +# ---- v4-gb10: stopping a GB10 daemon (chip safety) --------------------------- +# HARD RULE: no signal of any kind is ever sent to a process that holds a GB10 channel. A GB10 daemon +# is stopped only through its own shutdown path (the control Shutdown op, sent by `aien-cli compose +# shutdown`, crates/aien-cli/src/compose.rs "shutdown"), and the script then waits with NO timeout for +# the daemon to exit. `aien-cli stop` is not used: it also runs `pkill -f spark-cockpit`. The only +# signal-sending commands left in this file act on CPU daemons (v1-v3, and M-B in v4-gb10); each is +# unreachable while a GB10 daemon is live (GB_LIVE_PID set; see safe_kill9, kill9, start_daemon and the exit trap). +alive() { [ -d "/proc/$1" ]; } # liveness by /proc, not by a signal +GB_POLL=${GB_POLL:-5} +nvrm_count() { # number of NVRM lines in the kernel log, or "unavailable" + local t; t=$({ sudo -n dmesg 2>/dev/null || dmesg 2>/dev/null; }) || true + if [ -z "$t" ]; then echo unavailable; else printf '%s\n' "$t" | grep -aic nvrm || true; fi +} +gb_send_shutdown() { cli compose shutdown >"$LOGS/shutdown-$DN.json" 2>&1 && grep -q '"shutdown": *true' "$LOGS/shutdown-$DN.json"; } +gb_life_record() { # appends this daemon life's facts (from its log) to GB_LIVES + local log=$DLOG nb na delta bk rv + bk=$(grep -a -m1 '^ Backend:' "$log" | sed 's/^ *//') + rv=$(grep -a -m1 'GB10_SERVING_RESERVATION reserved bytes=' "$log" | sed 's/^ *//' | cut -c1-300) + nb=${NVRM_BEFORE:-unavailable}; na=$(nvrm_count) + case "$nb$na" in *unavailable*) delta=unavailable ;; *) delta=$((na - nb)) ;; esac + GB_LAST_DELTA=$delta + GB_LIVES=$(printf '%s' "$GB_LIVES" | jq -c --argjson n "$DN" --arg log "$(basename "$log")" --arg bk "$bk" --arg rv "$rv" \ + --argjson fb "$(grep -aic fallback "$log")" \ + --argjson nvl "$(grep -a -i nvrm "$log" | grep -avc WARNING)" \ + --argjson af "$(grep -a 'GB10_SERVING_ALLOC' "$log" | grep -acE 'failures=[1-9]|failures_since_warmup=[1-9]|refused')" \ + --argjson rm "$(grep -aiE 'NV_ERR_NO_MEMORY|status 0x51|RM_ALLOC.*fail' "$log" | grep -avc WARNING)" \ + --argjson sk "$(grep -aci 'seat kill' "$log")" \ + --arg exit "${GB_EXIT:-unknown}" --arg stop "${GB_STOP_DESC:-}" --argjson ok "${GB_STOP_OK:-0}" \ + --arg nb "$nb" --arg na "$na" --arg delta "$delta" --arg ack "$GB_ACK" --argjson att "${GB_ATT:-0}" --arg gone "$GB_GONE" \ + '. + [{life:$n,log:$log,backend_line:$bk,backend_gb10:($bk|contains("OmegaGb10Backend")),reservation_line:$rv, + reservation_line_present:($rv|length>0),fallback_lines:$fb,nvrm_log_lines:$nvl,alloc_failure_lines:$af, + rm_failure_lines:$rm,seat_kill_lines:$sk,daemon_exit:$exit,stop:$stop,stop_clean:($ok==1),shutdown_requests_sent:$att,shutdown_acked:$ack,socket_removed:$gone, + nvrm_kernel_before:$nb,nvrm_kernel_after:$na, + nvrm_kernel_delta:(if $delta=="unavailable" then "unavailable" else ($delta|tonumber) end)}]') +} +GB_STOP_OK=0; GB_STOP_DESC=""; GB_EXIT=""; GB_UNCLEAN=0; GB_ACK=no; GB_ATT=0; GB_GONE=no; GB_LAST_DELTA=unavailable +GB_STOPPING=0; SIG_PENDING=""; SPAWNING=0; GB_LIVE_PID="" +GB_SIGS="INT TERM HUP QUIT USR1 USR2 PIPE ALRM" +# A GB10 daemon is started in its own session with HUP and INT ignored, so a terminal Ctrl-C, a hangup or a signal to the +# driver's process group cannot reach it. `( trap '' HUP INT; exec setsid CMD )&` keeps $! equal to the daemon's pid: +# setsid only forks when its caller is a process group leader, which a background subshell of a script is not (checked +# by the session test in start_daemon and by selftest-gb). +# GB_LIVE_PID is the pid of a live GB10 daemon: set at spawn (signals are deferred while SPAWNING=1, so the handler never +# sees a half-started daemon), cleared only after the graceful stop's wait has returned. While it is set, nothing in this +# script may signal that pid (safe_kill9 refuses; kill9, the exit trap and the signal handler all route to gb_stop). +gb_spawn() { # logfile cmd...; sets DPID, DAEMON_GB, GB_LIVE_PID + local log=$1; shift + SPAWNING=1; DAEMON_GB=1 + ( trap '' HUP INT; exec setsid "$@" >"$log" 2>&1 "${LOGS:-.}/STOP-BY-HAND.txt" 2>/dev/null + eval "${GB_AFTER_SPAWN_HOOK:-:}" # test hook: a signal here sees a live GB10 daemon + [ -z "$SIG_PENDING" ] || gb_stop # a signal deferred during the spawn: stop gracefully now (exits 130) +} +safe_kill9() { # the only place a CPU daemon is killed; refuses the live GB10 pid + if [ -n "$GB_LIVE_PID" ] && [ "$1" = "$GB_LIVE_PID" ]; then echo "REFUSING to signal live GB10 daemon $1" >&2; return 1; fi + kill -9 "$1" 2>/dev/null +} +gb_install_traps() { local s; for s in $GB_SIGS; do trap "gb_on_signal $s" "$s"; done; } +# The driver itself: on any of these signals it stops a live GB10 daemon gracefully (unbounded wait), then exits. +gb_on_signal() { + echo "driver got $1: stopping a live GB10 daemon gracefully (no timeout), then exiting" >&2 + if [ "$GB_STOPPING" = 1 ] || [ "$SPAWNING" = 1 ]; then SIG_PENDING=$1; return 0; fi + SIG_PENDING=$1 + if [ -n "$GB_LIVE_PID" ]; then gb_stop; fi + exit 130 +} +gb_stop() { # graceful stop of the GB10 daemon; waits with NO timeout; never signals it + local rc gone=no + GB_STOP_OK=0; GB_STOP_DESC=""; GB_ACK=no; GB_ATT=0 + [ -n "${DPID:-}" ] || DPID=$GB_LIVE_PID + [ -n "${DPID:-}" ] || { GB_STOP_DESC="no daemon"; return 1; } + GB_STOPPING=1 + while alive "$DPID"; do + GB_ATT=$((GB_ATT + 1)) + if gb_send_shutdown; then GB_ACK=yes; break; fi + # The daemon closes its accept loop before it writes the ack (server.rs), so a missing ack is not an error by itself. + [ $((GB_ATT % 12)) -eq 0 ] && echo "waiting for the GB10 daemon to take the shutdown request (no timeout, no kill)" >&2 + sleep "$GB_POLL" + done + while :; do wait "$DPID"; rc=$?; if [ "$rc" -gt 128 ] && alive "$DPID"; then continue; fi; break; done # a signal to the driver interrupts wait, not the daemon + GB_EXIT=$rc; DPID=""; DAEMON_GB=0; GB_LIVE_PID="" + [ ! -e "$SOCK" ] && gone=yes; GB_GONE=$gone + # Clean = a shutdown request was sent at least once AND exit 0 AND socket removed AND no seat-kill line. + # The ack is recorded, not required. A kernel-log NVRM delta above 0 also blocks any further GB10 life. + if [ "$GB_ATT" -ge 1 ] && [ "$rc" -eq 0 ] && [ "$gone" = yes ] && ! grep -aqi 'seat kill' "$DLOG"; then + GB_STOP_OK=1; GB_STOP_DESC="graceful stop (exit 0, session closed)" + else + GB_UNCLEAN=1 + GB_STOP_DESC="graceful stop NOT clean (exit $rc, shutdown requests sent: $GB_ATT, acked: $GB_ACK, socket removed: $gone)" + fi + gb_life_record + case $GB_LAST_DELTA in 0|unavailable) ;; *) GB_UNCLEAN=1; GB_STOP_OK=0; GB_STOP_DESC="$GB_STOP_DESC; NEW NVRM kernel-log lines: $GB_LAST_DELTA" ;; esac + GB_STOPPING=0 + [ -z "${GB_RESULT_FILE:-}" ] || echo "exit=$GB_EXIT clean=$GB_STOP_OK" >"$GB_RESULT_FILE" + [ -z "$SIG_PENDING" ] || { echo "driver exiting after signal $SIG_PENDING" >&2; exit 130; } + [ "$GB_STOP_OK" = 1 ] +} +gb_early_exit() { wait "$DPID" 2>/dev/null; GB_EXIT=$?; GB_STOP_OK=0; GB_STOP_DESC="daemon exited by itself (exit $GB_EXIT), no shutdown request"; GB_UNCLEAN=1; GB_LIVE_PID=""; GB_ATT=0; GB_ACK=no; GB_GONE=no; gb_life_record; } + +# Inner half of the signal proof, run as its own session and process-group leader (see selftest_gb). +selftest_gb_sig() { # SIGNAME DIR [none|before|after]: where the signal is sent relative to gb_spawn + local sig=$1 t=$2 mode=${3:-none}; mkdir -p "$t"; GB_POLL=0.2; GB_RESULT_FILE=$t/result + gb_install_traps + kill() { echo "KILL-CALLED $*" >>"$t/kills"; return 0; } # any kill the script itself issues is recorded; the test sends with `command kill` + cli() { [ "$1 $2" = "compose shutdown" ] && { echo '{"step": "S7", "shutdown": true}'; : >"$t/go"; }; } + LOGS=$t; SOCK=$t/s; DN=1; DLOG=$t/d.log; GB_LIVES='[]'; NVRM_BEFORE=$(nvrm_count); : >"$SOCK" + cat >"$t/fake.sh" <>$t/sigs" \$s; done +echo ' Backend: NativeTransformerBackend/OmegaGb10Backend (fake)' +while [ ! -e $t/go ]; do sleep 0.1 & wait \$!; done +sleep 1; rm -f $SOCK; exit 0 +F + chmod +x "$t/fake.sh" + case $mode in + before) GB_BEFORE_ASSIGN_HOOK="sleep 0.5; command kill -s $sig -- -$$" ;; # between the background launch and DPID=$! + after) GB_AFTER_SPAWN_HOOK="sleep 0.5; command kill -s $sig -- -$$" ;; # right after the spawn, before start_daemon's checks + esac + gb_spawn "$DLOG" "$t/fake.sh" + sleep 0.5 + local sid pg; sid=$(sed 's/.*) //' /proc/$DPID/stat | awk '{print $4}'); pg=$(sed 's/.*) //' /proc/$DPID/stat | awk '{print $3}') + echo "driver pid $$ pgid $(sed 's/.*) //' /proc/$$/stat | awk '{print $3}'); daemon pid $DPID (\$! matches: $([ -d /proc/$DPID ] && echo yes)) session $sid pgrp $pg" >"$t/where" + # signal the driver's whole process group; the handler must stop the daemon gracefully and the driver must get its exit code + command kill -s "$sig" -- "-$$" + sleep 3; echo "handler did not exit the driver" >"$t/result"; exit 1 +} +# Control-flow proof without a chip: fake daemons, with `kill` shadowed so any call is recorded. +selftest_gb() { + local t rc=0; t=$(mktemp -d); GB_POLL=0.2 + kill() { echo "KILL-CALLED $*" >>"$t/kills"; return 0; } + cli() { [ -e "$t/fifo" ] || return 1; if [ "$1 $2" = "compose shutdown" ]; then + [ -e "$t/lostack" ] && { [ -e "$t/sent" ] || { : >"$t/sent"; echo down >"$t/fifo" & }; return 1; } + [ -e "$t/refuse" ] && { rm -f "$t/refuse"; return 1; }; echo '{"step": "S7", "shutdown": true}'; echo down >"$t/fifo" & fi; } + LOGS=$t; SOCK=$t/s; DN=1; DLOG=$t/d.log; GB_LIVES='[]'; NVRM_BEFORE=$(nvrm_count) + printf ' Backend: NativeTransformerBackend/OmegaGb10Backend (x)\n GB10_SERVING_RESERVATION reserved bytes=1 (x)\n' >"$DLOG" + run_fake() { # exitcode: fake daemon that exits with that code a second after the shutdown request + rm -f "$t/fifo"; mkfifo "$t/fifo"; : >"$SOCK" + ( read -r _ <"$t/fifo"; sleep 1; [ "$1" = 0 ] && rm -f "$SOCK"; exit "$1" ) & DPID=$!; DAEMON_GB=1; GB_LIVE_PID=$DPID + } + run_fake 0; touch "$t/refuse"; gb_stop; [ "$GB_STOP_OK" = 1 ] && [ "$GB_EXIT" = 0 ] || { echo "clean stop control failed: $GB_STOP_DESC"; rc=1; } + run_fake 3; gb_stop; [ "$GB_STOP_OK" = 0 ] && [ "$GB_UNCLEAN" = 1 ] || { echo "unclean stop control failed: $GB_STOP_DESC"; rc=1; } + GB_UNCLEAN=0; run_fake 0; touch "$t/lostack"; gb_stop; rm -f "$t/lostack" "$t/sent" + [ "$GB_STOP_OK" = 1 ] && [ "$GB_ACK" = no ] && [ "$GB_ATT" -ge 1 ] || { echo "ack lost but daemon exit 0 + socket removed should be clean: $GB_STOP_DESC"; rc=1; } + DPID=""; GB_LIVE_PID=""; gb_stop; [ "$GB_STOPPING" = 0 ] || { echo "GB_STOPPING stuck after a no-daemon stop"; rc=1; } + [ "$(printf "%s" "$GB_LIVES" | jq length)" = 3 ] || { echo "life records: $GB_LIVES"; rc=1; } + [ ! -s "$t/kills" ] || { echo "a kill was called: $(cat "$t/kills")"; rc=1; } + # Signals sent to the driver's process group: the GB10 daemon (own session, HUP/INT ignored) must not receive them, the + # script must issue no kill, and the driver must still collect exit 0 after the graceful stop. Also with the signal + # delivered inside gb_spawn (before DPID is assigned: deferred) and right after it (daemon live, before any later check). + local s m r + for s in $GB_SIGS; do + setsid -w bash "$0" selftest-gb-sig "$s" "$t/sig-$s" none 2>"$t/sig-$s.err" + r=$(cat "$t/sig-$s/result" 2>/dev/null) + if [ "$r" = "exit=0 clean=1" ] && [ ! -s "$t/sig-$s/sigs" ] && [ ! -s "$t/sig-$s/kills" ] && grep -q "graceful" "$t/sig-$s.err"; then + echo " group $s: daemon received nothing, no kill called; driver stopped it gracefully, $r" + else + echo "group $s FAILED: result='$r' daemon saw: $(cat "$t/sig-$s/sigs" 2>/dev/null) kills: $(cat "$t/sig-$s/kills" 2>/dev/null)"; rc=1 + fi + done + echo " last case: $(cat "$t/sig-TERM/where")" + for m in before after; do for s in TERM INT; do + setsid -w bash "$0" selftest-gb-sig "$s" "$t/h-$m-$s" "$m" 2>"$t/h-$m-$s.err" + r=$(cat "$t/h-$m-$s/result" 2>/dev/null) + if [ "$r" = "exit=0 clean=1" ] && [ ! -s "$t/h-$m-$s/sigs" ] && [ ! -s "$t/h-$m-$s/kills" ]; then + echo " $s sent $m the spawn completed: graceful stop, $r, no kill called" + else + echo "hook $m/$s FAILED: result='$r' kills: $(cat "$t/h-$m-$s/kills" 2>/dev/null)"; rc=1 + fi + done; done + setsid -w bash -c 'bash -c "trap \"echo got-TERM >>'"$t"'/ctl\" TERM; sleep 3 & wait" & sleep 0.5; command kill -s TERM -- -$$; wait' 2>/dev/null; sleep 0.3 + grep -q got-TERM "$t/ctl" 2>/dev/null && echo " control: an ordinary child in the group DID receive TERM (the test can see a leak)" || { echo "control failed: ordinary child did not get TERM"; rc=1; } + unset -f kill cli; rm -rf "$t" + [ $rc -eq 0 ] && echo "selftest-gb ok (graceful stop waits for exit 0; unclean exit flagged; refused request retried; no kill called; lost ack still clean; group INT TERM HUP QUIT USR1 USR2 PIPE ALRM never reach the GB10 daemon, also when sent during the spawn)" + return $rc +} + + case "${1:-}" in check) check_doc "${2:?file}"; exit 0 ;; selftest) selftest; exit $? ;; + selftest-gb) selftest_gb; exit $? ;; + selftest-gb-sig) selftest_gb_sig "$2" "$3" "${4:-none}"; exit $? ;; run) ;; - *) echo "usage: $0 run | check FILE | selftest" >&2; exit 2 ;; + *) echo "usage: $0 run | check FILE | selftest | selftest-gb" >&2; exit 2 ;; esac # ---- setup ------------------------------------------------------------------- @@ -70,7 +255,16 @@ MA=$HOME/models/SmolLM2-1.7B-Instruct-31b70e2e869a MB=$HOME/models/qwen3-4b-instruct-2507-cdbee75 OUT=$REPO/docs/campaigns/allen-e2e V=${DEMO_VERSION:-v1} -case $V in v1|v2|v3) ;; *) echo "DEMO_VERSION must be v1, v2 or v3" >&2; exit 2 ;; esac +case $V in v1|v2|v3|v4-gb10) ;; *) echo "DEMO_VERSION must be v1, v2, v3 or v4-gb10" >&2; exit 2 ;; esac +# v4-gb10 (docs/campaigns/allen-e2e/DEMO-v4-gb10.md): v2 rules; M-A is Qwen3-4B on the GB10 (sealed Q277 +# binary), M-B is SmolLM2 on the CPU reference. Everything GB10-specific is behind GB=1. +HCNOTE=""; GB=0; LABEL=real-CPU; MAL="M-A"; MABK="CPU-reference"; GBIN=""; DAEMON_GB=0; IS_GB=0; GB_LIVES='[]'; NVRM_BEFORE=""; DLOG="" +if [ "$V" = v4-gb10 ]; then + HCNOTE="; hard-crash recovery on GB10: NOT TESTED (chip safety rule)" + GB=1; LABEL=real-GB10; MAL="M-A (GB10)"; MABK="GB10, native Omega engine" + MA=$HOME/models/qwen3-4b-instruct-2507-cdbee75 + MB=$HOME/models/SmolLM2-1.7B-Instruct-31b70e2e869a +fi # v3 is v2 unchanged (DEMO-v3.md): every v2 rule below applies to v3 too. RECEIPTS=${DEMO_RECEIPTS:-$OUT/receipts-$V.jsonl} ART=${DEMO_ART:-$OUT/artifacts-$V} @@ -92,7 +286,12 @@ for t in jq iconv sha256sum setsid; do command -v $t >/dev/null || { echo "need # Quiet flag: wait for it to clear, never touch it. QUIET=$HOME/workspace/.spark-quiet +if [ "$GB" = 1 ]; then + # v4-gb10 runs INSIDE a quietlock hold given by the coordinator (never taken or touched here). + [ -s "$QUIET" ] || { echo "v4-gb10 must run inside a quietlock hold (quiet flag not held)" >&2; exit 3; } +else while [ -s "$QUIET" ]; do echo "quiet flag set; waiting"; sleep 30; done +fi # The tree must be clean (apart from the outputs) so the receipt commit is the code that ran. DIRTY=$(git -C "$REPO" status --porcelain -- . ":!docs/campaigns/allen-e2e/receipts-$V.jsonl" ":!docs/campaigns/allen-e2e/artifacts-$V" ":!docs/campaigns/allen-e2e/RESULT-$V.md" | wc -l) @@ -111,6 +310,24 @@ else STACK="candidate stack at ${COMMIT:0:12}, not main" fi +if [ "$GB" = 1 ]; then + # The sealed qualified candidate (sc#277 attempt 3): sovereign-core 6bbe2ec2, built with the GPU lib. + # Refuse unless it is exactly the sealed file and this tree differs from 6bbe2ec2 only by demo files. + Q277=${DEMO_GB10_SEAL_DIR:-$HOME/workspace/hive/Q277} + GB_SHA_WANT=152c0aecce662f618bf683c8854d6de56a7075e0461c2433570f4c15b68571a5 + GB_SRC=6bbe2ec269768c7c9b94b9484c757ca45f55f564 + GBIN=$Q277/bin/aien-cli-main + GB_SEAL=$(awk '$2=="bin/aien-cli-main"{print $1}' "$Q277/SHA256SUMS" 2>/dev/null) + GB_SHA=$(sha256sum "$GBIN" 2>/dev/null | cut -d' ' -f1) + [ -n "$GB_SHA" ] && [ "$GB_SHA" = "$GB_SHA_WANT" ] && [ "$GB_SEAL" = "$GB_SHA_WANT" ] || { echo "sealed GB10 binary missing or sha256 mismatch ($GB_SHA vs $GB_SHA_WANT): refusing" >&2; exit 2; } + GB_NONDEMO=$(git -C "$REPO" diff --name-only "$GB_SRC" HEAD | grep -vE "^(scripts/allen_e2e_demo\.sh|docs/campaigns/allen-e2e/|crates/aien-allen/tests/e2e_demo_subject\.rs$|(.*/)?\.crumb$)" | wc -l) + git -C "$REPO" merge-base --is-ancestor "$GB_SRC" HEAD && [ "$GB_NONDEMO" -eq 0 ] || { echo "tree is not 6bbe2ec2 plus demo-only files: the sealed binary would not be this code; refusing" >&2; exit 2; } + for v in AIEN_OMEGA_SPIN_US AIEN_OMEGA_CTA_BUDGET AIEN_COMPOSE_BUDGET_MS; do + [ -z "$(printenv $v)" ] || { echo "$v must be unset for the GB10 candidate" >&2; exit 3; } + done + [ -z "$(nvidia-smi --query-compute-apps=pid --format=csv,noheader 2>/dev/null | tr -d ' \n')" ] || { echo "another GPU process is present; refusing" >&2; exit 3; } +fi + # Build with the real compose library (no omega dir, no GPU lib). ( cd "$REPO" && env -u AIEN_OMEGA_DIR -u AIEN_OMEGA_COMPOSE_DIR -u AIEN_OMEGA_GPU_LIB -u AIEN_FORCE_CPU_STUB \ @@ -153,8 +370,8 @@ rec() { # step status evidence [extra json] jq -nc --arg step "$1" --arg status "$2" --arg ev "$3" --argjson extra "$extra" \ --arg commit "$COMMIT" --arg bin "$BIN_SHA" --arg backend "$CUR_BACKEND" --arg modelline "$CUR_MODELLINE" \ --arg mdir "$CUR_DIR" --arg wd "$CUR_WD" --arg dsha "$CUR_DSHA" --arg tsha "$CUR_TSHA" \ - --arg mac "$CUR_MAC" --arg id0 "$ID0" --arg stack "$STACK" --arg ver "$V" --arg utc "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ - '{step:$step,status:$status,label:"real-CPU",stack:$stack,spec:("DEMO-"+$ver),evidence:$ev, + --arg mac "$CUR_MAC" --arg id0 "$ID0" --arg stack "$STACK" --arg label "$LABEL" --arg ver "$V" --arg utc "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ + '{step:$step,status:$status,label:$label,stack:$stack,spec:("DEMO-"+$ver),evidence:$ev, repo_commit:$commit,daemon_sha256:$bin,cli_sha256:$bin, backend_line:$backend,model_line:$modelline,model_dir:$mdir, model_weights_digest:$wd,daemon_model_sha256:$dsha,tokenizer_sha256:$tsha, @@ -167,13 +384,32 @@ DN=0; DPID=""; ABORT="" start_daemon() { # model_dir [VAR=val ...]; sets CUR_* from the daemon log local d=$1; shift local mp="$d/model.safetensors"; [ -f "$mp" ] || mp="$d/model-00001-of-00003.safetensors" + local dbin=$BIN; IS_GB=0 + if [ "$GB" = 1 ] && [ "$d" = "$MA" ]; then + # a GB10 life: the sealed Q277 binary and its qualified env; never start another life after an unclean stop + [ "$GB_UNCLEAN" = 0 ] || { echo "previous GB10 stop was not clean; not starting another GB10 daemon"; return 1; } + dbin=$GBIN; IS_GB=1; mp="$d/model.safetensors.index.json" + set -- AIEN_GB10_QWEN3_DECLARED_ATTEMPT=1 AIEN_REQUIRE_BLACKWELL=1 AIEN_KV_CONTEXT_TOKENS=4096 "$@" + NVRM_BEFORE=$(nvrm_count) + fi DN=$((DN + 1)); DLOG=$LOGS/daemon-$DN.log; rm -f "$SOCK" - "${E[@]}" AIEN_MODEL_PATH="$mp" AIEN_TOKENIZER_PATH="$d/tokenizer.json" "$@" "$BIN" daemon >"$DLOG" 2>&1 & + if [ "$IS_GB" = 1 ]; then + gb_spawn "$DLOG" "${E[@]}" AIEN_MODEL_PATH="$mp" AIEN_TOKENIZER_PATH="$d/tokenizer.json" "$@" "$dbin" daemon + else + "${E[@]}" AIEN_MODEL_PATH="$mp" AIEN_TOKENIZER_PATH="$d/tokenizer.json" "$@" "$dbin" daemon >"$DLOG" 2>&1 & DPID=$! + fi + DAEMON_GB=$IS_GB + if [ "$IS_GB" = 1 ]; then + # the GB10 daemon must be the leader of its own session (so group and terminal signals cannot reach it) + local k sid="" + for k in $(seq 1 50); do sid=$(sed 's/.*) //' "/proc/$DPID/stat" 2>/dev/null | awk '{print $4}'); [ "$sid" = "$DPID" ] && break; sleep 0.1; done + [ "$sid" = "$DPID" ] || { echo "GB10 daemon pid $DPID is not its own session leader (session '$sid'); stopping it gracefully"; gb_stop; return 1; } + fi local i for i in $(seq 1 600); do sleep 2 - kill -0 "$DPID" 2>/dev/null || { DPID=""; echo "daemon exited early: $(tail -c 400 "$DLOG")"; return 1; } + alive "$DPID" || { [ "$IS_GB" = 1 ] && gb_early_exit; DPID=""; DAEMON_GB=0; echo "daemon exited early: $(tail -c 400 "$DLOG")"; return 1; } if [ -S "$SOCK" ] && grep -q "Replay reconcile:" "$DLOG"; then break; fi done [ -S "$SOCK" ] || { echo "daemon not serving after 20 min"; return 1; } @@ -185,16 +421,33 @@ start_daemon() { # model_dir [VAR=val ...]; sets CUR_* from the daemon log CUR_DSHA=$(sed -n 's/.*model_sha256=\([0-9a-f]\{64\}\).*/\1/p' "$DLOG" | head -1) CUR_TSHA=$(sed -n 's/.*tokenizer_sha256=\([0-9a-f]\{64\}\).*/\1/p' "$DLOG" | head -1) : "${CUR_DSHA:=none}" "${CUR_TSHA:=none}" - case $CUR_BACKEND in *CPU-reference*) ;; *) echo "not the CPU reference backend: $CUR_BACKEND"; kill -9 "$DPID" 2>/dev/null; wait "$DPID" 2>/dev/null; DPID=""; return 1 ;; esac + if [ "$IS_GB" = 1 ]; then + # v4-gb10: the GB10 Backend line and the reservation line are required; else a graceful stop (never a kill). + CUR_RESV=$(grep -a -m1 'GB10_SERVING_RESERVATION reserved bytes=' "$DLOG" | sed 's/^ *//' | cut -c1-300) + case $CUR_BACKEND in *OmegaGb10Backend*) ;; *) echo "not the GB10 backend: $CUR_BACKEND"; gb_stop; return 1 ;; esac + [ -n "$CUR_RESV" ] || { echo "no GB10 reservation line"; gb_stop; return 1; } + return 0 + fi + case $CUR_BACKEND in *CPU-reference*) ;; *) echo "not the CPU reference backend: $CUR_BACKEND"; safe_kill9 "$DPID"; wait "$DPID" 2>/dev/null; DPID=""; return 1 ;; esac return 0 } KILL_RC="" kill9() { + GB_STOP_DESC="" + # v4-gb10: a live GB10 daemon is never signalled; stop it through its shutdown path and wait without a timeout. + if [ "$GB" = 1 ] && [ -n "$GB_LIVE_PID" ]; then gb_stop; local r=$?; KILL_RC=$GB_EXIT; return $r; fi [ -n "$DPID" ] || { KILL_RC="no daemon"; return 1; } - kill -9 "$DPID" 2>/dev/null; wait "$DPID" 2>/dev/null; KILL_RC=$?; DPID=""; rm -f "$SOCK" + safe_kill9 "$DPID"; wait "$DPID" 2>/dev/null; KILL_RC=$?; DPID=""; rm -f "$SOCK" [ "$KILL_RC" -eq 137 ] } +if [ "$GB" = 1 ]; then + # exit path: a GB10 daemon still alive is stopped gracefully (unbounded wait), a CPU daemon is killed as in v1-v3 + gb_exit() { if [ -n "$GB_LIVE_PID" ]; then gb_stop; elif [ -n "$DPID" ]; then kill9; fi; } + trap gb_exit EXIT + gb_install_traps +else trap '[ -n "$DPID" ] && kill -9 "$DPID" 2>/dev/null' EXIT +fi # ---- snapshots used by S5-S7 ------------------------------------------------- snap() { # prefix: profile, memory inspect, goals, effects ledger, document @@ -314,7 +567,7 @@ if start_daemon "$MA"; then ST_ALLEN=$(cli allen status | jq -r .result.identity) ALLEN_DIRS=$(ls -d "$RUN"/compose.allen-* "$RUN"/compose/*allen* 2>/dev/null | wc -l) if [[ $CUR_MAC == "Authorize MAC: on"* ]] && [ "$ST_ALLEN" = not_engaged ] && [ "$ALLEN_DIRS" -eq 0 ]; then - rec S0 PASS "daemon up on M-A (CPU-reference), log: '$CUR_MAC', allen status identity=$ST_ALLEN, 0 ALLEN state directories before S1" + rec S0 PASS "daemon up on M-A ($MABK), log: '$CUR_MAC', allen status identity=$ST_ALLEN, 0 ALLEN state directories before S1" "$(if [ "$GB" = 1 ]; then jq -nc --arg r "${CUR_RESV:-}" '{gb10_reservation_line:$r}'; else echo '{}'; fi)" else rec S0 FAIL "MAC line='$CUR_MAC' identity=$ST_ALLEN allen_dirs=$ALLEN_DIRS" ABORT="S0 failed, nothing further can be trusted" @@ -413,6 +666,7 @@ if ! skip S5; then snap S5a [ -f "$WS/garden.md" ] && { G_SHA_BEFORE=$(sha_of "$WS/garden.md"); G_STAT_BEFORE=$(stat -c '%i %Y.%y' "$WS/garden.md"); } || { G_SHA_BEFORE=none; G_STAT_BEFORE=none; } if kill9; then KILLED="kill -9 (exit 137)"; else KILLED="kill rc=$KILL_RC"; fi + [ -n "$GB_STOP_DESC" ] && KILLED=$GB_STOP_DESC if start_daemon "$MA" AIEN_ALLEN_SUBJECT="$RUN/subject.bin"; then snap S5b G_SHA_AFTER=none; G_STAT_AFTER=none @@ -431,7 +685,7 @@ if ! skip S5; then [ "$(jq -r '[.intents[]|select(.path=="garden.md" and .state=="DONE")]|length' "$ART/S5b-ledger.json")" = 1 ] || CHK="$CHK S3-not-DONE" [ "$G_SHA_BEFORE" != none ] && [ "$G_SHA_BEFORE" = "$G_SHA_AFTER" ] && [ "$G_STAT_BEFORE" = "$G_STAT_AFTER" ] || CHK="$CHK garden.md" if [ -z "$CHK" ]; then - rec S5 PASS "$KILLED then restart on M-A: ID0 same, profile/notes/G1 identical, S3 intent still DONE and ledger+record count unchanged (not re-executed), garden.md same sha256, inode and mtime; $REPL" + rec S5 PASS "$KILLED then restart on $MAL: ID0 same, profile/notes/G1 identical, S3 intent still DONE and ledger+record count unchanged (not re-executed), garden.md same sha256, inode and mtime; $REPL$HCNOTE" elif [ "$S3_OK" != 1 ]; then rec S5 NOT_RUN "no S3 commit existed to check; restart itself: identity/profile/notes/goals problems=[${CHK# }]" else @@ -461,9 +715,11 @@ if ! skip S6; then fi # ============================== S7 ============================================ +[ "$GB" = 1 ] && LABEL=real-CPU # v4-gb10: S0-S6 real-GB10, S7-S8 real-CPU if ! skip S7; then OLD_BACKEND=$CUR_BACKEND; OLD_MODELLINE=$CUR_MODELLINE; OLD_DSHA=$CUR_DSHA; OLD_TSHA=$CUR_TSHA if kill9; then KILLED="kill -9 (exit 137)"; else KILLED="kill rc=$KILL_RC"; fi + [ -n "$GB_STOP_DESC" ] && KILLED=$GB_STOP_DESC if start_daemon "$MB" AIEN_ALLEN_SUBJECT="$RUN/subject.bin"; then snap S7 FPB=$(cli allen status | jq -r .result.fingerprint) @@ -474,6 +730,8 @@ if ! skip S7; then else [ "$CUR_BACKEND" != "$OLD_BACKEND" ] || CHK="$CHK backend-line-identical" fi + # v4-gb10: model AND backend change (GB10 -> CPU reference); both lines must differ. + if [ "$GB" = 1 ]; then [ "$CUR_BACKEND" != "$OLD_BACKEND" ] || CHK="$CHK backend-line-identical"; fi [ "$CUR_DSHA" != "$OLD_DSHA" ] && [ "$CUR_DSHA" != none ] || CHK="$CHK model-digest-not-changed" [ "$FPB" = "${ID0:0:8}" ] || CHK="$CHK identity" same S6 S7 profile || CHK="$CHK profile" @@ -484,7 +742,7 @@ if ! skip S7; then EXTRA=$(jq -nc --arg ob "$OLD_BACKEND" --arg nb "$CUR_BACKEND" --arg om "$OLD_MODELLINE" --arg nm "$CUR_MODELLINE" --arg od "$OLD_DSHA" --arg nd "$CUR_DSHA" \ '{before:{backend_line:$ob,model_line:$om,daemon_model_sha256:$od},after:{backend_line:$nb,model_line:$nm,daemon_model_sha256:$nd}}') if [ -z "$CHK" ]; then - rec S7 PASS "$KILLED then start on M-B: $([ "$V" != v1 ] && echo "Model: line" || echo "backend line") and model digest changed (${OLD_DSHA:0:12} -> ${CUR_DSHA:0:12}); ID0 same; profile, N-work, G1 unchanged; N-pers still absent" "$EXTRA" + rec S7 PASS "$KILLED then start on M-B: $([ "$V" != v1 ] && echo "Model: line$([ "$GB" = 1 ] && echo " and Backend: line")" || echo "backend line") and model digest changed (${OLD_DSHA:0:12} -> ${CUR_DSHA:0:12}); ID0 same; profile, N-work, G1 unchanged; N-pers still absent" "$EXTRA" else rec S7 FAIL "criteria not met:${CHK}. Backend line before: '$OLD_BACKEND'; after: '$CUR_BACKEND'. Model line and digest changed: $([ "$CUR_DSHA" != "$OLD_DSHA" ] && echo yes || echo no)" "$EXTRA" fi @@ -513,5 +771,15 @@ if ! skip S8; then fi [ -n "$DPID" ] && kill9 +if [ "$GB" = 1 ]; then + # One extra receipt for the GB10 daemon lives: the per-life PASS rule of DEMO-v4-gb10.md. + LABEL=real-GB10 + GB_VERDICT=$(printf '%s' "$GB_LIVES" | jq -r 'if length==0 then "FAIL" + elif all(.[]; .backend_gb10 and .reservation_line_present and .alloc_failure_lines==0 and .rm_failure_lines==0 and .fallback_lines==0 and .nvrm_log_lines==0 and .seat_kill_lines==0 and .stop_clean) | not then "FAIL" + elif any(.[]; .nvrm_kernel_delta=="unavailable") then "UNKNOWN" + elif all(.[]; .nvrm_kernel_delta==0) then "PASS" else "FAIL" end') + rec GB10-lives "$GB_VERDICT" "per GB10 daemon life: GB10 Backend line, reservation line, 0 allocation/RM failures, 0 fallback lines, 0 NVRM log lines (daemon log and kernel log delta), no seat-kill line, graceful stop (exit 0, shutdown acked, socket removed). Sealed binary sha256 $GB_SHA. UNKNOWN means the kernel log was unreadable. hard-crash recovery on GB10: NOT TESTED (chip safety rule)" \ + "$(jq -nc --argjson l "$GB_LIVES" --arg sha "$GB_SHA" --arg src "$GB_SRC" '{gb10_lives:$l,gb10_binary_sha256:$sha,gb10_binary_source_commit:$src,hard_crash_recovery_on_gb10:"NOT TESTED (chip safety rule)"}')" +fi cp "$LOGS"/daemon-*.log "$ART/" 2>/dev/null echo "receipts: $RECEIPTS" ```