retire-this-session: Archive the DSH Session Tree and Migrate Logs into Session-Time-Vault

**retire-this-session** is a DSH memory plugin maintained by robert-krzeminski. It leverages the model tool `retire_session` to read the session tree and, after UI confirmation, archives the entire fork/subagent tree in a children-first, root-last (post-order) sequence, cancelling active work on the tree without deleting any data. The log directory is first written to `session-retirement-queue.json` and migrated to **Session-Time-Vault** on the next DSH startup, thereby avoiding truncation that could occur if a rename were performed while active JSONL appends were in progress. It supports `dry_run` and configurable vault and queue paths; a service restart is required after installing the web profile. This plugin is suitable for scenarios where you need to retire a session tree in one operation while preserving log backups.

Read More