memcp_retention_run
Archive stale items and optionally purge archived data past retention period to manage memory usage.
Instructions
Execute retention actions — archive old items, optionally purge.
Archiving compresses and moves stale items to the archive directory.
Purging permanently deletes archived items past the purge threshold
and logs metadata to purge_log.json for audit.
Args:
archive: Archive eligible items (default True)
purge: Purge archived items past retention period (default False)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purge | No | ||
| archive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |