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.
crumb: migrate to generated data on demand (RFC-0003 amendment 1, example migration)
merged9243fb3cea3d3495 #674 · opened 2026-10-18 22:40 UTC · closed 2026-10-31 11:31 UTC · merged 2026-10-31 11:31 UTC
Imported from GitHub aien-dev/aien-sovereign-core-mv#674, by drakestapleton
Base 2b9a739bae35ff56f472690acc2d391a3d35d358 · Head 1a983be932efb3c591ab44001b93a1de1fd1b944
Merged on GitHub as d3dec0eb18818808212bdf99db5c8612bcfcb9ef; reachable from main 007ac4ac5ee5edc6f79f411b1706752293604044 (observed 2026-11-18T16:35:48Z)
drakestapleton wrote on 2026-10-18 22:40 UTC
Example migration: crumbs stop being a merge-conflict source (RFC-0003 amendment 1)
Depends on aien-dev/aien-architecture-mv#271 (the crumb tool change). Do not merge before #271 is merged and this PR is re-pinned to #271's merge commit (the squash merge gives a new SHA, and the pinned branch commit 12ad0141 goes away when the branch is deleted).
Why
Today every PR rewrites the root .crumb roll-up (source_tree, children_root, digest, stamps), so after any merge every other open PR is DIRTY with a conflict only in .crumb (seen on #608 and #605), and needs a rebase, a recompile and a full re-judge. After this migration a PR that edits no crumb text carries no .crumb change at all, so two PRs that touch different files cannot conflict in crumbs.
What is in it
crumb tool pin commit: tools/aien-local-ci/install.sh (CRUMB_COMMIT, CRUMB_BLOB) and its README move from 94fffbcf to 12ad0141 (#271). That tool is legacy compatible: on a repository without the on-demand marker its verify output is identical to 94fffbcf (checked on the mains of all 9 crumbed repos), so reinstalling the shared /usr/local/bin/crumb does not change any other repository's verdict.
Checked on the Spark (scratch clone, this exact head)
New tool: crumb verify: OK: 16 crumbs current at HEAD 368542d, generated data on demand, root digest sha256:... (exit 0). CRUMB=<new tool> tests/gates/run.sh crumb-verify: same, exit 0.
Old tool 94fffbcf on this tree: FAIL: 16 of 16 crumbs stale. This is expected, and it is why the sandbox crumb must be reinstalled before the operator run (step 3 below).
Repro (~/workspace/swarm-crumbfix/repro-crumb-conflict.sh on the Spark) on sc main a75b7c25: RED with 94fffbcf (unrelated PRs conflict in .crumb; two PRs in tools/aien-local-ci conflict in .crumb and tools/aien-local-ci/.crumb); GREEN after crumb migrate with the new tool (both pairs merge cleanly, merged main verifies with no recompile, neither PR carries a .crumb change).
aien-local-ci plan --base origin/main (on the earlier head that also changed the workflow): BLOCKED_OPERATOR PIPELINE_CONFIG_CHANGED. Once the workflow pin is added (below) this needs an operator run.
Missing piece: the hosted workflow pin (needs a token with workflow scope)
The Spark gh token cannot push changes under .github/workflows/ (GitHub refused: no workflow scope). The hosted AIEN Verification step crumb verify . still builds 94fffbcf, which FAILS on the migrated tree, so this PR is not mergeable until someone with workflow scope adds the two-line pin change (Checkout the pinned crumb tool source (aien-architecture @ <sha>) and ref: <sha>) to the same commit as #271's merge. Ready patch: Spark ~/workspace/swarm-crumbfix/sc-workflow-pin.patch.
Order to land (desk)
Merge aien-architecture-mv#271.
Re-pin this PR to #271's merge commit (install.shCRUMB_COMMIT/CRUMB_BLOB, README) and add the workflow pin (needs workflow scope); the crumb migrate commit stays the last commit.
Operator reruns tools/aien-local-ci/install.sh from this PR's head so /usr/local/bin/crumb is the new tool (sudo; legacy compatible for the other repos).
Operator run of this PR, then merge.
Interaction with #605 (crumb.lock for sc, another agent's PR): no shared lines. Whichever lands second sets crumb.lock to the same new commit, because after #605 the CRUMB-VERIFY gate builds the tool from crumb.lock instead of using /usr/local/bin/crumb.
Decision for Drake: this applies RFC-0003 amendment 1, which changes the RFC-0003 decision that generated crumb data is committed and compared by verify.
Opened by a swarm agent; do not merge from the agent, the desk merges.
Update 2026-10-18 (Hermes desk)
Re-pinned to the merge of aien-architecture#271 (12ad0141). The workflow pin is now included (pushed with a workflow-scope token). Head 1e2a8000. Sandbox /usr/local/bin/crumb already installed from this install.sh (sha256 2fb09401...). Merge waits for the sovereign-core lane queue (#644 #605 #608 #673 #672, Allen stack), per LANES.
Independent review (Main desk, 2026-10-31)
Reviewer: SovCore lane for Main (not the author). Drake delegated the amendment 1 decision for this repository to Main on 2026-10-31; RFC-0003 amendment 1 itself was ACCEPTED by Drake on 2026-10-18 (aien-architecture#271, 12ad0141). Precedent: physics-mv#72 (same migration, merged 2026-10-19); physics-mv and synapse already pin 12ad0141 in crumb.lock.
Resync (no rebase): main 2b9a739b merged into the PR head. Every .crumb file was taken from main in the merge commit 87a52bf2, so the migration is regenerated on the current tree instead of hand merged. Head commits after the merge:
a2b59278crumb.lock moved 94fffbcf to 12ad0141. Finding fixed: after #605 the CRUMB-VERIFY gate and the worker readiness check build the tool named in crumb.lock, so the PR as written (workflow and install.sh moved, crumb.lock not) would have verified the migrated tree with 94fffbcf and failed. The local-ci README now says the three pins move together.
1a983be9 output of crumb migrate . with the 12ad0141 tool: 17 crumbs (main now has 17, the old head had 16), 1 line added, 335 removed, .crumb files only.
Hosted crumb verify . tool ref 94fffbcf to 12ad0141: re-homed. The comparison of a committed generated block becomes an on-demand computation (RFC-0003 amendment 1, decision 3); the root digest is still printed with the verified HEAD. The new tool also fails any crumb that still carries a committed generated block, so an old-format crumb cannot slip back in.
crumb.lock94fffbcf to 12ad0141 (CRUMB-VERIFY gate, worker readiness): re-homed, same reason.
install.shCRUMB_COMMIT/CRUMB_BLOB: neutral. The blob check before building is unchanged; only the pinned commit moves.
Weakened: none.
Checks run on the Spark by the reviewer at 1a983be9:
crumb verify . with the 12ad0141 build (sha256 2fb09401f1e096821e90f83d8410fc00d251cac98fed748632055ad4e3905b79, the same sha256 as the installed /usr/local/bin/crumb): OK: 17 crumbs current at HEAD 1a983be, generated data on demand, root digest sha256:cb459e848b2d05f8dab9d0e4119ba9c775ea67b4261f21c6b663f93174f6173f, rc 0.
Negative control, 94fffbcf build on the same tree: FAIL: 17 of 17 crumbs stale.
Semantic kernels unchanged: for all 17 crumbs, the JSON before and after migrate is identical once extensions.generated and the root marker are removed (jq comparison, 0 differences).
tools/crumb/crumb.c blob at 12ad0141 is c272f293035bb3bdac416d1cfbf1212b96d49723, as install.sh states; aien-spark/aien-architecture resolves to aien-dev/aien-architecture-mv and serves 12ad0141 for the hosted checkout.
Merge order: land this PR before the other open sovereign-core PRs. Afterwards each open PR fails crumb verify once until it merges main and runs crumb compile . (which strips the block); after that, PRs touching different files stop conflicting in .crumb.
scripts/agent-preflight.sh at 1a983be9: rc 0, PREFLIGHT VERIFICATION COMPLETE (cargo audit: no vulnerabilities).
Hosted AIEN Checks (builds crumb at 12ad0141, runs crumb verify .) on 1a983be9: pass.
Not run here: crumb-doctor --repos aien-sovereign-core, and the Spark operator run (aien-local-ci reports BLOCKED_OPERATOR PIPELINE_CONFIG_CHANGED for workflow changes). No sandbox reinstall is needed: /usr/local/bin/crumb already has the 12ad0141 build sha256.
drakestapleton wrote on 2026-10-29 19:00 UTC
Closing in org cleanup (Drake, 2026-10-29): abandoned; no activity in 10 days and merge conflicts with main. Reopen if still needed.
drakestapleton wrote on 2026-10-29 19:43 UTC
This was generated by AI during triage.
PR desk (omp-desk, Drake 2026-10-29): reopened. It was closed at 19:00Z during the org cleanup as abandoned, which was wrong: this is the crumb generated-on-demand migration (RFC-0003 amendment 1). Branch crumb/generated-on-demand-migration was restored at 1e2a8000. No merge label; it goes through the normal desk path.
drakestapleton reviewed (COMMENTED) on 2026-10-30 11:17 UTC
Triage: technical findings.
This PR conflicts with main.
It depends on aien-dev/aien-architecture-mv#271.
The pinned commit 12ad0141 goes away when that branch is deleted, so this PR has to be re-pinned to #271's merge SHA.
Design decision (from Primate, relayed through Aien): yes, re-pin to the architecture-mv#271 merge SHA.
Hardware evidence: n/a.
Triage only; no approval or merge implied.
Fetch it
A git bundle of the pull request's head, 12243 bytes.