1-- Kernel: idempotent ctx.emit(). Every emit() call of a run has a monotonic index in call order;2-- an emit whose index is < next_emit has already been persisted and is skipped on replay.3ALTER TABLE runs ADD COLUMN IF NOT EXISTS next_emit int NOT NULL DEFAULT 0;4