memory_write
Append explicit project records—decisions, evidence, outcomes, plans, and reviewed lessons—to Project Memory's local SQLite history. Append-only writes preserve prior entries, and request keys make retries idempotent.
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. progress updates state or next_action with a reason and expected_version while preserving scope and evidence; use plan only for an intentional plan revision. 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. skill_import stores a package without activation. skill_selection and map require actor and evidence; agent-authored changes remain proposed. Read their schema first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| operation | Yes | ||
| session_id | No | ||
| receipt_ids | No | ||
| request_key | Yes |