Local-first 🧠memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly 😴 dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else.
TypeScript
Proposal: split the lane page store, and keep private log events out of OKF exports
Why
Two follow-ups from the phase 2 review of brain-store-and-topics (tasks
3.13 and 3.14 there) are small, bounded and independent of the topics
work, so they ship first as their own pull request.
src/core/store/lane-pages.tsis about 885 lines, past the 700-line limit for a source file. It grew there with the fix that keeps a replaced private entry private, and every later fix in it makes the file harder to review.- On a switched machine,
o2b brain okf-exportrenderslog.mdfrom everylog-eventrecord the machine holds, theprivatepartition included. A page from the private partition gets avisibility: [private]stamp in the bundle, but a log entry has no frontmatter to carry it, so a private event leaves the machine unmarked insidelog.md(review finding F333, log side).
What Changes
- The store side of the lane page store (the fold accessors, the rule
that keeps an entry in its partition, the record builders) moves out of
lane-pages.tsinto a module of its own. No behaviour changes, and every caller keeps importing fromlane-pages.ts. log.mdin an OKF bundle built on a switched machine leaves out every log event of theprivatepartition. The manifest and the export verb name how many were left out. An unswitched machine is unchanged: its legacy day files carry no partition.
Capabilities
New Capabilities
remote-log-reads: what a remote MCP caller may read of the log; a private log event is withheld from it (found in review, design D3).okf-export: what an Open Knowledge Format bundle written byo2b brain okf-exportcarries, starting with the rule for private log events.
Modified Capabilities
None.
Impact
- Code:
src/core/store/lane-pages.tsand a newsrc/core/store/lane-entry-store.ts;src/core/store/read/log-events.ts(the event's partition),src/core/brain/log-days.ts(a shared-only read),src/core/brain/portability/okf.ts(buildLog, the manifest) andsrc/cli/brain/verbs/okf-export.ts(the notice). - The OpenClaw bundle (
openclaw/index.js) is rebuilt if it includes any of these modules. openspec/changes/brain-store-and-topics/tasks.md: tasks 3.13 and 3.14 point here.- No new dependency, no format change on disk, no migration.