twining_archive
Archives old blackboard entries to a file based on a cutoff timestamp, preserving decision and unresolved need/warning entries by default, and optionally posts a summary finding.
Instructions
Archive old blackboard entries. Moves entries older than a cutoff timestamp to an archive file, preserving decision entries and unresolved need/warning/question entries (#40 — an item counts as resolved when explicitly resolved via twining_resolve or when a later entry references it via relates_to). Optionally posts a summary finding. WARNING: the cutoff defaults to now, so an argument-free call archives everything archivable — pass before or retain unless a full sweep is intended.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| before | No | ISO timestamp cutoff — archive entries before this time (default: now) | |
| retain | No | Keep the newest N archivable entries on the board regardless of age (D4 count-based retention — an age cutoff cannot bound a same-hour burst). Default 0 = no retention. | |
| summarize | No | Whether to post a summary finding after archiving (default: true) | |
| keep_decisions | No | Whether to keep decision entries in the blackboard (default: true) | |
| keep_open_needs_warnings | No | Whether to exempt unresolved need/warning entries from age-based archiving (default: true). Set false to force a full sweep. |