Skip to content

feat(brain): ADR 0001 F1 — signed packs (kimetsu_pack 2) - #56

Merged
RodCor merged 9 commits into
mainfrom
cursor/f1-signed-packs-12d7
Nov 6, 2026
Merged

RodCor merged 9 commits into
mainfrom
cursor/f1-signed-packs-12d7

Conversation

@RodCor

@RodCor RodCor commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Summary

Implements ADR 0001 F1 (signed packs) stacked on F0 (#55).

  • kimetsu_pack 2: BLAKE3-256 of scrubbed canonical body + Ed25519 (ed25519-rfc8032-verify-strict)
  • Scope mismatch rejects with no SQL (no quarantine row)
  • Trusted signer merges; unknown signer → proposals only
  • v1 unsigned import still works, narrowed to named mount
  • Local trust store: ~/.kimetsu/trust.json or $KIMETSU_TRUST_STORE
  • No iroh / bus / Remote / sync changes

Canonical pin

kimetsu-canon-json/1 (not RFC 8785): UTF-8, keys sorted by raw bytes, no insignificant whitespace; signature over scrubbed body omitting signer/signature.

Tests

cargo test -p kimetsu-brain --lib → 775 passed (F0 mount tests still green). Tamper/scope/strip/untrusted/strict/v1 parser cases green.

Stack

RodCor and others added 4 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>

@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 ci only / would request changes (own-PR limitation)

f1 signed-pack contract is met: kimetsu_pack 2, blake3 + ed25519 verify_strict, scope mismatch with no sql, trust store, quarantine for unknown signer, v1 local narrowed, no iroh. tests cover tamper/scope/untrusted/v1.

blocker (inherited from #55): crates/kimetsu-brain/src/episode.rs:358 clippy. fix on #55 and restack — then f1 looks approve-ready.

nit: prefer checking sorted/unique scopes before ed25519 verify for clearer errors (still rejects today).

cursoragent and others added 4 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>
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/f0-local-mount-34c9 to main November 5, 2026 23:50
…s-12d7

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

# Conflicts:
#	CHANGELOG.md
#	crates/kimetsu-brain/src/mount.rs
@RodCor
RodCor merged commit a62fa00 into main Nov 6, 2026
21 checks passed
@RodCor
RodCor deleted the cursor/f1-signed-packs-12d7 branch November 6, 2026 03:09
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