Skip to content

feat(bus): ADR 0001 F2 — iroh memory bus - #57

Merged
RodCor merged 13 commits into
mainfrom
cursor/f2-memory-bus-ac97
Nov 6, 2026
Merged

RodCor merged 13 commits into
mainfrom
cursor/f2-memory-bus-ac97

Conversation

@RodCor

@RodCor RodCor commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Summary

Implements ADR 0001 F2 (P2P memory bus) stacked on F1 (#56).

  • New crate kimetsu-bus: iroh endpoint, mDNS (kimetsuv1), direct QUIC, operator relay, hole-punch via iroh path selection
  • Static signed roster (kimetsu_roster 1); signers separate from members
  • request_pack carries only kimetsu_pack 2, verifies with the F1 verifier, imports via mount::import_signed_pack
  • Presence is a side file + expiry task, off the context/search path
  • No git frames in the protocol; a peer sending one is dropped
  • kimetsu-brain does not link iroh; Remote has no bus dependency; directory sync untouched

Tests

cargo test -p kimetsu-bus -- --test-threads=1 → 13 passed (announce/request/verify/import, relay path, non-member handshake fails, scope mismatch no write, v1 on wire rejected, git frame dropped, untrusted signer quarantines, relay stop does not change context latency, Remote does not dial). F0/F1 suites still green.

Open-question picks

  • Default relay: disabled; operator supplies relay URLs
  • Roster: static file, operator-pinned admin key, no invitation flow

Stack

RodCor and others added 5 commits November 5, 2026 14:36
ADR 0001 (Proposed): mounts, store ops, signed packs, iroh bus, Rust SDK, F0–F3.
Expand ADR 0001 (Proposed): mount levels and grants, store ops,
signed packs, iroh P2P bus, Rust SDK, performance budgets, F0–F3.
New events store repo for a project input, while retrieval still reads
stored project rows and labels them repo. Cite takes helped, noop, or
harmed, and only helped can raise usefulness. Contamination checks
cover merge, replace, replay, warm-start lanes, and a repo-only MCP read.

Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>
Sign the scrubbed canonical body with BLAKE3 and Ed25519, keep a
local trust store, and reject scope mismatches before any SQL write.
Unknown signers quarantine. Unsigned v1 import stays.

Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>
Announcements and kimetsu_pack 2 move over QUIC. The receiver verifies
with the F1 signer and imports through the existing store path.

Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>

@RodCor RodCor left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verdict: fail on inherited ci / would request changes (own-PR limitation)

f2 adr bar is otherwise met: iroh bus, static roster (signers ≠ members), signed v2 packs only via import_signed_pack after verify, presence off recall, brain/remote stay free of iroh, git frames dropped, contamination-style bus tests present (f2_exit).

blocker (inherited from #55): same f0 clippy at episode.rs:358. fix #55, restack, re-run — then approve-ready.

nit: crate pins rust-version 1.91 while workspace stays 1.85 — document for consumers.

cursoragent and others added 6 commits November 5, 2026 22:40
Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>
Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>
…-12d7

Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>
…ac97

Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>
Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>
…ac97

Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>
@RodCor
RodCor removed this pull request from stack #58 November 5, 2026 23:49
Base automatically changed from cursor/f1-signed-packs-12d7 to main November 6, 2026 03:09
cursoragent and others added 2 commits November 6, 2026 03:12
…ac97

Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>

# Conflicts:
#	Cargo.lock
Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>
@RodCor
RodCor merged commit 6700deb into main Nov 6, 2026
21 checks passed
@RodCor
RodCor deleted the cursor/f2-memory-bus-ac97 branch November 6, 2026 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants