aiworkhub_task_archive
COORDINATOR WRITE: archive stale non-processing tasks atomically (archived_at + card_json + an archived task_events row each). Runs the full coordinator-capability write gate per item -- use this instead of patching SQLite.
Instructions
COORDINATOR WRITE: archive stale non-processing tasks atomically
(archived_at + card_json + an archived task_events row each). Runs the
full coordinator-capability write gate per item -- use this instead of
patching SQLite. For an active/orphaned card use supersede.
Targets: one task_id, task_ids (<= 200), or a selector
(status/topic/older_than_hours/task_id_prefix, conjunctive).
dry_run=True previews the exact ids (and the processing cards that
would be refused) without writing. Replies with per-id receipts
{task_id, ok, status_after, error?}; one refusal never hides the rest.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | ||
| reason | No | ||
| status | No | ||
| dry_run | No | ||
| task_id | No | ||
| task_ids | No | ||
| task_id_prefix | No | ||
| older_than_hours | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||