Skip to main content

PRUNABLE_RUN_STATUSES

@forge/monorepo


@forge/monorepo / backend/src / PRUNABLE_RUN_STATUSES

Variable: PRUNABLE_RUN_STATUSES

const PRUNABLE_RUN_STATUSES: readonly string[]

Defined in: backend/src/retention/index.ts:45

The statuses whose events may be pruned.

Terminal only, and this is the safety property AC-2 names. A running, queued, waiting-for-* or retry-pending run can still be reconciled against its log — that is precisely what #93/#94 exist to provide — so deleting its events breaks crash recovery for a run that is still alive. Age is irrelevant to that: a run waiting on a human approval for four months is old and still needs its log.

Written here rather than inlined in SQL so the list has one home, and so a new non-terminal status cannot silently become prunable by not being mentioned.