Skip to main content

Module commit_adapter

Module commit_adapter 

Source
Expand description

Recipe D commit adapter: verify payload bytes, then pair+commit.

Payload SHA-384 must equal expected_digest before any durable staging. Mismatch is QdnfError::Conflict: nothing committed, receipt not durable. Transport ACK is never a durable receipt.

Recovery resume_from_log streams CORE-03 markers and deduplicates by the 16-byte transaction key derived from operation identity. Markers do not carry the 48-byte operation id; receipt replay keys by the marker object digest (the effect digest pairing wrote). super::pair::recover_pair rebinds the real operation id when the descriptor is available.

Functionsยง

commit_verified_block
Verify payload, stage the pairing, commit the intent, ACK durable applied.
resume_from_log
Stream markers, dedupe by operation identity (TxId), replay receipts.