033-Honest review state behind a versioned migration substrate

Type: ../types/adr.md · Status: superseded

Status: superseded by 034-Queued review jobs and execution provenance and 035-Review jobs finalize all-or-nothing with derived artifacts Date: 2026-06-28

Context

With review work stored as invocation-owned pairs (ADR 031) and freshness on DB-owned snapshots (ADR 032), the store shape misrepresented prepared prompts as already in progress: prompt creation wrote a start time and a running status before any reviewer had consumed the prompt. Schema evolution was also hard, because CREATE TABLE IF NOT EXISTS could not alter existing checks or nullability.

Decision

Represent review invocation state as an explicit state machine (queued, running, completed, failed) in which a prepared prompt is queued until a reviewer starts on it, and gate the store on a schema version, moving mismatched stores forward through an explicit in-place migration substrate rather than transforming table shapes implicitly.

Consequences

Prepared prompts are no longer reported as in progress, and stores at an unsupported version are rejected rather than silently reshaped. A general migration substrate is a standing maintenance commitment for every schema change; ADR 034 and ADR 035 kept queued state and version gating, dropped running and the migration framework, and a later schema version added one explicit version-specific migration as the exception.


Relevant Notes: