Build Log
Alloy: Quench Ticket 4 — the QuenchSnapshot server projection
July 26, 2026
Built the one authoritative read model Quench's future page rebuild (Ticket 5) will consume — Charge baseline, Execution state + authoritySnapshot, WorkspaceDelta, gate_check events, criteria + verification, and cracks, all assembled from existing, already-proven sources. Proved it works with a real script against a real Arc, not just tsc.
Timeline
What shipped
products/alloy/lib/quench-snapshot.ts — buildQuenchSnapshot(arcId), QuenchSnapshot/QuenchChargeBaseline/QuenchCriterion types. Assembles: Charge baseline (arc's own charge* columns), latest Execution row (state, authoritySnapshot, workspaceDelta — via existing getLatestExecution), gate_check events (new in-memory filter over listArcEvents, no new query needed), criteria + their verification status (Ticket 2's getCriterionVerifications), and cracks (Ticket 3's listCracksForArc)
products/alloy/scripts/prove-quench-snapshot.ts — real proof script, following the established prove-*.ts convention (11 other real proof scripts already exist in this directory), run directly against a live Arc to confirm the snapshot assembles real data, not just that it typechecks