Skip to content

[BUG] OpenClaw 2026.10.6 degrades Basic Memory context engine to legacy; auto-capture never runs #1880

Closed

Description

@groksrc

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.

  1. Install OpenClaw 2026.10.6 and @basicmemory/openclaw-basic-memory. The reporter ran 0.23.2; 0.24.1 (npm latest) has the same code gap, as described below.
  2. Select openclaw-basic-memory for both plugins.slots.memory and plugins.slots.contextEngine.
  3. Set autoCapture: true and autoRecall: true, and point the plugin at a valid local project.
  4. Complete a native model turn with synthetic text, without asking the agent to call any write or edit tool.
  5. 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's info declares only id, name, version and ownsCompaction. It has no transcriptSemantics.
  • The engine implements bootstrap, ingest, assemble, afterTurn, compact and dispose, but not commitTurn. Capture currently runs from afterTurn.
  • git grep for commitTurn, transcriptSemantics and currentTurnFence under integrations/openclaw returns nothing.
  • integrations/openclaw/package.json declares peerDependencies.openclaw: ">=2026.5.2" and devDependencies.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_get tool and through the MCP server, so the store and the project are healthy.
  • The SQLite quick_check passes, 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

Possible Solution

  1. Implement the current context-engine contract: declare info.transcriptSemantics with the two values above, and add an idempotent commitTurn(...) that does the capture now done in afterTurn. Declare the fence semantics only once they are actually true.
  2. Bump the dev dependency to OpenClaw 2026.10.x and add a test that the host accepts the engine without degrading it.
  3. Correct the openclaw peer range, or document the tested OpenClaw + plugin + CLI version combination.
  4. Update the OpenClaw docs page to say whether the memory slot alone is enough for capture, or whether the contextEngine slot 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

  1. added
    bug
    on Oct 27, 2026
  2. claude commented on Oct 27, 2026

    @claude
    Contributor

    Claude finished @groksrc's task in 20s —— View job


    Triage

    • Type: Bug (labeled bug)
    • Component: OpenClaw integration (integrations/openclaw), which is the plugin and context engine. This is not Cloud.
    • Priority: High. On OpenClaw 2026.10.x, automatic capture never runs for anyone who uses the context engine. Recall may also be affected.
    • Complexity: Medium. The change is small in code, but it needs care about idempotency and a test against the new host contract.
    • Duplicates: I searched open issues and found none. Agents report saving to Basic Memory when no write happened (OpenClaw and Hermes) #1341 is related but separate, as the report says.

    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 info in basic-memory-context-engine.ts has no transcriptSemantics, and that the engine has no commitTurn. They also say capture currently runs from afterTurn.

    The suggested fix looks sound:

    • Declare transcriptSemantics (currentTurnFence and turnAdvancementIdempotency) only once the behavior is actually true.
    • Move the afterTurn capture into an idempotent commitTurn.
    • Bump the dev dependency to OpenClaw 2026.10.x and add a test that the host accepts the engine without degrading it.
    • Fix the openclaw peer range.
    • Document whether the memory slot alone is enough for capture.

    Open questions for maintainers

    • Does a memory-slot-only setup get any lifecycle capture on 2026.10.x? The reporter flagged this and it is still open.
    • Should the plugin stay compatible with older hosts that don't call commitTurn? If so, keep afterTurn as a fallback, and make sure the two paths can't both write the same turn.

    Per triage scope, I haven't started any implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions