ReadPrintedHistoryCompareGraphs

v1.5 → v1.6

What changed from v1.5 to v1.6

From v1.5 (14 Jun) to v1.6 (29 Jul): 8,074 words to 8,886 words, 1,087 words in new or rewritten paragraphs and 275 taken out, 18 paragraphs changed.

Measured logs show the capture trigger fires early and the filter misses

Real logs enter the paper, and they soften its claims. The trigger that starts the capture step fired well before the window was actually full, and some captures were thrown away after they had been written, so a new section 7.6 says the trigger cannot be trusted as proof that content was about to be lost. A byte count of the captured traffic shows that exact repeats are a tiny share while stale content is large, so the triviality filter is aimed at the wrong thing. A new section 10.6 warns that a feature can be installed and switched on and still never see traffic. The notes of 28 July state these three findings as the reason.

  • The abstract and introduction now say "can be lost" instead of "is lost".
  • The status table replaces "Live" with what the counters show.
v1.5 · 14 June 2026v1.6 · 29 July 2026

··· 1 unchanged paragraph folded ···

v1.5 · AbstractPersonal AI assistants that accumulate months of memory face four gaps that general-purpose retrieval systems do not close: constant-time concept lookup degrades to linear search at scale, retrieval scoring ignores the agent's current task, memory writes can silently introduce contradictions, and context compaction permanently destroys information that was used once but never queried again. We present **MNEMOSYNE**, a plugin-layered enhancement suite that addresses all four gaps without modifying the underlying memory-core codebase. MNEMOSYNE registers four hooks — `retrieval_pre`, `before_message_write`, `before_compaction`, and `after_compaction` — on top of OpenClaw's markdown-first memory system. A concept index and compaction-aware capture are deployed in production; task-conditioned retrieval scoring and the contradiction gate are scaffolded for the next release. We also describe how the contradiction gate becomes a bi-temporal validity layer (§9.5): rather than blocking or warning, a contradicting write *supersedes* the prior fact by closing its validity interval, so the corpus retains full history and every retrieval can ask "what is true now" versus "what was true then." The validity substrate is not paper-only — memory-core already ships the validity columns, the temporal search predicate, and the supersede writer, so MNEMOSYNE has only to route the gate's decision into it. We position the compaction-capture feature explicitly against reversible Compress-Cache-Retrieve as implemented in chopratejas/headroom, which solves the eviction-loss problem from the opposite end (lossless-by-caching rather than selective-by-filtering), and we are candid that MNEMOSYNE's central performance claims remain architectural rather than benchmarked. The plugin packages all four features as a single installable unit for marketplace distribution.
v1.6 · AbstractPersonal AI assistants that accumulate months of memory face four gaps that general-purpose retrieval systems do not close: concept lookup can become more expensive as the corpus grows, retrieval scoring ignores the agent's current task, memory writes can silently introduce contradictions, and context compaction can destroy information that was used once but never queried again. We present **MNEMOSYNE**, a plugin-layered enhancement suite that addresses these gaps without modifying the underlying memory-core codebase. MNEMOSYNE registers four hooks — `retrieval_pre`, `before_message_write`, `before_compaction`, and `after_compaction` — on top of OpenClaw's markdown-first memory system. The concept index has a production implementation; compaction-aware capture has a confirmed write and indexing path but lacks trustworthy liveness evidence because the upstream compaction trigger was mis-measured and some triggered compactions were later discarded. Task-conditioned retrieval scoring and the contradiction gate remain scaffolded. We also describe how the contradiction gate becomes a bi-temporal validity layer (§9.5): a contradicting write supersedes the prior fact by closing its validity interval, retaining full history for "true now" and "true then" queries. The validity substrate is not paper-only — memory-core already ships the validity columns, temporal search predicate, and supersede writer — but MNEMOSYNE still has to route the gate's decision into it. We position compaction capture against reversible Compress-Cache-Retrieve as implemented in chopratejas/headroom and report first-party operational measurements of trigger error and capture-filter yield. The central retrieval, validity-overhead, and answer-quality claims remain architectural rather than benchmarked. This paper is therefore an integration and deployment analysis, not evidence that the composed system outperforms current retrieval baselines.

··· 9 unchanged paragraphs folded ···

v1.5 · 1.3 Contributions1. An O(1) concept index that short-circuits hybrid retrieval for known concepts (Feature 1). 2. A task-conditioned score modifier that biases retrieval toward the agent's current work (Feature 2). 3. A contradiction gate that intercepts memory writes before promotion to durable storage (Feature 3), and its bi-temporal evolution into a supersession layer (§9.5). 4. A compaction-aware capture pass that snapshots context before it is evicted (Feature 4). 5. A unified plugin architecture that delivers all four as a single distributable unit.
v1.6 · 1.3 Contributions1. An O(1) concept index that short-circuits hybrid retrieval for known concepts (Feature 1). 2. A task-conditioned score modifier that biases retrieval toward the agent's current work (Feature 2). 3. A contradiction gate that intercepts memory writes before promotion to durable storage (Feature 3), and its bi-temporal evolution into a supersession layer (§9.5). 4. A compaction-aware capture pass that snapshots context before intended eviction, together with an operational analysis of trigger validity and filter yield (Feature 4). 5. A unified plugin architecture and a documented set of integration failure modes for delivering the four mechanisms as one unit.

··· 113 unchanged paragraphs folded ···

v1.5 · 7.1 The Gap: Messages Used Once and Never Queried Can Be Lost### 7.1 The Gap: Messages Used Once and Never Queried Are Lost
v1.6 · 7.1 The Gap: Messages Used Once and Never Queried Can Be Lost### 7.1 The Gap: Messages Used Once and Never Queried Can Be Lost

··· 1 unchanged paragraph folded ···

v1.5 · 7.1 The Gap: Messages Used Once and Never Queried Can Be LostNightly dreaming can recover some of this content by promoting memories that were recently searched for. But dreaming promotes only what has been queried. Content used once — read, acted upon, and never referenced again — is permanently lost after compaction.
v1.6 · 7.1 The Gap: Messages Used Once and Never Queried Can Be LostNightly dreaming can recover some of this content by promoting memories that were recently searched for. But dreaming promotes only what has been queried. Content used once — read, acted upon, and never referenced again — can be lost after a completed compaction. Operational measurements also show that not every capture trigger corresponds to legitimate window pressure or a completed eviction (§7.6), so trigger activation cannot itself establish that content would otherwise have been lost.

··· 12 unchanged paragraphs folded ···

v1.5 · 7.3 Triviality FilterThe filter is deliberately permissive — it is better to capture a marginally useful message than to lose a detail that matters. Storage is cheap; lost information is expensive. The filter is nonetheless *lossy by construction*: anything it drops is gone, with no recovery path. §7.5 contrasts this with a reversible-cache design that would retain even sub-threshold content.
removed in v1.6
not in v1.5
v1.6 · 7.3 Triviality FilterThe filter is deliberately permissive — it is better to capture a marginally useful message than to lose a detail that matters. It is nonetheless *lossy by construction*: anything it drops is gone, with no recovery path. More importantly, first-party traffic measurements show that the exact-hash test addresses the wrong scale of redundancy. Across 23,376,348 bytes in 4,402 Read-tool calls from 890 sessions, identical repeats accounted for 25,042 bytes in seven calls (about 0.1%). Stale reads accounted for 3,374,879 bytes in 680 calls, line-number scaffolding for 1,512,097 bytes, and subset containment for 94,971 bytes in 35 calls: about 5.0 MB, or 21% of Read traffic, was addressable by known compression strategies. An exact hash remains worth keeping because it is cheap, not because it has high yield.
not in v1.5
v1.6 · 7.3 Triviality FilterThe same audit found 20,916,377 bytes of Bash-tool traffic, nearly as much as Read traffic, outside the file-oriented filter's scope. Read content also split materially by type: 11,960,293 bytes of documentation/text, 9,245,180 bytes of source code, and 1,461,551 bytes of data/configuration. These distributions argue for similarity- and validity-aware filtering plus content-specific handling; a uniform exact-match filter cannot address superseded content or command output. Context residency also varied widely (median 48, mean 139.6, p90 364; maximum re-reads of one file: 34), replacing the earlier unmeasured "used once" generalization with an observed distribution.

··· 8 unchanged paragraphs folded ···

not in v1.5
v1.6 · 7.6 The Trigger Is Not Ground Truth### 7.6 The Trigger Is Not Ground Truth
not in v1.5
v1.6 · 7.6 The Trigger Is Not Ground TruthThe `before_compaction` hook is a notification from an upstream component, not proof that the context is near capacity or that eviction will complete. First-party instrumentation from 25–28 July 2026 found that compaction triggered at a median of about 5.5% of the actual context window. In one observed session, a per-message `usage` field containing the aggregate for an entire turn was treated as a context snapshot: 1,029,656 reported tokens for 52,116 decoded per-call context tokens, a 19.8× over-read. A separate estimator path assigned zero tokens to a 55,632–61,336-character system prompt because its synthetic message role was unsupported. The pressure estimate therefore failed in both directions.
not in v1.5
v1.6 · 7.6 The Trigger Is Not Ground TruthThe hook contract has a second consequence: 29 events reached a 540-second cap and were discarded after MNEMOSYNE had already written and indexed their captures; the measured compaction work itself took 19 ms. The capture corpus can therefore accumulate content that was never evicted. A correct capture integration must validate pressure independently or persist the observed `contextUtilPct` and final compaction disposition with every captured chunk. Captures associated with discarded compactions must be identifiable for retention or rollback. Hook signature stability (§10.1) is insufficient when trigger semantics are wrong.

··· 8 unchanged paragraphs folded ···

v1.5 · 8.3 Deployment Status| Feature | Status | Notes | |---------|--------|-------| | Concept index | **Live** | anchors.json persisted, lazy loading, nightly rebuild | | Compaction-aware capture | **Live** | Capturing to `<agent-data>/mnemosyne/captured/`, FTS5 indexing confirmed | | Task-conditioned scoring | Scaffolded | Hook registered but returns early (no task descriptor extraction yet) | | Contradiction gate | Scaffolded | Hook registered; today it injects passive contradiction warnings into the retrieval pack rather than blocking, and entity-level conflict detection is not yet wired | | Bi-temporal supersede (§9.5) | Core-ready, plugin-pending | memory-core ships the validity columns, search predicate, and supersede writer; MNEMOSYNE must route the gate's decision into them | | Reproducible eval harness (§10.4) | Not built | No latency or accuracy benchmark exists; the gap is now a first-class limitation, not a footnote |
v1.6 · 8.3 Deployment Status| Feature | Status | Notes | |---------|--------|-------| | Concept index | Implemented; traffic unquantified | anchors.json persisted, lazy loading, nightly rebuild; no stated-window request counter | | Compaction-aware capture | Path confirmed; liveness unverified | Write and FTS5 indexing paths confirmed, but no non-zero completed-eviction counter; upstream trigger was mis-measured (§7.6) | | Task-conditioned scoring | Scaffolded | Hook registered but returns early (no task descriptor extraction yet) | | Contradiction gate | Scaffolded | Hook registered; today it injects passive contradiction warnings into the retrieval pack rather than blocking, and entity-level conflict detection is not yet wired | | Bi-temporal supersede (§9.5) | Core-ready, plugin-pending | memory-core ships the validity columns, search predicate, and supersede writer; MNEMOSYNE must route the gate's decision into them | | Reproducible eval harness (§10.4) | Not built | No latency or accuracy benchmark exists; the gap is now a first-class limitation, not a footnote |
not in v1.5
v1.6 · 8.3 Deployment StatusA component is called **live** here only when a traffic or volume counter shows non-zero use on the intended path during a stated window. Installation, enablement, hook registration, and a successful synthetic write are necessary but insufficient. This stricter standard follows an observed counterexample: a context-compression proxy was installed, enabled, running, and referenced by the gateway environment, yet served six requests over its lifetime and saved zero tokens because production traffic ran in a subprocess that stripped the proxy environment variable.

··· 63 unchanged paragraphs folded ···

not in v1.5
v1.6 · 10.4 Benchmarks: The Central Evidence GapBenchmark performance and deployed effect are different measurements. In the observed deployment, an installed and enabled headroom proxy served six lifetime requests and saved zero tokens because it was not on the actual traffic path. This does not dispute headroom's stateless benchmark results; it shows that benchmark results cannot establish integration liveness. MNEMOSYNE needs both a reproducible evaluation harness and per-component request/volume counters on the production path.

··· 5 unchanged paragraphs folded ···

not in v1.5
v1.6 · 10.5 Capture Volume and a Reversible Sub-Threshold TierDiscarded compactions create a distinct source of growth: the current hook can write and index a capture before the upstream operation is abandoned (§7.6). Retention accounting must separate completed-eviction captures from trigger misfires. The observed redundancy distribution also changes the priority of future filtering: identical hashes addressed about 0.1% of measured Read bytes, while stale, scaffolded, and subset content accounted for about 21%. Similarity and temporal-validity tests deserve evaluation before more exact-match machinery, and Bash/command output must either receive content-specific handling or remain an explicit scope boundary.

··· 1 unchanged paragraph folded ···

not in v1.5
v1.6 · 10.6 Instrumented Does Not Mean On the Path### 10.6 Instrumented Does Not Mean On the Path
not in v1.5
v1.6 · 10.6 Instrumented Does Not Mean On the PathConfiguration and registration prove that code *can* run, not that production traffic reaches it. The proxy counterexample in §8.3 and the compaction-trigger defects in §7.6 failed at different layers but share the same shape: structural checks passed while the measured data source or traffic path was wrong. Every deployed-status claim therefore needs a stated observation window and at least one request, byte, or event counter at the component boundary. For capture, the minimum evidence is counts of hook invocations, completed compactions, discarded compactions, captured chunks, and indexed bytes. For retrieval and validity, it is query counts by path and temporal mode. Without those counters, the correct status is "path confirmed; liveness unverified."

··· 1 unchanged paragraph folded ···

v1.5 · 11. ConclusionMNEMOSYNE demonstrates that four significant improvements to a personal-agent memory system — constant-time concept retrieval, task-conditioned scoring, write-time contradiction gating, and compaction-aware capture — can be delivered as a single plugin layered on top of an unmodified memory-core. The plugin architecture provides failure isolation, upgrade independence, and marketplace distributability. Two features are live in production; two are scaffolded and await entity extraction and task descriptor wiring. The contradiction gate's most consequential evolution — bi-temporal supersession (§9.5) — rests on a substrate that already exists: memory-core ships the validity schema, the temporal search predicate, and the supersede writer, leaving MNEMOSYNE to route the gate's decision into them. The approach validates a design principle: that personal-assistant memory diverges enough from enterprise-wiki memory to justify a separate enhancement layer rather than modification of the shared core. The work that remains is not only the two scaffolded features but the evidence itself: against ecosystem systems such as chopratejas/headroom that ship reproducible benchmarks for the eviction-loss problem from the lossless-by-caching direction, MNEMOSYNE's selective-capture-plus-validity design must earn its O(1) and supersession claims with measurement, and a reversible sub-threshold tier is the most promising way to absorb headroom's lossless property without surrendering MNEMOSYNE's signal-per-chunk selectivity.
removed in v1.6
not in v1.5
v1.6 · 11. ConclusionMNEMOSYNE shows how concept indexing, task-conditioned scoring, write-time contradiction handling, and compaction-aware capture can be assembled as a plugin over an unmodified memory core. Its defensible contribution is the integration design and the operational failure modes it exposes, not evidence of superior retrieval performance. The concept index is implemented, the capture write and indexing path is confirmed, and the other two features remain scaffolded; none has enough traffic evidence to justify an unqualified "live" label. The contradiction gate's bi-temporal evolution (§9.5) rests on an existing validity schema, temporal predicate, and supersede writer, but plugin routing remains unfinished. First-party measurements further show that capture correctness depends on upstream trigger validity, final compaction disposition, and content-aware redundancy handling: exact duplicates were only about 0.1% of measured Read bytes, while broader stale and near-duplicate classes were about 21%. The next step is therefore empirical: public retrieval benchmarks and ablations, production-path counters, and a reversible sub-threshold tier evaluated against simpler retention and similarity baselines. Until those exist, MNEMOSYNE is best treated as an implemented integration contribution that can feed a broader persistent-memory systems evaluation.

··· 2 unchanged paragraphs folded ···

Changed paragraphs in the same form, for scripts: JSON · Markdown