Skip to content

lab-ops-hub: judge Arabic-Indic digits by bidi context, not a blanket range (#605) - #606

Merged
dezren39 merged 1 commit into
mainfrom
creator/605-arabic-indic-rtl
Oct 22, 2026
Merged

dezren39 merged 1 commit into
mainfrom
creator/605-arabic-indic-rtl

Conversation

@dezren39

@dezren39 dezren39 commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Fixes #605

What

validate_crawl_url and _judge_a_label each carried a blanket forbidden-character arm — 0x0660 <= ord(c) <= 0x0669 — added by #574, which refused every host containing an Arabic-Indic digit in any context. The Worker's WHATWG validator accepts those digits (bidi class AN) inside a genuine right-to-left label, and _judge_idna_label's AN rule (#595, app.py:506/511) already makes exactly that contextual judgement. The blanket range only ever fired on the RTL-context rows the judge had already accepted.

This PR deletes the range from both checks and updates the comments that claimed WHATWG rejects any host containing one (including the #595 comment that described the range as an arm catching BMP AN, and the #580 A-label comment). U+0660–U+0669 are now judged like every other AN character: refused in an LTR label, in a label with no R/AL character, and mixed with EN; accepted inside a genuine RTL label.

Verification


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

@dezren39
dezren39 requested a review from a team as a code owner October 22, 2026 18:29
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-22T18:29:26.020655Z 5be8c00 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.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ 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: 27759d72-7988-4d75-9fbd-e1c7a95fa84f
📥 Commits

Reviewing files that changed from the base of the PR and between 1695ee5 and 5be8c00.

📒 Files selected for processing: 3
  • pkgs/lab-ops-hub/container/app.py
  • pkgs/lab-ops-hub/test/lib.test.ts
  • pkgs/lab-ops-hub/test/test_container_validate.py
+------------------------------------------------------------+
| Go forth and channel your goroutines; I'll guard the race. |
+------------------------------------------------------------+
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • 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

Comment @coderabbitai help to get the list of available commands.

@dezren39
dezren39 merged commit ae38cd6 into main Oct 22, 2026
4 of 5 checks passed
@dezren39
dezren39 deleted the creator/605-arabic-indic-rtl branch October 22, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant