memory_write
Append project decisions, evidence, outcomes, and lessons to local SQLite memory without overwriting prior history. Retries stay idempotent via request keys.
Instructions
Append explicit records; never overwrite history. request_key makes retries idempotent. Operations: sync (optional limit, offset) refreshes previously selected Markdown; start (title, objective, task_type, criterion, subject); document (absolute path; omit subject to retain its existing subject, otherwise a new document defaults to general; optional review_after) captures local Markdown verbatim; source (source_key, title, summary, body, origin, subject, optional review_after); record (episode_id, kind, payload, expected_version, actor, evidence, optional decision_id, supersedes, links); reconcile (receipt_id, resolution, reason, evidence). approve_requirements appends an explicitly approved direction revision (requirements, reason, actor, evidence, expected_version); read direction first. Record payload fields are available through memory_get schema. Decisions require evidence, uncertainty and alternatives; session_id binds the decision to subsequent actual tools. Lessons remain proposed until a separate lesson_review. receipt_ids attaches mechanical host evidence; it cannot supply missing interpretation. plan and sprint create an episode and its plan atomically or revise an existing plan at expected_version; read their schema first. A plan preserves scope and next action; it does not prove execution or authorise host tools. checkpoint explicitly assesses observed prompt IDs; read schema id checkpoint. Bundle it as data.checkpoint on a plan or record write to avoid another call. review requests a bounded read-only host check (episode_id, role outcome/intent/recovery, optional retry). Complete outcomes start a check when configured; Done requires its current pass. Wait without repeated model calls using project-memory review --wait CHECK_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| operation | Yes | ||
| session_id | No | ||
| receipt_ids | No | ||
| request_key | Yes |