Skip to main content

Module receipts

Module receipts 

Source
Expand description

Identity, local effect, and durable receipt as distinct stages (SVC-01.04).

Operation identity is a SHA-384 StrongDigest. Binding an id is not a local graph effect. A local effect is not a durable receipt. Transport ACK and consumption never become ReceiptClass::DurableReceipt. DeliveryStage::DurableApplied is a durable receipt only after the effect ran. DeliveryStage::EconomicReceipt requires that durable-applied stage already recorded. Packages remain open; this library does not claim exactly-once external work or CORE-03 atomic commit.

Structs§

ReceiptTable
Sixteen-slot identity / effect / receipt table.

Enums§

ReceiptClass
Durability class actually achieved. Transport ACK is never this enum’s durable variant.
SuperBlockCommitState
Crash-safe .q42 SuperBlock commit states (NET-20 / R09).

Constants§

MAX_RECEIPTS
Occupied identity slots. A 17th distinct bind is Capacity.

Functions§

acknowledge
Map a delivery stage onto the durability class actually achieved.
advance_superblock_commit_state
Advance a SuperBlock commit state machine (R09).
apply_effect
Record a local graph effect. Requires a bound identity. Unknown id is unauthorized. Idempotent once the effect is applied.
bind_effect_digest
Record SHA-384 of exact effect bytes on a bound identity.
bind_identity
Bind id as operation identity. Zero digest is malformed. A duplicate bind of the same id is idempotent. Distinct ids beyond MAX_RECEIPTS are capacity.
class_of
Durability class actually achieved for id without acknowledging a stage.
effect_digest_of
SHA-384 of effect bytes recorded for id, if any.
emit_sync_checkpoint_quin
Emit a 48-byte SyncCheckpoint NQuin with canonical 5-field XOR parity (R09).
identity_effect_receipt_are_distinct
Identity, local effect, and durable receipt are three distinct stages.
transport_ack_is_receipt_class
Transport ACK is not a durable receipt class.