Add OpenClaw context-engine lifecycle and incremental memory capture#66
Open
KennyDizi wants to merge 5 commits intoaiming-lab:mainfrom
Open
Add OpenClaw context-engine lifecycle and incremental memory capture#66KennyDizi wants to merge 5 commits intoaiming-lab:mainfrom
KennyDizi wants to merge 5 commits intoaiming-lab:mainfrom
Conversation
…sisyphus/, docs/, skills-lock.json)
…atch - Add openclaw_compat config section (context_engine_enabled, active_memory_compat, prefer_proxy_synergy, min_version) to MetaClawConfig, ConfigStore defaults, and describe() output - Extend setup wizard with advanced OpenClaw compatibility prompts - Refactor API server message augmentation to dispatch on x-metaclaw-contextengine header: context-engine path skips proxy-side memory injection (skills only), with optional prefer_proxy_synergy escape hatch for full synergy - Suppress OpenClaw built-in Active Memory via plugin slot override in claw_adapter when openclaw_active_memory_compat is enabled - Detect registerContextEngine API in OpenClaw extension and signal proxy with x-metaclaw-contextengine header
…pture - Add context-engine.ts implementing assemble/compact lifecycle: retrieve relevant memories on assemble, consolidate on compact, no-op ingest/afterTurn (sidecar scheduler handles batching) - Register as both 'memory' and 'context-engine' plugin kind; skip auto-recall when context-engine is active to prevent double-injection at gateway level - Refactor auto-capture from bulk ingest to per-turn bufferTurn with session_end final flush, tracking per-session turn counts to only enqueue new turns on each agent_end event - Add bufferTurn/flushSession methods to SidecarClient with BufferTurnResponse and FlushSessionResponse types - Add vitest dev dependency and config, with unit tests for context-engine assembly logic and plugin registration - Rebuild dist/ to reflect all source changes
Cover config defaults, ConfigStore mapping (explicit/defaults/string 'false'), describe() output, claw adapter active memory suppression toggle, API server dispatcher boolean conditions, and setup wizard advanced section with override propagation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
context-engine(assemble/compact lifecycle) on OpenClaw v2026.4.10+, with auto-recall skipped when active to prevent double-injectionbufferTurn+session_endfinal flush, tracking per-session turn countsbufferTurn()/flushSession()methods withBufferTurnResponseandFlushSessionResponsetypesopenclaw_compatblock (context_engine_enabled,active_memory_compat,prefer_proxy_synergy,min_version) wired throughMetaClawConfig,ConfigStore, and setup wizardplugins.slots.memorytometaclaw-memoryto suppress built-in Active Memoryx-metaclaw-contextengineheader — skills-only path when context-engine is active, with optional proxy-side synergy escape hatch