shadowgraph_purge
Delete a project's decisions, memories, facts, and relationships. Preview first; logical mode keeps an auditable journal skeleton; hard mode permanently removes entries.
Instructions
Delete one project's decisions, attempts, memories, facts, relationships, events, and retry keys. Run shadowgraph_purge_preview first; shadowgraph_redact shares without deleting, shadowgraph_backup keeps a copy. Irreversible without a backup. logical keeps an auditable journal skeleton; hard also drops entries, leaving a declared gap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Defaults to logical, which keeps an auditable payload-free journal skeleton. "hard" is irreversible, physically removes journal entries, and leaves a sequence gap that validate() reports. | |
| project | Yes | Project to delete. Required and non-empty; there is no wildcard. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | The mode that was applied. | |
| facts | Yes | Facts that were present. | |
| events | Yes | Compatibility events that were present. | |
| journal | Yes | Journal entries that were present for the project. | |
| project | Yes | The project that was purged. | |
| records | Yes | Decisions, attempts, and memories that were present. | |
| removed | Yes | Entities removed from live state, including alternatives. | |
| relations | Yes | Relationships that were present. | |
| journalEntryId | Yes | Id of the project.purged entry that records this purge. | |
| idempotencyRemoved | Yes | Retry keys removed with the project. | |
| journalEntriesRemoved | Yes | Entries physically deleted by a hard purge. | |
| journalEntriesRedacted | Yes | Entries reduced to an audit skeleton by a logical purge. | |
| removedJournalSequences | Yes | Sequence numbers a hard purge removed, declared so the resulting gap is explained rather than hidden. |