episode_promote
Promote a journal episode into a durable memory for long-term reuse. Routes through memory_write's dedup and scope checks, and deletes the source episode after successful commit.
Instructions
Promote a journal entry (episode) into a durable memory. Routes through memory_write — the durability gate, scope-mismatch detection, dedup, and user-inference confirmation flow all apply.
Use this when an iteration's takeaway turns out to be a fact worth keeping across sessions, not just a run-state note.
Loop/working state belongs in episodes; session close is when to promote the takeaways that hardened.
On successful commit the source episode is deleted (its content has been distilled). On pending (user-inference category), the source episode is held for memory_write_confirm to delete — memory_write_cancel keeps the episode so you can retry. On any other non-committed status (duplicate, previously_removed, transient_warning, scope_mismatch, ungrounded) the source episode is left untouched so you can adjust and re-promote.
Body default: when use_body=False (default), the durable memory's body is the episode's takeaway. Set use_body=True to use the full episode body. An episode with no takeaway requires use_body=True.
Returns the memory_write response shape with one extra field: promoted_from_episode_id: str so the caller can correlate the promotion attempt back to its source episode regardless of outcome (committed / pending / duplicate / scope_mismatch / etc.).
Parameters:
episode_id: ULID of the source episode.scopes: scopes for the durable memory. Required.category(default 'fact'): memory category. user-inference still requires explicit user confirmation.confidence(default 'medium'),source(default 'explicit-statement'): standard memory_write fields.use_body=False: when True, use the episode's body instead of its takeaway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scopes | Yes | ||
| source | No | explicit-statement | |
| category | No | fact | |
| use_body | No | ||
| confidence | No | medium | |
| episode_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||