Patch workfile memory
project_memory_patchPatch a durable memory record by applying field changes and body replace, using optimistic concurrency to reject mismatched revisions and prevent concurrent overwrites.
Instructions
Patch a durable memory record using optimistic concurrency. To retire one in favour of another use project_memory_supersede, which updates both sides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Memory record to patch: LRN-, ADR-, INC-, CONV- or CTX-. | |
| changes | Yes | Frontmatter fields to overwrite — status, tags, related, owners and the collection-specific fields — plus body to replace the Markdown. Only the keys present are touched. | |
| expectedRevision | No | Revision string from an earlier read of this record. The write is refused if it no longer matches, so a concurrent edit is reported rather than overwritten. Omit to skip the check. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | A canonical record with its body, revision and reference graph. |