codesweep_archive_items
Archive selected sweep entries to soft-delete them, removing from totals and default lists while retaining recurrence history. Filter by status or age to target specific items.
Instructions
Selectively archive entries within a sweep (soft-delete).
Archived entries are excluded from codesweep_next, codesweep_status
totals, and default codesweep_list_items. They remain matchable by
codesweep_add for recurrence detection — re-adding un-archives them
with recurrence_count carried forward (R5 invariant).
At least one filter is required.
Args:
sweep_ref: Sweep ID (SW-N) or name
items: Specific item identifiers to archive. An EXPLICITLY EMPTY list selects nothing; passing it together with where_status or older_than is an ERROR, because those filters would then be silently ignored. Omit items entirely to archive by filter.
where_status: Archive entries currently in this state
older_than: Duration spec — '30d', '2w', '6m', '1y'. Compares against the entry's last activity timestamp.
reason: Free-form reason recorded on each archived entry
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| reason | No | ||
| sweep_ref | Yes | ||
| older_than | No | ||
| where_status | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||