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.
Variant 1: Kernel-first β one verdict-and-digest foundation landed ahead of the eight
- Approach: Open the branch with two leaf modules before any unit: a
Verdictkernel (frozen vocabulary whereunverifiedis a member alongside checked-clean and checked-bad, each carrying a reason code drawn from a single registered table) and adigestmodule that absorbs the ~10 private SHA-256 copies, the 16 inline sites, the 3 ad-hoc truncation lengths and the 2 canonical-JSON implementations behind named constants. All eight units then express their local vocabulary as a parameterisation of the kernel β U1'sok/modified/unverified, U2'snot_found/unknown/did_not_happen, U6'sincluded/excluded_because/unknown-because-predates, U3'srecorded: falseβ and every read surface renders through one renderer. - Trade-offs:
- Pro: the two persisted digest decisions (U1's schema-pack digest, U2's coverage receipt) are made once, by one module, with one truncation constant β under the additive-only rule a divergence here would be permanent across replicated peers.
- Pro: the reason axis becomes census-enforceable in the existing signal table from day one; a unit that invents an unregistered reason fails the build rather than shipping a private string.
- Pro: the digest consolidation is a debt the wave has to touch anyway; doing it once at the front is cheaper than eight partial touches.
- Con: the wide half of the kernel is a god-type risk. U5's
suppressedis a lifecycle status with a recurrence counter, U7's snapshot reason is a causal vocabulary, U8's truncation notice is a payload naming dropped items β forcing all three into one verdict shape produces a type whose members do not mean the same thing, and that shape survives the release. - Con: the largest single-PR blast radius of the three: ~26 pre-existing digest call sites refactored in the same diff as eight features, so an unrelated regression in the digest sweep can block the whole wave.
- Con: a leaf module consumed by schema, recall, doctor, snapshot, trigger and injection layers is a new central dependency in a codebase that recently spent a release removing all import cycles.
- Complexity: large
- Risk: medium
Variant 2: Narrow shared kernel β share the reason axis and the digest bytes, keep every verdict vocabulary local
- Approach: Split the primitive along its two axes and share only the one that is genuinely identical across the eight. The reason axis β the named, machine-readable why-could-not-check code β is an extension of the existing closed could-not-check condition vocabulary, widened into a leaf registry that the census test already enforces; the digest module is consolidated as in Variant 1 because two units persist digests. The verdict axis stays local to each unit: eight small frozen vocabularies with their own arity and their own exhaustive switches, each obliged to carry a reason code from the shared registry on its unverifiable member.
- Trade-offs:
- Pro: directly satisfies "prefer extending an existing surface to adding a parallel one" β the could-not-check vocabulary and the existing
pass/warn/failmismatch renderer are the precedents, and this widens them rather than standing up a rival. - Pro: smallest surface that can still be wrong. If the shared piece turns out wrong halfway, the reason registry is additive by construction and only U1 and U2 depend on the digest module, so rework is two units, not eight.
- Pro: keeps arity honest. U3 needs
recorded: falseversusrows: [], U4 needs a non-zero exit code, U5 needs a status plus a counter β none of these is a tri-state, and none has to pretend to be. - Pro: the repeated-constant convention is satisfied where the repetition is real (reason codes, digest algorithm, truncation length) without inventing repetition where it is not.
- Con: eight local vocabularies means eight exhaustive switches and eight renderer adapters; the family resemblance is enforced by convention and review, not by the compiler.
- Con: U5's status partition is currently hand-maintained in three copies across core, CLI and MCP β this variant fixes that within U5 but does not give the wave a general mechanism preventing the next such triplication.
- Con: the boundary between "reason" and "verdict" has to be adjudicated per unit and one or two will be arguable (U6's
unknown-because-predates-the-featureis arguably a reason wearing a verdict's clothes).
- Pro: directly satisfies "prefer extending an existing surface to adding a parallel one" β the could-not-check vocabulary and the existing
- Complexity: medium
- Risk: low
Variant 3: Local-first with an enforced census β eight private vocabularies, one ratchet, harvest in a later wave
- Approach: Ship each unit with its own frozen vocabulary, its own reason strings and its own digest call, sharing nothing new; the only cross-cutting addition is a census/ratchet test that requires every new verdict member and every reason code to be registered in the existing diagnostic signal table, plus a written refusal in the release notes naming the shared kernel as deliberately not built and why. The eight then serve as the eight real call sites a later refactor wave needs in order to design the kernel from evidence rather than from anticipation.
- Trade-offs:
- Pro: maximum unit independence β the eight can be built and reviewed in any order, and a stalled unit blocks nothing else in the branch.
- Pro: zero wrong-kernel cost. There is no shared piece that can turn out wrong halfway.
- Pro: the refusal is shippable release content in the project's established style, so the decision is recorded rather than silently deferred.
- Con: two units persist a digest, independently choosing algorithm and truncation length. Under additive-only on persisted formats, two divergent digest encodings in one release are permanent for replicated peers β this is the one place where the repetition is not merely untidy.
- Con: leaves the ~10 SHA-256 copies and 2 canonical-JSON implementations at 12 and 18, in a wave whose stated theme is that duplicated silence-handling is the defect.
- Con: sits against two written conventions at once ("anything repeated goes into a named constant", "no new subsystem where an existing one can carry the capability") β the census test makes the duplication visible but does not make it legal.
- Con: the later harvest wave has to touch all eight units again, and by then their vocabularies are released and additive-only.
- Complexity: small per unit, large in aggregate
- Risk: high
Recommended: Variant 2
Rationale: The eight units genuinely share the reason axis and the digest bytes, and they genuinely do not share the verdict axis β a suppression status with a recurrence counter, an exit code and a coverage receipt are not the same type, and a kernel that claims they are would outlive the release under the additive-only rule. Variant 2 shares exactly the two things whose divergence would be permanent and unfixable across replicated peers (one digest encoding, one registered reason vocabulary), extends existing precedents instead of standing up a parallel one, and confines mid-wave rework to the two digest consumers if the shared piece proves wrong β whereas Variant 1 bets the whole wave on a wide type designed before its call sites exist, and Variant 3 buys independence by shipping two irreconcilable persisted digests.