Skip to content

feat(id-core): typed R2, laptop and Drive location values (A9115-locator-types, #10200) - #12855

Merged
dezren39 merged 1 commit into
mainfrom
lane-cu/10200-location-ref
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-cu/10200-location-ref

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Slice A9115-locator-types for #10200 (parent #9115; settled design A-9115.2, statements S3.21, S3.22, S3.26–S3.30).

Preflight: native blockers #9083, #10160, #10180 all closed (completed) as of 2026-11-23 — implementation proceeded within the issue's approved scope only.

What

Oracle

cargo test -p id-core --test location_ref — 9 passed; 0 failed (run on the laptop in the pkgs/id dev shell; full output recorded on #10200).


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

…tor-types, #10200)

New leaf module location_ref.rs: TypedLocator enum with R2
{account,bucket,key}, Laptop {hostname,path} and Drive
{account,file_id,url} variants — validated field newtypes, no
conversion between kinds, canonical tagged text form whose parser
requires the explicit kind tag (unknown tag rejects as
UnsupportedLocatorKind). LocationRef binds a locator to a
NamespaceId and the #9083 tenant-scope string; blank scope rejects
as MissingTenantScope, so no scope-less location reference can be
constructed.

Oracle: cargo test -p id-core --test location_ref — 9 passed,
0 failed (golden vectors, exact failure classification, proptest
properties over generated inputs: tagged round-trip preserves
kind, re-tagging never coerces, blank scopes reject).
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 03:47
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 42 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: 435f10b9-0acd-494c-b4ba-3ee7b9be70d3
Commits

Reviewing files that changed from the base of the PR and between e6f8e24 and 96b8db0.

Files selected for processing: 3

  • pkgs/id/crates/id-core/src/lib.rs
  • pkgs/id/crates/id-core/src/location_ref.rs
  • pkgs/id/crates/id-core/tests/location_ref.rs
  • 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

@dezren39
dezren39 merged commit cb4c54c into main Nov 23, 2026
1 check passed
@dezren39
dezren39 deleted the lane-cu/10200-location-ref branch November 23, 2026 03:47
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.

1 participant