Repository navigation
feat(plugin): add bounded recall manifest budget selection (#319 slice A) - #323
Merged
Merged
Conversation
This was referenced Mar 11, 2026
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.
What this does
Implements #319 Slice A as a bounded plugin recall packing step:
recallBudgetChars)Problem / Context
Current auto-recall flow is mostly:
search -> dedupe -> top N inject.That path is not explicitly budget-aware, so recall payload size can drift and selection behavior is not clearly observable when payload pressure exists.
Issue: #319
How it works
1) New recall budget knob
Added config key:
recallBudgetChars(default3000)Wired in:
plugin/index.tsconfig parsing + known key validationplugin/openclaw.plugin.jsonschema + UI hintsplugin/README.mdoptions docs2) Recall manifest + deterministic selection
Added
plugin/recall.tswith a bounded planning step:budgetorlimit)Auto-recall now does:
3) Observability + testability
plugin/recall.test.tsFiles changed
plugin/index.tsplugin/openclaw.plugin.jsonplugin/README.mdplugin/recall.ts(new)plugin/recall.test.ts(new)Testing done
Exact commands run:
node --check plugin/index.tsnode --check plugin/recall.tsnode --test plugin/*.test.tsgo test ./...Screenshots / before-after
Terminal/log behavior change:
cortex: recall manifest ...summary with budget usage and deterministic selection accountingBreaking changes / risks
Breaking changes: None.
Concise risk note:
recallBudgetCharsknobExplicit out-of-scope (kept for later)
Merge notes