Expand description
The in-memory REFERENCE implementation of the Protocol v2 Part B
deployment interfaces: claim store with stream sequence and evaluation
progress, authoritative clock, receipt outbox and publisher, independent
checkpoint, and optional rate admission at finalization. Mirrors Go
v2reference/store.go.
FOR TESTS AND CONFORMANCE SCENARIOS ONLY. Nothing here is durable, survives a restart, spans processes, or provides an independent failure domain. A deployment that uses it in production has no replay protection after a restart and no independent checkpoint, and must not release decisions on its authority.
Structs§
- Rate
AtFinalization Store - The reference store with
max_rateadmission moved into the finalization compare-and-set (V2RateAtFinalizationStore). Use it as both the claim store and the rate store. - Store
- The reference Part B store. All methods are safe for concurrent use; every operation runs under one mutex, which makes the claim and the stream-sequence advance one atomic step, and terminal commit and outbox sequence assignment another. TEST/REFERENCE ONLY.
Constants§
- ERR_
HEAD_ OF_ LINE_ BLOCKED - Go
ErrHeadOfLineBlocked: an earlier receipt-log entry of the same log is still unpublished (SPEC-v2 §7.6, §7.7). - ERR_
LOG_ FROZEN - Go
ErrLogFrozen: the log was abandoned. - ERR_
NOT_ ACKNOWLEDGED - The message of the reference checkpoint’s refusal (Go
ErrNotAcknowledged). - ERR_
SIGNER_ UNAVAILABLE - Go
ErrSignerUnavailable: the reference signer is configured to fail.