Supersede workfile memory
project_memory_supersedeAtomically replace a project memory record with another, preserving the superseded record for readability and ID resolution.
Instructions
Supersede one memory record with another and update both sides atomically. Create the replacement first; neither record is deleted, so the superseded one stays readable and its ID keeps resolving.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Memory record being retired. | |
| replacementId | Yes | Memory record that replaces it. Must already exist. | |
| 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 | The superseded record. | |
| replacement | Yes | The record that replaces it. |