Repository navigation
Description
Bug Description
On OpenClaw 2026.10.6, the OpenClaw host refuses the Basic Memory context engine and falls back to its legacy engine, so automatic conversation capture never runs. A model turn completes normally, but no conversation note is written.
The host now requires context engines to declare current-turn transcript semantics and to implement commitTurn(...). The plugin does neither, so the host degrades it with:
Context engine "openclaw-basic-memory" degraded to "legacy"
current-turn transcript fencing is not declared
Reported by a user through support on 2026-10-27.
Steps To Reproduce
Run this in an isolated setup (a separate loopback Gateway, a cloned project, and a separate Basic Memory config and database), not in production.
- Install OpenClaw 2026.10.6 and
@basicmemory/openclaw-basic-memory. The reporter ran 0.23.2; 0.24.1 (npmlatest) has the same code gap, as described below. - Select
openclaw-basic-memoryfor bothplugins.slots.memoryandplugins.slots.contextEngine. - Set
autoCapture: trueandautoRecall: true, and point the plugin at a valid local project. - Complete a native model turn with synthetic text, without asking the agent to call any write or edit tool.
- Check host diagnostics, and check whether the daily conversation note was created.
Expected Behavior
The host accepts the Basic Memory context engine. The turn is captured automatically into the conversation note, and a later session can recall it automatically.
Actual Behavior
The host logs the "degraded to legacy" diagnostic above, and no conversation note is created. Auto-capture does not run.
According to the reporter, the installed host's compatibility check requires:
info.transcriptSemantics.currentTurnFence = "before-current-turn-entry-v1"
info.transcriptSemantics.turnAdvancementIdempotency = "atomic-idempotent-v1"
commitTurn(...)
Host contract docs: https://docs.openclaw.ai/concepts/context-engine
Confirmed in the source
Checked against main at 438d497:
integrations/openclaw/context-engine/basic-memory-context-engine.ts:116-121: the engine'sinfodeclares onlyid,name,versionandownsCompaction. It has notranscriptSemantics.- The engine implements
bootstrap,ingest,assemble,afterTurn,compactanddispose, but notcommitTurn. Capture currently runs fromafterTurn. git grepforcommitTurn,transcriptSemanticsandcurrentTurnFenceunderintegrations/openclawreturns nothing.integrations/openclaw/package.jsondeclarespeerDependencies.openclaw: ">=2026.5.2"anddevDependencies.openclaw: "^2026.5.4". Nothing builds or tests against 2026.10.x, and the peer range claims 2026.10.6 is supported.
Ruled out by the reporter
These checks separate the failure from storage problems:
- Explicit note reads work through OpenClaw's
memory_gettool and through the MCP server, so the store and the project are healthy. - The SQLite
quick_checkpasses, and a backup/restore read-back passes. - No host guard was bypassed, and no semantics declarations were faked to get past the check.
- In production the plugin is selected only for the memory slot. That leaves open whether a memory-slot-only setup gets any lifecycle capture on this host version.
#1341 (agents claiming saves that never happened) is a different problem and does not fix this one.
Environment
- OS: macOS
- OpenClaw: 2026.10.6 (6f88c26)
- Basic Memory CLI: 0.23.2, local stdio MCP, SQLite
- Plugin:
@basicmemory/openclaw-basic-memory0.23.2 installed; 0.24.1 inspected - Docs followed: https://docs.basicmemory.com/integrations/openclaw
Possible Solution
- Implement the current context-engine contract: declare
info.transcriptSemanticswith the two values above, and add an idempotentcommitTurn(...)that does the capture now done inafterTurn. Declare the fence semantics only once they are actually true. - Bump the dev dependency to OpenClaw 2026.10.x and add a test that the host accepts the engine without degrading it.
- Correct the
openclawpeer range, or document the tested OpenClaw + plugin + CLI version combination. - Update the OpenClaw docs page to say whether the memory slot alone is enough for capture, or whether the
contextEngineslot is required.
Acceptance criteria
These come from the reporter's verification plan:
- A synthetic conversational fact is saved automatically, without an explicit write or edit call, and its note can be read back.
- A different session recalls that fact automatically, without being given the answer in its prompt.
- Capture and recall survive a normal service restart, with no duplicate turns and no lost notes.
Activity
claude commentedon Oct 27, 2026
Claude finished @groksrc's task in 20s —— View job
Triage
bug)integrations/openclaw), which is the plugin and context engine. This is not Cloud.Assessment
The report is detailed and I'm treating it as valid. I did not re-verify the host's compatibility check. I did not open the source files myself, so the file and line references below are the reporter's, not mine. They say the engine's
infoinbasic-memory-context-engine.tshas notranscriptSemantics, and that the engine has nocommitTurn. They also say capture currently runs fromafterTurn.The suggested fix looks sound:
transcriptSemantics(currentTurnFenceandturnAdvancementIdempotency) only once the behavior is actually true.afterTurncapture into an idempotentcommitTurn.openclawpeer range.Open questions for maintainers
commitTurn? If so, keepafterTurnas a fallback, and make sure the two paths can't both write the same turn.Per triage scope, I haven't started any implementation.
fix(integrations): make the OpenClaw plugin work on OpenClaw 2026.10 (#…