revise_memory
Supersede an existing entry with a revised one (supersession, not mutation). Creates a NEW entry carrying metadata.supersedes=<target_id> and marks the target with superseded_by and superseded_at.
Instructions
Supersede an existing entry with a revised one (supersession, not mutation). Creates a NEW entry carrying metadata.supersedes=<target_id> and marks the target with superseded_by and superseded_at. The old entry stays readable: it is not hidden and is_live is not cleared. Recall, query_layer and semantic_recall return it marked with that end date and the id of the new entry. The current entry is listed first. Episodic revision is prohibited - events are immutable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | Layer of the entry being revised (episodic is prohibited) | |
| content | Yes | Full revised content - must stand alone without the superseded entry | |
| exchange | No | The exchange (turn) this write belongs to, counting from 1. A write for exchange n while exchange n-1 was never appended is refused by the session graph until n-1 is appended. | |
| metadata | No | Metadata for the new entry (supersedes is set automatically; include source tag) | |
| target_id | Yes | ID of the entry this revision supersedes | |
| session_id | No | Your transcript session id from emet_session_open. The session graph reads this session's state before the write and returns `session_graph.next` - the next step. A governed write with no session is refused (open one with emet_session_open and load_id). |