quipu_retract_episode
Retract all active facts contributed by an episode via logical, bitemporal closure while preserving history, other episodes' facts, and node identity; idempotent and safe to repeat.
Instructions
Episode-scoped logical retraction: retract all currently-active facts an episode's ingest contributed (activity node, entities, edges, reified statements), via the bitemporal valid_to close path. Logical, not physical — time-travel history is preserved. Entities and other episodes' facts are untouched. Idempotent. Node IDENTITY is protected: by default (on_orphan=preserve) rdfs:label/rdf:type survive for any node that other episodes still reference, so retraction never leaves an unlabelled, untyped ghost. The response always reports identity_orphans.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Alias for episode. | |
| actor | No | Who is performing the retraction | |
| episode | Yes | Episode name/identifier to retract (aliases: episode_id, name) | |
| on_orphan | No | What to do when retraction would strip rdfs:label/rdf:type from a node other episodes still reference. preserve (default): keep its identity alive. refuse: reject the whole retraction. allow: legacy strict scope — creates ghosts, reported in identity_orphans. | |
| timestamp | No | ISO-8601 timestamp for the retraction | |
| episode_id | No | Alias for episode. | |
| orphan_policy | No | Alias for on_orphan. |