Repository navigation
feat(id-store): separate canonical content ID from tenant-opaque bucket locator (#10155) - #17150
Merged
developing-today-fleet[bot] merged 2 commits intoNov 30, 2026
Merged
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
developing-today-fleet
Bot
deleted the
lane/0322-ap-10155-bucket-locator
branch
November 30, 2026 10:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #10155 (slice C9136-01).
What
pkgs/id/crates/id-store/src/bucket_locator.rs: the shared-bucket locator contract. The canonicalContentIdis the immutable global CAS identity — nothing in the module can mint or rewrite one. The physicalLocatoris derived from the content ID under the owning tenant's bucket key and key epoch, so it is tenant-opaque: the same content in two namespaces has unrelated locators, and a locator reveals nothing about the content ID without that tenant's key.resolveanswers only inside the owning tenant's namespace (a co-tenant holding the exact locator bytes getsForeignLocator);fetchgives the owner its plaintext and a co-tenant the stored ciphertext only, and never discloses the owner's locator.rotate_keyadvances the epoch, re-derives every locator, re-encrypts stored ciphertext, and leaves every content ID byte-for-byte unchanged; pre-rotation locators stop resolving. Rollback per the issue: disable the shared-bucket adapter, retain per-tenant buckets, never rewrite global IDs.pkgs/id/crates/id-store/tests/bucket_locator.rs: the issue's stated invariant oracle plus a 200-step deterministic interleaving (puts, cross-tenant resolutions/fetches, rotations) checked against an independent tenant model. Included by path, following thegraph_indexpattern (crate-root wiring is slice 9110-09).Premise
Hard blockers named in the body: #9083/#9084. #9084 is CLOSED and Felix 0640-PA pruned the stale blockedBy edge today (verified live by lane 0322-AP claim-scan; claim comment on #10155). The module changes no global CAS ID and no existing file.
Verification
rustc --edition 2024 --teston the test file including the module by path — 6 passed, 0 failed.cargo test -p id-store --test bucket_locator; pkgs/id on main is currently broken by the iroh-blobs split (pkgs/id build broken on main: iroh-blobs 0.105/0.103 split across the iroh-docs boundary (dependabot 8547b8e510) #17130, Felix-claimed) — CI is not a gate per Drew's rule; the diff was read in full against the issue's scope before merge.Lane 0322-AP (Archer seat, delta PRESS 0322 refill).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.