archive_to_history
Move a closed task and its reports from the archive to a date-sharded history folder, creating an immutable record.
Instructions
Move a closed task from _lifecycle/archive/ to the deep history archive.
The task and all its associated reports are moved together into
history/YYYY-MM-DD/<task-stem>/, creating an immutable, date-sharded
record. The date shard defaults to the UTC date when the task was marked
done; you can override it via done_date.
Call :func:archive_task first to move the task from _lifecycle/done/
to _lifecycle/archive/ before calling this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task ID (e.g. ``TASK-20260522-001``) or full filename. | |
| done_date | No | Override the shard date in ``YYYY-MM-DD`` format. Leave empty to use the task's own ``done_at`` timestamp. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |