Skip to content

Retention/pruning sweep for append-only log tables #276

Description

@important-new

Append-only log tables — audit_logs, esign_audit_logs, inspection_events, sms_consent_log, erasure_log, processed_webhook_events / processed_cmd_events / parked_cmd_events, etc. — have no pruning; they grow unbounded. server/scheduled.ts has a GDPR retention sweep for agreement satellite data only (server/lib/compliance/retention-sweep.ts) — it touches no log table.

Scope: per-table retention windows + a pruning job wired into scheduled.ts. (Blocked only on the retention-window policy decision; no code exists yet.)

Out of scope: automation_logs — retained indefinitely by design. It was listed here originally; see the comment below for why it was removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions