memory_lesson_save
Saves a reusable lesson to an exact project with context and confidence, strengthening matching lessons or creating new ones from official observation sources.
Instructions
Persist a reusable lesson in an exact project with context, confidence and optional official observation provenance. sources pairs are preferred; sourceIds supplies comma-separated observation IDs, all validated in that project. Matching normalized content strengthens the existing lesson and merges support/tags; otherwise creates one. Returns {success,action,lesson}, with action created or strengthened. Use memory_save for decisions/preferences, and memory_lesson_recall before applying earlier lessons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Comma-separated tags | |
| content | Yes | The lesson learned (what worked, what to avoid, when to use X approach) | |
| context | No | When/where this lesson applies | |
| project | Yes | Project this lesson is about | |
| sources | No | Preferred exact provenance pairs from official sessions in this project | |
| sourceIds | No | Comma-separated official observation IDs from this exact project that support the lesson | |
| confidence | No | Initial confidence 0.0-1.0 (default 0.5) |