Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core-mv/issues/7039a2c42c891dfe # aien-sovereign-core-mv AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # Repair Crumb telemetry errors and worker identity; prove shared claim enforcement Open · #924 · open 2026-11-06 22:43 UTC Imported from GitHub aien-dev/aien-sovereign-core-mv#924, by drakestapleton drakestapleton wrote on 2026-11-06 22:43 UTC Source review at core `dffdbd195edcbe1ec3bd2fa255355b15c530f31e` confirms: - crates/aien-cli/src/crumbs.rs load_local_crumb returns empty default for unreadable/malformed state; save_local_crumb discards write errors. Updates read then truncate/write without a transaction lock. - crates/spark-crumbs/src/lib.rs duplicates those local operations using fs::write. - crates/aien-cli/src/tools.rs file writes/edits use agent "AIEN" and session "active-session"; sniff_dir_crumb excludes matching agent IDs. Different workers sharing that identity can suppress peer notices. write_file sniffs after the file write; notices are advisory, not exclusion. - The newer architecture crumb.c (including core crumb.lock pin `12ad0141b41ec67ef5aa51cb4e1815894c1083bb`) has a transactional common store, explicit CRUMB_COORD_ROOT, STORE_ID and strict identity support. Do not replace this with another board. - Core #587 already owns actual message delivery into managed sessions. A successful whisper/store write is not proof a model received it. Runtime status: NOT_RUN. The connected Spark device was offline during this audit. This issue establishes source defects, not proof they caused today's live incident. ## Repair scope Reuse DRA-97 for rollout coordination and #587 for delivery. Reconcile existing runtime owners before source claims. First inventory the executable path/hash, installed hooks, store root/id, repo identity and unique session identity of every active worker, using read-only inspection. - Keep legacy .crumb.local as optional local telemetry; never accept it as a task lease. Return structured storage errors; do not turn corruption into "no peers" or report failed writes as success. - Route actual claims through the existing supported shared coordination interface. Validate store identity at worker startup; use one authoritative store per repository/namespace, with remote operations reaching that authority. Do not copy STORE_ID files or point unrelated repos into an unnamespaced store. - Pass unique worker/session identity through CLI and hooks. Bind claim lifetime and validation to actual mutation paths; a failed, expired or unreachable claim must prevent the protected effect. - For any retained local telemetry writer, serialize the complete read-modify-write and use atomic durable replacement. Consolidate duplicate behavior or prove parity. - Verify actual session delivery under #587; retain acknowledged event cursor and bounded replay. ## Acceptance Two worktrees AND two independent clones contend for the same logical target: exactly one authorized writer. Distinct repositories with identical relative paths do not collide. Test unique identities, malformed/unwritable state, store mismatch, expired lease, restart and disconnected authority. Race tests prove no lost telemetry updates. A two-worker post/receive/ack test demonstrates delivery into the real managed session; writing a JSON file is insufficient. Preserve semantic .crumb files, live claims and historical receipts. No blanket deletion, new daemon or global lock-root migration. Existing queen retains deployment/PR desk ownership. drakestapleton wrote on 2026-11-07 00:55 UTC crumb924 evidence, 2026-11-07 ~01:00Z (lead crumb924, Hermes worker on the Spark, claude-opus-5-5 / anthropic; ledger L900). Agent output, not a human review. Status labels kept separate. IMPLEMENTED + TESTED on branches (pushed, READY on the pr-desk); NOT MERGED; NOT DEPLOYED yet. Workstream Branch @ head Tests (Spark, cores 16-19) crumb-c (C tool) aien-architecture-mv `fix/crumb-924-crumb-c` @ `d70b7d58` `make -C tools/crumb test` 273 PASS 0 FAIL (new test-namespace.sh 81); negative control vs main `c9dd6f37`: 66/75 new checks FAIL; crumb-verify + crumb-tool-test gates rc 0 core-telemetry core `fix/crumb-924-telemetry` @ `1f31597c` `cargo test -p aien-cli -p spark-crumbs` 336 passed 0 failed (22 pre-existing ignored); race on main loses 34-47 of 48 updates, 0 lost on branch; CRUMB-VERIFY PASS session-bridge core `fix/crumb-924-bridge` @ `9951b215` (revives closed #590) `cargo test -p swarm-bridge` 80 passed 0 failed with the real crumb; OMP extension bun tests 35/0; real Hermes sessions: unclaimed write blocked, claim, allowed; crash before ack then redelivery with same ids then ack; single consumer per tag; subagent own identity guidance omega-harness `fix/crumb-924-guidance` @ `43cd762f` (carries `de960faa` + new section 12) Markdown only proof evidence only 3 Hermes worker sessions (alpha, beta, gamma), 2 repositories (alpha in two independent clones + beta), shared layout-2 store, one board: question #1, blocked #2 (gamma's claim refused in the other clone), answer #3 (parent #1, also received by gamma via thread subscription), ready #4, finding #5. alpha SIGKILLed after delivery, before ack: no cursor; on resume the same batch came back marked redelivery and was acked. Commits made by the agents: alpha `f0047c1`, `0443a8c`; beta `32e1948` Lean model evidence only mutual exclusion, check soundness, fencing (stale token refused), expiry boundary; lean_verify trust standard. It found that a bare generation number is ambiguous across keys; fixed: the token is (key, generation), `crumb check --key K --generation N` What it does: `crumb check ` (exit 0 only for a valid unexpired lease of that agent; 2 absent/expired/other holder/token mismatch; 1/3/4 failures), repository namespaces `repos//` in a shared root, fail-closed enforcement mode (`git config crumb.enforce true`), per-session identities `.`; swarm-bridge gates Hermes `write_file`/`patch`/terminal writes and OMP write/edit/bash into enforced repos, re-checks the fencing token after the call, and delivers board events at turn boundaries inside an UNTRUSTED block with ack only after the turn completed. NOT_RUN: hosted CI, workspace-wide core test/clippy (clippy blocked by a pre-existing lint in aien-inference-abi), OMP with the real gate, paired cost bench. Limits: terminal write detection is heuristic; tools outside the hook matcher are not gated; the post-call recheck detects a race, it cannot undo a write. Evidence on the Spark: ~/work/crumb924/evidence/{crumb-c,core-telemetry,session-bridge,session-bridge-omp,proof,proof-lean}/. Deployment (binaries, Hermes profile hooks, OMP extension, skills) follows the desk merge; a final comment will record installed paths and sha256. Signed: crumb924 (Hermes worker, claude-opus-5-5, anthropic) drakestapleton wrote on 2026-11-07 04:32 UTC crumb924 status (ledger L900), 2026-11-07T04:40Z. Evidence comment, not a completion claim. IMPLEMENTED + TESTED on branches (all pushed, READY on the PR desk, each with a signed independent reviewer verdict of no blocking finding at the exact head: Hermes profile reviewer, Codex gpt-6-astra, medium): - aien-architecture-mv `fix/crumb-924-crumb-c` `0f32e0865b1744afcdb056cebf88383a734b0d36`: crumb repository namespaces (`repos//`, explicit stable repo id), `crumb check ` (0 valid unexpired lease; 2 absent/expired/other holder; 1/3/4 failure), (key, generation) fencing token re-checked after the write, fail-closed enforcement (no silent opendir failure, no legacy fallback, strict schema). `make -C tools/crumb test`: 325 PASS 0 FAIL. Review round 4: no blocking finding. Merge first. - aien-sovereign-core-mv `fix/crumb-924-telemetry` `20d81340f918c88edddad8f5fd7101ae96b118f7`: per-worker identity, surfaced `.crumb.local` errors, locked durable updates. `cargo test -p aien-cli -p spark-crumbs`: 345 passed 0 failed 22 ignored. Review round 3: no blocking finding. - aien-sovereign-core-mv `fix/crumb-924-bridge` `ea63c9199f60194863138e2bb9c3276c0dd67b97`: `swarm-bridge` (revives #590) with the Hermes shell-hook adapter (pre_tool_call gate for write_file/patch/terminal writes into enforced repos, post_tool_call fencing re-check, pre_llm_call board delivery, post_llm_call ack, single consumer per tag, identity `.`) and the OMP extension. `cargo test -p swarm-bridge` 124 passed 0 failed (real crumb), OMP bun tests 58 pass 0 fail, fmt and clippy `-D warnings` clean, vendored synapse check rc 0. Nine review rounds; round 9: VERDICT head=`ea63c919` verdict=MERGE findings=0. Merge after crumb-c. - aien-dev/omega-harness `fix/crumb-924-guidance` `a97af277ae3e5a11feae91d29d102a16ed6bbc32`: crumb-protocol skill (`de960faa` store-scope correction cherry-picked, new section 12). Review round 7: MERGE findings=0. Merge last. EXERCISED (Spark): three real Hermes worker sessions on two repositories (two independent clones of one, shared layout-2 store, one synapse board) at the final bridge Rust code: an unclaimed write was blocked with the exact claim command, claim, write, commit; the second clone's claim was refused while held; the same relative path was claimed independently in the other repository; question, blocked and answer events were delivered and answered; a session killed after delivery and before ack got the same event ids back marked as redelivery and acked them. Replay of 1684 real hive terminal calls through the gate (no enforced repo): 0 blocked. MERGED: no. DEPLOYED: no. Installation of the merged binaries, Hermes hooks (worker/desk/queen; reviewer after its current claim) and skills follows the desk merges. NOT_RUN: hosted CI, OMP live sessions at the final head. Agent: crumb924 (Hermes worker, claude-opus-5-5, anthropic) Sign in to comment