Skip to content

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
6.8 KB
Raw Blame

Independent review

Reviewer

An agent of a different model family than the author, read-only: it wrote no artifact of this change and checked every claim against the tree this change was written against. Round 1: 11 findings, verdict "no". The author checked each finding against the code and updated the artifacts. Round 2 (the same kind of reviewer): four findings (13 to 16 below), none blocking, verdict "yes"; all four are fixed.

Findings

  1. design D7 item 4, tasks 1.1, 1.5, 2.1, 2.2, 2.4, spec held-partitions: store partition leave reported a clean leave while the shared store id was unreadable, so the seen-shard entries and the digest caches (which may hold the partition's text) stayed. Fixed: the verb fails closed; leavePartition reads the store id from shared/store.json before removing anything and refuses with the new reason no-store-id (exit 1), changing nothing, with a message to restore the shared partition's identity file first. D7 items 4 and 5, a new requirement "Leaving fails closed without the shared store id" with its scenario in held-partitions (the refusal requirement now says every refusal changes nothing), task 1.1 case 10, task 1.5 steps 5 to 9 and the refusal type, task 2.1 case 9, task 2.2 refusal list, and both docs texts of task 2.4 updated.

  2. design D4 item 3, task 9.1, spec store-shard-gaps: the quarantine mark could be read as needing only the shard or the offset for a corrupt-line diagnostic. Fixed: D4 item 3 now states that every mark, diagnostic and pending record alike, needs the offset and the line hash to match one ledger entry; the spec adds that rule and the scenario "A second corrupt line in the same shard"; task 9.1 adds "a second corrupt line at another offset in the same shard is still a gap" and a pending record with a ledger offset but another hash.

  3. design D8, spec lane-entry-fidelity, task 3.4: the trust boundary of raw was unstated, and the parse-back guard passes a frontmatter comment. Fixed: D8 item 5 states that the writer's judge is the only judge of raw, exactly as of text, and that the read-side guard only stops raw from saying something other than the entry's own fields and text; the spec adds the requirement "The writer's judge is the only privacy judge of the raw text" with the scenario "A hand-appended shared record with a raw comment" (served as written); task 3.4 case 11 asserts it.

  4. proposal, design Non-Goals, task 14.5: tasks 3.18 and 3.19 were claimed to be added by this change with no task adding them. Rejected: both are already in openspec/changes/brain-store-and-topics/tasks.md in this change's tree, added with it. Task 14.5 now confirms they are present and open, and stops when either is missing; the Non-Goals wording names where they live.

  5. task 6.1, spec remote-log-reads: the weekly brief was named but not verified. Fixed: task 6.1 adds brain_brief view weekly, and the spec scenario names it.

  6. task 7.6, spec remote-log-reads: the last dream time had no verifying case. Fixed: the code reads the last dream and the last apply-evidence times from the same statusLog scan, so the spec keeps both; its status scenario adds the dream time and task 7.6 adds a private dream event newer than a shared one.

  7. spec lane-entry-fidelity "Older readers keep working": not testable in one tree. Fixed: the requirement is now "The raw field is optional and never rejects a record", with one scenario for a record without raw and one for a non-string raw; task 3.3 names its three cases as that requirement's verification.

  8. design D2 row 9, task 7.9: brain_stale_scan does not go through buildOperatorSnapshot. Fixed: row 9 names its own buildTimelineIndex(ctx.vault, {}) call in review-tools.ts, which gets withholdsPrivate from the tool's reviewView(ctx); buildOperatorSnapshot stays for brain_status; task 7.9 names both paths.

  9. design D8 item 1, task 3.2: the import list of lane-raw.ts disagreed. Fixed: D8 item 1 now allows node:*, ../vault.ts, ../integrity/digest.ts and ../types.ts, as task 3.2 does.

  10. tasks 0.4, 6.2, 7.8, 3.3, 2.2: paths left to discovery and an unstated --json shape. Fixed: task 0.4 lists the existing test files of every D2 reader and of the timeline builders, and 6.2 names the temporal and analytics tests; task 7.8 names the threshold path (collectMaintenanceActions calls computeTokenFootprint(vault) at the 200000 default, no override) and the test that reaches it with a filler page; task 3.3 names the record builders (rec, authored, laneEntryRecord) and the assertions; task 2.2 states the refusal and usage output on stdout and stderr, and task 2.1 case 8 asserts it.

  11. design Goals: the 700-line sentence contradicted itself. Fixed: no file under 700 lines crosses 700 because of this change, and the eight files already past it grow by call-site edits only.

  12. design D2 rows 5, 8, 9 and 10, tasks 0.4, 7.5, 7.8, 7.9 and 7.10, spec remote-log-reads (found by the author while answering the review): the call-site column missed callers of the D2 core readers that have a remote surface. Fixed: collectMaintenanceActions gets the option from digest.ts (osb://digest/latest, brain_brief view=digest) and from buildOperatorSummary (brain_brief view=operator, through brief-tools.ts); buildBacklinkIndex gets it from concept synthesis (brain_analytics), brain_moc_audit and the doctor's broken-backlinks check (brain_doctor, its repair preview, the operator summary and the operator snapshot); planNoteRevert gets it for brain_writes action plan_revert. D2 lists the callers left unedited and why (local only, or no log-derived output), the tasks add a remote and a local case for each new call site, and the spec adds the scenarios "Link-derived answers from a private event" and "Maintenance actions from the log footprint" and a revert-plan clause to the note-write scenario.

  13. design D7 item 4, task 1.3, task 1.5, spec held-partitions (round 2): leavePartition removed the held marker before clearing, so a failed clearing left the machine no longer holding the partition with caches that may hold its text, and the seen-shard clear reported a count over a best-effort write. Fixed: the digest caches and the seen-shard entries are cleared first and the marker is removed last; forgetSeenPartition checks that its write landed; a failure refuses with the new reason clear-failed and the partition stays held.

  14. task 2.4 (round 2): the docs line listed four of the six refusal reasons. Fixed: it names all of them, clear-failed included.

  15. design D2 row 9 (round 2): "two lines below" mis-cited the position of the view. Fixed: "below the call".

  16. proposal, Impact (round 2): tasks 3.18 and 3.19 read as added by this change's own list. Fixed: the line says they are added to the parent change's tasks.md in this change's tree.

Verdict

Ready for implementation: yes