Expand description
(partition_id, content_id) addressing — format v3, per the 2026-09-23
storage-addressing rulings (the design and security reviews, ruling
independently and converging on the same answer — Branch A).
Physical storage is keyed by hash alone (BLAKE3 of the plaintext);
that is the only thing dedup and the packfile layer ever look at.
Context and Address — the 16-byte partition-scoped logical-identity
field the 2026-06 storage lock named as (hash, context) — are retired
from this crate entirely. Both rulings found the same thing from
different seats: the lock’s dedup clause (“same bytes, different
contexts = same payload deduplicated under one hash”) is satisfied by
hash-only keying and violated by compositing the storage key on a
context, so making context real was never a way to honour the lock —
it was the option that broke it. The lock’s other half — context
travelling with the address, tracking logical identity separately —
already lives one layer up, in bitchain’s ManifestEntry { path, context, root_hash }, which bitchain now owns byte-for-byte
(storage-addressing-hash-context-ruling-2026-09-23.md,
storage-addressing-hash-context-ruling-security-2026-09-23.md).
storage-kit addresses by (partition_id, content_id) and knows
nothing of logical identity. It never will: PartitionId::derive is the
only free-form-string identity constructor this crate exposes, and its
use is gated by PartitionStore::create’s derivation check against a
closed subject.kind vocabulary — see partition.rs. A field minted
inline from an arbitrary string, with no such gate, cannot carry a
guardrail; that is why Context::derive(&str) is gone rather than
reserved.
Structs§
- Hash
- A BLAKE3 content hash. This is the sole key for physical block storage and dedup within a partition.
- Partition
Id - A 16-byte partition id: the physical storage boundary. Canonical
construction is
BLAKE3(household/namespace-id)[0:16]. No pack ever spans partitions; dedup and GC are both scoped to a single partition.
Constants§
- HASH_
LEN - Length in bytes of a BLAKE3 content hash.
- PARTITION_
ID_ LEN - Length in bytes of a partition id.