Expand description
Exact-product cache identity binding and atomic publication.
The pure functions in this module define one commit record for every
Sidereon interface, including WebAssembly hosts. On native targets,
ExactProductCache adds bounded cross-process locking, immutable entry
staging, durable writes, and an atomic reader-visible commit.
Network transport and product parsing remain outside this module. Callers must validate product semantics before publication and repeat that semantic validation on bytes returned from a cache hit.
Structs§
- Committed
Exact Cache Entry - Paths and exact bytes from one verified immutable cache entry.
- Exact
Cache Digests - Digests and lengths bound by one exact-cache commit.
- Exact
Cache Guard - Held cross-process lock for one
ExactProductCache. - Exact
Product Cache - One exact identity/source cache rooted at the caller’s stable product path.
- Verified
Exact Cache Commit - Parsed, verified commit record.
Enums§
- Exact
Cache Error - Error produced by the shared exact-product cache protocol.
Constants§
- EXACT_
CACHE_ CONTROL_ DIRECTORY - Directory below one exact identity/source cache directory.
- EXACT_
CACHE_ MARKER_ FILENAME - Name of the single reader-visible commit record.
- EXACT_
CACHE_ SCHEMA_ VERSION - Commit-record version shared by all Sidereon interfaces.
Functions§
- build_
commit_ record - Build a canonical commit record for an immutable cache transaction.
- identity_
sha256 - Return the SHA-256 binding for every field of an exact product identity.
- verify_
commit_ record - Verify that one marker and immutable byte triple belong to the requested full identity and explicit distribution source.