ddflow_lesson_add
Record a lesson after a bug, correction, or surprise to create a transferable rule for future agents.
Instructions
Record a lesson so it is never re-learned. Use after any bug, any operator correction, any surprise. Make the rule transferable — a future agent on a different task must be able to apply it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Stable id you choose. Referenced by `supersedes`, by commit messages and by the reconstruction; a generated id cannot be cited in advance. | |
| how | No | How to apply or detect it. | |
| why | No | Why it is true / what went wrong. | |
| rule | No | The rule in full. | |
| tags | No | Comma-separated tags. | |
| title | Yes | The rule as a one-line statement. | |
| seen_in | No | Comma-separated item ids where this was hit. What makes a lesson checkable later instead of merely memorable. | |
| supersedes | No | Comma-separated lesson ids this replaces. The old one is retired, not deleted — retiring is how the corpus stops growing without losing the record of what was once believed. |