Sweep Idle Sessions
session_sweepFinalize unfinished sessions idle for at least 24 hours, closing stalled cross-review workflows with a stated outcome and reason. Optionally prunes stale corrupt-session entries.
Instructions
Finalize unfinished sessions whose metadata has been idle for at least 24 hours. The terminal reason accepts at most 200 characters. v3.7.5 (B1): opt-in prune_corrupt also removes stale entries from the corrupt_sessions/ quarantine directory. Requires a verified capability token. Sweep is the one mutation that acts ACROSS owners, so the token is not the affected petitioner's — but a self-declared identity is refused, and it is therefore no way out of a token-file failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caller | Yes | ||
| reason | No | stale | |
| outcome | No | aborted | |
| idle_minutes | No | ||
| prune_corrupt | No | ||
| response_format | No | json | |
| corrupt_min_age_days | No |