revise_memory
Supersede an existing memory entry with a revised version, creating a new linked entry so the original remains available alongside the update.
Instructions
Supersede an existing entry with a revised one (supersession, not mutation). Creates a NEW entry carrying metadata.supersedes= and marks the target entry metadata.superseded_by=. Superseded entries STILL SURFACE in recall / query_layer / semantic_recall, marked with superseded_by and is_superseded, so the revision is read alongside what it replaced (query_layer options.include_superseded=false gives the live-only view). 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). |