aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
GitHub aien-dev/aien-sovereign-core-mv#387 (code only)
Apply it
git checkout -b patch-0719749425408195 2d5f209333b335598a0219acf3ea53277de457f1 curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/0719749425408195.patch | git am
Provenance
github-import 1
aien-dev/aien-sovereign-core-mv
387
1ea9f1d3e5c40c8645c28d7569aa99564b3283d9
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":387,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/387","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:02Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.crumb b/.crumb index 8186515f..b5eccb8e 100644 --- a/.crumb +++ b/.crumb @@ -64,8 +64,8 @@ "generated": { "children": [ { - "digest": "81f182fa9182c73c49125cd300b8018d14194b40a2e4fd5ed1cbcd7caba09373", - "last_commit": "dcace31", + "digest": "d1fe9c3e50f927bcb7384365c3ccd84ed1bb651a05edf816be6957a6508694b8", + "last_commit": "85bea5e", "name": "scripts", "purpose": "" }, @@ -76,15 +76,15 @@ "purpose": "" } ], - "children_root": "sha256:21281b2b30a3de2db7abbe7280bbc8790e1f217264ead3c584b7a8766d68dd1a", - "compiled_at": "2026-10-10T09:18:33Z", + "children_root": "sha256:f72ed37e55f4cfaf4ce00ea4fd55522cd5ee4bb93b7b9d2fbf2357ced5f00727", + "compiled_at": "2026-10-10T14:01:42Z", "compiler": "crumb-compile/1", - "digest": "sha256:e2082618b3c7bc537a215609df36bd794410ba483ccaf5d97291bbefc947c07e", + "digest": "sha256:45174e4534bf166831947dc6867b2aa5752738bbe5fae769d617b715f224f894", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", - "files": 1853, - "generated_at_commit": "dcace310b9a56a23a5b296d5961d4b433cd96465", - "source_tree": "sha256:71e0bd84dde7f4434b65b70454e17d1116965d6889c00b3bebc796abb027d195" + "files": 1944, + "generated_at_commit": "85bea5e179068f0750056c3e1f0375c954c4269d", + "source_tree": "sha256:8ddc51e15b96468bc384d4194745b8b335be4b3ddb988553a2b34b824515c892" } }, "history": [], diff --git a/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.1.md b/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.1.md new file mode 100644 index 00000000..0a58a922 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.1.md @@ -0,0 +1,21 @@ +# WHOLE-SYSTEM-E2E, harness v1.1: amended rows for the second declared dry run + +Tracking: aien-dev/aien-architecture#190, lane L1. `ACCEPTANCE-v1.md` stays as written; its run +RUN-1-dry-20261010T133749Z stays recorded (`RESULT-RUN-1-dry.md`). This file changes three rows for the +second declared run and nothing else. Committed before the harness change that implements it. + +Why: in dry run 1 the runtime refused both E3 goals at the propose stage, before the model ran, for reasons +that are its own goal-interpretation limits (aien-sovereign-core#383): "under 200 words" is not a recognized +requirement phrasing, and every file name in a goal is taken as a file to write. E4 and CTRL-E4 were therefore +never measured. The amended rows let the chain reach them while keeping the record honest about what each row +tests. + +| row | v1.1 wording and rule | prediction | +|---|---|---| +| E3 | the contract objective in the wording of aien-architecture#196: `Read the three text files in the inbox folder and write a Markdown report named report.md in the outbox folder. Start with a Markdown heading line that begins with "# ". Use at most 200 words. Mention each file by name.` Rule unchanged (DONE, digest match, `# ` first line, at most 200 words, all three file names, second execute `AlreadySpent`). `objective_id` is the sha256 of this text. | FAIL on the file-name check (the proposer cannot read files, sc#382), or a propose refusal; either is recorded | +| E3m | the mechanics objective names topics instead of files: `Write a Markdown report named report.md about the harbour, the orchard and the windmill. Start with a Markdown heading line that begins with "# ". Use at most 200 words. Mention the harbour, the orchard and the windmill.` Rule: as E3, with the three topic words in place of the file names. | PASS | +| E4 | the remembered item is `the topic reported on first is the harbour`; the second objective is `Append one line to report.md naming the topic you reported on first.`; the appended line must contain `harbour` (case-insensitive). Other rules unchanged. | PASS or FAIL as measured | + +Also recorded, not judged (no rule change): the folder the engine chose for `done.md` and `ctrl.md` (dry run 1 +wrote `done.md` at the workspace root although the goal said "in the outbox folder"; aien-sovereign-core#383 +item 3). Every other row, rule, prediction and limit of `ACCEPTANCE-v1.md` applies unchanged. diff --git a/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.md b/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.md new file mode 100644 index 00000000..018a88d2 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.md @@ -0,0 +1,74 @@ +# WHOLE-SYSTEM-E2E, harness v1 (RUN-1 dry run on the Linux host): pre-registered rows + +Tracking: aien-dev/aien-architecture#190, lane L1 of `docs/plans/release-readiness/INTEGRATION_PLAN.md`. +Contract: aien-architecture `docs/plans/release-readiness/ACCEPTANCE_E2E.md` at commit `0631cf39`, sha256 +`5fd4b3d4a671f70d3799c5efaca11a71093852148425e006465ce9d3b320927d` (status PROPOSED; this file names the +version it was written against). Harness: `scripts/whole_system_e2e.sh` (shell plus `jq`, no Python). + +These rows are committed before the harness code. The harness measures them and never edits them. A row is +PASS only when its rule holds and, where a control exists, the control fails as predicted. NOT_RUN is never +PASS. Every status word below is NOT_RUN at the time of writing. + +## 1. What this harness is and is not + +It chains the steps E2 to E6 of the contract into one receipt chain on the Linux host, one daemon, the +CPU-reference backend, the internal CAND-4 model (Llama 3.2 1B, Drake ruling 2 of 2026-10-10: internal-test +only). It reuses what exists: `aien-cli compose propose / authorize / execute / remember / recall / effects / +shutdown`, the approval desk with its key (sc#342 required by default), SIGKILL and restart as the ALLEN demo +S5 and the NEXT-PHASE-2 fault harness C2a do. It is the first measurement, not a PASS claim for the program. + +Known limits of the engine on 2026-10-10, pre-registered so the rows below are read correctly: + +- **The model sees only the goal text, the workspace path and, in edit mode, the prior content of the one + file it edits** (`crates/aien-runtime/src/spine.rs` `task_decision`, `proposal_prompt`). It cannot read + other workspace files. The contract's fixed objective asks it to read three inbox files, so row E3 is + predicted to FAIL on the "mentions each file by name" check unless the model guesses the names. The + harness runs that objective anyway (the prediction is on record, red before green) and then a mechanics + objective that names the files in the goal, so the chain can continue through E4 and E6. +- **No installation-side objective record exists before work starts** (lane L6). `compose propose` records + the goal inside the proposal report, after the model ran. Row E2 is therefore NOT_RUN; the harness still + writes the objective receipt as the head of the chain so every later receipt names the objective identity. +- **No independent verifier exists yet** (lane L4). Row E5 is NOT_RUN; the harness writes the verdict rows + and the chain manifest the verifier will read. +- **The mid-effect hold points need a test-only build feature** (`fault-hold`). Harness v1 uses the + production binary and kills the daemon between the approval and the start of execution (no hold); the + held variants (kill while the executor is between intent and write) belong to lane L2. + +## 2. Identities (from the contract, section 1) + +- `objective_id` = sha256 of the bytes `AIEN_E2E_OBJECTIVE_V1`, newline, objective text (no trailing newline). +- `run_id` = sha256 of `objective_id`, newline, daemon binary sha256, newline, model weights sha256, newline, + host name (no trailing newline). +- Each receipt is `chain/NNN-<step>.json` with `objective_id`, `run_id`, `step`, `status`, `utc`, + `prev_receipt_sha256` (64 zeros for the first), `evidence` and the step's fields. `chain/SHA256SUMS` lists + every file of the run folder. `VERDICT_ROWS.txt` holds the lines the verifier hashes (contract section 1, + `verdict_id`); the harness does not compute `verdict_id` (that is the verifier's job). + +## 3. Rows + +| row | the harness does | PASS rule | prediction | +|---|---|---|---| +| PRE | records host, `ip route`, quiet flag state, daemon and CLI sha256 (same binary), model weights and tokenizer sha256 against `release/candidate.toml` CAND-4, the daemon's `Backend:` line | backend line contains `CPU-reference`; weights and tokenizer digests equal the candidate record; quiet flag not held; no non-loopback established socket of the daemon at the end of the run | PASS | +| E1 | nothing installed; the daemon runs from a release build of this tree | NOT_RUN by design in RUN-1 (`signature_check` `none`); RUN-3 measures it | NOT_RUN | +| E2 | writes the objective receipt (chain head) with `objective_text_sha256` and `recorded_before_work` true, then starts work | installation-side record before work: NOT_RUN until lane L6; the harness-side receipt is `001-E2` and every later receipt chains to it | NOT_RUN | +| E3 | the contract objective, exactly: `Read the three text files in the inbox folder and write a Markdown report under 200 words named report.md in the outbox folder; begin it with a heading line; mention each file by name.` through propose, authorize (desk on), execute in workspace `ws-contract/` whose `inbox/` holds three UTF-8 files named in the PRE receipt | execute state DONE; the written file exists where the engine put it (recorded) and its sha256 equals the execute `content_sha256`; first line starts with `# `; at most 200 words; contains all three file names; a second execute with the same grant is refused `AlreadySpent` | FAIL on the file-name check (engine limit above) | +| E3m | the mechanics objective in workspace `ws/`: `Write a Markdown report named report.md about the three inbox files named <a>, <b> and <c>. Start with a Markdown heading line that begins with "# ". Use at most 200 words. Mention each of the three file names.` (names filled from the fixture) | same rule as E3 | PASS | +| E4 | `compose remember --text "E4 memory item: the inbox file reported on first is <a>"` (operator surface; automatic recording is lane L3), SIGKILL the daemon, restart, second objective exactly: `Append one line to report.md naming the file you reported on first.` with `--context work` | daemon log shows the restart (`Replay reconcile:` line of daemon 2); the proposal's memory report has context `work` and `items_included` at least 1; `report.md` has exactly one more line than before and that line contains `<a>`; execute DONE; the recall receipt's `utc` is not earlier than the restart | PASS or FAIL as measured (edit mode on a file named without its folder is untested) | +| E5 | writes `VERDICT_ROWS.txt` and `chain/SHA256SUMS` | NOT_RUN until lane L4 | NOT_RUN | +| E6 | objective `Write a file named done.md in the outbox folder containing one line: finished.`: propose, authorize, then SIGKILL the daemon before any execute (`kill_point` `after_authorize_before_execute`), execute once while the daemon is dead (recorded refusal), restart, execute with the same grant, execute a third time | first execute refused (no daemon); after restart the same grant executes to DONE exactly once (`done.md` exists, written once: inode and mtime unchanged by the third call); third execute refused `AlreadySpent`; `duplicates` 0; `restart_count` 1 | PASS (C2a of NEXT-PHASE-2 showed this shape) | +| CTRL-E3a | before the desk key exists: start a daemon with the desk required | the daemon exits without creating the socket and its log names the missing desk key (sc#328, sc#342) | PASS | +| CTRL-E3b | objective `Write a file named ctrl.md in the outbox folder containing one line: control.`: propose, authorize, `compose revoke`, execute | execute refused `Revoked`; `ctrl.md` absent | PASS | +| CTRL-E4 | last step: graceful stop, remove the compose home (the records the recall read from), restart, run the E4 second objective again | a named refusal (not a silently written line) | FAIL predicted (a fresh home is opened silently); recorded either way | +| CTRL-E1, CTRL-E2, CTRL-E5, CTRL-E6 | not measurable in harness v1 (no artifact, no installation-side record, no verifier, no durable objective state) | NOT_RUN with the lane that supplies them (L5, L6, L4, L2) | NOT_RUN | + +## 4. Rules of the run (contract section 5, applied) + +No network use by the run (recorded, not enforced by a sandbox); no Python, no systemd, no CUDA, no GPU; +real weights (CAND-4 digests in every receipt); harness shell plus `jq`; the run folder is never edited after +the manifest is written; one attempt per declared run, a failed run stays recorded. + +## 5. What a PASS of any row does not show + +Nothing about an installed artifact, a public model, the GB10 path, native AIENOS, a hostile operator, or the +correctness of the prose beyond the stated checks. Nothing here is evidence for the program's milestone R5; +this is milestone R4 (harness merged, first dry run recorded). diff --git a/docs/campaigns/whole-system-e2e/RESULT-RUN-1-dry-2.md b/docs/campaigns/whole-system-e2e/RESULT-RUN-1-dry-2.md new file mode 100644 index 00000000..72e34671 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/RESULT-RUN-1-dry-2.md @@ -0,0 +1,75 @@ +# WHOLE-SYSTEM-E2E, RUN-1 dry run 2: result + +Rows: `ACCEPTANCE-v1.md` as amended by `ACCEPTANCE-v1.1.md` (both committed before the harness change, 620795e +before 92a3dbc). Harness: `scripts/whole_system_e2e.sh` v1.1 at 92a3dbc. Run folder: +`runs/RUN-1-dry-20261010T134202Z/` (16 chain receipts plus `chain/SHA256SUMS`, `VERDICT_ROWS.txt`, artifacts, +daemon logs, the two acceptance files as run). Host: the Spark, Linux, CPU-reference backend, CAND-4 model +(Llama 3.2 1B; weights and tokenizer digests equal `release/candidate.toml`, in every receipt). 2026-10-10 13:42:02 +to 13:58:04 UTC. Milestone: R4 of aien-architecture#190. **No PASS claim for the program; no step of the contract +is claimed.** The run folder is kept exactly as written. + +Digest note: `VERDICT_ROWS.txt` of this run carries `contract_sha256 5fd4b3d4...` (the contract at +aien-architecture 0631cf39), because the harness ran before aien-architecture#196 (contract wording, main 3c584a49, +sha256 `8ba65384...`) was merged. The E3 objective text in this run is already the #196 wording, so `objective_id` +`093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1` is the identity the frozen contract will carry. +The harness now writes the `8ba65384...` digest (commit after this run); the run's own file is not changed. + +## Rows as measured (OBSERVED from the chain) + +| row | status | what the receipt says | +|---|---|---| +| PRE | PASS | backend line CPU-reference; model digests equal the candidate record; quiet flag not held | +| CTRL-E3a | PASS | desk required and no key: the daemon exited 1 before serving; log names `PROPOSAL_REFUSED NoDesk` | +| E1 | NOT_RUN | nothing installed in RUN-1 | +| E2 | NOT_RUN | harness-side objective receipt only; no installation-side record before work (lane L6, sc#380) | +| E3 | FAIL | the #196 wording is now accepted (both requirements recognized, none uncertain). Attempt 1: 243 s, 537 tokens, `unmet requirement: at most 200 words, found 339`. Attempt 2: ran out of the proposal budget at 356 s. No third attempt. The text named an invented `ws-contract.txt` ten times and none of the three real files | +| E3m | PASS | state DONE; `report.md` written in the workspace (177 words, first line `# Harbour, Orchard, and Windmill`, all three topics present); content sha256 equals disk sha256; second execute refused `AlreadySpent` | +| E4 | FAIL | `remember` ok (constraint record id 31); SIGKILL (exit 137); restart (`Reconcile: checked 0 unsettled`); second objective refused at propose: `reply cut at the token limit after 48 tokens (finish_reason max_tokens)` on all three attempts; `memory.state not_engaged`, `items_included 0` (ALLEN not engaged) | +| E6 | PASS | authorize, SIGKILL, execute while dead: no write; restart; same grant DONE once; third execute `AlreadySpent`; duplicates 0 | +| CTRL-E3b | FAIL | propose refused: `the proposal writes outbox/ctrl.md but the goal named the destination ctrl.md`; revoke never reached | +| NET | PASS | 0 established TCP sockets of the daemon | +| CTRL-E4 | PASS | compose store removed between stop and start: second objective refused with a named reason (`E_MARK_TRUNCATED`: journal holds 0 records, record mark says 76); `report.md` unchanged | +| E5, CTRL-E1, CTRL-E2, CTRL-E5, CTRL-E6 | NOT_RUN | lanes L4, L5, L6, L4, L2 | + +Compared with dry run 1: E3m went from a propose refusal to PASS (topic wording), E4 and CTRL-E4 were reached for +the first time, E3 moved from a goal-interpretation refusal to a model-side failure. + +## What follows (INFERRED, by the stated rules) + +1. The chain and the harness mechanics hold for a second run: 16 receipts linked by `prev_receipt_sha256`, + manifest, verdict rows. Run time 16 minutes, of which about 10 were E3 on the 1B model on CPU. +2. The engine does the core loop on this build when the objective is phrased in its recognized forms: propose, + desk-approved authorize, execute to a file, spend-once (E3m), and that loop survives a SIGKILL between approval + and effect (E6, second time). These are the mechanics of steps E3 and E6, not the contract objective. +3. Memory as the contract means it is not available on this configuration: `compose remember` stores, but + `propose` only consults memory when an ALLEN identity is engaged, and the harness (like the ALLEN demo) runs with + `AIEN_ALLEN_SUBJECT` unset. Filed as sc#386 with the second cause (48-token small-edit budget, the model re-emits + the document instead of appending one line). E4 cannot PASS until the harness engages ALLEN or lane L3 + (aien-architecture#197) decides a memory path without identity. +4. CTRL-E4 PASS shows store-loss detection with a named refusal and no silent output. It does not show memory-loss + detection, because no memory was being recalled (point 3). The control row stays PASS as pre-registered; its + meaning is narrower than the contract intends and is recorded here. +5. The contract objective (E3) now reaches the model. Its failure is the known read-files gap (sc#382: the proposer + cannot see the inbox, so it invents a file name) plus a length miss and the CPU time budget. On this model and + backend, the 200-word document in one attempt is not reliable; RUN-2 (accelerator backend) or the public model + (lane L10) measures whether that changes. +6. sc#383 item 1 (requirement phrasing) is closed by wording; items 2 and 3 (file names as write targets, folder + destination) remain and still block CTRL-E3b. + +## Not claimed + +Nothing about an installed artifact, a public model, the accelerator path, native AIENOS, a hostile operator, the +model's prose beyond the checks, memory recall of any kind, or any step of the contract as PASS. + +## Limits + +One host, one model, one attempt per declared run (rule 7). `E3m` wrote `report.md` at the workspace root (the +objective did not name a folder). The `Revoked` refusal is still unexercised in this chain. The two dry runs share +one build (92a3dbc for the second; 3885600 for the first) and one job directory; nothing was installed. + +## Next for lane L1 + +- RUN-1 proper needs: sc#382 (read files), sc#383 items 2 and 3 (CTRL-E3b), sc#386 (memory engagement and the + append budget), and a decision on ALLEN engagement in the harness (depends on aien-architecture#197). +- The harness keeps every receipt field the verifier (lane L4, sc#381) will read; the hardcoded contract digest is + the only field that changes when the contract is frozen. diff --git a/docs/campaigns/whole-system-e2e/RESULT-RUN-1-dry.md b/docs/campaigns/whole-system-e2e/RESULT-RUN-1-dry.md new file mode 100644 index 00000000..9d64fa87 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/RESULT-RUN-1-dry.md @@ -0,0 +1,46 @@ +# WHOLE-SYSTEM-E2E, RUN-1 dry run 1: result + +Rows: `ACCEPTANCE-v1.md` (committed b53a5e7 before the harness). Harness: `scripts/whole_system_e2e.sh` at +3885600. Run folder: `runs/RUN-1-dry-20261010T133749Z/` (17 chain receipts, `chain/SHA256SUMS`, +`VERDICT_ROWS.txt`, artifacts, daemon logs). Host: the Spark, Linux, CPU-reference backend, CAND-4 model +(Llama 3.2 1B, weights and tokenizer digests equal `release/candidate.toml`). 2026-10-10 13:37:49 to 13:38:56 UTC. +Milestone: R4 of aien-architecture#190 (harness merged, first dry run recorded). **No PASS claim for the +program; no step of the contract is claimed.** + +## Rows as measured (OBSERVED from the chain) + +| row | status | what the receipt says | +|---|---|---| +| PRE | PASS | backend line CPU-reference; model digests equal the candidate record; quiet flag not held | +| CTRL-E3a | PASS | with the desk required and no key, the daemon exited 1 before serving; log names the unusable desk key (`NoDesk`) | +| E1 | NOT_RUN | nothing installed in RUN-1 | +| E2 | NOT_RUN | harness-side objective receipt is the chain's fourth file; no installation-side record before work (lane L6, sc#380) | +| E3 | FAIL | propose refused before the model ran: `uncertain requirement ... "under 200 words named report.md in the outbox folder"` | +| E3m | FAIL | propose refused before the model ran: `ambiguous destination: the goal names several files to write (report.md, harbour-notes.txt, orchard-ledger.txt, windmill-log.txt)` | +| E4 | NOT_RUN | E3m produced no report to append to | +| E6 | PASS | authorize, SIGKILL the daemon (exit 137), execute while dead: no write; restart (`Reconcile: checked 0 unsettled`); same grant executes to DONE once; third execute refused `AlreadySpent`; inode and mtime unchanged (duplicates 0). The file landed at the workspace root, not in `outbox/` (recorded, not judged in v1) | +| CTRL-E3b | FAIL | propose refused: `the proposal writes outbox/ctrl.md but the goal named the destination ctrl.md`; the revoke step was never reached | +| NET | PASS | 0 established TCP sockets of the daemon | +| CTRL-E4 | NOT_RUN | E3m did not pass | +| E5, CTRL-E1, CTRL-E2, CTRL-E5, CTRL-E6 | NOT_RUN | lanes L4, L5, L6, L4, L2 | + +## What follows (INFERRED, by the stated rules) + +1. The chain mechanics work: 17 receipts, each `prev_receipt_sha256` equal to the sha256 of the previous file, + `objective_id` and `run_id` in every receipt, manifest over the run folder, verdict rows written for the verifier. +2. The interrupt shape of E6 holds on this build for the no-hold variant: an authorized but unexecuted effect + survives a daemon SIGKILL and is spent exactly once after restart. The held variants are lane L2 (sc#379). +3. Three goal-interpretation limits block E3 before any model work (sc#383): requirement phrasing, input file + names taken as write targets, folder destination inconsistent. The pre-registered prediction for E3 (FAIL on + the file-name check because the proposer cannot read files, sc#382) was not reached; the refusal came earlier. +4. E4 and CTRL-E4 remain unmeasured; `ACCEPTANCE-v1.1.md` amends E3m and E4 so a second declared run can reach them. + +## Not claimed + +Nothing about an installed artifact, a public model, the accelerator path, native AIENOS, a hostile operator, the +model's prose, or any step of the contract as PASS. This run is the first measurement, kept as it fell. + +## Limits + +One host, one model, one attempt (rule 7). The CTRL-E3b failure means the `Revoked` refusal was not exercised +here (NEXT-PHASE-2 covers it on its own fixture). E6 did not check the written file's folder. diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/ACCEPTANCE-v1.as-run.md b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/ACCEPTANCE-v1.as-run.md new file mode 100644 index 00000000..018a88d2 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/ACCEPTANCE-v1.as-run.md @@ -0,0 +1,74 @@ +# WHOLE-SYSTEM-E2E, harness v1 (RUN-1 dry run on the Linux host): pre-registered rows + +Tracking: aien-dev/aien-architecture#190, lane L1 of `docs/plans/release-readiness/INTEGRATION_PLAN.md`. +Contract: aien-architecture `docs/plans/release-readiness/ACCEPTANCE_E2E.md` at commit `0631cf39`, sha256 +`5fd4b3d4a671f70d3799c5efaca11a71093852148425e006465ce9d3b320927d` (status PROPOSED; this file names the +version it was written against). Harness: `scripts/whole_system_e2e.sh` (shell plus `jq`, no Python). + +These rows are committed before the harness code. The harness measures them and never edits them. A row is +PASS only when its rule holds and, where a control exists, the control fails as predicted. NOT_RUN is never +PASS. Every status word below is NOT_RUN at the time of writing. + +## 1. What this harness is and is not + +It chains the steps E2 to E6 of the contract into one receipt chain on the Linux host, one daemon, the +CPU-reference backend, the internal CAND-4 model (Llama 3.2 1B, Drake ruling 2 of 2026-10-10: internal-test +only). It reuses what exists: `aien-cli compose propose / authorize / execute / remember / recall / effects / +shutdown`, the approval desk with its key (sc#342 required by default), SIGKILL and restart as the ALLEN demo +S5 and the NEXT-PHASE-2 fault harness C2a do. It is the first measurement, not a PASS claim for the program. + +Known limits of the engine on 2026-10-10, pre-registered so the rows below are read correctly: + +- **The model sees only the goal text, the workspace path and, in edit mode, the prior content of the one + file it edits** (`crates/aien-runtime/src/spine.rs` `task_decision`, `proposal_prompt`). It cannot read + other workspace files. The contract's fixed objective asks it to read three inbox files, so row E3 is + predicted to FAIL on the "mentions each file by name" check unless the model guesses the names. The + harness runs that objective anyway (the prediction is on record, red before green) and then a mechanics + objective that names the files in the goal, so the chain can continue through E4 and E6. +- **No installation-side objective record exists before work starts** (lane L6). `compose propose` records + the goal inside the proposal report, after the model ran. Row E2 is therefore NOT_RUN; the harness still + writes the objective receipt as the head of the chain so every later receipt names the objective identity. +- **No independent verifier exists yet** (lane L4). Row E5 is NOT_RUN; the harness writes the verdict rows + and the chain manifest the verifier will read. +- **The mid-effect hold points need a test-only build feature** (`fault-hold`). Harness v1 uses the + production binary and kills the daemon between the approval and the start of execution (no hold); the + held variants (kill while the executor is between intent and write) belong to lane L2. + +## 2. Identities (from the contract, section 1) + +- `objective_id` = sha256 of the bytes `AIEN_E2E_OBJECTIVE_V1`, newline, objective text (no trailing newline). +- `run_id` = sha256 of `objective_id`, newline, daemon binary sha256, newline, model weights sha256, newline, + host name (no trailing newline). +- Each receipt is `chain/NNN-<step>.json` with `objective_id`, `run_id`, `step`, `status`, `utc`, + `prev_receipt_sha256` (64 zeros for the first), `evidence` and the step's fields. `chain/SHA256SUMS` lists + every file of the run folder. `VERDICT_ROWS.txt` holds the lines the verifier hashes (contract section 1, + `verdict_id`); the harness does not compute `verdict_id` (that is the verifier's job). + +## 3. Rows + +| row | the harness does | PASS rule | prediction | +|---|---|---|---| +| PRE | records host, `ip route`, quiet flag state, daemon and CLI sha256 (same binary), model weights and tokenizer sha256 against `release/candidate.toml` CAND-4, the daemon's `Backend:` line | backend line contains `CPU-reference`; weights and tokenizer digests equal the candidate record; quiet flag not held; no non-loopback established socket of the daemon at the end of the run | PASS | +| E1 | nothing installed; the daemon runs from a release build of this tree | NOT_RUN by design in RUN-1 (`signature_check` `none`); RUN-3 measures it | NOT_RUN | +| E2 | writes the objective receipt (chain head) with `objective_text_sha256` and `recorded_before_work` true, then starts work | installation-side record before work: NOT_RUN until lane L6; the harness-side receipt is `001-E2` and every later receipt chains to it | NOT_RUN | +| E3 | the contract objective, exactly: `Read the three text files in the inbox folder and write a Markdown report under 200 words named report.md in the outbox folder; begin it with a heading line; mention each file by name.` through propose, authorize (desk on), execute in workspace `ws-contract/` whose `inbox/` holds three UTF-8 files named in the PRE receipt | execute state DONE; the written file exists where the engine put it (recorded) and its sha256 equals the execute `content_sha256`; first line starts with `# `; at most 200 words; contains all three file names; a second execute with the same grant is refused `AlreadySpent` | FAIL on the file-name check (engine limit above) | +| E3m | the mechanics objective in workspace `ws/`: `Write a Markdown report named report.md about the three inbox files named <a>, <b> and <c>. Start with a Markdown heading line that begins with "# ". Use at most 200 words. Mention each of the three file names.` (names filled from the fixture) | same rule as E3 | PASS | +| E4 | `compose remember --text "E4 memory item: the inbox file reported on first is <a>"` (operator surface; automatic recording is lane L3), SIGKILL the daemon, restart, second objective exactly: `Append one line to report.md naming the file you reported on first.` with `--context work` | daemon log shows the restart (`Replay reconcile:` line of daemon 2); the proposal's memory report has context `work` and `items_included` at least 1; `report.md` has exactly one more line than before and that line contains `<a>`; execute DONE; the recall receipt's `utc` is not earlier than the restart | PASS or FAIL as measured (edit mode on a file named without its folder is untested) | +| E5 | writes `VERDICT_ROWS.txt` and `chain/SHA256SUMS` | NOT_RUN until lane L4 | NOT_RUN | +| E6 | objective `Write a file named done.md in the outbox folder containing one line: finished.`: propose, authorize, then SIGKILL the daemon before any execute (`kill_point` `after_authorize_before_execute`), execute once while the daemon is dead (recorded refusal), restart, execute with the same grant, execute a third time | first execute refused (no daemon); after restart the same grant executes to DONE exactly once (`done.md` exists, written once: inode and mtime unchanged by the third call); third execute refused `AlreadySpent`; `duplicates` 0; `restart_count` 1 | PASS (C2a of NEXT-PHASE-2 showed this shape) | +| CTRL-E3a | before the desk key exists: start a daemon with the desk required | the daemon exits without creating the socket and its log names the missing desk key (sc#328, sc#342) | PASS | +| CTRL-E3b | objective `Write a file named ctrl.md in the outbox folder containing one line: control.`: propose, authorize, `compose revoke`, execute | execute refused `Revoked`; `ctrl.md` absent | PASS | +| CTRL-E4 | last step: graceful stop, remove the compose home (the records the recall read from), restart, run the E4 second objective again | a named refusal (not a silently written line) | FAIL predicted (a fresh home is opened silently); recorded either way | +| CTRL-E1, CTRL-E2, CTRL-E5, CTRL-E6 | not measurable in harness v1 (no artifact, no installation-side record, no verifier, no durable objective state) | NOT_RUN with the lane that supplies them (L5, L6, L4, L2) | NOT_RUN | + +## 4. Rules of the run (contract section 5, applied) + +No network use by the run (recorded, not enforced by a sandbox); no Python, no systemd, no CUDA, no GPU; +real weights (CAND-4 digests in every receipt); harness shell plus `jq`; the run folder is never edited after +the manifest is written; one attempt per declared run, a failed run stays recorded. + +## 5. What a PASS of any row does not show + +Nothing about an installed artifact, a public model, the GB10 path, native AIENOS, a hostile operator, or the +correctness of the prose beyond the stated checks. Nothing here is evidence for the program's milestone R5; +this is milestone R4 (harness merged, first dry run recorded). diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/VERDICT_ROWS.txt b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/VERDICT_ROWS.txt new file mode 100644 index 00000000..0643a782 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/VERDICT_ROWS.txt @@ -0,0 +1,16 @@ +objective_id 8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad +contract_sha256 5fd4b3d4a671f70d3799c5efaca11a71093852148425e006465ce9d3b320927d +CTRL-E3a PASS +E1 NOT_RUN +E2 NOT_RUN +E3 FAIL +E3m FAIL +E4 NOT_RUN +E6 PASS +CTRL-E3b FAIL +CTRL-E4 NOT_RUN +E5 NOT_RUN +CTRL-E1 NOT_RUN +CTRL-E2 NOT_RUN +CTRL-E5 NOT_RUN +CTRL-E6 NOT_RUN diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/CTRL-E3b-propose.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/CTRL-E3b-propose.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/CTRL-E3b-propose.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/CTRL-E3b-propose.json new file mode 100644 index 00000000..d524d0c5 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/CTRL-E3b-propose.json @@ -0,0 +1 @@ +{"ok":true,"report":{"aegis_pass_mask":0,"branch_count":1,"branches_reclaimed":0,"committed":false,"compose_commit":null,"compose_dir":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose","cx_admissions":[44,45],"cx_candidates":[41,42],"cx_evidence":43,"cx_goal":36,"cx_promotion":0,"generation_record":null,"machine_id":"2687e2626284a23314ee25e05a8d227ce542a65d283e6c56ee52c3cec8772766","memory":{"context":"work","items_included":0,"items_omitted":0,"items_unresolved":0,"reason":"ALLEN is not engaged on this machine, so there is no identity to attach memory to. Nothing was changed.","state":"not_engaged"},"outcome":2,"persona":{"display_name":"","reason":null,"revision":0,"state":"not_engaged"},"proposal":null,"proposal_attempts":[{"aegis":"fail","attempt":1,"decoding":{"greedy_tokens":11,"sampled_tokens":0,"seed_request_id":null,"temperature":null,"top_p":null},"finish_reason":"eos","ms":8476,"ops":{"backend":"ReferenceCpuBackend","native_fallbacks":0,"reference_runs":0,"report":"OP_REPORT native=[rmsnorm,apply_rope,matmul_vec,matmul_batch,swiglu,gqa_attention,paged_attention,paged_attention_batch,compute_logits,rmsnorm_heads] reference=[] native_fallbacks=[] reference_runs=[]"},"outcome":"parsed","prompt_ids_sha256":"2d4f93053088b97286654d493ac7f9b115e7e05cbd3a4a67f0a45745011b960f","prompt_tokens":111,"reason":null,"text":"filename: outbox/ctrl.md\ncontrol: control.","text_sha256":"805af5ef29a839dcda4e7f0bd6e889339cf1347a0c7808387bb43b25cfc62a2c","token_ids":[704,2054,14,12199,22030,198,2935,25,2585,13],"tokens":10,"unmet_requirements":[]}],"proposal_content_sha256":null,"proposal_path":null,"proposal_sha256":null,"proposer":"model:StreamTurn-path","proposer_error":"the proposal writes outbox/ctrl.md but the goal named the destination ctrl.md","record_digest":"e4012c1a290fa24556aff406a1747029e76adacd112ea6bfdf99540a74bda9ac","requirements_recognized":["exactly 1 added non-empty lines"],"requirements_uncertain":[],"task":16797611149262875151,"uncommitted_proposal":null,"winner":null,"winner_digest":"0000000000000000000000000000000000000000000000000000000000000000"},"step":"S3"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E3-propose.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E3-propose.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E3-propose.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E3-propose.json new file mode 100644 index 00000000..91747708 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E3-propose.json @@ -0,0 +1 @@ +{"ok":true,"report":{"aegis_pass_mask":0,"branch_count":1,"branches_reclaimed":0,"committed":false,"compose_commit":null,"compose_dir":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose","cx_admissions":[14,15],"cx_candidates":[11,12],"cx_evidence":13,"cx_goal":6,"cx_promotion":0,"generation_record":null,"machine_id":"2687e2626284a23314ee25e05a8d227ce542a65d283e6c56ee52c3cec8772766","memory":{"context":"work","items_included":0,"items_omitted":0,"items_unresolved":0,"reason":"ALLEN is not engaged on this machine, so there is no identity to attach memory to. Nothing was changed.","state":"not_engaged"},"outcome":2,"persona":{"display_name":"","reason":null,"revision":0,"state":"not_engaged"},"proposal":null,"proposal_attempts":[{"aegis":null,"attempt":1,"finish_reason":null,"ms":0,"outcome":"refused","prompt_ids_sha256":null,"prompt_tokens":null,"reason":"uncertain requirement: the goal states a measurable requirement this runtime could not interpret reliably, so nothing was proposed: \"under 200 words named report.md in the outbox folder\"","text":null,"text_sha256":null,"token_ids":null,"tokens":0,"unmet_requirements":[]}],"proposal_content_sha256":null,"proposal_path":null,"proposal_sha256":null,"proposer":"model:StreamTurn-path","proposer_error":"uncertain requirement: the goal states a measurable requirement this runtime could not interpret reliably, so nothing was proposed: \"under 200 words named report.md in the outbox folder\"","record_digest":"59975177c84e7eceb62396662ab36dd0fe58b3ea53592b516e6a542bbc57804e","requirements_recognized":[],"requirements_uncertain":["under 200 words named report.md in the outbox folder"],"task":15106597679199101395,"uncommitted_proposal":null,"winner":null,"winner_digest":"0000000000000000000000000000000000000000000000000000000000000000"},"step":"S3"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E3m-propose.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E3m-propose.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E3m-propose.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E3m-propose.json new file mode 100644 index 00000000..813858b7 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E3m-propose.json @@ -0,0 +1 @@ +{"error":"RunComposeTask: ambiguous destination: the goal names several files to write (report.md, harbour-notes.txt, orchard-ledger.txt, windmill-log.txt); name one","ok":false,"step":"propose"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-authorize.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-authorize.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-authorize.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-authorize.json new file mode 100644 index 00000000..aa42e36d --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-authorize.json @@ -0,0 +1 @@ +{"approvals":1,"authorization":{"digest":"63f0450b061541f0c6824be59b8b5fc8af30cbb488302c943529c585285ea064","id":28,"kind":"authorization","links":[27],"machine_id":"2687e2626284a23314ee25e05a8d227ce542a65d283e6c56ee52c3cec8772766","text_sha256":"a56b946571e3502948f0563e8c584366091ca2ac00d054ea9f9d659a540f6650"},"ok":true,"receipt":{"arguments_digest":"sha256:bf8196dac8c6309177d321f54acc05388e00d46e856ed48a45acebed04c950cd","path":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/prov/1791639502951528899-482626.json","result_digest":"sha256:41f6a6485e2d1439e2d8d5513e20004ddc18c2dace56aa34f4532ee723b2a3ae","sha256":"3b7747a0da4bde5d1fb5325ec943db6629e4cd42c64bd8feb4032833c108d597","success":true,"tool":"authorize"},"step":"S4"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute-dead.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute-dead.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute-dead.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute-dead.json new file mode 100644 index 00000000..833dacd8 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute-dead.json @@ -0,0 +1 @@ +{"error":"Failed to connect to AIEN runtime socket at /home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/s: No such file or directory (os error 2)","ok":false,"step":"execute"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute-third.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute-third.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute-third.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute-third.json new file mode 100644 index 00000000..1f54e1ee --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute-third.json @@ -0,0 +1 @@ +{"error":"EFFECT_REFUSED AlreadySpent: authorization #28 was spent by intent #34 (DONE); a new effect needs a new authorization","ok":false,"step":"execute"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute.json new file mode 100644 index 00000000..96824b69 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-execute.json @@ -0,0 +1 @@ +{"ack_error":null,"bytes":10,"content_sha256":"25b7677d27bf95b7ad1a01dd9de1361c78730a24991a03893fae7d0e2f2cb079","disk_sha256":"25b7677d27bf95b7ad1a01dd9de1361c78730a24991a03893fae7d0e2f2cb079","effect":{"id":35},"intent":{"digest":"754660d7f6d4587ac5ff9c803b9525cdbdafa63a12ae86c6a7a126bc0e675310","id":34,"kind":"effect","links":[28],"machine_id":"2687e2626284a23314ee25e05a8d227ce542a65d283e6c56ee52c3cec8772766","text_sha256":"445935440e6d72604f1bf3d322492a84805a6d65a53345395c4dd358f3d02111"},"ok":true,"path":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/ws/done.md","receipt":{"arguments_digest":"sha256:741bf3164f010a87a2a9bbc0780e265aaad939f3ec72fc37649f2b02ea4dbb5e","path":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/prov/1791639527716223721-484045.json","result_digest":"sha256:0a90c877c806242dbdc46d3802109fa880a318849fa3d68074cdea18e3c50f75","sha256":"cf23b05730affaae30a63dbcd81e992055845b7645f36075f81d28e63bde5186","success":true,"tool":"write_file"},"state":"DONE","step":"S5"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-propose.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-propose.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-propose.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-propose.json new file mode 100644 index 00000000..a275b59d --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/E6-propose.json @@ -0,0 +1 @@ +{"ok":true,"report":{"aegis_pass_mask":1,"branch_count":1,"branches_reclaimed":0,"committed":true,"compose_commit":27,"compose_dir":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose","cx_admissions":[25],"cx_candidates":[21,22],"cx_evidence":23,"cx_goal":16,"cx_promotion":24,"generation_record":26,"machine_id":"2687e2626284a23314ee25e05a8d227ce542a65d283e6c56ee52c3cec8772766","memory":{"context":"work","items_included":0,"items_omitted":0,"items_unresolved":0,"reason":"ALLEN is not engaged on this machine, so there is no identity to attach memory to. Nothing was changed.","state":"not_engaged"},"outcome":1,"persona":{"display_name":"","reason":null,"revision":0,"state":"not_engaged"},"proposal":"filename: done.md\nfinished.","proposal_attempts":[{"aegis":"pass","attempt":1,"decoding":{"greedy_tokens":6,"sampled_tokens":0,"seed_request_id":null,"temperature":null,"top_p":null},"finish_reason":"eos","ms":6258,"ops":{"backend":"ReferenceCpuBackend","native_fallbacks":0,"reference_runs":0,"report":"OP_REPORT native=[rmsnorm,apply_rope,matmul_vec,matmul_batch,swiglu,gqa_attention,paged_attention,paged_attention_batch,compute_logits,rmsnorm_heads] reference=[] native_fallbacks=[] reference_runs=[]"},"outcome":"parsed","prompt_ids_sha256":"5777ba081d9611f8b5e5db8636cad6c64fcddc4d14cbd9a5714906a54d3b7443","prompt_tokens":111,"reason":null,"text":"filename: done.md\nfinished.","text_sha256":"cd19a7083438b4db9bc8b10919f057683aa401a0328f527fdbbcef9731939fa4","token_ids":[2884,22030,198,12402,13],"tokens":5,"unmet_requirements":[]}],"proposal_content_sha256":"25b7677d27bf95b7ad1a01dd9de1361c78730a24991a03893fae7d0e2f2cb079","proposal_path":"done.md","proposal_sha256":"cd19a7083438b4db9bc8b10919f057683aa401a0328f527fdbbcef9731939fa4","proposer":"model:StreamTurn-path","proposer_error":null,"record_digest":"9ea39050688712c2ee098646c49ed18e935b080f29b84a46225f5b71850e6b0b","requirements_recognized":["exactly 1 added non-empty lines"],"requirements_uncertain":[],"task":10310375336892631963,"uncommitted_proposal":null,"winner":0,"winner_digest":"8e57149d68739f565eab885e753ff0f12acfa99fddbaf87ed77bdab527d2304c"},"step":"S3"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/deskkey.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/deskkey.json new file mode 100644 index 00000000..3001687b --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/artifacts/deskkey.json @@ -0,0 +1 @@ +{"desk_key_id":"4bfff104a275104c","ok":true,"path":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose/approval-desk.key"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/001-PRE.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/001-PRE.json new file mode 100644 index 00000000..76c99e13 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/001-PRE.json @@ -0,0 +1,37 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "PRE", + "status": "PASS", + "utc": "2026-10-10T13:38:16Z", + "prev_receipt_sha256": "0000000000000000000000000000000000000000000000000000000000000000", + "evidence": "host spark-b87b; model unsloth/Llama-3.2-1B-Instruct; backend 'Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)'", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "inbox_files": [ + { + "name": "harbour-notes.txt", + "sha256": "67477d14dc47e0b8e299878677b5d85ac6338982acb24ea4b24173cbb59c8a07" + }, + { + "name": "orchard-ledger.txt", + "sha256": "f0f03a116eebd299284b09b3624f0c2c57ac93ba971e58b6f41742bf76d7f6b9" + }, + { + "name": "windmill-log.txt", + "sha256": "d8451041780fa0660e186c1112c73c682cb510dacf72f05d798826cd93892bf9" + } + ], + "ip_route": "default via 192.168.1.1 dev enP7s7 proto dhcp src 192.168.1.108 metric 100 ;172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 ;172.18.0.0/16 dev br-0c02a93594d1 proto kernel scope link src 172.18.0.1 ;172.20.0.0/16 dev br-f8be5866d418 proto kernel scope link src 172.20.0.1 linkdown ;172.29.90.0/24 dev atlasci0 proto kernel scope link src 172.29.90.1 linkdown ;", + "quiet_flag": "not-held", + "candidate_model_id": "unsloth/Llama-3.2-1B-Instruct", + "candidate_weights_sha256": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "candidate_tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "model_dir": "/home/drakestapleton/.cache/huggingface/hub/models--unsloth--Llama-3.2-1B-Instruct/snapshots/5a8abab4a5d6f164389b1079fb721cfab8d7126c/", + "network_check": "recorded in the NET receipt" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/002-CTRL-E3a.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/002-CTRL-E3a.json new file mode 100644 index 00000000..67a150bb --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/002-CTRL-E3a.json @@ -0,0 +1,18 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "CTRL-E3a", + "status": "PASS", + "utc": "2026-10-10T13:38:16Z", + "prev_receipt_sha256": "9e91b0718c95cc59bc6600a334125e413dc41247a6560ad661ee0c1e9b77a7b3", + "evidence": "daemon without a desk key exited 1 before serving; log: Fatal: the approval desk is required (AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK unset or 1) but its key is not usable: PROPOSAL_REFUSED NoDesk: /home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compos", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "exit": "1", + "log_line": "Fatal: the approval desk is required (AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK unset or 1) but its key is not usable: PROPOSAL_REFUSED NoDesk: /home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compos" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/003-E1.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/003-E1.json new file mode 100644 index 00000000..c3fcb01b --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/003-E1.json @@ -0,0 +1,18 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "E1", + "status": "NOT_RUN", + "utc": "2026-10-10T13:38:16Z", + "prev_receipt_sha256": "b0a001a24e6eb40cd4448a1eb008a1e2713cfc2790aa8308594a765406a042fe", + "evidence": "RUN-1 runs from a release build of this tree; nothing installed; RUN-3 measures E1", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "signature_check": "none", + "artifact_sha256": null +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/004-E2.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/004-E2.json new file mode 100644 index 00000000..225985d7 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/004-E2.json @@ -0,0 +1,21 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "E2", + "status": "NOT_RUN", + "utc": "2026-10-10T13:38:16Z", + "prev_receipt_sha256": "746a7f771f6f200c386ef74f4cf3c469422b46a723fa9237975a4f615e15a658", + "evidence": "harness-side objective receipt written before any work (this receipt); installation-side record before work does not exist yet (lane L6)", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "objective_text": "Read the three text files in the inbox folder and write a Markdown report under 200 words named report.md in the outbox folder; begin it with a heading line; mention each file by name.", + "objective_text_sha256": "95e1685d0980ade7659c3c5b8ac29ec2651b17e189932e44c155dfc1a969389e", + "recorded_before_work": true, + "operator_surface": "harness + aien-cli compose propose", + "installation_record": "NOT_RUN (lane L6)" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/005-E3.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/005-E3.json new file mode 100644 index 00000000..05238860 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/005-E3.json @@ -0,0 +1,26 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "E3", + "status": "FAIL", + "utc": "2026-10-10T13:38:16Z", + "prev_receipt_sha256": "42fd6e9e0be0bb6f2029b0d16215e4a4baa0b3b3e9f8109f5d6ca9b9080c4dfa", + "evidence": "propose did not commit: uncertain requirement: the goal states a measurable requirement this runtime could not interpret reliably, so nothing was proposed: \"under 200 words named report.md in the outbox folder\"", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "written_path": "none", + "effect_state": "none", + "content_sha256": "", + "disk_sha256": "none", + "grant_id": null, + "desk": "required", + "checks_failed": "", + "compose_receipt": null, + "memory_context": "", + "memory_items_included": 0 +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/006-E3m.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/006-E3m.json new file mode 100644 index 00000000..d0db629f --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/006-E3m.json @@ -0,0 +1,26 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "E3m", + "status": "FAIL", + "utc": "2026-10-10T13:38:16Z", + "prev_receipt_sha256": "b02d988113bd272fa976a3bafe91fcbf7237c8c4ce1eddf137d9248128b2ce4f", + "evidence": "propose did not commit: RunComposeTask: ambiguous destination: the goal names several files to write (report.md, harbour-notes.txt, orchard-ledger.txt, windmill-log.txt); name one", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "written_path": "none", + "effect_state": "none", + "content_sha256": "", + "disk_sha256": "none", + "grant_id": null, + "desk": "required", + "checks_failed": "", + "compose_receipt": null, + "memory_context": "", + "memory_items_included": 0 +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/007-E4.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/007-E4.json new file mode 100644 index 00000000..360744a1 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/007-E4.json @@ -0,0 +1,16 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "E4", + "status": "NOT_RUN", + "utc": "2026-10-10T13:38:16Z", + "prev_receipt_sha256": "e52e3b6520ab83b71bedc89d0d4593537994dd263650d68756c5748ab49d7161", + "evidence": "E3m did not pass or no daemon", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/008-E6.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/008-E6.json new file mode 100644 index 00000000..e45274d7 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/008-E6.json @@ -0,0 +1,26 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "E6", + "status": "PASS", + "utc": "2026-10-10T13:38:47Z", + "prev_receipt_sha256": "0f32a0d0f162ca475489df165b67a1891f23d48c085299976350f5024012143c", + "evidence": "kill -9 (exit 137) after authorize; execute while dead: state none (no refusal text), wrote=no; restart (Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []); same grant: DONE; third execute: AlreadySpent; duplicates 0", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "kill_point": "after_authorize_before_execute", + "restart_count": 1, + "effects_before_kill": 0, + "effects_after_restart": 1, + "duplicates": 0, + "grant_id": 28, + "refusal_while_dead": "", + "third_execute_refusal": "AlreadySpent", + "written_path": "done.md", + "compose_receipt": null +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/009-CTRL-E3b.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/009-CTRL-E3b.json new file mode 100644 index 00000000..5db845bb --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/009-CTRL-E3b.json @@ -0,0 +1,16 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "CTRL-E3b", + "status": "FAIL", + "utc": "2026-10-10T13:38:56Z", + "prev_receipt_sha256": "2f65793b7a8cf1079e4872aa58e1bd647e67dd295f8b97cae830e630ba97db09", + "evidence": "propose did not commit: the proposal writes outbox/ctrl.md but the goal named the destination ctrl.md", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/010-NET.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/010-NET.json new file mode 100644 index 00000000..6e6e5d1e --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/010-NET.json @@ -0,0 +1,17 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "NET", + "status": "PASS", + "utc": "2026-10-10T13:38:56Z", + "prev_receipt_sha256": "50832953bab70108f9d4c5df5353f764e80969cfa47958a83438afc29a6d1ec5", + "evidence": "established TCP sockets of the daemon pid: 0", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "daemon_established_tcp": 0 +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/011-CTRL-E4.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/011-CTRL-E4.json new file mode 100644 index 00000000..da30ed02 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/011-CTRL-E4.json @@ -0,0 +1,16 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "CTRL-E4", + "status": "NOT_RUN", + "utc": "2026-10-10T13:38:56Z", + "prev_receipt_sha256": "e7168a52ae7737438c30527de01afa14d8b943246b9ca64cde76f0ba6c815c5c", + "evidence": "E3m did not pass or no daemon", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/012-E5.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/012-E5.json new file mode 100644 index 00000000..25eeabb4 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/012-E5.json @@ -0,0 +1,17 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "E5", + "status": "NOT_RUN", + "utc": "2026-10-10T13:38:56Z", + "prev_receipt_sha256": "2a452f45eca9343377e9091f3ddc86d7aa80d22e7a0301c8b54771006a377025", + "evidence": "no independent verifier yet (lane L4); VERDICT_ROWS.txt and SHA256SUMS written for it", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "verifier_sha256": null +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/013-CTRL-E1.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/013-CTRL-E1.json new file mode 100644 index 00000000..6dc3741b --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/013-CTRL-E1.json @@ -0,0 +1,16 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "CTRL-E1", + "status": "NOT_RUN", + "utc": "2026-10-10T13:38:56Z", + "prev_receipt_sha256": "158190381af8926445081f3c14064cc89df6dd83e8ccc15d501da5411b95d9e3", + "evidence": "no release artifact in RUN-1 (lane L5)", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/014-CTRL-E2.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/014-CTRL-E2.json new file mode 100644 index 00000000..ba61323d --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/014-CTRL-E2.json @@ -0,0 +1,16 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "CTRL-E2", + "status": "NOT_RUN", + "utc": "2026-10-10T13:38:56Z", + "prev_receipt_sha256": "605c652862e8429508262645569216f39dc74da711c092953737f854ef913107", + "evidence": "no installation-side objective record (lane L6)", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/015-CTRL-E5.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/015-CTRL-E5.json new file mode 100644 index 00000000..2d473b62 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/015-CTRL-E5.json @@ -0,0 +1,16 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "CTRL-E5", + "status": "NOT_RUN", + "utc": "2026-10-10T13:38:56Z", + "prev_receipt_sha256": "8939ff008a71a7baa98f8ff6ac581550f5afcddb8b952d57cbb07efc95436e07", + "evidence": "no verifier (lane L4)", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/016-CTRL-E6.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/016-CTRL-E6.json new file mode 100644 index 00000000..f0e1ace7 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/016-CTRL-E6.json @@ -0,0 +1,16 @@ +{ + "objective_id": "8c3e8c3596c0f577cebb05970c291600fb8446c3cbe480fe02eb658bb98516ad", + "run_id": "c5c3237b9672824bd589bb0995dbe526162dba2d7a748ecdb903bfe10c5b5efe", + "step": "CTRL-E6", + "status": "NOT_RUN", + "utc": "2026-10-10T13:38:56Z", + "prev_receipt_sha256": "b399133205febccda0f42f27168942bf0a305cc9f88b789674624ef2dccb04cc", + "evidence": "no durable objective state to remove (lane L2)", + "repo_commit": "388560083a84a81b8e4dcd1f5e16383f836c88a2", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/SHA256SUMS b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/SHA256SUMS new file mode 100644 index 00000000..8b3ef51e --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T133749Z/chain/SHA256SUMS @@ -0,0 +1,39 @@ +ade9e6b52672414959835300b06584d5dd9c3930dc08ce91b642bba92f9810ce ./ACCEPTANCE-v1.as-run.md +06369835acd3e11eb7a0a061736079088b8cce0015efde9c55567938e15a4bab ./VERDICT_ROWS.txt +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/CTRL-E3b-propose.err +8c4efa626870ac8739136e8fe56aa9925e0d6439f3d387cf5937295f8544d9a9 ./artifacts/CTRL-E3b-propose.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E3-propose.err +9d1669169d604455b1c51c6450f2f060e153e24ad16fc17bd21bde3a80da4f94 ./artifacts/E3-propose.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E3m-propose.err +0b0116bd38625fd832049686dfe9bc2b9a937f4008b245574271e51e72cd5169 ./artifacts/E3m-propose.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E6-authorize.err +40899c77cd41bf0433a81f6eb96eace57d6fd5944a6f09e937f0f072ccb8825f ./artifacts/E6-authorize.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E6-execute-dead.err +6930b33045f275d70694f34b454b60b0c8e8bea6a583c15678a3164d938e66f1 ./artifacts/E6-execute-dead.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E6-execute-third.err +476a2300cde688f9ffd7526e11d339c79d181b8e0b675aac8e16060fbdd53efb ./artifacts/E6-execute-third.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E6-execute.err +c721fc11acbefc2d343a90ac8bf72798c602720923b635b67a75e8ebd3a9191e ./artifacts/E6-execute.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E6-propose.err +ba81f181c9425ee7b0df24e54a9aa64b9eae6e22a62c3f2c37d90fe260b8d2df ./artifacts/E6-propose.json +cbd8ced6c321792aeb1c821b657b46bee7ed2cbb88b4d1911c6448fe9407eb13 ./artifacts/daemon-1-nokey.log +972dfd2c1884d35deda37557a1150f9e5de7affe5a4afbb4f57427cc31609c84 ./artifacts/daemon-2.log +ce576b3c3b20ea2c253efdc016e9fc4fd72f47644f4cdd1fe324da342961995b ./artifacts/daemon-3.log +2658015b80c9d0409abb2ba77c674a6e4037fb6c760e95379870288e5d36dbad ./artifacts/deskkey.json +9e91b0718c95cc59bc6600a334125e413dc41247a6560ad661ee0c1e9b77a7b3 ./chain/001-PRE.json +b0a001a24e6eb40cd4448a1eb008a1e2713cfc2790aa8308594a765406a042fe ./chain/002-CTRL-E3a.json +746a7f771f6f200c386ef74f4cf3c469422b46a723fa9237975a4f615e15a658 ./chain/003-E1.json +42fd6e9e0be0bb6f2029b0d16215e4a4baa0b3b3e9f8109f5d6ca9b9080c4dfa ./chain/004-E2.json +b02d988113bd272fa976a3bafe91fcbf7237c8c4ce1eddf137d9248128b2ce4f ./chain/005-E3.json +e52e3b6520ab83b71bedc89d0d4593537994dd263650d68756c5748ab49d7161 ./chain/006-E3m.json +0f32a0d0f162ca475489df165b67a1891f23d48c085299976350f5024012143c ./chain/007-E4.json +2f65793b7a8cf1079e4872aa58e1bd647e67dd295f8b97cae830e630ba97db09 ./chain/008-E6.json +50832953bab70108f9d4c5df5353f764e80969cfa47958a83438afc29a6d1ec5 ./chain/009-CTRL-E3b.json +e7168a52ae7737438c30527de01afa14d8b943246b9ca64cde76f0ba6c815c5c ./chain/010-NET.json +2a452f45eca9343377e9091f3ddc86d7aa80d22e7a0301c8b54771006a377025 ./chain/011-CTRL-E4.json +158190381af8926445081f3c14064cc89df6dd83e8ccc15d501da5411b95d9e3 ./chain/012-E5.json +605c652862e8429508262645569216f39dc74da711c092953737f854ef913107 ./chain/013-CTRL-E1.json +8939ff008a71a7baa98f8ff6ac581550f5afcddb8b952d57cbb07efc95436e07 ./chain/014-CTRL-E2.json +b399133205febccda0f42f27168942bf0a305cc9f88b789674624ef2dccb04cc ./chain/015-CTRL-E5.json +4cb1d5b2fffbe2e936d1821c3b9c35918d921f721e3cc55b422f8e76ba2c629b ./chain/016-CTRL-E6.json +fbe225e9c2d17a045c7e133d22b57c60afd713e97cc8ece89c441c9d21c42a19 ./console.log diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/ACCEPTANCE-v1.1.as-run.md b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/ACCEPTANCE-v1.1.as-run.md new file mode 100644 index 00000000..0a58a922 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/ACCEPTANCE-v1.1.as-run.md @@ -0,0 +1,21 @@ +# WHOLE-SYSTEM-E2E, harness v1.1: amended rows for the second declared dry run + +Tracking: aien-dev/aien-architecture#190, lane L1. `ACCEPTANCE-v1.md` stays as written; its run +RUN-1-dry-20261010T133749Z stays recorded (`RESULT-RUN-1-dry.md`). This file changes three rows for the +second declared run and nothing else. Committed before the harness change that implements it. + +Why: in dry run 1 the runtime refused both E3 goals at the propose stage, before the model ran, for reasons +that are its own goal-interpretation limits (aien-sovereign-core#383): "under 200 words" is not a recognized +requirement phrasing, and every file name in a goal is taken as a file to write. E4 and CTRL-E4 were therefore +never measured. The amended rows let the chain reach them while keeping the record honest about what each row +tests. + +| row | v1.1 wording and rule | prediction | +|---|---|---| +| E3 | the contract objective in the wording of aien-architecture#196: `Read the three text files in the inbox folder and write a Markdown report named report.md in the outbox folder. Start with a Markdown heading line that begins with "# ". Use at most 200 words. Mention each file by name.` Rule unchanged (DONE, digest match, `# ` first line, at most 200 words, all three file names, second execute `AlreadySpent`). `objective_id` is the sha256 of this text. | FAIL on the file-name check (the proposer cannot read files, sc#382), or a propose refusal; either is recorded | +| E3m | the mechanics objective names topics instead of files: `Write a Markdown report named report.md about the harbour, the orchard and the windmill. Start with a Markdown heading line that begins with "# ". Use at most 200 words. Mention the harbour, the orchard and the windmill.` Rule: as E3, with the three topic words in place of the file names. | PASS | +| E4 | the remembered item is `the topic reported on first is the harbour`; the second objective is `Append one line to report.md naming the topic you reported on first.`; the appended line must contain `harbour` (case-insensitive). Other rules unchanged. | PASS or FAIL as measured | + +Also recorded, not judged (no rule change): the folder the engine chose for `done.md` and `ctrl.md` (dry run 1 +wrote `done.md` at the workspace root although the goal said "in the outbox folder"; aien-sovereign-core#383 +item 3). Every other row, rule, prediction and limit of `ACCEPTANCE-v1.md` applies unchanged. diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/ACCEPTANCE-v1.as-run.md b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/ACCEPTANCE-v1.as-run.md new file mode 100644 index 00000000..018a88d2 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/ACCEPTANCE-v1.as-run.md @@ -0,0 +1,74 @@ +# WHOLE-SYSTEM-E2E, harness v1 (RUN-1 dry run on the Linux host): pre-registered rows + +Tracking: aien-dev/aien-architecture#190, lane L1 of `docs/plans/release-readiness/INTEGRATION_PLAN.md`. +Contract: aien-architecture `docs/plans/release-readiness/ACCEPTANCE_E2E.md` at commit `0631cf39`, sha256 +`5fd4b3d4a671f70d3799c5efaca11a71093852148425e006465ce9d3b320927d` (status PROPOSED; this file names the +version it was written against). Harness: `scripts/whole_system_e2e.sh` (shell plus `jq`, no Python). + +These rows are committed before the harness code. The harness measures them and never edits them. A row is +PASS only when its rule holds and, where a control exists, the control fails as predicted. NOT_RUN is never +PASS. Every status word below is NOT_RUN at the time of writing. + +## 1. What this harness is and is not + +It chains the steps E2 to E6 of the contract into one receipt chain on the Linux host, one daemon, the +CPU-reference backend, the internal CAND-4 model (Llama 3.2 1B, Drake ruling 2 of 2026-10-10: internal-test +only). It reuses what exists: `aien-cli compose propose / authorize / execute / remember / recall / effects / +shutdown`, the approval desk with its key (sc#342 required by default), SIGKILL and restart as the ALLEN demo +S5 and the NEXT-PHASE-2 fault harness C2a do. It is the first measurement, not a PASS claim for the program. + +Known limits of the engine on 2026-10-10, pre-registered so the rows below are read correctly: + +- **The model sees only the goal text, the workspace path and, in edit mode, the prior content of the one + file it edits** (`crates/aien-runtime/src/spine.rs` `task_decision`, `proposal_prompt`). It cannot read + other workspace files. The contract's fixed objective asks it to read three inbox files, so row E3 is + predicted to FAIL on the "mentions each file by name" check unless the model guesses the names. The + harness runs that objective anyway (the prediction is on record, red before green) and then a mechanics + objective that names the files in the goal, so the chain can continue through E4 and E6. +- **No installation-side objective record exists before work starts** (lane L6). `compose propose` records + the goal inside the proposal report, after the model ran. Row E2 is therefore NOT_RUN; the harness still + writes the objective receipt as the head of the chain so every later receipt names the objective identity. +- **No independent verifier exists yet** (lane L4). Row E5 is NOT_RUN; the harness writes the verdict rows + and the chain manifest the verifier will read. +- **The mid-effect hold points need a test-only build feature** (`fault-hold`). Harness v1 uses the + production binary and kills the daemon between the approval and the start of execution (no hold); the + held variants (kill while the executor is between intent and write) belong to lane L2. + +## 2. Identities (from the contract, section 1) + +- `objective_id` = sha256 of the bytes `AIEN_E2E_OBJECTIVE_V1`, newline, objective text (no trailing newline). +- `run_id` = sha256 of `objective_id`, newline, daemon binary sha256, newline, model weights sha256, newline, + host name (no trailing newline). +- Each receipt is `chain/NNN-<step>.json` with `objective_id`, `run_id`, `step`, `status`, `utc`, + `prev_receipt_sha256` (64 zeros for the first), `evidence` and the step's fields. `chain/SHA256SUMS` lists + every file of the run folder. `VERDICT_ROWS.txt` holds the lines the verifier hashes (contract section 1, + `verdict_id`); the harness does not compute `verdict_id` (that is the verifier's job). + +## 3. Rows + +| row | the harness does | PASS rule | prediction | +|---|---|---|---| +| PRE | records host, `ip route`, quiet flag state, daemon and CLI sha256 (same binary), model weights and tokenizer sha256 against `release/candidate.toml` CAND-4, the daemon's `Backend:` line | backend line contains `CPU-reference`; weights and tokenizer digests equal the candidate record; quiet flag not held; no non-loopback established socket of the daemon at the end of the run | PASS | +| E1 | nothing installed; the daemon runs from a release build of this tree | NOT_RUN by design in RUN-1 (`signature_check` `none`); RUN-3 measures it | NOT_RUN | +| E2 | writes the objective receipt (chain head) with `objective_text_sha256` and `recorded_before_work` true, then starts work | installation-side record before work: NOT_RUN until lane L6; the harness-side receipt is `001-E2` and every later receipt chains to it | NOT_RUN | +| E3 | the contract objective, exactly: `Read the three text files in the inbox folder and write a Markdown report under 200 words named report.md in the outbox folder; begin it with a heading line; mention each file by name.` through propose, authorize (desk on), execute in workspace `ws-contract/` whose `inbox/` holds three UTF-8 files named in the PRE receipt | execute state DONE; the written file exists where the engine put it (recorded) and its sha256 equals the execute `content_sha256`; first line starts with `# `; at most 200 words; contains all three file names; a second execute with the same grant is refused `AlreadySpent` | FAIL on the file-name check (engine limit above) | +| E3m | the mechanics objective in workspace `ws/`: `Write a Markdown report named report.md about the three inbox files named <a>, <b> and <c>. Start with a Markdown heading line that begins with "# ". Use at most 200 words. Mention each of the three file names.` (names filled from the fixture) | same rule as E3 | PASS | +| E4 | `compose remember --text "E4 memory item: the inbox file reported on first is <a>"` (operator surface; automatic recording is lane L3), SIGKILL the daemon, restart, second objective exactly: `Append one line to report.md naming the file you reported on first.` with `--context work` | daemon log shows the restart (`Replay reconcile:` line of daemon 2); the proposal's memory report has context `work` and `items_included` at least 1; `report.md` has exactly one more line than before and that line contains `<a>`; execute DONE; the recall receipt's `utc` is not earlier than the restart | PASS or FAIL as measured (edit mode on a file named without its folder is untested) | +| E5 | writes `VERDICT_ROWS.txt` and `chain/SHA256SUMS` | NOT_RUN until lane L4 | NOT_RUN | +| E6 | objective `Write a file named done.md in the outbox folder containing one line: finished.`: propose, authorize, then SIGKILL the daemon before any execute (`kill_point` `after_authorize_before_execute`), execute once while the daemon is dead (recorded refusal), restart, execute with the same grant, execute a third time | first execute refused (no daemon); after restart the same grant executes to DONE exactly once (`done.md` exists, written once: inode and mtime unchanged by the third call); third execute refused `AlreadySpent`; `duplicates` 0; `restart_count` 1 | PASS (C2a of NEXT-PHASE-2 showed this shape) | +| CTRL-E3a | before the desk key exists: start a daemon with the desk required | the daemon exits without creating the socket and its log names the missing desk key (sc#328, sc#342) | PASS | +| CTRL-E3b | objective `Write a file named ctrl.md in the outbox folder containing one line: control.`: propose, authorize, `compose revoke`, execute | execute refused `Revoked`; `ctrl.md` absent | PASS | +| CTRL-E4 | last step: graceful stop, remove the compose home (the records the recall read from), restart, run the E4 second objective again | a named refusal (not a silently written line) | FAIL predicted (a fresh home is opened silently); recorded either way | +| CTRL-E1, CTRL-E2, CTRL-E5, CTRL-E6 | not measurable in harness v1 (no artifact, no installation-side record, no verifier, no durable objective state) | NOT_RUN with the lane that supplies them (L5, L6, L4, L2) | NOT_RUN | + +## 4. Rules of the run (contract section 5, applied) + +No network use by the run (recorded, not enforced by a sandbox); no Python, no systemd, no CUDA, no GPU; +real weights (CAND-4 digests in every receipt); harness shell plus `jq`; the run folder is never edited after +the manifest is written; one attempt per declared run, a failed run stays recorded. + +## 5. What a PASS of any row does not show + +Nothing about an installed artifact, a public model, the GB10 path, native AIENOS, a hostile operator, or the +correctness of the prose beyond the stated checks. Nothing here is evidence for the program's milestone R5; +this is milestone R4 (harness merged, first dry run recorded). diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/VERDICT_ROWS.txt b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/VERDICT_ROWS.txt new file mode 100644 index 00000000..c504638f --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/VERDICT_ROWS.txt @@ -0,0 +1,16 @@ +objective_id 093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1 +contract_sha256 5fd4b3d4a671f70d3799c5efaca11a71093852148425e006465ce9d3b320927d +CTRL-E3a PASS +E1 NOT_RUN +E2 NOT_RUN +E3 FAIL +E3m PASS +E4 FAIL +E6 PASS +CTRL-E3b FAIL +CTRL-E4 PASS +E5 NOT_RUN +CTRL-E1 NOT_RUN +CTRL-E2 NOT_RUN +CTRL-E5 NOT_RUN +CTRL-E6 NOT_RUN diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E3b-propose.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E3b-propose.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E3b-propose.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E3b-propose.json new file mode 100644 index 00000000..38358e5d --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E3b-propose.json @@ -0,0 +1 @@ +{"ok":true,"report":{"aegis_pass_mask":0,"branch_count":1,"branches_reclaimed":0,"committed":false,"compose_commit":null,"compose_dir":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose","cx_admissions":[75,76],"cx_candidates":[72,73],"cx_evidence":74,"cx_goal":67,"cx_promotion":0,"generation_record":null,"machine_id":"e1a445136a56dab41dd73c02f07edd1606a8f9a8f50506b89dc79b7a28a9864e","memory":{"context":"work","items_included":0,"items_omitted":0,"items_unresolved":0,"reason":"ALLEN is not engaged on this machine, so there is no identity to attach memory to. Nothing was changed.","state":"not_engaged"},"outcome":2,"persona":{"display_name":"","reason":null,"revision":0,"state":"not_engaged"},"proposal":null,"proposal_attempts":[{"aegis":"fail","attempt":1,"decoding":{"greedy_tokens":11,"sampled_tokens":0,"seed_request_id":null,"temperature":null,"top_p":null},"finish_reason":"eos","ms":8489,"ops":{"backend":"ReferenceCpuBackend","native_fallbacks":0,"reference_runs":0,"report":"OP_REPORT native=[rmsnorm,apply_rope,matmul_vec,matmul_batch,swiglu,gqa_attention,paged_attention,paged_attention_batch,compute_logits,rmsnorm_heads] reference=[] native_fallbacks=[] reference_runs=[]"},"outcome":"parsed","prompt_ids_sha256":"2d4f93053088b97286654d493ac7f9b115e7e05cbd3a4a67f0a45745011b960f","prompt_tokens":111,"reason":null,"text":"filename: outbox/ctrl.md\ncontrol: control.","text_sha256":"805af5ef29a839dcda4e7f0bd6e889339cf1347a0c7808387bb43b25cfc62a2c","token_ids":[704,2054,14,12199,22030,198,2935,25,2585,13],"tokens":10,"unmet_requirements":[]}],"proposal_content_sha256":null,"proposal_path":null,"proposal_sha256":null,"proposer":"model:StreamTurn-path","proposer_error":"the proposal writes outbox/ctrl.md but the goal named the destination ctrl.md","record_digest":"c4a37d0aeae6b8d4a5075e43f7a84c1f5b7fb903d3e458174a2efc9030f5f4ee","requirements_recognized":["exactly 1 added non-empty lines"],"requirements_uncertain":[],"task":10978309376341180925,"uncommitted_proposal":null,"winner":null,"winner_digest":"0000000000000000000000000000000000000000000000000000000000000000"},"step":"S3"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E4-deskkey.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E4-deskkey.json new file mode 100644 index 00000000..10f9be7e --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E4-deskkey.json @@ -0,0 +1 @@ +{"desk_key_id":"7612022d62c4844d","ok":true,"path":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose/approval-desk.key"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E4-propose.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E4-propose.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E4-propose.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E4-propose.json new file mode 100644 index 00000000..deae49ce --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/CTRL-E4-propose.json @@ -0,0 +1 @@ +{"error":"compose home /home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose refused: Cortex journal holds 0 records, its record mark says 76: 76 record(s) lost at a record boundary (E_MARK_TRUNCATED, mark seq 17). Run RecoverComposeHome (aien compose recover)","ok":false,"step":"propose"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3-propose.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3-propose.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3-propose.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3-propose.json new file mode 100644 index 00000000..febac50a --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3-propose.json @@ -0,0 +1 @@ +{"ok":true,"report":{"aegis_pass_mask":0,"branch_count":1,"branches_reclaimed":0,"committed":false,"compose_commit":null,"compose_dir":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose","cx_admissions":[14,15],"cx_candidates":[11,12],"cx_evidence":13,"cx_goal":6,"cx_promotion":0,"generation_record":null,"machine_id":"e1a445136a56dab41dd73c02f07edd1606a8f9a8f50506b89dc79b7a28a9864e","memory":{"context":"work","items_included":0,"items_omitted":0,"items_unresolved":0,"reason":"ALLEN is not engaged on this machine, so there is no identity to attach memory to. Nothing was changed.","state":"not_engaged"},"outcome":2,"persona":{"display_name":"","reason":null,"revision":0,"state":"not_engaged"},"proposal":null,"proposal_attempts":[{"aegis":null,"attempt":1,"decoding":{"greedy_tokens":538,"sampled_tokens":0,"seed_request_id":null,"temperature":null,"top_p":null},"finish_reason":"eos","ms":242650,"ops":{"backend":"ReferenceCpuBackend","native_fallbacks":0,"reference_runs":0,"report":"OP_REPORT native=[rmsnorm,apply_rope,matmul_vec,matmul_batch,swiglu,gqa_attention,paged_attention,paged_attention_batch,compute_logits,rmsnorm_heads] reference=[] native_fallbacks=[] reference_runs=[]"},"outcome":"refused","prompt_ids_sha256":"09a11b9623102ed9ac5abff894ec7de4a1c8eeb15fbfbf9172a94744c96ab397","prompt_tokens":143,"reason":"unmet requirement: at most 200 words, found 339","text":"filename: report.md\n# Workspace Contract Proposal\n\nThe following files were read from the inbox folder:\n\n* `ws-contract.txt`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\n* `ws-contract.md`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\n* `ws-contract.txt`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\nThe new file `report.md` will contain the following content:\n\n# Workspace Contract Proposal\n\nThe following files were read from the inbox folder:\n\n* `ws-contract.txt`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\n* `ws-contract.md`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\n* `ws-contract.txt`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\nThe new file `report.md` will contain the following content:\n\n# Workspace Contract Proposal\n\nThe following files were read from the inbox folder:\n\n* `ws-contract.txt`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\n* `ws-contract.md`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\n* `ws-contract.txt`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\nThe new file `report.md` will contain the following content:\n\n# Workspace Contract Proposal\n\nThe following files were read from the inbox folder:\n\n* `ws-contract.txt`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\n* `ws-contract.md`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\n* `ws-contract.txt`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\nThe new file `report.md` will contain the following content:\n\n# Workspace Contract Proposal\n\nThe following files were read from the inbox folder:\n\n* `ws-contract.txt`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\n* `ws-contract.md`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\n* `ws-contract.txt`: \n ```\n# Workspace Contract\nThis is a sample contract for the workspace.\n```\n\nThe new file `report.md` will contain the following content:\n\n# Workspace Contract Proposal","text_sha256":"92cee4d574107936a757026eb6eb434b5118cab0228f63f314cefa2efc9cb6dc","token_ids":[1934,22030,198,2,72034,19735,66990,271,791,2768,3626,1051,1373,505,279,23732,8695,1473,9,256,1595,9092,15204,2193,3996,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,9,256,1595,9092,15204,2193,22030,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,9,256,1595,9092,15204,2193,3996,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,791,502,1052,1595,11998,22030,63,690,6782,279,2768,2262,1473,2,72034,19735,66990,271,791,2768,3626,1051,1373,505,279,23732,8695,1473,9,256,1595,9092,15204,2193,3996,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,9,256,1595,9092,15204,2193,22030,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,9,256,1595,9092,15204,2193,3996,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,791,502,1052,1595,11998,22030,63,690,6782,279,2768,2262,1473,2,72034,19735,66990,271,791,2768,3626,1051,1373,505,279,23732,8695,1473,9,256,1595,9092,15204,2193,3996,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,9,256,1595,9092,15204,2193,22030,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,9,256,1595,9092,15204,2193,3996,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,791,502,1052,1595,11998,22030,63,690,6782,279,2768,2262,1473,2,72034,19735,66990,271,791,2768,3626,1051,1373,505,279,23732,8695,1473,9,256,1595,9092,15204,2193,3996,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,9,256,1595,9092,15204,2193,22030,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,9,256,1595,9092,15204,2193,3996,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,791,502,1052,1595,11998,22030,63,690,6782,279,2768,2262,1473,2,72034,19735,66990,271,791,2768,3626,1051,1373,505,279,23732,8695,1473,9,256,1595,9092,15204,2193,3996,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,9,256,1595,9092,15204,2193,22030,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,9,256,1595,9092,15204,2193,3996,45722,720,262,42333,2,72034,19735,198,2028,374,264,6205,5226,369,279,28614,627,14196,19884,791,502,1052,1595,11998,22030,63,690,6782,279,2768,2262,1473,2,72034,19735,66990],"tokens":537,"unmet_requirements":["at most 200 words, found 339"]},{"aegis":null,"attempt":2,"finish_reason":null,"ms":356384,"outcome":"timeout","prompt_ids_sha256":null,"prompt_tokens":null,"reason":"model proposal exceeded 356348 ms","text":null,"text_sha256":null,"token_ids":null,"tokens":0,"unmet_requirements":[]}],"proposal_content_sha256":null,"proposal_path":null,"proposal_sha256":null,"proposer":"model:StreamTurn-path","proposer_error":"model proposal exceeded 356348 ms; no attempt 3: 0 ms left < 30000 ms per-attempt budget","record_digest":"d69a5371da3fc39f6cc63abfdb75bc6eb6af96e8806c18d8e3a401216c8b8b05","requirements_recognized":["at most 200 words","a level-1 markdown heading (\"# \") as the first line"],"requirements_uncertain":[],"task":8038255450454687511,"uncommitted_proposal":null,"winner":null,"winner_digest":"0000000000000000000000000000000000000000000000000000000000000000"},"step":"S3"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-authorize.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-authorize.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-authorize.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-authorize.json new file mode 100644 index 00000000..57f3dcba --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-authorize.json @@ -0,0 +1 @@ +{"approvals":1,"authorization":{"digest":"4f366f3a8891ec27aa1724f28af0b57775fb6a59135fe8a08a833b835aa831a9","id":28,"kind":"authorization","links":[27],"machine_id":"e1a445136a56dab41dd73c02f07edd1606a8f9a8f50506b89dc79b7a28a9864e","text_sha256":"3d4cd7b540cadab44352da52745bb4096fc8f2321c6f309027b5e3a2a8837f7f"},"ok":true,"receipt":{"arguments_digest":"sha256:f538987ea43c1aba39b170b9855435d63a3aa65f11abaef221b767a89d3207d1","path":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/prov/1791640489757116573-618703.json","result_digest":"sha256:bfae85752b18fe7176d9c51c9b3e60cf14a98fef1452e66bd34c4f333ce059a6","sha256":"32ffe46db8cba3c92cde63ea9a12ccfc18906486b56977e6ff70f3bc75b9e08b","success":true,"tool":"authorize"},"step":"S4"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-execute-again.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-execute-again.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-execute-again.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-execute-again.json new file mode 100644 index 00000000..517d3ae0 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-execute-again.json @@ -0,0 +1 @@ +{"error":"EFFECT_REFUSED AlreadySpent: authorization #28 was spent by intent #29 (DONE); a new effect needs a new authorization","ok":false,"step":"execute"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-execute.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-execute.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-execute.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-execute.json new file mode 100644 index 00000000..bc0a21aa --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-execute.json @@ -0,0 +1 @@ +{"ack_error":null,"bytes":1007,"content_sha256":"acf264882917a4b4ddaeb3b59e809e09d232ae3dde6acaacad1e7a8424b16e66","disk_sha256":"acf264882917a4b4ddaeb3b59e809e09d232ae3dde6acaacad1e7a8424b16e66","effect":{"id":30},"intent":{"digest":"db88a0f53fa9dc0ac2f4c2ae1b2214bb2f9996bd5298e570875731c2b98166f2","id":29,"kind":"effect","links":[28],"machine_id":"e1a445136a56dab41dd73c02f07edd1606a8f9a8f50506b89dc79b7a28a9864e","text_sha256":"f92089b2da77fb03e54888c1ffe5d8001a24867c00bbc6849a2e177f79fdda36"},"ok":true,"path":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/ws/report.md","receipt":{"arguments_digest":"sha256:1bd4920a7b4a6d463f4ba62ebdc45ad426ea0160551b0b2ce849ebac5ace06ed","path":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/prov/1791640489784521782-618728.json","result_digest":"sha256:431a0266b674d2e9b097afdca744486f0259161df7ced211af358b9a303fc786","sha256":"bcebb3063192c5c5e4484d102ff05e41dbca75335183e8be025d526e9a3bdc6f","success":true,"tool":"write_file"},"state":"DONE","step":"S5"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-propose.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-propose.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-propose.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-propose.json new file mode 100644 index 00000000..0e616657 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-propose.json @@ -0,0 +1 @@ +{"ok":true,"report":{"aegis_pass_mask":1,"branch_count":1,"branches_reclaimed":0,"committed":true,"compose_commit":27,"compose_dir":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose","cx_admissions":[25],"cx_candidates":[21,22],"cx_evidence":23,"cx_goal":16,"cx_promotion":24,"generation_record":26,"machine_id":"e1a445136a56dab41dd73c02f07edd1606a8f9a8f50506b89dc79b7a28a9864e","memory":{"context":"work","items_included":0,"items_omitted":0,"items_unresolved":0,"reason":"ALLEN is not engaged on this machine, so there is no identity to attach memory to. Nothing was changed.","state":"not_engaged"},"outcome":1,"persona":{"display_name":"","reason":null,"revision":0,"state":"not_engaged"},"proposal":"filename: report.md\n\n# Harbour, Orchard, and Windmill\n\nThe harbour is a bustling hub of activity, with boats and ships coming and going from the water's edge. The harbour is a vital part of the local economy, providing a safe and efficient way to transport goods and people. The harbour is also a popular spot for recreation, with many people visiting to enjoy the views and take part in water sports.\n\nThe orchard, located just a short walk from the harbour, is a peaceful oasis in the midst of the bustling town. The orchard is home to a variety of fruit trees, including apples, pears, and plums. Visitors can stroll through the orchard, taking in the sights and sounds of nature, and enjoying the fresh air and exercise.\n\nThe windmill, situated on the outskirts of the town, is a historic landmark and a popular tourist attraction. The windmill has been in operation for centuries, and is still used today to grind grain and pump water. Visitors can take a tour of the windmill and learn about its history and significance.","proposal_attempts":[{"aegis":"pass","attempt":1,"decoding":{"greedy_tokens":216,"sampled_tokens":0,"seed_request_id":null,"temperature":null,"top_p":null},"finish_reason":"eos","ms":141728,"ops":{"backend":"ReferenceCpuBackend","native_fallbacks":0,"reference_runs":0,"report":"OP_REPORT native=[rmsnorm,apply_rope,matmul_vec,matmul_batch,swiglu,gqa_attention,paged_attention,paged_attention_batch,compute_logits,rmsnorm_heads] reference=[] native_fallbacks=[] reference_runs=[]"},"outcome":"parsed","prompt_ids_sha256":"26584905b7d42aaebcd0a425e994e13e5eca2a5feefa3dc3511eedaad211057b","prompt_tokens":143,"reason":null,"text":"filename: report.md\n\n# Harbour, Orchard, and Windmill\n\nThe harbour is a bustling hub of activity, with boats and ships coming and going from the water's edge. The harbour is a vital part of the local economy, providing a safe and efficient way to transport goods and people. The harbour is also a popular spot for recreation, with many people visiting to enjoy the views and take part in water sports.\n\nThe orchard, located just a short walk from the harbour, is a peaceful oasis in the midst of the bustling town. The orchard is home to a variety of fruit trees, including apples, pears, and plums. Visitors can stroll through the orchard, taking in the sights and sounds of nature, and enjoying the fresh air and exercise.\n\nThe windmill, situated on the outskirts of the town, is a historic landmark and a popular tourist attraction. The windmill has been in operation for centuries, and is still used today to grind grain and pump water. Visitors can take a tour of the windmill and learn about its history and significance.","text_sha256":"6d2ccb66727436a2093d10c91b35db2538ea73bf6a0dd65f086c4f9972f7da89","token_ids":[1934,22030,271,2,63107,11,84252,11,323,22862,26064,271,791,75742,374,264,90256,19240,315,5820,11,449,32731,323,18198,5108,323,2133,505,279,3090,596,6964,13,578,75742,374,264,16595,961,315,279,2254,8752,11,8405,264,6220,323,11297,1648,311,7710,11822,323,1274,13,578,75742,374,1101,264,5526,7858,369,47044,11,449,1690,1274,17136,311,4774,279,6325,323,1935,961,304,3090,10034,382,791,41245,569,11,7559,1120,264,2875,4321,505,279,75742,11,374,264,26733,86810,304,279,35446,315,279,90256,6424,13,578,41245,569,374,2162,311,264,8205,315,14098,12690,11,2737,41776,11,281,7596,11,323,628,6370,13,69940,649,69983,1555,279,41245,569,11,4737,304,279,42266,323,10578,315,7138,11,323,22128,279,7878,3805,323,10368,382,791,10160,26064,11,31183,389,279,71333,315,279,6424,11,374,264,18526,38350,323,264,5526,31070,33464,13,578,10160,26064,706,1027,304,5784,369,24552,11,323,374,2103,1511,3432,311,40336,24875,323,14155,3090,13,69940,649,1935,264,7364,315,279,10160,26064,323,4048,922,1202,3925,323,26431,13],"tokens":215,"unmet_requirements":[]}],"proposal_content_sha256":"acf264882917a4b4ddaeb3b59e809e09d232ae3dde6acaacad1e7a8424b16e66","proposal_path":"report.md","proposal_sha256":"6d2ccb66727436a2093d10c91b35db2538ea73bf6a0dd65f086c4f9972f7da89","proposer":"model:StreamTurn-path","proposer_error":null,"record_digest":"366afd1bec495f68ff17db0a13f68158fc3b26d754d617df11fba36dd9f94126","requirements_recognized":["at most 200 words","a level-1 markdown heading (\"# \") as the first line"],"requirements_uncertain":[],"task":10524169596712196927,"uncommitted_proposal":null,"winner":0,"winner_digest":"3ad75187945290363228f715842e6f098fdc86afb47f85d9edd6181732ff448c"},"step":"S3"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-report.md b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-report.md new file mode 100644 index 00000000..40b6d226 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E3m-report.md @@ -0,0 +1,7 @@ +# Harbour, Orchard, and Windmill + +The harbour is a bustling hub of activity, with boats and ships coming and going from the water's edge. The harbour is a vital part of the local economy, providing a safe and efficient way to transport goods and people. The harbour is also a popular spot for recreation, with many people visiting to enjoy the views and take part in water sports. + +The orchard, located just a short walk from the harbour, is a peaceful oasis in the midst of the bustling town. The orchard is home to a variety of fruit trees, including apples, pears, and plums. Visitors can stroll through the orchard, taking in the sights and sounds of nature, and enjoying the fresh air and exercise. + +The windmill, situated on the outskirts of the town, is a historic landmark and a popular tourist attraction. The windmill has been in operation for centuries, and is still used today to grind grain and pump water. Visitors can take a tour of the windmill and learn about its history and significance. diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E4-propose.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E4-propose.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E4-propose.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E4-propose.json new file mode 100644 index 00000000..9843e5d4 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E4-propose.json @@ -0,0 +1 @@ +{"ok":true,"report":{"aegis_pass_mask":0,"branch_count":1,"branches_reclaimed":0,"committed":false,"compose_commit":null,"compose_dir":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose","cx_admissions":[45,46],"cx_candidates":[42,43],"cx_evidence":44,"cx_goal":37,"cx_promotion":0,"generation_record":null,"machine_id":"e1a445136a56dab41dd73c02f07edd1606a8f9a8f50506b89dc79b7a28a9864e","memory":{"context":"work","items_included":0,"items_omitted":0,"items_unresolved":0,"reason":"ALLEN is not engaged on this machine, so there is no identity to attach memory to. Nothing was changed.","state":"not_engaged"},"outcome":2,"persona":{"display_name":"","reason":null,"revision":0,"state":"not_engaged"},"proposal":null,"proposal_attempts":[{"aegis":null,"attempt":1,"decoding":{"greedy_tokens":48,"sampled_tokens":0,"seed_request_id":null,"temperature":null,"top_p":null},"finish_reason":"max_tokens","ms":33729,"ops":{"backend":"ReferenceCpuBackend","native_fallbacks":0,"reference_runs":0,"report":"OP_REPORT native=[rmsnorm,apply_rope,matmul_vec,matmul_batch,swiglu,gqa_attention,paged_attention,paged_attention_batch,compute_logits,rmsnorm_heads] reference=[] native_fallbacks=[] reference_runs=[]"},"outcome":"refused","prompt_ids_sha256":"5f3a3579abdcd03e0d51ed7e93d8949326ab0dba8d10da87c0bb5b8eb41eb4d5","prompt_tokens":330,"reason":"reply cut at the token limit after 48 tokens (finish_reason max_tokens); a cut reply is never a proposal","text":"filename: report.md\n# Harbour, Orchard, and Windmill\n\nThe harbour is a bustling hub of activity, with boats and ships coming and going from the water's edge. The harbour is a vital part of the local economy, providing a safe","text_sha256":"40da8432dad759baab4a4b845f965def9875a6292ac0f990ff25015005b59a3d","token_ids":[1934,22030,198,2,63107,11,84252,11,323,22862,26064,271,791,75742,374,264,90256,19240,315,5820,11,449,32731,323,18198,5108,323,2133,505,279,3090,596,6964,13,578,75742,374,264,16595,961,315,279,2254,8752,11,8405,264,6220],"tokens":48,"unmet_requirements":[]},{"aegis":null,"attempt":2,"decoding":{"greedy_tokens":48,"sampled_tokens":0,"seed_request_id":null,"temperature":null,"top_p":null},"finish_reason":"max_tokens","ms":35425,"ops":{"backend":"ReferenceCpuBackend","native_fallbacks":0,"reference_runs":0,"report":"OP_REPORT native=[rmsnorm,apply_rope,matmul_vec,matmul_batch,swiglu,gqa_attention,paged_attention,paged_attention_batch,compute_logits,rmsnorm_heads] reference=[] native_fallbacks=[] reference_runs=[]"},"outcome":"refused","prompt_ids_sha256":"6a23a55d15a1c8015b40a6f0faf87dd21f5026909431907908661087460779d6","prompt_tokens":373,"reason":"reply cut at the token limit after 48 tokens (finish_reason max_tokens); a cut reply is never a proposal","text":"filename: ./report.md\n# Harbour, Orchard, and Windmill\n\nThe harbour is a bustling hub of activity, with boats and ships coming and going from the water's edge. The harbour is a vital part of the local economy, providing a","text_sha256":"9af672d671a18cfcd197848812c92915af544978ac12204bb34a0ff6edd8781b","token_ids":[13288,11998,22030,198,2,63107,11,84252,11,323,22862,26064,271,791,75742,374,264,90256,19240,315,5820,11,449,32731,323,18198,5108,323,2133,505,279,3090,596,6964,13,578,75742,374,264,16595,961,315,279,2254,8752,11,8405,264],"tokens":48,"unmet_requirements":[]},{"aegis":null,"attempt":3,"decoding":{"greedy_tokens":48,"sampled_tokens":0,"seed_request_id":null,"temperature":null,"top_p":null},"finish_reason":"max_tokens","ms":35678,"ops":{"backend":"ReferenceCpuBackend","native_fallbacks":0,"reference_runs":0,"report":"OP_REPORT native=[rmsnorm,apply_rope,matmul_vec,matmul_batch,swiglu,gqa_attention,paged_attention,paged_attention_batch,compute_logits,rmsnorm_heads] reference=[] native_fallbacks=[] reference_runs=[]"},"outcome":"refused","prompt_ids_sha256":"6a23a55d15a1c8015b40a6f0faf87dd21f5026909431907908661087460779d6","prompt_tokens":373,"reason":"reply cut at the token limit after 48 tokens (finish_reason max_tokens); a cut reply is never a proposal","text":"filename: ./report.md\n# Harbour, Orchard, and Windmill\n\nThe harbour is a bustling hub of activity, with boats and ships coming and going from the water's edge. The harbour is a vital part of the local economy, providing a","text_sha256":"9af672d671a18cfcd197848812c92915af544978ac12204bb34a0ff6edd8781b","token_ids":[13288,11998,22030,198,2,63107,11,84252,11,323,22862,26064,271,791,75742,374,264,90256,19240,315,5820,11,449,32731,323,18198,5108,323,2133,505,279,3090,596,6964,13,578,75742,374,264,16595,961,315,279,2254,8752,11,8405,264],"tokens":48,"unmet_requirements":[]}],"proposal_content_sha256":null,"proposal_path":null,"proposal_sha256":null,"proposer":"model:StreamTurn-path","proposer_error":"reply cut at the token limit after 48 tokens (finish_reason max_tokens); a cut reply is never a proposal","record_digest":"3666a86733e1f7d05807fa6e8bde7f20ef591d066cc85faedf4725da4be271c2","requirements_recognized":["exactly 1 added non-empty lines"],"requirements_uncertain":[],"task":6544389821055936987,"uncommitted_proposal":null,"winner":null,"winner_digest":"0000000000000000000000000000000000000000000000000000000000000000"},"step":"S3"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E4-remember.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E4-remember.json new file mode 100644 index 00000000..8098d06a --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E4-remember.json @@ -0,0 +1 @@ +{"constraint":{"digest":"d88ea8ad466603e83e17e7c202d4f663de8a85022a3f4035f941d3b8ea0cc5a0","id":31,"kind":"constraint","links":[],"machine_id":"e1a445136a56dab41dd73c02f07edd1606a8f9a8f50506b89dc79b7a28a9864e","text_sha256":"715ec784b643c9428ab41f06b5a41e85a6f480cee1066740d625f734ea71bf73"},"ok":true,"step":"S1"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-authorize.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-authorize.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-authorize.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-authorize.json new file mode 100644 index 00000000..fe55e510 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-authorize.json @@ -0,0 +1 @@ +{"approvals":1,"authorization":{"digest":"5fa1881fc3c8e47d7a2048f47de4d9614a972e70545261fc337db640e95b24ba","id":59,"kind":"authorization","links":[58],"machine_id":"e1a445136a56dab41dd73c02f07edd1606a8f9a8f50506b89dc79b7a28a9864e","text_sha256":"8335f4a8bab3aeccab3facf6eaf0dda1c71dd465058b1f464e58239f0cce52b3"},"ok":true,"receipt":{"arguments_digest":"sha256:866811e03c87707fbb60969954947f6ed2584aba3c0e1e24141382a9f4831401","path":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/prov/1791640625978364260-626504.json","result_digest":"sha256:4d3663f46c2e44b52867ed3bc3076c06e54fc5c13b85d228e32ba873db8e62ca","sha256":"c81ed1fe941a5cdcb130dcc5ad91c2b20520ac2b4e31fb1fba6d0ecf69b8e0c7","success":true,"tool":"authorize"},"step":"S4"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute-dead.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute-dead.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute-dead.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute-dead.json new file mode 100644 index 00000000..833dacd8 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute-dead.json @@ -0,0 +1 @@ +{"error":"Failed to connect to AIEN runtime socket at /home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/s: No such file or directory (os error 2)","ok":false,"step":"execute"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute-third.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute-third.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute-third.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute-third.json new file mode 100644 index 00000000..e70a4213 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute-third.json @@ -0,0 +1 @@ +{"error":"EFFECT_REFUSED AlreadySpent: authorization #59 was spent by intent #65 (DONE); a new effect needs a new authorization","ok":false,"step":"execute"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute.json new file mode 100644 index 00000000..7c4a8131 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-execute.json @@ -0,0 +1 @@ +{"ack_error":null,"bytes":10,"content_sha256":"25b7677d27bf95b7ad1a01dd9de1361c78730a24991a03893fae7d0e2f2cb079","disk_sha256":"25b7677d27bf95b7ad1a01dd9de1361c78730a24991a03893fae7d0e2f2cb079","effect":{"id":66},"intent":{"digest":"2e4468c48e3a49df457f55634f16b6eab2b4600f2b3527f136a6fe2836336070","id":65,"kind":"effect","links":[59],"machine_id":"e1a445136a56dab41dd73c02f07edd1606a8f9a8f50506b89dc79b7a28a9864e","text_sha256":"77b8c9e21f88b1a5b7dd8110f29683e2a9b44ea8f097dd10eeb1c380364296f5"},"ok":true,"path":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/ws/done.md","receipt":{"arguments_digest":"sha256:3d33cc18a8fa8c52693f4976a1a74c5adedc934b8d07447c14b08ab24407f82b","path":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/prov/1791640650770769749-627894.json","result_digest":"sha256:052acb58558f274e5776d7533535c89a1f879cc944b2e6ea748ac84160cecf25","sha256":"faa979baa6277991551119f725824dac14da2e5388f42ac537bd2a38c9501920","success":true,"tool":"write_file"},"state":"DONE","step":"S5"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-propose.err b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-propose.err new file mode 100644 index 00000000..e69de29b diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-propose.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-propose.json new file mode 100644 index 00000000..acb2dd52 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/E6-propose.json @@ -0,0 +1 @@ +{"ok":true,"report":{"aegis_pass_mask":1,"branch_count":1,"branches_reclaimed":0,"committed":true,"compose_commit":58,"compose_dir":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose","cx_admissions":[56],"cx_candidates":[52,53],"cx_evidence":54,"cx_goal":47,"cx_promotion":55,"generation_record":57,"machine_id":"e1a445136a56dab41dd73c02f07edd1606a8f9a8f50506b89dc79b7a28a9864e","memory":{"context":"work","items_included":0,"items_omitted":0,"items_unresolved":0,"reason":"ALLEN is not engaged on this machine, so there is no identity to attach memory to. Nothing was changed.","state":"not_engaged"},"outcome":1,"persona":{"display_name":"","reason":null,"revision":0,"state":"not_engaged"},"proposal":"filename: done.md\nfinished.","proposal_attempts":[{"aegis":"pass","attempt":1,"decoding":{"greedy_tokens":6,"sampled_tokens":0,"seed_request_id":null,"temperature":null,"top_p":null},"finish_reason":"eos","ms":6372,"ops":{"backend":"ReferenceCpuBackend","native_fallbacks":0,"reference_runs":0,"report":"OP_REPORT native=[rmsnorm,apply_rope,matmul_vec,matmul_batch,swiglu,gqa_attention,paged_attention,paged_attention_batch,compute_logits,rmsnorm_heads] reference=[] native_fallbacks=[] reference_runs=[]"},"outcome":"parsed","prompt_ids_sha256":"5777ba081d9611f8b5e5db8636cad6c64fcddc4d14cbd9a5714906a54d3b7443","prompt_tokens":111,"reason":null,"text":"filename: done.md\nfinished.","text_sha256":"cd19a7083438b4db9bc8b10919f057683aa401a0328f527fdbbcef9731939fa4","token_ids":[2884,22030,198,12402,13],"tokens":5,"unmet_requirements":[]}],"proposal_content_sha256":"25b7677d27bf95b7ad1a01dd9de1361c78730a24991a03893fae7d0e2f2cb079","proposal_path":"done.md","proposal_sha256":"cd19a7083438b4db9bc8b10919f057683aa401a0328f527fdbbcef9731939fa4","proposer":"model:StreamTurn-path","proposer_error":null,"record_digest":"691b1b84259a5888c79adb5e08b87c386ee0df0697474c903bcf0c91204de036","requirements_recognized":["exactly 1 added non-empty lines"],"requirements_uncertain":[],"task":16235821891164335687,"uncommitted_proposal":null,"winner":0,"winner_digest":"5d578a1b9bc7a8723d0adc6f20829188c638790076db502f839297e91e750f2e"},"step":"S3"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/deskkey.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/deskkey.json new file mode 100644 index 00000000..6df0302f --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/artifacts/deskkey.json @@ -0,0 +1 @@ +{"desk_key_id":"97360aba58fa10d2","ok":true,"path":"/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose/approval-desk.key"} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/001-PRE.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/001-PRE.json new file mode 100644 index 00000000..a1456e09 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/001-PRE.json @@ -0,0 +1,37 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "PRE", + "status": "PASS", + "utc": "2026-10-10T13:42:28Z", + "prev_receipt_sha256": "0000000000000000000000000000000000000000000000000000000000000000", + "evidence": "host spark-b87b; model unsloth/Llama-3.2-1B-Instruct; backend 'Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)'", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "inbox_files": [ + { + "name": "harbour-notes.txt", + "sha256": "67477d14dc47e0b8e299878677b5d85ac6338982acb24ea4b24173cbb59c8a07" + }, + { + "name": "orchard-ledger.txt", + "sha256": "f0f03a116eebd299284b09b3624f0c2c57ac93ba971e58b6f41742bf76d7f6b9" + }, + { + "name": "windmill-log.txt", + "sha256": "d8451041780fa0660e186c1112c73c682cb510dacf72f05d798826cd93892bf9" + } + ], + "ip_route": "default via 192.168.1.1 dev enP7s7 proto dhcp src 192.168.1.108 metric 100 ;172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 ;172.18.0.0/16 dev br-0c02a93594d1 proto kernel scope link src 172.18.0.1 ;172.20.0.0/16 dev br-f8be5866d418 proto kernel scope link src 172.20.0.1 linkdown ;172.29.90.0/24 dev atlasci0 proto kernel scope link src 172.29.90.1 linkdown ;", + "quiet_flag": "not-held", + "candidate_model_id": "unsloth/Llama-3.2-1B-Instruct", + "candidate_weights_sha256": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "candidate_tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "model_dir": "/home/drakestapleton/.cache/huggingface/hub/models--unsloth--Llama-3.2-1B-Instruct/snapshots/5a8abab4a5d6f164389b1079fb721cfab8d7126c/", + "network_check": "recorded in the NET receipt" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/002-CTRL-E3a.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/002-CTRL-E3a.json new file mode 100644 index 00000000..c711c9e2 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/002-CTRL-E3a.json @@ -0,0 +1,18 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "CTRL-E3a", + "status": "PASS", + "utc": "2026-10-10T13:42:28Z", + "prev_receipt_sha256": "cf5ef8c430507f9c58bfd0a509c512c0489d59d4bdad809cdfca7d39c763bb4a", + "evidence": "daemon without a desk key exited 1 before serving; log: Fatal: the approval desk is required (AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK unset or 1) but its key is not usable: PROPOSAL_REFUSED NoDesk: /home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compos", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "exit": "1", + "log_line": "Fatal: the approval desk is required (AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK unset or 1) but its key is not usable: PROPOSAL_REFUSED NoDesk: /home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compos" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/003-E1.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/003-E1.json new file mode 100644 index 00000000..3261f8df --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/003-E1.json @@ -0,0 +1,18 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "E1", + "status": "NOT_RUN", + "utc": "2026-10-10T13:42:28Z", + "prev_receipt_sha256": "292736775e64b4b2ae3ee28565461ced4d23181ea6684e8a8d207c2d616bf0eb", + "evidence": "RUN-1 runs from a release build of this tree; nothing installed; RUN-3 measures E1", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "signature_check": "none", + "artifact_sha256": null +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/004-E2.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/004-E2.json new file mode 100644 index 00000000..00490052 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/004-E2.json @@ -0,0 +1,21 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "E2", + "status": "NOT_RUN", + "utc": "2026-10-10T13:42:28Z", + "prev_receipt_sha256": "edf1a3651eca13b09e94de7e7108f869f5f63196896795a2cb5be150799fc0d8", + "evidence": "harness-side objective receipt written before any work (this receipt); installation-side record before work does not exist yet (lane L6)", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "objective_text": "Read the three text files in the inbox folder and write a Markdown report named report.md in the outbox folder. Start with a Markdown heading line that begins with \"# \". Use at most 200 words. Mention each file by name.", + "objective_text_sha256": "0793f4c281cf79a25544e0e4678825c3acf22f8abd3aa9356b21fdd7f084be3b", + "recorded_before_work": true, + "operator_surface": "harness + aien-cli compose propose", + "installation_record": "NOT_RUN (lane L6)" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/005-E3.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/005-E3.json new file mode 100644 index 00000000..d7db6f2a --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/005-E3.json @@ -0,0 +1,26 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "E3", + "status": "FAIL", + "utc": "2026-10-10T13:52:27Z", + "prev_receipt_sha256": "238f3025c3e9a0c8b7456b5bcf657ea9fb1f020db0c5e636e4dae926170b4d5a", + "evidence": "propose did not commit: model proposal exceeded 356348 ms; no attempt 3: 0 ms left < 30000 ms per-attempt budget", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "written_path": "none", + "effect_state": "none", + "content_sha256": "", + "disk_sha256": "none", + "grant_id": null, + "desk": "required", + "checks_failed": "", + "compose_receipt": null, + "memory_context": "", + "memory_items_included": 0 +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/006-E3m.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/006-E3m.json new file mode 100644 index 00000000..09262232 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/006-E3m.json @@ -0,0 +1,28 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "E3m", + "status": "PASS", + "utc": "2026-10-10T13:54:49Z", + "prev_receipt_sha256": "2f9e37349ffa600967372ff42f95ba16e6e3561f60f62cf7882ff002b66ef4de", + "evidence": "state DONE; written report.md; checks failed [none]; second execute: AlreadySpent", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "written_path": "/home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/ws/report.md", + "effect_state": "DONE", + "content_sha256": "acf264882917a4b4ddaeb3b59e809e09d232ae3dde6acaacad1e7a8424b16e66", + "disk_sha256": "acf264882917a4b4ddaeb3b59e809e09d232ae3dde6acaacad1e7a8424b16e66", + "grant_id": 28, + "desk": "required", + "checks_failed": "", + "compose_receipt": null, + "memory_context": "work", + "memory_items_included": 0, + "second_execute_refusal": "AlreadySpent", + "objective_text": "Write a Markdown report named report.md about the harbour, the orchard and the windmill. Start with a Markdown heading line that begins with \"# \". Use at most 200 words. Mention the harbour, the orchard and the windmill." +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/007-E4.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/007-E4.json new file mode 100644 index 00000000..a5131847 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/007-E4.json @@ -0,0 +1,20 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "E4", + "status": "FAIL", + "utc": "2026-10-10T13:56:59Z", + "prev_receipt_sha256": "2523e304cd15a87433bd7c7b1d728588c6839f59ad8bcbfa779a4b673ab69077", + "evidence": "kill -9 (exit 137) then restart (Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []); second objective: propose did not commit: reply cut at the token limit after 48 tokens (finish_reason max_tokens); a cut reply is never a proposal", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "restart_kind": "sigkill", + "effect_state": "none", + "memory_context": "", + "memory_items_included": 0 +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/008-E6.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/008-E6.json new file mode 100644 index 00000000..ed27c4f0 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/008-E6.json @@ -0,0 +1,26 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "E6", + "status": "PASS", + "utc": "2026-10-10T13:57:30Z", + "prev_receipt_sha256": "e457b5acda4c0f6eeb41ada8bbe2052fbd08f80734059ab5f499609016d155da", + "evidence": "kill -9 (exit 137) after authorize; execute while dead: state none (no refusal text), wrote=no; restart (Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []); same grant: DONE; third execute: AlreadySpent; duplicates 0", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "kill_point": "after_authorize_before_execute", + "restart_count": 1, + "effects_before_kill": 0, + "effects_after_restart": 1, + "duplicates": 0, + "grant_id": 59, + "refusal_while_dead": "", + "third_execute_refusal": "AlreadySpent", + "written_path": "done.md", + "compose_receipt": null +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/009-CTRL-E3b.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/009-CTRL-E3b.json new file mode 100644 index 00000000..cfcaf3e9 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/009-CTRL-E3b.json @@ -0,0 +1,16 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "CTRL-E3b", + "status": "FAIL", + "utc": "2026-10-10T13:57:39Z", + "prev_receipt_sha256": "a38e24d1593140b283dcf9bc0a49bc119bd61d4bad945fc6e29a1bab99a3836d", + "evidence": "propose did not commit: the proposal writes outbox/ctrl.md but the goal named the destination ctrl.md", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/010-NET.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/010-NET.json new file mode 100644 index 00000000..a48bc679 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/010-NET.json @@ -0,0 +1,17 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "NET", + "status": "PASS", + "utc": "2026-10-10T13:57:39Z", + "prev_receipt_sha256": "1dd5ba03c6f439d80be79c0e4a390a86367e162e89c1d6d7fbff35734d6f7d0d", + "evidence": "established TCP sockets of the daemon pid: 0", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "daemon_established_tcp": 0 +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/011-CTRL-E4.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/011-CTRL-E4.json new file mode 100644 index 00000000..3c19a6d5 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/011-CTRL-E4.json @@ -0,0 +1,20 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "CTRL-E4", + "status": "PASS", + "utc": "2026-10-10T13:58:04Z", + "prev_receipt_sha256": "700fbc8ce3f6f394f4455f0006961e5e3a243091eb9225c18d2a3640bd054ec8", + "evidence": "store removed: refused (propose did not commit: compose home /home/drakestapleton/.claude/jobs/85679b2b/tmp/e2e/run/compose refused: Cortex journal holds 0 records, its record mark says 76: 76 record(s) lost at a record boundary (E_MARK_TRUNCATED, ); report changed=no", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "effect_state": "none", + "memory_context": "", + "memory_items_included": 0, + "report_changed": "no" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/012-E5.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/012-E5.json new file mode 100644 index 00000000..3356dc98 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/012-E5.json @@ -0,0 +1,17 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "E5", + "status": "NOT_RUN", + "utc": "2026-10-10T13:58:04Z", + "prev_receipt_sha256": "6459b3e10b1e62bbfc774fdb77e47f592e955175169dde586c8480ff2574dc1d", + "evidence": "no independent verifier yet (lane L4); VERDICT_ROWS.txt and SHA256SUMS written for it", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b", + "verifier_sha256": null +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/013-CTRL-E1.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/013-CTRL-E1.json new file mode 100644 index 00000000..c4a5208a --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/013-CTRL-E1.json @@ -0,0 +1,16 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "CTRL-E1", + "status": "NOT_RUN", + "utc": "2026-10-10T13:58:04Z", + "prev_receipt_sha256": "1499125acb1a435c7c69b2a1513f5e891665485ceb59002c66acbb6e11fe3ad0", + "evidence": "no release artifact in RUN-1 (lane L5)", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/014-CTRL-E2.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/014-CTRL-E2.json new file mode 100644 index 00000000..67c9f819 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/014-CTRL-E2.json @@ -0,0 +1,16 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "CTRL-E2", + "status": "NOT_RUN", + "utc": "2026-10-10T13:58:04Z", + "prev_receipt_sha256": "d0edc2bd9604e6ecb1d180172d1b2a9645c1b3ab14ead8b9269bb5c6b741ccae", + "evidence": "no installation-side objective record (lane L6)", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/015-CTRL-E5.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/015-CTRL-E5.json new file mode 100644 index 00000000..770524e0 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/015-CTRL-E5.json @@ -0,0 +1,16 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "CTRL-E5", + "status": "NOT_RUN", + "utc": "2026-10-10T13:58:04Z", + "prev_receipt_sha256": "e0aa8b6dd40bac7be7758882a05d39b2bc00fe8fd99c2f3b0b842449774997b5", + "evidence": "no verifier (lane L4)", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/016-CTRL-E6.json b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/016-CTRL-E6.json new file mode 100644 index 00000000..628b9738 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/016-CTRL-E6.json @@ -0,0 +1,16 @@ +{ + "objective_id": "093e66ec92a6b428b49a0aa2a75678e9fdb155f423e1e7c71c5ae9fef11a60b1", + "run_id": "733ac6030d486b46295eede2a276cefc6b60bb903424c922914df7368270d2b1", + "step": "CTRL-E6", + "status": "NOT_RUN", + "utc": "2026-10-10T13:58:04Z", + "prev_receipt_sha256": "0b6c39a6cecb11382b2ae2f96af98bdef44724dae65630fc49ff7bbaf450e86c", + "evidence": "no durable objective state to remove (lane L2)", + "repo_commit": "92a3dbcc28220a0d487cc1f58cba1e2b141b66b9", + "daemon_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "cli_sha256": "0375f8d5e7abdaa4a6bc1dc5a77474ea0adf8f1ba890a813dc616ec39bb1eea5", + "model_weights_digest": "1ff795ff6a07e6a68085d206fb84417da2f083f68391c2843cd2b8ac6df8538f", + "tokenizer_sha256": "6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b", + "backend_line": "Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)", + "host": "spark-b87b" +} diff --git a/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/SHA256SUMS b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/SHA256SUMS new file mode 100644 index 00000000..fb77fa57 --- /dev/null +++ b/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-20261010T134202Z/chain/SHA256SUMS @@ -0,0 +1,55 @@ +eb7ded5ef9f7222fd41ca86a997fb9e205c455dcf9e73be3451d21f60c8f968e ./ACCEPTANCE-v1.1.as-run.md +ade9e6b52672414959835300b06584d5dd9c3930dc08ce91b642bba92f9810ce ./ACCEPTANCE-v1.as-run.md +94e278df0f77c60b01263e536621c0cb4193af726a04e24f013fb92f5b930004 ./VERDICT_ROWS.txt +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/CTRL-E3b-propose.err +6f07821948d8d48bec82b4f768e6d40026d6fe16d88a799324bc7d751cd057b2 ./artifacts/CTRL-E3b-propose.json +473a785ebbf1902e95de6fcae10b2a573eae83e027216feaecab1dee3b233f49 ./artifacts/CTRL-E4-deskkey.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/CTRL-E4-propose.err +90f113a4edf7b7d7a3653fd322f37b4981b9101a6fb7782241208505ac8a9bd8 ./artifacts/CTRL-E4-propose.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E3-propose.err +f714bed3df79ce498f3a4fe0d75f31f0d8b97f6bd88ebd56b3cbb5a4b347138b ./artifacts/E3-propose.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E3m-authorize.err +465d7c5edc97d5aee595a972157af2995a68a9f4b9116ce01185384126a46744 ./artifacts/E3m-authorize.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E3m-execute-again.err +44a33551b2c9f7d3d87fb5e51851b219b7e2a9fee02b8db685d1f2231535ce0a ./artifacts/E3m-execute-again.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E3m-execute.err +389c525d5b6658ec66e89e5d8f8014362a23e17a0f308265d3f5604255956b66 ./artifacts/E3m-execute.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E3m-propose.err +860d83778743e4bbc274e99d0cae4c271e828c56643de38f0afd9fd689d4388c ./artifacts/E3m-propose.json +acf264882917a4b4ddaeb3b59e809e09d232ae3dde6acaacad1e7a8424b16e66 ./artifacts/E3m-report.md +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E4-propose.err +47f8e4a15ea9cb91314b8d2ab2ad901bb278eaea0c009ecb16bcc0670f73743f ./artifacts/E4-propose.json +dfd9e8e6cf183b8d1e0cdc89bfe79ae33291ba05dccdfeb9d28b9dbd4c070278 ./artifacts/E4-remember.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E6-authorize.err +7a1e2935c6529a76338e22088179d2144ad2a20cc315fcd9f4d4c9c6f9eeaa58 ./artifacts/E6-authorize.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E6-execute-dead.err +6930b33045f275d70694f34b454b60b0c8e8bea6a583c15678a3164d938e66f1 ./artifacts/E6-execute-dead.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E6-execute-third.err +c6dfe143a3893476ee57c2abe452262caaad55030882b71c73600a27acac5c3f ./artifacts/E6-execute-third.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E6-execute.err +3c9e068d5f753577cc137143724abbf4f1130100e5d8155cd03fb03473fddb46 ./artifacts/E6-execute.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./artifacts/E6-propose.err +e2f1863642123a01bf1e91a2080efbef4dd2588697124164ea2d0c9045ae075c ./artifacts/E6-propose.json +cbd8ced6c321792aeb1c821b657b46bee7ed2cbb88b4d1911c6448fe9407eb13 ./artifacts/daemon-1-nokey.log +1ada058c6ff36f1c855a52bdea6e641eca40bd99d0b7019bec55e33406fa1e9e ./artifacts/daemon-2.log +892689d324cd6a4bcebb0690b047f22f8f140e7fc4470ee55e087a62446c7c4d ./artifacts/daemon-3.log +23b735c5f2c5197db7894329162925c75f18e6280440274920fdc20ac32cdf53 ./artifacts/daemon-4.log +8a5fc8b98a9db8181e737690175cc2f34a943b26c36fc22ef0a849a230109419 ./artifacts/daemon-5.log +ffdbc1871bd8bcbcca04feddd32adc25ef29c29033e420f080e38b22d76c654a ./artifacts/deskkey.json +cf5ef8c430507f9c58bfd0a509c512c0489d59d4bdad809cdfca7d39c763bb4a ./chain/001-PRE.json +292736775e64b4b2ae3ee28565461ced4d23181ea6684e8a8d207c2d616bf0eb ./chain/002-CTRL-E3a.json +edf1a3651eca13b09e94de7e7108f869f5f63196896795a2cb5be150799fc0d8 ./chain/003-E1.json +238f3025c3e9a0c8b7456b5bcf657ea9fb1f020db0c5e636e4dae926170b4d5a ./chain/004-E2.json +2f9e37349ffa600967372ff42f95ba16e6e3561f60f62cf7882ff002b66ef4de ./chain/005-E3.json +2523e304cd15a87433bd7c7b1d728588c6839f59ad8bcbfa779a4b673ab69077 ./chain/006-E3m.json +e457b5acda4c0f6eeb41ada8bbe2052fbd08f80734059ab5f499609016d155da ./chain/007-E4.json +a38e24d1593140b283dcf9bc0a49bc119bd61d4bad945fc6e29a1bab99a3836d ./chain/008-E6.json +1dd5ba03c6f439d80be79c0e4a390a86367e162e89c1d6d7fbff35734d6f7d0d ./chain/009-CTRL-E3b.json +700fbc8ce3f6f394f4455f0006961e5e3a243091eb9225c18d2a3640bd054ec8 ./chain/010-NET.json +6459b3e10b1e62bbfc774fdb77e47f592e955175169dde586c8480ff2574dc1d ./chain/011-CTRL-E4.json +1499125acb1a435c7c69b2a1513f5e891665485ceb59002c66acbb6e11fe3ad0 ./chain/012-E5.json +d0edc2bd9604e6ecb1d180172d1b2a9645c1b3ab14ead8b9269bb5c6b741ccae ./chain/013-CTRL-E1.json +e0aa8b6dd40bac7be7758882a05d39b2bc00fe8fd99c2f3b0b842449774997b5 ./chain/014-CTRL-E2.json +0b6c39a6cecb11382b2ae2f96af98bdef44724dae65630fc49ff7bbaf450e86c ./chain/015-CTRL-E5.json +2c486b56a39d1dd45145dbcbaa939e917f5375659dfcb51db058cf59a5409e44 ./chain/016-CTRL-E6.json +da90dfa113b208eae57fa0895ead4bb8900303a8eb41fae43b079f9323f5fd00 ./console.log diff --git a/scripts/.crumb b/scripts/.crumb index fcbdc171..ac1b88dc 100644 --- a/scripts/.crumb +++ b/scripts/.crumb @@ -4,14 +4,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-10T09:18:33Z", + "compiled_at": "2026-10-10T14:01:42Z", "compiler": "crumb-compile/1", - "digest": "sha256:81f182fa9182c73c49125cd300b8018d14194b40a2e4fd5ed1cbcd7caba09373", + "digest": "sha256:d1fe9c3e50f927bcb7384365c3ccd84ed1bb651a05edf816be6957a6508694b8", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 27, - "generated_at_commit": "dcace310b9a56a23a5b296d5961d4b433cd96465", - "source_tree": "sha256:4b6a2d0abe747fbeef1b2a3f246cecc5f8531c66ab0d5816a2b63cd279fbbeec" + "files": 28, + "generated_at_commit": "85bea5e179068f0750056c3e1f0375c954c4269d", + "source_tree": "sha256:0d888152806e304ea56866d9e73b60a9549c39fc23525e930e483079595f6220" } }, "parent": { diff --git a/scripts/whole_system_e2e.sh b/scripts/whole_system_e2e.sh new file mode 100755 index 00000000..03348574 --- /dev/null +++ b/scripts/whole_system_e2e.sh @@ -0,0 +1,357 @@ +#!/usr/bin/env bash +# WHOLE-SYSTEM-E2E harness v1 (aien-architecture#190, lane L1). +# Rows: docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.md (committed before this script; never edited by it). +# Contract: aien-architecture docs/plans/release-readiness/ACCEPTANCE_E2E.md (PROPOSED, commit 0631cf39). +# +# scripts/whole_system_e2e.sh run build the CLI, run the chain E2..E6 + controls, write one run folder +# scripts/whole_system_e2e.sh check F the document checks of rows E3/E3m on file F (prints failed ids) +# scripts/whole_system_e2e.sh selftest checks with positive and negative controls (no daemon) +# +# Shell plus jq. No Python, no systemd, no accelerator: the daemon must print the CPU-reference backend +# line or the run stops. Needs CLAUDE_JOB_DIR (build target and run state under $CLAUDE_JOB_DIR/tmp/e2e), +# the prebuilt compose archive at $CLAUDE_JOB_DIR/tmp/librx_compose.a, jq, sha256sum, ss, hostname, iconv. +# Model: WSE2E_MODEL_DIR (default: the CAND-4 Llama 3.2 1B snapshot in the local Hugging Face cache); +# its weights and tokenizer sha256 are compared with release/candidate.toml and written into every receipt. +set -u + +# ---- document checks (rows E3, E3m) ----------------------------------------------------------------------- +# Prints failed ids, space separated: D1 missing/unreadable, D2 first line not "# ", D3 over 200 words, +# D4 a required name missing. $1 file, $2.. required names. +check_doc() { + local f=$1; shift; local failed="" + [ -s "$f" ] || { echo "D1"; return; } + iconv -f UTF-8 -t UTF-8 "$f" >/dev/null 2>&1 || failed="$failed D1" + [ "$(head -c 2 "$f")" = "# " ] || failed="$failed D2" + [ "$(wc -w <"$f")" -le 200 ] || failed="$failed D3" + local n; for n in "$@"; do grep -qF -- "$n" "$f" || { failed="$failed D4"; break; }; done + echo "${failed# }" +} +selftest() { + local t; t=$(mktemp -d); local rc=0 + printf '# Report\n\nabout alpha.txt, beta.txt and gamma.txt\n' >"$t/good.md" + printf 'Report\n\nabout alpha.txt only\n' >"$t/bad.md" + [ -z "$(check_doc "$t/good.md" alpha.txt beta.txt gamma.txt)" ] || { echo "selftest: good document failed: $(check_doc "$t/good.md" alpha.txt beta.txt gamma.txt)"; rc=1; } + [ "$(check_doc "$t/bad.md" alpha.txt beta.txt gamma.txt)" = "D2 D4" ] || { echo "selftest: bad document gave '$(check_doc "$t/bad.md" alpha.txt beta.txt gamma.txt)', want 'D2 D4'"; rc=1; } + [ "$(check_doc "$t/absent.md")" = "D1" ] || { echo "selftest: absent file not D1"; rc=1; } + rm -rf "$t"; [ $rc -eq 0 ] && echo "selftest PASS"; return $rc +} +case ${1:-} in + check) shift; check_doc "$@"; exit 0 ;; + selftest) selftest; exit $? ;; + run) ;; + *) echo "usage: $0 run | check FILE [NAME..] | selftest" >&2; exit 2 ;; +esac + +# ---- setup ----------------------------------------------------------------------------------------------- +REPO=$(cd "$(dirname "$0")/.." && pwd) +JOB=${CLAUDE_JOB_DIR:?CLAUDE_JOB_DIR must be set} +LIB=$JOB/tmp/librx_compose.a +D=$JOB/tmp/e2e +BIN=$D/target/release/aien-cli +MDIR=${WSE2E_MODEL_DIR:-$(ls -d "$HOME"/.cache/huggingface/hub/models--unsloth--Llama-3.2-1B-Instruct/snapshots/*/ 2>/dev/null | head -1)} +UTC0=$(date -u +%Y%m%dT%H%M%SZ) +OUT=${WSE2E_OUT:-$REPO/docs/campaigns/whole-system-e2e/runs/RUN-1-dry-$UTC0} +for t in jq sha256sum ss hostname iconv; do command -v $t >/dev/null || { echo "need $t" >&2; exit 2; }; done +[ -f "$LIB" ] || { echo "missing $LIB" >&2; exit 2; } +[ -n "$MDIR" ] && [ -f "$MDIR/model.safetensors" ] && [ -f "$MDIR/tokenizer.json" ] || { echo "model dir '$MDIR' lacks model.safetensors or tokenizer.json" >&2; exit 2; } +QUIET=$HOME/workspace/.spark-quiet +while [ -s "$QUIET" ]; do echo "quiet flag set; waiting"; sleep 30; done +DIRTY=$(git -C "$REPO" status --porcelain -- . ":!docs/campaigns/whole-system-e2e/runs" | wc -l) +[ "$DIRTY" -eq 0 ] || [ -n "${WSE2E_ALLOW_DIRTY:-}" ] || { echo "working tree has $DIRTY uncommitted changes; commit them first" >&2; exit 2; } +COMMIT=$(git -C "$REPO" rev-parse HEAD) +mkdir -p "$D" +( cd "$REPO" && env -u AIEN_OMEGA_DIR -u AIEN_OMEGA_COMPOSE_DIR -u AIEN_OMEGA_GPU_LIB -u AIEN_FORCE_CPU_STUB \ + AIEN_OMEGA_COMPOSE_LIB="$LIB" CARGO_TARGET_DIR="$D/target" cargo build --release -p aien-cli ) >"$D/build.log" 2>&1 \ + || { echo "build failed, see $D/build.log" >&2; exit 2; } +grep -q "building the stub" "$D/build.log" && { echo "stub compose build; refusing" >&2; exit 2; } +BIN_SHA=$(sha256sum "$BIN" | cut -d' ' -f1) +W_SHA=$(sha256sum "$(readlink -f "$MDIR/model.safetensors")" | cut -d' ' -f1) +T_SHA=$(sha256sum "$(readlink -f "$MDIR/tokenizer.json")" | cut -d' ' -f1) +C_W=$(sed -n 's/^model-safetensors-sha256 = "\(.*\)"/\1/p' "$REPO/release/candidate.toml") +C_T=$(sed -n 's/^tokenizer-json-sha256 = "\(.*\)"/\1/p' "$REPO/release/candidate.toml") +C_ID=$(sed -n 's/^model-id = "\(.*\)"/\1/p' "$REPO/release/candidate.toml") +HOST=$(hostname) + +RUN=$D/run; [ -e "$RUN" ] && mv "$RUN" "$RUN.old-$(date +%s)" +mkdir -p "$RUN"/{state,compose,prov,home,logs,ws-contract/inbox,ws-contract/outbox,ws/inbox,ws/outbox} "$OUT/chain" "$OUT/artifacts" +SOCK=$RUN/s; LOGS=$RUN/logs; ART=$OUT/artifacts; WS=$RUN/ws; WSC=$RUN/ws-contract +E=(env -u AIEN_OMEGA_DIR -u AIEN_OMEGA_COMPOSE_DIR -u AIEN_OMEGA_GPU_LIB -u AIEN_REQUIRE_BLACKWELL + -u AIEN_GPU_BACKEND -u AIEN_MODEL_DIR -u AIEN_MODEL_PATH -u AIEN_TOKENIZER_PATH -u AIEN_FORCE_CPU_STUB + -u AIEN_FAULT_HOLD -u AIEN_FAULT_HOLD_FILE -u AIEN_ALLEN_SUBJECT -u AIEN_ALLEN_ADOPT + -u AIEN_COMPOSE_MAX_TOKENS -u AIEN_COMPOSE_DOC_MAX_TOKENS + HOME="$RUN/home" NO_COLOR=1 AIEN_RUNTIME_SOCK="$SOCK" AIEN_RUNTIME_STATE_DIR="$RUN/state" + AIEN_COMPOSE_DIR="$RUN/compose" AIEN_PROVENANCE_DIR="$RUN/prov" AIEN_REQUIRE_CHECKPOINT=1 + AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK=1 AIEN_COMPOSE_EDIT_BUDGET_MS=599000 AIEN_COMPOSE_DOC_BUDGET_MS=599000) +cli() { "${E[@]}" "$BIN" "$@"; } +sha_of() { sha256sum "$1" | cut -d' ' -f1; } +tstat() { stat -c '%i %s %Y' "$1" 2>/dev/null || echo absent; } +utc() { date -u +%Y-%m-%dT%H:%M:%SZ; } + +# ---- the fixture and the identities ------------------------------------------------------------------------ +F1=harbour-notes.txt; F2=orchard-ledger.txt; F3=windmill-log.txt +mkfix() { # dir + printf 'Harbour notes. Three boats came in before noon; the tide table was wrong by twenty minutes.\n' >"$1/inbox/$F1" + printf 'Orchard ledger. Forty apple trees, twelve pear trees, two rows of quince along the south wall.\n' >"$1/inbox/$F2" + printf 'Windmill log. The brake band was replaced; the sails turned eleven hours on Tuesday.\n' >"$1/inbox/$F3" +} +mkfix "$WSC"; mkfix "$WS" +# v1.1 (ACCEPTANCE-v1.1.md): the contract objective in the wording of aien-architecture#196 (the runtime refused +# "under 200 words" in dry run 1); the mechanics objective names topics, not files (the destination classifier +# took every file name as a write target in dry run 1); E4 recalls the first topic word. +OBJ='Read the three text files in the inbox folder and write a Markdown report named report.md in the outbox folder. Start with a Markdown heading line that begins with "# ". Use at most 200 words. Mention each file by name.' +T1=harbour; T2=orchard; T3=windmill +OBJ_M="Write a Markdown report named report.md about the $T1, the $T2 and the $T3. Start with a Markdown heading line that begins with \"# \". Use at most 200 words. Mention the $T1, the $T2 and the $T3." +OBJ2='Append one line to report.md naming the topic you reported on first.' +OBJ6='Write a file named done.md in the outbox folder containing one line: finished.' +OBJC='Write a file named ctrl.md in the outbox folder containing one line: control.' +OBJ_ID=$(printf 'AIEN_E2E_OBJECTIVE_V1\n%s' "$OBJ" | sha256sum | cut -d' ' -f1) +RUN_ID=$(printf '%s\n%s\n%s\n%s' "$OBJ_ID" "$BIN_SHA" "$W_SHA" "$HOST" | sha256sum | cut -d' ' -f1) + +# ---- the receipt chain ------------------------------------------------------------------------------------- +N=0; PREV=$(printf '0%.0s' $(seq 1 64)); CHAIN=$OUT/chain; ROWS="" +rcpt() { # step status evidence [fields json] + N=$((N + 1)); local f; f=$(printf '%s/%03d-%s.json' "$CHAIN" "$N" "$1") + jq -n --arg oid "$OBJ_ID" --arg rid "$RUN_ID" --arg step "$1" --arg status "$2" --arg ev "$3" --argjson fields "${4:-{\}}" \ + --arg utc "$(utc)" --arg prev "$PREV" --arg commit "$COMMIT" --arg bin "$BIN_SHA" --arg w "$W_SHA" --arg t "$T_SHA" \ + --arg backend "${CUR_BACKEND:-no daemon started}" --arg host "$HOST" \ + '{objective_id:$oid, run_id:$rid, step:$step, status:$status, utc:$utc, prev_receipt_sha256:$prev, evidence:$ev, + repo_commit:$commit, daemon_sha256:$bin, cli_sha256:$bin, model_weights_digest:$w, tokenizer_sha256:$t, + backend_line:$backend, host:$host} + $fields' >"$f" + PREV=$(sha_of "$f") + case $1 in CTRL-*|E[0-9]*) ROWS="$ROWS$1 $2"$'\n' ;; esac + echo "[$(date -u +%H:%M:%S)] $1 $2: $3" | cut -c1-300 | tee -a "$OUT/console.log" +} + +# ---- daemon control ---------------------------------------------------------------------------------------- +DN=0; DPID=""; CUR_BACKEND=""; RESTARTS=0; LAST_START_UTC=""; DLOG=/dev/null +start_daemon() { # [VAR=val ...] + DN=$((DN + 1)); DLOG=$LOGS/daemon-$DN.log; rm -f "$SOCK" + "${E[@]}" AIEN_MODEL_PATH="$MDIR/model.safetensors" AIEN_TOKENIZER_PATH="$MDIR/tokenizer.json" "$@" "$BIN" daemon >"$DLOG" 2>&1 & + DPID=$! + local i + for i in $(seq 1 600); do + sleep 2 + [ -d "/proc/$DPID" ] || { DPID=""; echo "daemon $DN exited early: $(tail -c 300 "$DLOG" | tr '\n' ' ')"; return 1; } + if [ -S "$SOCK" ] && grep -q -E "Replay reconcile:|^Reconcile:" "$DLOG"; then break; fi + done + [ -S "$SOCK" ] || { echo "daemon $DN not serving after 20 min"; return 1; } + LAST_START_UTC=$(utc) + CUR_BACKEND=$(grep -m1 '^ Backend:' "$DLOG" | sed 's/^ *//') + 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 + return 0 +} +stop_graceful() { [ -n "$DPID" ] || return 0; cli compose shutdown >"$LOGS/shutdown-$DN.json" 2>&1; local i=0; while [ -d "/proc/$DPID" ] && [ $i -lt 600 ]; do sleep 0.1; i=$((i + 1)); done; wait "$DPID" 2>/dev/null; DPID=""; rm -f "$SOCK"; } +KILL_RC="" +sigkill() { [ -n "$DPID" ] || return 1; kill -9 "$DPID" 2>/dev/null; wait "$DPID" 2>/dev/null; KILL_RC=$?; DPID=""; rm -f "$SOCK"; [ "$KILL_RC" -eq 137 ]; } +trap '[ -n "$DPID" ] && kill -9 "$DPID" 2>/dev/null' EXIT + +# One task: propose -> authorize (desk) -> execute. $1 tag, $2 workspace, $3 goal, [$4 context] [$5 noexec] +# Sets T_STATE, T_GRANT, T_PATH, T_CSHA, T_MEMCTX, T_MEMN, T_EV, T_RECEIPT (the compose effect receipt json or null) +T_STATE=none; T_GRANT=null; T_PATH=""; T_CSHA=""; T_MEMCTX=""; T_MEMN=0; T_EV=""; T_RECEIPT=null; T_REFUSAL="" +task() { + local tag=$1 ws=$2 goal=$3 ctx=${4:-work} + T_STATE=none; T_GRANT=null; T_PATH=""; T_CSHA=""; T_MEMCTX=""; T_MEMN=0; T_EV=""; T_RECEIPT=null; T_REFUSAL="" + cli compose propose --goal "$goal" --workspace "$ws" --context "$ctx" >"$ART/$tag-propose.json" 2>"$ART/$tag-propose.err" + if [ "$(jq -r '.report.committed // false' "$ART/$tag-propose.json" 2>/dev/null)" != true ]; then + T_EV="propose did not commit: $(jq -r '.report.proposer_error // .error // "no proposal"' "$ART/$tag-propose.json" 2>/dev/null | cut -c1-200)"; return 1 + fi + T_MEMCTX=$(jq -r '.report.memory.context' "$ART/$tag-propose.json"); T_MEMN=$(jq -r '.report.memory.items_included // 0' "$ART/$tag-propose.json") + cli compose authorize --report "$ART/$tag-propose.json" --workspace "$ws" --approver drake --desk 1 >"$ART/$tag-authorize.json" 2>"$ART/$tag-authorize.err" + [ "$(jq -r '.ok' "$ART/$tag-authorize.json" 2>/dev/null)" = true ] || { T_EV="authorize refused: $(jq -c . "$ART/$tag-authorize.json" 2>/dev/null | cut -c1-250)"; return 1; } + T_GRANT=$(jq -r '.authorization.id' "$ART/$tag-authorize.json") + [ "${5:-}" = noexec ] && return 0 + execute "$tag" "$ws" +} +execute() { # tag ws [suffix]: execute with T_GRANT; sets T_STATE, T_PATH, T_CSHA, T_RECEIPT, T_REFUSAL + local tag=$1 ws=$2 s=${3:-} + cli compose execute --report "$ART/$tag-propose.json" --workspace "$ws" --authorization "$T_GRANT" >"$ART/$tag-execute$s.json" 2>"$ART/$tag-execute$s.err" + T_STATE=$(jq -r '.state // "none"' "$ART/$tag-execute$s.json" 2>/dev/null); [ -n "$T_STATE" ] || T_STATE=none + T_REFUSAL=$(jq -r '.error // ""' "$ART/$tag-execute$s.json" 2>/dev/null | sed -n 's/^EFFECT_REFUSED \([A-Za-z]*\):.*/\1/p') + [ -n "$T_REFUSAL" ] || T_REFUSAL=$(head -c 200 "$ART/$tag-execute$s.err" | tr '\n' ' ') + T_PATH=$(jq -r '.path // ""' "$ART/$tag-execute$s.json" 2>/dev/null); T_CSHA=$(jq -r '.content_sha256 // ""' "$ART/$tag-execute$s.json" 2>/dev/null) + local rp; rp=$(jq -r '.receipt // ""' "$ART/$tag-execute$s.json" 2>/dev/null) + if [ -n "$rp" ] && [ -f "$rp" ]; then T_RECEIPT=$(jq -c . "$rp"); else T_RECEIPT=null; fi + [ "$T_STATE" = DONE ] +} +find_written() { # ws name: path of the written file (the engine chooses the folder); empty if none + find "$1" -name "$2" -type f 2>/dev/null | head -1 +} +doc_fields() { # file state csha grant failed_ids -> json + local f=$1 disk=none; [ -f "$f" ] && disk=$(sha_of "$f") + jq -nc --arg p "$f" --arg st "$2" --arg c "$3" --arg d "$disk" --argjson g "${4:-null}" --arg failed "$5" --argjson rc "${T_RECEIPT:-null}" \ + --arg mc "$T_MEMCTX" --argjson mn "${T_MEMN:-0}" \ + '{written_path:$p, effect_state:$st, content_sha256:$c, disk_sha256:$d, grant_id:$g, desk:"required", checks_failed:$failed, + compose_receipt:$rc, memory_context:$mc, memory_items_included:$mn}' +} + +# ---- PRE --------------------------------------------------------------------------------------------------- +echo "run folder: $OUT" | tee "$OUT/console.log" +cp "$REPO/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.md" "$OUT/ACCEPTANCE-v1.as-run.md" +cp "$REPO/docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.1.md" "$OUT/ACCEPTANCE-v1.1.as-run.md" 2>/dev/null +FIX=$(cd "$WS/inbox" && sha256sum -- * | LC_ALL=C sort -k2 | jq -R -s 'split("\n") | map(select(length>0) | split(" ") | {name:.[1], sha256:.[0]})') +PRE_OK=1; PRE_EV="host $HOST; model $C_ID" +[ "$W_SHA" = "$C_W" ] && [ "$T_SHA" = "$C_T" ] || { PRE_OK=0; PRE_EV="$PRE_EV; model digests differ from release/candidate.toml"; } + +# ---- CTRL-E3a: desk required, no key -> the daemon refuses to start ---------------------------------------- +DN=$((DN + 1)); DLOG=$LOGS/daemon-$DN-nokey.log; rm -f "$SOCK" +"${E[@]}" AIEN_MODEL_PATH="$MDIR/model.safetensors" AIEN_TOKENIZER_PATH="$MDIR/tokenizer.json" "$BIN" daemon >"$DLOG" 2>&1 & +NK=$!; for i in $(seq 1 300); do [ -d "/proc/$NK" ] || break; [ -S "$SOCK" ] && break; sleep 1; done +if [ -d "/proc/$NK" ]; then kill -9 "$NK" 2>/dev/null; wait "$NK" 2>/dev/null; NK_RC=killed; else wait "$NK" 2>/dev/null; NK_RC=$?; fi +NK_LINE=$(grep -i -m1 -E 'desk' "$DLOG" | cut -c1-200) +rm -f "$SOCK" + +# ---- the real daemon --------------------------------------------------------------------------------------- +cli compose desk-key --create 1 >"$ART/deskkey.json" 2>&1 # prints id and path, never the key +if ! start_daemon; then + rcpt PRE FAIL "daemon did not start: $(tail -c 300 "$DLOG" 2>/dev/null | tr '\n' ' ')" "$(jq -nc --argjson fix "$FIX" '{inbox_files:$fix}')" + ABORT=1 +else + ABORT="" + ROUTE=$(ip route 2>/dev/null | head -5 | tr '\n' ';') + rcpt PRE "$([ $PRE_OK = 1 ] && echo PASS || echo FAIL)" "$PRE_EV; backend '$CUR_BACKEND'" \ + "$(jq -nc --argjson fix "$FIX" --arg route "$ROUTE" --arg q "$([ -s "$QUIET" ] && echo held || echo not-held)" --arg cw "$C_W" --arg ct "$C_T" --arg cid "$C_ID" --arg mdir "$MDIR" \ + '{inbox_files:$fix, ip_route:$route, quiet_flag:$q, candidate_model_id:$cid, candidate_weights_sha256:$cw, candidate_tokenizer_sha256:$ct, model_dir:$mdir, network_check:"recorded in the NET receipt"}')" +fi +if [ "$NK_RC" != killed ] && [ "$NK_RC" != 0 ] && [ -n "$NK_LINE" ]; then + rcpt CTRL-E3a PASS "daemon without a desk key exited $NK_RC before serving; log: $NK_LINE" "$(jq -nc --arg rc "$NK_RC" --arg l "$NK_LINE" '{exit:$rc, log_line:$l}')" +else + rcpt CTRL-E3a FAIL "daemon without a desk key: exit '$NK_RC', desk line '$NK_LINE'" "$(jq -nc --arg rc "$NK_RC" --arg l "$NK_LINE" '{exit:$rc, log_line:$l}')" +fi +rcpt E1 NOT_RUN "RUN-1 runs from a release build of this tree; nothing installed; RUN-3 measures E1" '{"signature_check":"none","artifact_sha256":null}' + +# ---- E2 ---------------------------------------------------------------------------------------------------- +rcpt E2 NOT_RUN "harness-side objective receipt written before any work (this receipt); installation-side record before work does not exist yet (lane L6)" \ + "$(jq -nc --arg t "$OBJ" --arg s "$(printf '%s' "$OBJ" | sha256sum | cut -d' ' -f1)" '{objective_text:$t, objective_text_sha256:$s, recorded_before_work:true, operator_surface:"harness + aien-cli compose propose", installation_record:"NOT_RUN (lane L6)"}')" + +# ---- E3: the contract objective ---------------------------------------------------------------------------- +if [ -z "$ABORT" ]; then + if task E3 "$WSC" "$OBJ"; then + P=$(find_written "$WSC" report.md); [ -n "$P" ] || P=$WSC/${T_PATH:-outbox/report.md} + FAILED=$(check_doc "$P" "$F1" "$F2" "$F3"); DSHA=none; [ -f "$P" ] && DSHA=$(sha_of "$P") + G=$T_GRANT; CS=$T_CSHA; execute E3 "$WSC" -again >/dev/null 2>&1; AGAIN=$T_REFUSAL + [ -f "$P" ] && cp "$P" "$ART/E3-report.md" + if [ -z "$FAILED" ] && [ "$DSHA" = "$CS" ] && [ "$AGAIN" = AlreadySpent ]; then ST=PASS; else ST=FAIL; fi + rcpt E3 $ST "state DONE; written ${P#$WSC/}; checks failed [${FAILED:-none}]; second execute: ${AGAIN:-none}" \ + "$(doc_fields "$P" DONE "$CS" "$G" "$FAILED" | jq -c --arg a "$AGAIN" '. + {second_execute_refusal:$a}')" + else + rcpt E3 FAIL "$T_EV" "$(doc_fields none "$T_STATE" "" "$T_GRANT" "")" + fi +else rcpt E3 NOT_RUN "no daemon" '{}'; fi + +# ---- E3m: the mechanics objective -------------------------------------------------------------------------- +E3M_OK=0; REPORT="" +if [ -z "$ABORT" ]; then + if task E3m "$WS" "$OBJ_M"; then + REPORT=$(find_written "$WS" report.md); [ -n "$REPORT" ] || REPORT=$WS/${T_PATH:-report.md} + FAILED=$(check_doc "$REPORT" "$T1" "$T2" "$T3"); DSHA=none; [ -f "$REPORT" ] && DSHA=$(sha_of "$REPORT") + G=$T_GRANT; CS=$T_CSHA; execute E3m "$WS" -again >/dev/null 2>&1; AGAIN=$T_REFUSAL + [ -f "$REPORT" ] && cp "$REPORT" "$ART/E3m-report.md" + if [ -z "$FAILED" ] && [ "$DSHA" = "$CS" ] && [ "$AGAIN" = AlreadySpent ]; then ST=PASS; E3M_OK=1; else ST=FAIL; fi + rcpt E3m $ST "state DONE; written ${REPORT#$WS/}; checks failed [${FAILED:-none}]; second execute: ${AGAIN:-none}" \ + "$(doc_fields "$REPORT" DONE "$CS" "$G" "$FAILED" | jq -c --arg a "$AGAIN" --arg o "$OBJ_M" '. + {second_execute_refusal:$a, objective_text:$o}')" + else + rcpt E3m FAIL "$T_EV" "$(doc_fields none "$T_STATE" "" "$T_GRANT" "")" + fi +else rcpt E3m NOT_RUN "no daemon" '{}'; fi + +# ---- E4: remember, SIGKILL, restart, second objective ------------------------------------------------------ +if [ -z "$ABORT" ] && [ $E3M_OK = 1 ]; then + cli compose remember --text "E4 memory item: the topic reported on first is the $T1" >"$ART/E4-remember.json" 2>&1 + REM_OK=$(jq -r '.ok // false' "$ART/E4-remember.json" 2>/dev/null) + LINES_BEFORE=$(wc -l <"$REPORT"); SHA_BEFORE=$(sha_of "$REPORT") + if sigkill; then KILLED="kill -9 (exit 137)"; else KILLED="kill rc=${KILL_RC:-none}"; fi + if start_daemon; then + RESTARTS=$((RESTARTS + 1)); RESTART_UTC=$LAST_START_UTC + REPL=$(grep -m1 -E 'Replay reconcile:|^Reconcile:' "$DLOG" | cut -c1-200) + if task E4 "$WS" "$OBJ2" work; then + cp "$REPORT" "$ART/E4-report.md" 2>/dev/null + LINES_AFTER=$(wc -l <"$REPORT"); NEWLINE=$(tail -n 1 "$REPORT") + RECALL_UTC=$(utc) + OK=1; WHY="" + [ "$REM_OK" = true ] || { OK=0; WHY="$WHY remember-refused"; } + [ "$T_MEMCTX" = work ] && [ "${T_MEMN:-0}" -ge 1 ] || { OK=0; WHY="$WHY memory-report($T_MEMCTX/$T_MEMN)"; } + [ "$LINES_AFTER" -eq $((LINES_BEFORE + 1)) ] || { OK=0; WHY="$WHY lines($LINES_BEFORE->$LINES_AFTER)"; } + printf '%s' "$NEWLINE" | grep -qiF -- "$T1" || { OK=0; WHY="$WHY last-line-lacks-$T1"; } + [ "$(sha_of "$REPORT")" != "$SHA_BEFORE" ] || { OK=0; WHY="$WHY report-unchanged"; } + rcpt E4 "$([ $OK = 1 ] && echo PASS || echo FAIL)" "$KILLED then restart ($REPL); second objective state $T_STATE; memory $T_MEMCTX/$T_MEMN; lines $LINES_BEFORE->$LINES_AFTER; problems [${WHY# }]" \ + "$(jq -nc --arg store "compose home (AIEN_COMPOSE_DIR records; canonical store decided by lane L3)" --arg item "$(sha_of "$ART/E4-remember.json")" --arg rk sigkill --arg ru "$RESTART_UTC" --arg cu "$RECALL_UTC" --arg nl "$NEWLINE" --arg mc "$T_MEMCTX" --argjson mn "${T_MEMN:-0}" --arg st "$T_STATE" --argjson g "$T_GRANT" --argjson rc "${T_RECEIPT:-null}" --arg p "${T_PATH:-}" \ + '{memory_store:$store, item_sha256:$item, recall_after_restart:($mn>=1), restart_kind:$rk, restart_utc:$ru, recall_utc:$cu, appended_line:$nl, memory_context:$mc, memory_items_included:$mn, effect_state:$st, grant_id:$g, written_path:$p, compose_receipt:$rc}')" + else + rcpt E4 FAIL "$KILLED then restart ($REPL); second objective: $T_EV" "$(jq -nc --arg rk sigkill --arg st "$T_STATE" --arg mc "$T_MEMCTX" --argjson mn "${T_MEMN:-0}" '{restart_kind:$rk, effect_state:$st, memory_context:$mc, memory_items_included:$mn}')" + fi + else + rcpt E4 FAIL "$KILLED; daemon did not restart: $(tail -c 300 "$DLOG" | tr '\n' ' ')" '{"restart_kind":"sigkill"}'; ABORT=1 + fi +else rcpt E4 NOT_RUN "E3m did not pass or no daemon" '{}'; fi + +# ---- E6: authorize, SIGKILL before execute, restart, finish once ------------------------------------------- +if [ -z "$ABORT" ]; then + if task E6 "$WS" "$OBJ6" work noexec; then + G=$T_GRANT + if sigkill; then KILLED="kill -9 (exit 137)"; else KILLED="kill rc=${KILL_RC:-none}"; fi + execute E6 "$WS" -dead >/dev/null 2>&1; DEAD_ST=$T_STATE; DEAD_REF=$T_REFUSAL + DONE1=$(find_written "$WS" done.md); DEAD_WRITE=$([ -n "$DONE1" ] && echo yes || echo no) + if start_daemon; then + RESTARTS=$((RESTARTS + 1)); REPL=$(grep -m1 -E 'Replay reconcile:|^Reconcile:' "$DLOG" | cut -c1-200) + T_GRANT=$G; execute E6 "$WS"; ST1=$T_STATE; RC1=$T_RECEIPT + DONE1=$(find_written "$WS" done.md); [ -n "$DONE1" ] || DONE1=$WS/${T_PATH:-outbox/done.md} + S1=$(tstat "$DONE1"); CONTENT_OK=$([ -f "$DONE1" ] && grep -qi finished "$DONE1" && echo yes || echo no) + T_GRANT=$G; execute E6 "$WS" -third >/dev/null 2>&1; THIRD=$T_REFUSAL; S2=$(tstat "$DONE1") + DUP=$([ "$S1" = "$S2" ] && echo 0 || echo 1) + if [ "$DEAD_WRITE" = no ] && [ "$ST1" = DONE ] && [ "$CONTENT_OK" = yes ] && [ "$THIRD" = AlreadySpent ] && [ "$DUP" = 0 ]; then ST=PASS; else ST=FAIL; fi + rcpt E6 $ST "$KILLED after authorize; execute while dead: state $DEAD_ST (${DEAD_REF:-no refusal text}), wrote=$DEAD_WRITE; restart ($REPL); same grant: $ST1; third execute: ${THIRD:-none}; duplicates $DUP" \ + "$(jq -nc --arg kp after_authorize_before_execute --argjson ea "$([ "$ST1" = DONE ] && echo 1 || echo 0)" --argjson dup "$DUP" --argjson g "$G" --arg d "$DEAD_REF" --arg t "$THIRD" --argjson r "${RC1:-null}" --arg p "${DONE1#$WS/}" \ + '{kill_point:$kp, restart_count:1, effects_before_kill:0, effects_after_restart:$ea, duplicates:$dup, grant_id:$g, refusal_while_dead:$d, third_execute_refusal:$t, written_path:$p, compose_receipt:$r}')" + else + rcpt E6 FAIL "$KILLED; daemon did not restart: $(tail -c 300 "$DLOG" | tr '\n' ' ')" '{"kill_point":"after_authorize_before_execute"}'; ABORT=1 + fi + else + rcpt E6 FAIL "$T_EV" '{"kill_point":"after_authorize_before_execute"}' + fi +else rcpt E6 NOT_RUN "no daemon" '{}'; fi + +# ---- CTRL-E3b: revoke before spend -> Revoked -------------------------------------------------------------- +if [ -z "$ABORT" ]; then + if task CTRL-E3b "$WS" "$OBJC" work noexec; then + G=$T_GRANT + cli compose revoke --authorization "$G" --approver drake >"$ART/CTRL-E3b-revoke.json" 2>&1 + REV_OK=$(jq -r '.ok // false' "$ART/CTRL-E3b-revoke.json" 2>/dev/null) + T_GRANT=$G; execute CTRL-E3b "$WS" >/dev/null 2>&1; REF=$T_REFUSAL + CT=$(find_written "$WS" ctrl.md); ABSENT=$([ -z "$CT" ] && echo yes || echo no) + if [ "$REV_OK" = true ] && [ "$REF" = Revoked ] && [ "$ABSENT" = yes ]; then ST=PASS; else ST=FAIL; fi + rcpt CTRL-E3b $ST "revoke ok=$REV_OK; execute refused '${REF:-none}'; ctrl.md absent=$ABSENT" "$(jq -nc --argjson g "$G" --arg r "$REF" --arg a "$ABSENT" '{grant_id:$g, refusal:$r, file_absent:$a}')" + else rcpt CTRL-E3b FAIL "$T_EV" '{}'; fi +else rcpt CTRL-E3b NOT_RUN "no daemon" '{}'; fi + +# ---- network check (rule 1), before the destructive control ----------------------------------------------- +NET=$(ss -tnp state established 2>/dev/null | grep -c "pid=${DPID:-0}," || true) +rcpt NET "$([ "${NET:-0}" = 0 ] && echo PASS || echo FAIL)" "established TCP sockets of the daemon pid: ${NET:-0}" "$(jq -nc --argjson n "${NET:-0}" '{daemon_established_tcp:$n}')" + +# ---- CTRL-E4: store removed -> named refusal, never a silent write ----------------------------------------- +if [ -z "$ABORT" ] && [ $E3M_OK = 1 ]; then + stop_graceful + SHA_BEFORE=$(sha_of "$REPORT"); mv "$RUN/compose" "$RUN/compose.removed-ctrl-e4"; mkdir -p "$RUN/compose" + cli compose desk-key --create 1 >"$ART/CTRL-E4-deskkey.json" 2>&1 + if start_daemon; then + if task CTRL-E4 "$WS" "$OBJ2" work; then + WROTE=$([ "$(sha_of "$REPORT")" != "$SHA_BEFORE" ] && echo yes || echo no); ST=FAIL + EV="store removed, yet the second objective ran to $T_STATE (memory $T_MEMCTX/$T_MEMN), report changed=$WROTE: silent, not a named refusal" + else + WROTE=$([ "$(sha_of "$REPORT")" != "$SHA_BEFORE" ] && echo yes || echo no); ST=$([ "$WROTE" = no ] && echo PASS || echo FAIL) + EV="store removed: refused ($T_EV); report changed=$WROTE" + fi + rcpt CTRL-E4 $ST "$EV" "$(jq -nc --arg st "$T_STATE" --arg mc "$T_MEMCTX" --argjson mn "${T_MEMN:-0}" --arg w "$WROTE" '{effect_state:$st, memory_context:$mc, memory_items_included:$mn, report_changed:$w}')" + else rcpt CTRL-E4 FAIL "daemon did not start after the store was removed: $(tail -c 300 "$DLOG" | tr '\n' ' ')" '{}'; fi +else rcpt CTRL-E4 NOT_RUN "E3m did not pass or no daemon" '{}'; fi + +# ---- the rest: NOT_RUN by lane ----------------------------------------------------------------------------- +rcpt E5 NOT_RUN "no independent verifier yet (lane L4); VERDICT_ROWS.txt and SHA256SUMS written for it" '{"verifier_sha256":null}' +rcpt CTRL-E1 NOT_RUN "no release artifact in RUN-1 (lane L5)" '{}' +rcpt CTRL-E2 NOT_RUN "no installation-side objective record (lane L6)" '{}' +rcpt CTRL-E5 NOT_RUN "no verifier (lane L4)" '{}' +rcpt CTRL-E6 NOT_RUN "no durable objective state to remove (lane L2)" '{}' +stop_graceful +cp "$LOGS"/daemon-*.log "$OUT/artifacts/" 2>/dev/null +printf 'objective_id %s\ncontract_sha256 8ba653848287bc77db253466f6d3ff37c70a42be55601ad47eb1f838a41d20f0\n%s' "$OBJ_ID" "$ROWS" >"$OUT/VERDICT_ROWS.txt" +( cd "$OUT" && find . -type f ! -name SHA256SUMS -print0 | LC_ALL=C sort -z | xargs -0 sha256sum >chain/SHA256SUMS ) +echo "run folder written: $OUT ($(ls "$CHAIN" | wc -l) chain files)"; cat "$OUT/VERDICT_ROWS.txt"