Skip to content

ROADMAP-26 — P3 — Configurable retention for runs/steps #118

Open

Description

@getdownandcode

Series: ROADMAP — filed from the 2026-10-27 whole-project assessment · Backlog task: M17-T05 · Priority: P3 · Effort: small/medium

Problem

Redis sessions expire (SESSION_TTL_S) but PostgreSQL never does: runs and steps (including steps.result JSON) persist forever. With no retention policy, the audit virtue becomes unbounded storage growth and eventual steps-table pressure on every dashboard query.

Acceptance criteria

  • STEPS_RETENTION_DAYS (and optionally RUNS_RETENTION_DAYS) settings — default keeps current behaviour (no deletion) until enabled
  • A documented cleanup path: app-side scheduled task, or pg_cron/partitioning recipe in docs/DEPLOY.md (pick one primary, document the other)
  • Index support for the deletion predicate (see ROADMAP-08's created_at index)
  • Test: retention task deletes only eligible rows

Suggested branch / commit

chore/steps-retention · chore(db): configurable retention for runs and steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions