interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / scripts / pipeline-proofs / RESULTS-2026-10-11.md

81 lines · 8895 bytes Raw Blame History Source

Acceptance proofs 13-21: measured results, 2026-10-11 (lane CRUMB)

Two runs on the same day. Run 2 (follow-up, orphan crumbs) is current; run 1 is kept below as the record of the limit it found.

Run 2: after the D7 amendment (children = nearest crumbed descendants)

Machine: DGX Spark GB10, 20 cores. Tool: tools/crumb/crumb built from crumb.c at aien-architecture 57b62d3 (branch pipeline/crumb-orphan), on PATH ahead of ~/.local/bin/crumb. Repositories: aien-architecture at f2e6b0b (28 crumbs, 323 tracked files; this branch, crumbs compiled with the new rule) and aien-sovereign-core main c26f4d7 re-crumbed locally with the new rule in one crumb-only commit (~/workspace/pipeline/tmp-sc, 16 crumbs, 3797 tracked files). Every proof ran on a temporary git clone; times are wall-clock milliseconds of one run, not averages. run-all.sh: arch proven=9 failed=0 not_applicable=1; sc proven=10 failed=0.

Proofaien-architectureaien-sovereign-coreNumbers
13 determinismPROVENPROVENfrozen clock, two compiles from nothing: 28/28 and 16/16 .crumb byte-identical; real clock: identical minus compiled_at 28/28, 16/16, digests 28/28, 16/16
14 fixed pointPROVENPROVENcompile at HEAD rewrites 0; from nothing 28 (16) then 0; porcelain empty after the crumb commit
15 stale setPROVENPROVENone file change: 5 of 28 (docs/plans/mixed-algebra/research chain), 2 of 16 (crates/aien-scheduler/src/bin + root); compile rewrites exactly that set
16 siblingsPROVENPROVEN23 of 28 and 14 of 16 CURRENT; two subtrees stale exactly the union of the chains
17 claimsPROVENPROVENsecond worktree's claim exits 2 (BLOCKED ... held by agent-A); claim 26/39 ms, refusal 14/14 ms, close 22/23 ms
18 crumb-only buildnot applicable (no Cargo)PROVENafter a .crumb-only commit cargo build -v --locked --offline: Compiling 0, Dirty 0, Fresh 444, 212 ms (warm-up 13525 ms; target dir pipeline/target-cold, kept)
19 admissionPROVENPROVENpr-gate.sh refuses: STALE tree (FAIL: 5 of 28 / 2 of 16 crumbs stale), deleted immediate-child crumb (docs/.crumb, crates/aien-cli/src/.crumb), deleted orphan crumb (docs/archive/plans/.crumb, parent docs/archive uncrumbed, 212 ms; crates/aien-allen-memory/.crumb, parent crates uncrumbed, 409 ms), mixed last commit; passes the compiled control (271 / 447 ms)
20 rebase-crumbPROVENPROVENlocal bare origin, crumb-only conflict in the root .crumb: exit 0, source kept, main's change present, verify OK, last commit crumb-only (2 / 1 files), pushed with lease; 536 / 865 ms
21 final SHAPROVENPROVENpre-crumb SHA verify exits 1 (5 of 28, 2 of 16 stale); separate crumb commit: SHA differs, verify exits 0; re-checked in fresh worktrees

The fix (tools/crumb/crumb.c, 57b62d3)

comp_object collects a crumb's children by walking down through directories that hold no .crumb (collect_kids, same traversal policy as find_crumbs: .crumbignore, build-directory and symlink exclusions), so children[] holds the NEAREST crumbed descendants and every compiled crumb is reachable from the root digest. A deep child is named by its path relative to the parent crumb directory (archive/plans). The shell reference crumb-compile.sh follows the same rule; tools/crumb/test.sh gained 10 assertions for the orphan case (117 before, 127 now, all PASS, differential against the shell reference on this repository included). RFC-0003 section 2 and D7 are amended in docs/CRUMB_PROTOCOL_RFC_0003.md.

Crumb churn of the new rule (crumb status with the new tool on trees compiled with the old one)

Repositorycommitcrumbsrewritten by the new rule
aien-architecturef05541b (main)282 (docs, .)
aien-sovereign-corec26f4d7 (main)161 (.)
omega82f3117 (main, shallow clone)15410
aienos3b2004b (main, shallow clone)918
physics8b23e5a (main, shallow clone)303
aien-protocols055c4f1 (main, shallow clone)340

Each affected repository needs one crumb-only crumb compile commit when it moves to a crumb tool built from this change (omega, aienos and physics pin the tool to an aien-architecture commit in crumb.lock, so nothing breaks at merge time; sovereign-core has no crumb.lock and uses the tool on PATH). The old rule and the new rule agree on every crumb that has no orphan descendant, so a repository with 0 rewritten (aien-protocols) needs nothing.

Timings, run 2 (ms, one run each)

Operationaien-architecture (28 crumbs)sovereign-core (16 crumbs, 3797 files)
crumb compile . at HEAD (0 rewritten)200387
crumb compile . from nothing (all rewritten)217362
crumb verify .187370
crumb status .207387
crumb context .210396
crumb context <deepest file>225354
crumb claim (first, uncontested)2639
crumb claim refused (exit 2)1414
crumb close2223
scripts/pr-gate.sh --dry-run --worktree (fake gh, real crumb)212 to 271392 to 453
scripts/rebase-crumb.sh (local bare origin, crumb conflict)536865
cargo build -v no change / after crumb-only commitn/a205 / 212

Regenerated versus unchanged: from nothing 28/28 and 16/16; one leaf change 5 of 28 and 2 of 16; rebase onto a moved main 2 and 1. The walk through uncrumbed directories costs nothing measurable (compile at HEAD 184 -> 200 ms on arch, 345 -> 387 ms on sc, within the run-to-run spread seen in run 1).

Run 1: before the amendment (tool at 7fe8e26), kept as the record

Repositories: aien-architecture at 7fe8e26 (27 crumbs, 307 tracked files) and aien-sovereign-core main at 5ef7720 (16 crumbs). Load 0.3 to 2.8 (another agent's cargo build was active part of the time).

Proofaien-architectureaien-sovereign-coreProperty
13 determinismPROVENPROVEN27/27 and 16/16 byte-identical under a frozen clock; real clock identical minus compiled_at
14 fixed pointPROVENPROVENcompile at HEAD rewrites 0; from nothing 27 (16) then 0
15 stale setPROVENPROVEN5 of 27, 2 of 16
16 siblingsPROVENPROVEN22 of 27 and 14 of 16 CURRENT
17 claimsPROVENPROVENexit 2 on the contested claim; claim 33/46 ms, refusal 14/16 ms, close 21/23 ms
18 crumb-only buildnot applicablePROVENCompiling 0, Dirty 0, Fresh 444, 223 ms (target-cold 27G before, 29G after)
19 admissionPARTIALPARTIALstale tree, deleted immediate-child crumb and mixed last commit refused; control passes; sub-case b2 FAILED (below)
20 rebase-crumbPROVENPROVEN501 / 811 ms
21 final SHAPROVENPROVENpre-crumb verify exits 1; final SHA verify exits 0

Recorded limit found by run 1 (proof 19 b2), fixed by run 2: with RFC-0003 D7 as first written, a parent's children[] listed only immediate child directories holding a .crumb, so a committed .crumb whose parent directory had no .crumb (docs/archive/plans/.crumb; crates/aien-allen-memory/.crumb) was not reachable from the root digest. Deleting it left crumb verify OK and pr-gate.sh passing (pr-gate exit 0 measured in both repositories). Timings of run 1 (ms, arch/sc): compile at HEAD 184/345, from nothing 198/317, verify 160/347, status 186/329, context root 198/308, context deepest file 214/337, pr-gate 207 to 266 / 372 to 431, rebase-crumb 501/811, cargo warm-up 12950, cargo no change 217.

crumb.gate template validation (run 1, unchanged)

docs/crumbs/crumb.gate.template copied to tests/gates/crumb.gate in a temporary clone of this repository; aien-test built in release from a throwaway detached worktree of sovereign-core origin/main (cargo build --release --locked --offline -p aien-test: 8.9 s, build rc 0; worktree removed afterwards). aien-test list printed CRUMB-VERIFY pool=host depends_on=- file=tests/gates/crumb.gate and 1 gates; aien-test identity CRUMB-VERIFY computed CHECK_ID 4b296ef1f5daa2c713ebdac4833f14d8746c79d72f6999ed9cc2abce55890497 with scope_binding "" (portable) over the declared inputs. Limit: the runner resolves run.exec as <root>/crumb; executing the gate needs PATH resolution in the engine (ENGINE lane) or an in-repo wrapper script.

How to rerun

PATH=$PWD/tools/crumb:$PATH scripts/pipeline-proofs/run-all.sh <repo> [<repo>...] after make -C tools/crumb crumb (proof 18 needs a cargo workspace and TARGET_DIR, default pipeline/target-cold). A repository compiled with the old rule must be re-crumbed once first, or proof 14 reports a non-zero rewrite at HEAD. Raw per-proof output of run 2 was kept outside the repository (/tmp/proofs-orphan-{arch,sc}.out).