memory_lesson_search
Avoid repeating past mistakes and dead-ends by searching procedural lessons before starting a task. Apply what worked when today's specifics match, and re-verify entries whose underlying facts changed.
Instructions
Search learned lessons (procedural memory) by similarity to the task
at hand. Call at the START of a task: what worked, what to avoid, what
the user corrected before. Heed polarity - entries — known
dead-ends. A lesson describes the run it came from, not this one:
apply it where today's specifics match, or it anchors you on a
stale framing — re_verify: true marks one whose subject facts
have changed since, so re-derive that one.
Returns: {count, entries: [{task, aspect, lesson, about, polarity, outcome, confidence, score, re_verify, re_verify_reason}]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The task at hand, described the way it would have been logged. | |
| top_k | No | Max entries returned. | |
| verbose | No | Full provenance metadata; default entries are compact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||