Expand description
Canonical QSync cache keys (E06.3).
Key = SHA-384 transcript over scope || source_generation || policy_generation
|| abi_tag. Lossy eviction is never evidence of absence. A miss is
QdnfError::Incomplete, never EmptyInSnapshot.
Structs§
- Cache
Table - Sixteen-slot generation-bound cache. Not a completeness oracle.
Enums§
- Cache
Lookup - Lookup of a generation-bound cache entry.
Constants§
Functions§
- cache_
key - SHA-384 transcript key over scope and the two generations plus ABI tag.
- evict
- Drop the slot for
key. Remaining lookups areCacheLookup::Miss. - eviction_
proves_ absence - Lossy eviction never becomes evidence of absence.
- insert
- Insert
valueunder the canonical key. Same key+value is idempotent. - lookup
- Look up by live generations. Generation mismatch on the same scope/ABI
is
CacheLookup::UntrustedMiss. Absence after eviction isCacheLookup::Miss. - miss_
is_ incomplete - A miss is Incomplete, never EmptyInSnapshot.