kcode-pending-object-store
kcode-pending-object-store provides durable, checksummed sidecar storage for
objects that are pending a caller-owned lifecycle transition.
use PendingObjectStore;
let store = new?;
store.install?;
let object = store.read?;
assert_eq!;
assert_eq!;
assert_eq!;
# Ok::
Installation synchronizes a same-directory temporary file, atomically renames it to its canonical final name, and synchronizes the directory. Reads validate the complete format and SHA-256 checksum. Reconciliation and deletion match only exact canonical filenames for the configured namespace.
The binary format is byte-for-byte compatible with pending-object sidecars
written by kcode-session-log when the same namespace and format ID are used.
The caller owns directory creation, position assignment, lifecycle policy, and
concurrency control.
The crate directory is a conforming kcode-rust-libs-v2 managed library. Its
manifest is standalone, its package version is literal, and root
Documentation.md supplies the agent-facing API reference. Generated Cargo
state must remain outside the crate directory.
See Documentation.md for the API and Specification.md for behavioral guarantees.