René's URL Explorer Experiment


Title: lab-ops-hub: container validator blanket-refuses Arabic-Indic digits (U+0660–U+0669) inside RTL labels the Worker accepts — #574's range overrides #595's contextual AN rule · Issue #605 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: container validator blanket-refuses Arabic-Indic digits (U+0660–U+0669) inside RTL labels the Worker accepts — #574's range overrides #595's contextual AN rule · Issue #605 · developing-today/code

X Title: lab-ops-hub: container validator blanket-refuses Arabic-Indic digits (U+0660–U+0669) inside RTL labels the Worker accepts — #574's range overrides #595's contextual AN rule · Issue #605 · developing-today/code

Description: Summary The container crawl validator (pkgs/lab-ops-hub/container/app.py) refuses every host containing an Arabic-Indic digit (U+0660–U+0669), in any label context. The Worker's validator (pkgs/lab-ops-hub/src/lib.ts, WHATWG domain-to-AS...

Open Graph Description: Summary The container crawl validator (pkgs/lab-ops-hub/container/app.py) refuses every host containing an Arabic-Indic digit (U+0660–U+0669), in any label context. The Worker's validator (pkgs/lab...

X Description: Summary The container crawl validator (pkgs/lab-ops-hub/container/app.py) refuses every host containing an Arabic-Indic digit (U+0660–U+0669), in any label context. The Worker's validator (pkgs...

Opengraph URL: https://github.com/developing-today/code/issues/605

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: container validator blanket-refuses Arabic-Indic digits (U+0660–U+0669) inside RTL labels the Worker accepts — #574's range overrides #595's contextual AN rule","articleBody":"## Summary\n\nThe container crawl validator (`pkgs/lab-ops-hub/container/app.py`) refuses **every** host containing an Arabic-Indic digit (U+0660–U+0669), in any label context. The Worker's validator (`pkgs/lab-ops-hub/src/lib.ts`, WHATWG domain-to-ASCII) does not: it accepts those digits inside a genuine right-to-left label — the context RFC 5893 allows bidi class AN (Arabic number) in — and refuses them outside it.\n\nThis is the pocket the #595 fix (PR #604) measured and deliberately left untouched: its differential found 10 opposite-direction diffs where the container refuses U+0660–U+0669 inside an RTL label while the Worker accepts that context under both Bun and Node. It is also an internal inconsistency: #595 taught `_judge_idna_label` the contextual AN rule for the other AN digits (the astral Hanifi Rohingya / Rumi digits, and the U+066B/U+066C separators), and that helper already judges U+0660–U+0669 correctly — the older blanket range from #574 simply overrides its verdict in the one context where the digit is valid. The neighbouring Extended Arabic-Indic digits (U+06F0–U+06F9, class EN) are already accepted in the same RTL labels, so an Arabic label spelled with `١` is refused while the same label spelled with `۱` is accepted.\n\n## Evidence (verified 2026-10-22 on main `1695ee52`)\n\nTwo blanket sites, both unconditional on label context:\n\n- `container/app.py:293` — `validate_crawl_url`'s forbidden-character check: `or 0x0660 \u003c= ord(c) \u003c= 0x0669`, applied to the whole host.\n- `container/app.py:413` — the same range in `_judge_a_label`, applied to a decoded A-label before `_judge_idna_label` is called.\n\nThe contextual judgement already exists and already agrees with the Worker on every neighbouring case:\n\n- `container/app.py:506` — `if \"AN\" in bidis and (has_ltr or not has_rtl): refuse` (\"contains an Arabic number outside a right-to-left label\").\n- `container/app.py:511` — `if \"AN\" in bidis and \"EN\" in bidis: refuse` (\"mixes Arabic and European numbers\").\n\nDifferential on current main, driving the real container `validate_crawl_url` (Python) and the real Worker `validateCrawlUrl` (Bun; Node agrees on every row):\n\n| URL | Container | Worker |\n|---|---|---|\n| `http://ا١.com/` (Arabic letter + U+0661) | REFUSE \"forbidden character\" | ALLOW → `xn--mgb0j.com` |\n| `http://مرحبا١.com/` | REFUSE \"forbidden character\" | ALLOW → `xn--mgbbop3hzh.com` |\n| `http://א١.com/` (Hebrew letter + U+0661) | REFUSE \"forbidden character\" | ALLOW → `xn--4db40a.com` |\n| `http://ا١ا.com/` (AN mid-label, RTL) | REFUSE \"forbidden character\" | ALLOW → `xn--mgba7o.com` |\n| `http://xn--mgb0j.com/` (A-label of row 1) | REFUSE \"decodes to a label with a forbidden character\" | ALLOW |\n| `http://xn--mgbbop3hzh.com/` (A-label of row 2) | REFUSE (same) | ALLOW |\n| `http://١.com/` (AN alone, no RTL char) | REFUSE (via :506, correct) | REFUSE |\n| `http://١٢٧.٠.٠.١/` (127.0.0.1 spelling, #574) | REFUSE (via :506, correct) | REFUSE |\n| `http://ex١ample.com/` (LTR label) | REFUSE (via :506, correct) | REFUSE |\n| `http://א١1.com/` (RTL + AN + EN mix) | REFUSE (via :511, correct) | REFUSE |\n| `http://١ا.com/` (RTL label not starting R/AL) | REFUSE (correct) | REFUSE |\n| `http://ا۱.com/` (Extended Arabic-Indic U+06F1 control) | ALLOW | ALLOW |\n\nNote the refused-for-the-right-reason rows: they are refused by `_judge_idna_label` (which runs before the host-level check for raw non-ASCII labels) — the blanket range is not what keeps #574's spellings out; in raw form it only ever fires on the RTL-context rows the judge has already accepted.\n\n## Why it matters\n\nSame Worker/container parity class as #516/#526/#529/#531, in the fail-closed direction: the Worker accepts these public IDN hosts and dispatches the crawl, the container then refuses them, so legitimate crawls of Arabic/Hebrew-script domains whose names contain an ordinary Arabic-Indic digit fail at crawl time. The container is also the sole judge for redirect targets (its validating redirect handler validates raw `Location` values with no Worker normalisation in between), so a redirect to such a host 502s via the container while the Worker fallback resolves it. Arabic-Indic digits are the everyday digits of Arabic orthography — this is not an exotic spelling class.\n\n## Suggested fix\n\nDelete the `0x0660 \u003c= ord(c) \u003c= 0x0669` arm from both forbidden-character checks (`app.py:293` and `app.py:413`) and update the two comments that claim WHATWG rejects any host containing one. U+0660–U+0669 are bidi class AN, so after the deletion they are judged exactly like the other AN characters: `_judge_idna_label` refuses them in an LTR label, in a label with no R/AL character, and mixed with EN, and accepts them inside a genuine RTL label. For the A-label path the same applies — `_judge_a_label` already ends by calling `_judge_idna_label(decoded, host)`.\n\n## Acceptance criteria\n\n- Raw RTL spellings are accepted, matching the Worker: `http://ا١.com/`, `http://مرحبا١.com/`, `http://א١.com/`, `http://ا١ا.com/`.\n- Their A-label spellings are accepted: `http://xn--mgb0j.com/`, `http://xn--mgbbop3hzh.com/`, `http://xn--4db40a.com/`.\n- Every #574/#580 refusal still refuses: `١٢٧.٠.٠.١`, `١٢٣.com`, `a١.com`, `example١٢٣.com`, `münchen١.com`, the percent-encoded spelling, and the A-label spellings `xn--9hbcp.…`, `xn--a-bqc`, `xn--example-h3jjk`, `xn--mnchen-3ya761i` — now via the AN context rule rather than the blanket range.\n- AN+EN mixing in an RTL label still refuses (`א١1.com`).\n- New tests in `pkgs/lab-ops-hub/test/test_container_validate.py` pin the accepted raw + A-label RTL spellings (the TS suite needs no change — the Worker already accepts them; a parity pin there is welcome).\n- No regression in the existing Python or TS suites.\n\nSingle-repo: the validator pair exists only in this repo (`validate_crawl_url` / `validateCrawlUrl` grep-clean in the opencode / openchamber / nix clones). Dedup: #574/#580 (closed) are the source of the blanket range and scoped their refusals to the non-RTL spellings above; #595 (closed) covers the astral AN digits and explicitly left this pocket; open #531 is the ZWNJ/ZWJ CONTEXTJ blanket (different characters, different check), #588 is A-label decoded-label validity classes the container *accepts*, #596 is the U+0345 mapping — none covers a *refused* RTL-context AN digit.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T18:20:40Z","url":"https://github.com/developing-today/code/issues/605"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b772cbc5-3b34-0472-c9c1-a00002f3c6a2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC5F4:D0B9B:9F9CC4:D5F2AE:6B063F48
html-safe-nonce7b1c6685db4b54456b64af143de641209bcfee1d577693d0cba2ddeef5e49f5a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUY0OkQwQjlCOjlGOUNDNDpENUYyQUU6NkIwNjNGNDgiLCJ2aXNpdG9yX2lkIjoiMjAxODYxNjk4NzE4OTkxOTU2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca47ec0b05c6230e8743945b7d51211304d98a296d2cee2d825d521cf24bbb45e
hovercard-subject-tagissue:5985060179
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/605/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7385e886c7bedded92aa2d43e9739979a1d4f4c83ba4dfce7773de3d1752fe66/developing-today/code/issues/605
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7385e886c7bedded92aa2d43e9739979a1d4f4c83ba4dfce7773de3d1752fe66/developing-today/code/issues/605
og:image:altSummary The container crawl validator (pkgs/lab-ops-hub/container/app.py) refuses every host containing an Arabic-Indic digit (U+0660–U+0669), in any label context. The Worker's validator (pkgs/lab...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseac613d3698d3d8565651455086e1f74da07bf277
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/605#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F605
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F605
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/605
Reloadhttps://github.com/developing-today/code/issues/605
Reloadhttps://github.com/developing-today/code/issues/605
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests166 (166)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/605
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/605
#606https://github.com/developing-today/code/pull/606
lab-ops-hub: container validator blanket-refuses Arabic-Indic digits (U+0660–U+0669) inside RTL labels the Worker accepts — #574's range overrides #595's contextual AN rulehttps://github.com/developing-today/code/issues/605#top
#606https://github.com/developing-today/code/pull/606
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/605#issue-5985060179
#595https://github.com/developing-today/code/issues/595
#604https://github.com/developing-today/code/pull/604
#595https://github.com/developing-today/code/issues/595
#574https://github.com/developing-today/code/issues/574
#574https://github.com/developing-today/code/issues/574
#574https://github.com/developing-today/code/issues/574
#516https://github.com/developing-today/code/issues/516
#526https://github.com/developing-today/code/issues/526
#529https://github.com/developing-today/code/issues/529
#531https://github.com/developing-today/code/issues/531
lab-ops-hub: container validator accepts hosts containing Arabic-Indic digits (U+0660–U+0669) that the Worker validator rejects outright — including the ١٢٧.٠.٠.١ spelling of 127.0.0.1 #574https://github.com/developing-today/code/issues/574
lab-ops-hub: container validator still accepts the A-label (punycode) spelling of Arabic-Indic-digit hosts that PR #575 refused in raw form — including xn--9hbcp.xn--8hb.xn--8hb.xn--9hb, the encoded 127.0.0.1 #580https://github.com/developing-today/code/issues/580
#574https://github.com/developing-today/code/issues/574
#580https://github.com/developing-today/code/issues/580
#595https://github.com/developing-today/code/issues/595
#531https://github.com/developing-today/code/issues/531
#588https://github.com/developing-today/code/issues/588
#596https://github.com/developing-today/code/issues/596
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/605#event-33980479350
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/605#event-33981294003
Merge pull request #606 from developing-today/creator/605-arabic-indi…https://github.com/developing-today/code/commit/ae38cd6565a21f2281f9a6401de6dc1767c868f0
#606https://github.com/developing-today/code/pull/606
ae38cd6https://github.com/developing-today/code/commit/ae38cd6565a21f2281f9a6401de6dc1767c868f0
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#606https://github.com/developing-today/code/pull/606
on Oct 22, 2026https://github.com/developing-today/code/issues/605#event-33981294460
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/605
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/605
dezren39https://github.com/dezren39
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.