write_task_memory
Save reusable task insights—pitfalls, fixes, decisions, patterns—as durable ChatCrystal notes. Validates quality and skips weak writebacks.
Instructions
Persist a task memory only when it can become a high-quality ChatCrystal note: specific title, concrete summary, meaningful key conclusions, and a durable reusable lesson such as a pitfall, fix, decision, pattern, or symptom-to-resolution mapping. Do not write one-time environment checks, version/status reports, ordinary progress logs, or vague robustness claims. Weak auto writebacks are skipped by core validation and recorded only as receipts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Use auto for agent-generated writebacks and manual for explicit user-curated memories. | |
| source_run_key | No | Idempotency key for auto writebacks; required in auto mode to avoid duplicate memory receipts. | |
| scope | No | Store as project memory by default; global is reserved for broadly reusable manual lessons. | |
| task | Yes | Current task context used to scope, rank, and store memories. | |
| memory | Yes | Candidate ChatCrystal note content to validate or persist as reusable task memory. |