cos_learn_narrative
Record what failed, what worked, and the key insight after a difficult task rework succeeds, forming a reusable pattern for future suggestions.
Instructions
Record what was learned from a difficult task (breakthrough narrative).
Call this after a rework→success breakthrough to capture:
What approaches failed and why
What finally worked
The reusable key insight
Creates a high-impact learned pattern for future suggestions.
Args: task_id: Task identifier (e.g. "TASK-100"). what_failed: Approaches that didn't work. what_worked: The solution that resolved the issue. key_insight: Reusable lesson learned (required).
Returns: str: JSON with status, history_id, pattern_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| key_insight | No | ||
| what_failed | No | ||
| what_worked | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |