Atomically claims assembly (from Pending/Partial, or from an Assembling claim last touched before
staleBefore). Returns the new assembly version, or null when another caller holds it.
Number of stored shards with an index below indexBelow.
Deletes shards with an index below indexBelow (the ones a Complete recording holds). Returns rows deleted.
Finishes an assembly, fenced on its version. Returns false when a newer claim superseded it.
Every stored shard's position, in index order, without the bytes (cheap pre-checks).
Every stored shard of the session, in index order.
Deletes up to maxRows shards of sessions closed before closedBefore. Returns rows deleted.
Inserts a shard if its index is absent (see RecordShardOutcome).
Stores gaps as the session's RecordingGaps while keeping the claim (Assembling), fenced on
version like FinishAssembly. Called just before an assembly overwrites recording.wav, so
the stored gaps cover every silent range of the object even when the finish never happens.
Returns false when a newer claim superseded this one.
Stamps the terminal signal's counts; a lower terminal than the stored one is Ignored.
IRealtimeRecordingLedger over a server-side database provider. Proc calls are built with the provider's dialect (
ProcedureCallSyntax+ positional placeholders) and bound as parameters, never interpolated. Every method validates its inputs first and throws on a SQL failure or a malformed result, with the proc and session in the message.