kosa8 docs Dashboard
esc
↑ ↓ move↵ openRuns in your browser; nothing you type is sent anywhere.

CLI / audit / prune

kosa8 audit prune

Apply the retention policy now: seal old entries and remove them from the live log

Removes entries older than retention.max_age_days from the front of the live log, archiving them into sealed segments (or, with "mode": "delete", keeping only the seal). The chain still verifies afterwards: it resumes from an authenticated checkpoint of the last entry removed.

Never removes an entry a configured sink has not received, fewer than min_entries, anything younger than the org policy's minimum, or usage not yet reported for billing. The daemon applies retention hourly on its own.

Options#

FlagTypeWhat it doesDefault
--dry-runboolreport what would be pruned without changing anything—

Example#

  kosa8 audit prune --dry-run
  kosa8 audit prune

The kosa8 weekly

Agent security news, one industry deep-dive and a hands-on challenge, every Monday. Unsubscribe in one click.

© 2026 kosa8 · kosa8.com · Zero Trust cybersecurity infrastructure for AI agents · Local models served by llamay · Agent gateway: MAQPNA