Skip to main content

Module store

Module store 

Source
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§

RateAtFinalizationStore
The reference store with max_rate admission 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.