Skip to content

feat(id-store): separate canonical content ID from tenant-opaque bucket locator (#10155) - #17150

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
lane/0322-ap-10155-bucket-locator
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
lane/0322-ap-10155-bucket-locator

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #10155 (slice C9136-01).

What

  • New pkgs/id/crates/id-store/src/bucket_locator.rs: the shared-bucket locator contract. The canonical ContentId is the immutable global CAS identity — nothing in the module can mint or rewrite one. The physical Locator is 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.
  • Broker checks: resolve answers only inside the owning tenant's namespace (a co-tenant holding the exact locator bytes gets ForeignLocator); fetch gives the owner its plaintext and a co-tenant the stored ciphertext only, and never discloses the owner's locator.
  • Rotation: rotate_key advances 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.
  • The keyed derivation/encryption are documented models (deterministic mixing standing in for the production KDF/AEAD behind the same interface) — the broker checks, tenant scoping, and rotation semantics are the deliverable.
  • New 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 the graph_index pattern (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

Lane 0322-AP (Archer seat, delta PRESS 0322 refill).


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f67bee10-90dc-4642-88f9-53ffb8597417

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit 3393b9c into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the lane/0322-ap-10155-bucket-locator branch November 30, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Separate canonical content ID from encrypted object locator

0 participants