archive_actions
Rotate the action ledger by moving entries older than a threshold into a signed archive and checkpointing the live file, preserving chain integrity and open incidents. Returns archived count.
Instructions
Rotate the action ledger: move entries older than keep_days into a signed archive file beside it and
start the live file with a checkpoint naming the archive, its SHA-256 and the archived tail. Nothing is
deleted and the chain verifies across the files; an open incident and anything a kept entry refers to stay
live. Returns what was archived (archived=0 and nothing written when nothing is old enough).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | No | ||
| keep_days | Yes |