GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id-core: strict id:// V1 URI parser (A9117) by dezren39 · Pull Request #11939 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Refs #10260

Before: there was no parser for the settled id:// V1 syntax. The existing id_uri.rs is a general URI reader, and nothing enforced the A-9117.1 grammar: the resolver hint, critical version and shape, one canonical slot spelling, and no double decode.

After: id_core::id_uri_parse (not yet exported; the crate-root export belongs to slice 9110-02) parses and formats

id://<resolver-hint>/<namespace>/v1/array(/~ | /b.<pct-octets>)*
id://<resolver-hint>/<namespace>/v1/content/raw-blake3-256.<64 lowercase hex>

into IdUriV1 { resolver_hint, namespace, target: Array(ArrayAddress) | Content(ContentId) }, with resolve_context(hint, selected) returning resolver_context_mismatch when the hint isn't the resolver the caller already chose. Errors carry the reference implementation's class names.

How: visible-ASCII check, then a generic RFC 3986 split (brackets in the authority fail as uri_parse_error, as the reference's splitter does), scheme id (case-insensitive, formatted lowercase), no ? or #, alias [a-z0-9][a-z0-9._-]{0,62}. The path is split on / before any decode. The namespace is decoded once and must be non-empty UTF-8 other than ./... v1 and array/content are critical. A bytes slot must equal its canonical re-encoding (unreserved literal, everything else uppercase %HH), so %61, %2f and %7E reject.

Tests (cargo test -p id-core --test id_uri_parse, 15 tests):

  • The reference's six array vectors and content golden parse and format byte for byte; its 17 malformed URIs reject with the expected class.
  • 40 more edge cases pin classes (authority userinfo/port, empty and trailing segments, %2E namespaces, ./.. slot tokens, profile case).
  • Escaped / is data; %2525 decodes once to %25; no dot processing.
  • Proptest: array and content values round-trip through canonical text, accepted slot text is already canonical, arbitrary text never panics, unknown versions and shapes always reject.

I also ran 60,000 mutated URIs through both uri_codec_reference.py and this parser: every accept (with its formatted output) and every error class matched. That harness isn't committed.


Generated by Claude Code


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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@claude
id-core: strict id:// V1 URI parser and formatter (Refs #10260)
d1334b7
Slice A9117-uri-parser, design A-9117.1 (S4.11-S4.18). Adds
id_uri_parse.rs: an RFC 3986 component split, then exactly one
field-specific decode and an exact grammar check, with the reference
implementation's error classes. Escaped `/` stays data, nothing is
decoded twice or dot-normalized, bytes slots have one canonical
spelling, unknown critical versions and shapes reject, and the resolver
hint must match the selected resolver via resolve_context.

Tests port the reference golden vectors and malformed list and add
generated round-trip and rejection invariants.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 22:02
@coderabbitai

coderabbitai Bot commented Nov 18, 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 59 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: e35fbe7b-8cc0-4454-9131-57c2a507c553
Commits

Reviewing files that changed from the base of the PR and between 65258df and d1334b7.

Files selected for processing: 2

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit 308af91 into main Nov 18, 2026
@dezren39
dezren39 deleted the uri-parser branch November 18, 2026 22:02
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T22:03:54.337665Z d1334b7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 18, 2026
id-core: canonical id:// V1 formatter module (A9117-uri-format) #11941
Merged
id: pin the id:// reference corpus across Python, Rust and TypeScript (A9117) #11942
Merged
Implement strict authority/path parser for settled internal id URI V1 #10260
Closed
@developing-today-fleet developing-today-fleet Bot added the audit:complete PR fully implemented spawning issue label Nov 26, 2026
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 26, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@dezren39 @claude
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.