Skip to content

feat(brain): ADR 0001 F0 — local mount grants and cite outcomes - #55

Merged
RodCor merged 5 commits into
mainfrom
cursor/f0-local-mount-34c9
Nov 5, 2026
Merged

RodCor merged 5 commits into
mainfrom
cursor/f0-local-mount-34c9

Conversation

@RodCor

@RodCor RodCor commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Summary

Implements ADR 0001 F0 (local mount + store ops) stacked on the ADR branch (#54).

  • Seven local ops honor grants/levels. project is input alias of repo only (new events store repo; retrieval reads repo|project and labels repo; no cross-string merge collapse).
  • session / org / skill are durable levels. Session rows live in the project SQLite with session_id on the event.
  • kimetsu_brain_cite takes outcome: helped | noop | harmed. Omitted = noop (no usefulness bump). Only helped adds +1.0. Passenger +0.1 removed. Level unchanged on cite.
  • supersede writes memory.superseded. Pack replace retires only the named mount (incl. alias-window project when mount is repo).
  • kimetsu_brain_record stays a repo write. @kimetsu-ai/sdk passes outcome through.
  • No signatures, no bus (F1/F2).

Tests

  • cargo test -p kimetsu-brain --lib → 762 passed
  • kimetsu-chat lib → 136 passed (incl. MCP contract)
  • Contamination table: Merge, Replace, Replay, Warm-start, MCP, Cite, Edit — green

Stack

Open-question picks

  • Session rows in project DB (not sidecar)
  • Cite outcome as field on existing tool (not a new tool / not hidden helped)

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

@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 / would request changes (github blocks REQUEST_CHANGES on own PR from this account)

fail vs adr f0 exit until ci is green.

mount grants, cite outcomes, alias window, supersede, replace isolation, and the contamination table (minus bus) look correct and are covered by observable tests.

blocker: crates/kimetsu-brain/src/episode.rs:358 — clippy single_char_add_str under -D warnings (push_str("\n") → push('\n')). this poisons #56/#57/#59 until fixed on f0 and restacked.

should-fix: mcp tool scope enums still list only global_user|project|repo|run (~2221/2233/2246/2262) while core + @kimetsu-ai/sdk already accept session/org/skill. schema lag, not contamination.

nit: kimetsu_brain_record still calls propose_or_merge_memory directly (hardcoded repo) rather than mount::record — matches adr default mcp = repo write; ok for f0.

Comment thread crates/kimetsu-brain/src/episode.rs Outdated
.unwrap_or_default();
if !session_lines.is_empty() {
if !text.is_empty() {
text.push_str("\n");

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.

blocker: clippy -D warnings fails here — push_str("\n") → push('\n'). this is the only clippy error on the f0 head and it poisons #56/#57/#59 ci until fixed.

cursoragent and others added 2 commits November 5, 2026 22:40
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/adr-mount-memory-network-c604 to main November 5, 2026 23:50
@RodCor
RodCor merged commit 5f9aaff into main Nov 5, 2026
21 checks passed
@RodCor
RodCor deleted the cursor/f0-local-mount-34c9 branch November 5, 2026 23:51
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