Repository navigation
Memory Intervention Policy. This release ships the complete implementation that was
designed under the 0.4.0 label: immersive recall moves from “what to remember” to
when and how deeply to bring it back. The release number is 0.3.7, the default remains
off, and upgrading does not change existing recall behavior.
Release gates that still need real hosts are listed under
Known limitations: real API provider validation is deferred, and
DSH, Hermes, OpenChamber Desktop and real host-model evidence are still required before
the line can be declared fully verified. Nothing in this section treats a 6/20 matrix, a
simulated API or an adapter identity as a pass.
Added
- Adapter provisioning — connecting an assistant now installs its adapter as well as
the MCP server, so automatic recall/ingest no longer needs a manual npm install or JSON
edit. OpenCode/OpenChamber get@mebular/opencode-pluginin the globalpluginsarray,
DSH gets@mebular/dsh-pluginthrough the officialdsh plugin ... add, and Hermes gets
themebularMemoryProvider under$HERMES_HOME/plugins/mebularplus
memory.provider=mebular. Packages ship with the App (version lockstep, no npm lookup);
writes are idempotent, backed up and atomic; activation isnext-startunless an
App-owned reload/restart is injected. State and diagnostics live in
<home>/adapters.jsonandmebular adapter status|ensure|repair --json; adapter failure
never blocks MCP, and App startup/upgrade repairs already-connected hosts. MCP-only hosts
(Claude Code, Claude Desktop, Cursor, generic) stay explicitlyunsupported. No new
public MCP tool and no Console/locale change. - Memory Intervention Policy — one effective mode derived from
model.source; the
policy decidesspeak/defer/silentandgist/detail/quotefor memory
fragments only.must_speakis a hard rule and
self → checkpoint → compact/fragmentrecovery is unchanged. - First-run immersive disclosure — a truly empty home shows the one-time disclosure in
the existing first-run Console page. Only an explicit Console acknowledgement with the
matching disclosure version enables immersive; it seeds
memory-runtime/config.jsonwith{"model":{"source":"auto"}}only when that file does
not exist. An existing home, a failed write or a missing acknowledgement staysoff;
no migration, no second persisted mode. - Local assisted planning — when
model.source=local, the sidecar prefetches a plan
after the previous turn and consumes it on the next matching cue (60 s TTL, no model
call on the/contextdecision path). Local is assisted/shadow in 0.3.7, not an
authoritative planner. - API and host-plan sources —
model.source=apiis the only synchronous model planner
path (explicitallowRemote, no retries, 1500 ms cap);model.source=hostconsumes a
session-prior host plan produced by the adapter after the previous turn (60 s TTL,
identity and basis checks, no host call on/context).autoresolves
host → fresh local → configured API → heuristic without implicit network access. - Decision, applied and outcome trace —
/contextreturns an additivedecision;
RecallTracerecordsdecision,applied,outcomeand boundedoutcomeHistory
without a schema bump. - Outcome binding —
/contextreturns an opaque, TTL-scopedbindingTokenbound to
one trace, agent, thread, turn and host app.source=hostmust present it; tampered,
cross-trace, expired and rotated-token reports are rejected. Console writes use an
independent MCP admin secret throughPOST /admin/api/memory-runtime/outcome; the
browser never receives the host token. - Outcome API —
POST /memory-runtime/v1/recall/:traceId/outcomewith
accepted / ignored / reasked / corrected / dismissed / missed / too_shallow / too_deep; same trace + kind is idempotent, and new-protocol notes are rejected rather
than storing user text. - OpenCode outcome attribution — the plugin records every
/context(including
silent) and reports the next-turn signal: silent →missed, re-ask →reasked,
correction →corrected, gist →too_shallow, detail/quote →too_deep,
confirmation →accepted, idle → delayedignored. - Console observability — Runtime trace list/detail shows decision, applied,
outcome, shadowwould*markers and a confirmed local policy reset. This is
observability only; there is no new page or intervention control panel. - Local policy statistics —
<home>/memory-runtime/policy/state.jsonstores
aggregate counts per(agentId, domain), written atomically with a 30-day TTL. - Bounded
/context— a single absolute deadline defaults to 1500 ms (configurable
down to 200 ms), with response/trace reserves. The intervention planner runs in an
independent queue (concurrency 1, max 8, drop-oldest); timeout or overflow falls back
to heuristic without cancelling an already-started call. - Trace skip visibility — if the deadline leaves no room to persist the trace, the
response reportstracePersisted=false,traceId=nullandbindingToken=null; hosts
must not report an outcome for that turn. - Adaptive thresholds (heuristic only) — per-domain adjustment (±0.03, clamped
[0.45, 0.80]) applies only toheuristicdecisions that actually took effect.
model, diagnosticshadow,offand gate decisions keep diagnostic counts only.
The internal stage defaults toshadow(learn and observe, do not apply);canaryand
onare explicit internal settings, not a Console control.
Changed
model.sourceis the only production intervention selector. Effective mode is
derived frommemoryRuntime.enabledplusmodel.source: missing source →off
(model_source_missing),heuristic→ rules, andlocal/host/api/auto→
the model planner. The oldintervention.modevalue is kept in the file but ignored
with the stable warninglegacy_intervention_mode_ignored; diagnosticshadowremains
internal-only. No second persisted mode field is added.offrecords av0-baselinedecision withenforced:false; old hosts, old traces and
trace=offkeep 0.3.x behavior.offchanges no injection, but it still persists the
applied baseline spoken/silent counts in the local policy store and traces; it does not
apply policy advice or adapt thresholds.- Outcome attribution uses
applied, not the policydecision: a shadowsilent
advice with a baselinespeakis never reported asmissed.deferremains
distinguishable fromsilentinapplied, and reset clears policy statistics plus
runtime streaks/last-decision only, never memory or traces. - The former experimental framing is removed for 0.3.7: the local planner, API/host
sources and adaptive thresholds are documented features with their stated defaults and
boundaries. The legacy experimental configuration keys remain compatibility input
only: oldadaptive.enabled/adaptive.shadowvalues are not deleted or silently
honoured; they emitadaptive_experimental_ignored. - Local-authoritative planning is not part of 0.3.7. A local model never becomes the
authoritative planner in this release; that remains a separate follow-up line. - Version handshake. There is no wire/schema change in 0.3.7. The 0.3.7 sidecar
accepts only0.3.xMCP (minMcpVersion=0.3.0,maxMcpVersion=0.3.x): a 0.3.7
MCP and a 0.3.7 sidecar interoperate, and a0.4.xMCP is rejected. There is no
forward-compatibility window for an unreleased 0.4 line. Upgrade both together; the
supervisor reuses only compatible instances and reportsversion_incompatibleor
orphaned_sidecar_aliveinstead of terminating or replacing an older sidecar. Do not
claim a released 0.4.0 line or automatic replacement.
Known limitations
- 0.3.7 release gates are not all met. The W7 real-evidence matrix passes 6 of 20
host × source cells, and the remaining cells (real API, DSH, Hermes, OpenChamber
Desktop, real host model) areblocked_external. Real API provider validation is
explicitly deferred for this release. 6/20 is not a pass, a simulated API is not a
pass, and no cell may be filled with a fake, stub or adapter identity. DSH, Hermes,
Desktop and real host-model runs remain 0.3.7 release gates. See the
release-readiness report. must_speakis not 100% speak. With no candidate it degrades to
checkpoint-only:action=silent,reason=must_speak_unavailable,
degraded:true, whileself/checkpoint still inject.- Model and adaptive quality are not yet proven. They have fake-gateway/unit
coverage plus the W7 local/host plumbing evidence; real-model quality smoke and a
golden-set evaluation have not run. Keep adaptive at its defaultshadowstage. - The
alreadyInjectedIdsfragment-ID alias table is process-local. Oldmf_…IDs
from before a sidecar restart may not resolve; source/record IDs stay valid.
Documentation
- Added the adapter provisioning design, the
verification report
with a real OpenCode v2.4.1 E2E, and automatic-provisioning sections in the
Memory Runtime guide,
OpenChamber, DSH and
Hermes integration docs. - Added the intervention design (design
documents keep their historical0.4.0naming), the intervention section in the
Memory Runtime guide, the
implementation verification report,
and the 0.3.7 release-readiness report
with the 6/20 coverage matrix, the deferred API validation and the external blockers.
Verification
npm run build,npm run lint,npm run check:i18n(32 checks),npm run check:docs
(7 checks),npm run check:architectureandnpm run verify:release-version
(8 packages at0.3.7) all pass.tests/release: 3 suites / 17 tests passed.- Memory Runtime / MCP / Console / OpenCode plugin / DSH / Hermes Jest: 160 suites /
2226 tests, all passing. Alsotests/release+ the fleet routing e2e: 4 suites /
18 tests. (Earlier runs on a heavily loaded host showed 4 timing-bound failures that
each pass standalone; they are not counted as passes or as regressions, and no budget
or timeout threshold was changed.) - Hermes Python: 109 tests passed.
verify:dsh-plugin: 215 checks.verify:console
(E1) passed;verify:console:uiwas skipped because no Chrome/Chromium is present. - Not run, and not filled with fakes: real API provider (deferred), DSH real host, Hermes
real host, OpenChamber Desktop and real host-model runs. They remainblocked_external
release gates; 6/20 is not a pass.