Skip to content

fix(memory): stop suggesting unavailable scheduling tools - #130128

Merged
steipete merged 1 commit into
mainfrom
codex/memory-intent-tool-guidance-wave7
Aug 26, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/memory-intent-tool-guidance-wave7

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users asking their agent to remember an event-conditioned standing intent could see the model try to call a nonexistent cron tool, or suggest a scheduling tool unavailable to the current turn.

Why This Change Was Made

Both the bundled memory plugin's actual lazily registered standing-intent tool and its loaded execution owner now describe time-based reminders by capability: use scheduled tasks. This preserves the distinction between event-conditioned standing intents and scheduled reminders without statically advertising another tool.

User Impact

Agents receive the same actionable scheduling guidance without hallucinating an old tool name or a capability excluded by their current policy. Owner-only intent authorization, scope, persistence, plugin contracts, and scheduler aliases are unchanged.

Evidence

  • Test-first proof on current main: the existing real owner-only plugin registration test and the existing standing-intent create/list/cancel test both failed on the stale Use cron or scheduled tasks for time-based reminders description; 38 neighboring tests passed.
  • Replacing only the two model-visible descriptions made the same existing owner suites pass: OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs extensions/memory-core/index.test.ts extensions/memory-core/src/standing-intents.test.ts — 2 files, 40 passing tests.
  • Existing non-owner and missing-config authorization cases remain in the passing plugin owner suite; both lazy and loaded descriptions are asserted to contain scheduled-task guidance and no static cron or automations reference.
  • Targeted formatting and git diff --check pass. The optional local plugin lint wrapper additionally invokes repository-wide Plugin SDK declaration preparation, which is blocked in this linked checkout by unrelated preexisting borrowed-dependency type mismatches; exact-head hosted CI remains the full verification gate.
  • Independent architecture review, a complete structured code review, and a separate read-only review found no actionable issues.
  • Production delta: +2/-2, net zero; five regression-test lines were added to existing owner tests.

@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added extensions: memory-core Extension: memory-core size: XS maintainer Maintainer-authored PR labels Aug 26, 2026
@steipete
steipete marked this pull request as ready for review August 26, 2026 13:23
@steipete
steipete merged commit d259f98 into main Aug 26, 2026
162 checks passed
@steipete
steipete deleted the codex/memory-intent-tool-guidance-wave7 branch August 26, 2026 13:45
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

extensions: memory-core Extension: memory-core maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant