Title: lab-ops-hub: PR #590's mapped-separator refusal misses U+FE12 — it NFKC-maps to U+3002, a separator the new check never tests for · Issue #593 · developing-today/code · GitHub
Open Graph Title: lab-ops-hub: PR #590's mapped-separator refusal misses U+FE12 — it NFKC-maps to U+3002, a separator the new check never tests for · Issue #593 · developing-today/code
X Title: lab-ops-hub: PR #590's mapped-separator refusal misses U+FE12 — it NFKC-maps to U+3002, a separator the new check never tests for · Issue #593 · developing-today/code
Description: Summary PR #590 (fixes #583, commit 6bad7e15, merged as ead788e1) added a pre-mapping refusal in the container crawl validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url): a character whose compatibility mapping introduces a ...
Open Graph Description: Summary PR #590 (fixes #583, commit 6bad7e15, merged as ead788e1) added a pre-mapping refusal in the container crawl validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url): a character w...
X Description: Summary PR #590 (fixes #583, commit 6bad7e15, merged as ead788e1) added a pre-mapping refusal in the container crawl validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url): a character w...
Opengraph URL: https://github.com/developing-today/code/issues/593
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: PR #590's mapped-separator refusal misses U+FE12 — it NFKC-maps to U+3002, a separator the new check never tests for","articleBody":"## Summary\n\nPR #590 (fixes #583, commit `6bad7e15`, merged as `ead788e1`) added a pre-mapping refusal in the container crawl validator (`pkgs/lab-ops-hub/container/app.py`, `validate_crawl_url`): a character whose compatibility mapping introduces a label separator is refused before NFKC mapping, \"before it can be judged as two innocent labels\". The check (app.py:144-152 on current main `ead788e1`) tests only for an ASCII dot in the mapping:\n\n```python\nand \".\" in unicodedata.normalize(\"NFKC\", c)\n```\n\nThat misses the one codepoint whose NFKC mapping is a UTS-46 separator *character itself*: **U+FE12 (PRESENTATION FORM FOR VERTICAL IDEOGRAPHIC FULL STOP)**, whose NFKC mapping is U+3002 — one of the three separators the very next step translates to `.` (app.py:154, `host.translate({0x3002: \".\", 0xFF0E: \".\", 0xFF61: \".\"})`). So U+FE12 slips the new refusal, is silently turned into a label split two lines later, and each side is judged as an innocent ASCII label. An exhaustive scan confirms U+FE12 is the *only* codepoint in U+0080–U+10FFFF whose NFKC mapping contains U+3002/U+FF0E/U+FF61 without also containing an ASCII `.`.\n\nThe same ASCII-dot-only test is repeated in the shared `_judge_idna_label` helper PR #590 introduced (app.py:447), so the A-label decoded form has the same hole under the repo's Bun differential (see below).\n\n## Evidence (verified 2026-10-22 on current main `ead788e1`, the merge commit of PR #590 itself)\n\nPython `validate_crawl_url` imported from `container/app.py` at main vs the Worker's `validateCrawlUrl` from `src/lib.ts` under Bun (PR #590's own differential method); the raw and percent-encoded rows were additionally cross-checked with Node's `new URL`, which also refuses them:\n\n| URL | Container | Worker |\n|---|---|---|\n| `http://ex\\ufe12ample.com/` | **accepts** (judged as `ex.ample.com`) | refuses — `url is not a valid URL` |\n| `http://a\\ufe12b.com/` | **accepts** | refuses |\n| `http://example\\ufe12com/` | **accepts** | refuses |\n| `http://ex%ef%b8%92ample.com/` (percent-encoded U+FE12) | **accepts, and returns `http://ex.ample.com/`** — a different, two-label host than the spelling it was given | refuses |\n| `http://xn--example-t673b.com/` (A-label spelling of `ex\\ufe12ample`) | **accepts** | refuses under Bun (Node's URL parser accepts this A-label spelling — engine-dependent, secondary) |\n\nDifferential batteries run this review, all through both real validators (inserted codepoint in `ex\u003ccp>ample.com` unless noted): BMP U+3300–U+FFFF (52,480 hosts, the range PR #590's battery — U+0080–U+32FF — never covered), BMP leading / trailing / RTL-mid positions (U+0080–U+FFFF each), and the full astral range U+10000–U+10FFFF (1,048,576 hosts). **U+FE12 is the only container-accept / Worker-refuse divergence in the BMP batteries, and the only separator-class divergence anywhere.** The astral battery found one further container-accept pocket — 41 bidi-AN digits (Hanifi Rohingya / Rumi) in Latin labels — which is a different root cause (the helper has no AN rule) and is filed separately as #595. All remaining divergences are the reverse direction (container refuses / Worker accepts), dominated by the documented Unicode-version Cn skew.\n\n*(Correction, same day: the first version of this issue overstated the battery result as \"the single divergence in the entire set\" — that rested on a misread of the astral output. The FE12 evidence above is unchanged; the astral AN pocket is #595.)*\n\nControls that must stay as they are: `http://ex\\u2024ample.com/` and `http://ex\\u2488ample.com/` stay refused (PR #590's pinned classes — their mappings contain an ASCII `.`); a literal U+3002/U+FF0E/U+FF61 in a host stays accepted as a genuine separator spelling (`münchen。de` → `münchen.de`), matching the Worker in both Bun and Node.\n\n## Why it matters\n\nSame shape as #583 itself: the two validators that are supposed to hold the same crawl-target policy (#441 defence in depth — the container is the component that actually fetches) disagree. PR #590 set out to close exactly this \"maps to a separator, judged as two innocent labels\" class and measured 0 divergences afterwards, but its battery only inserted codepoints up to U+32FF, and U+FE12 sits at U+FE12. In percent-encoded form the container goes further and *rewrites* the target to `ex.ample.com` — a host the Worker says does not exist as a URL at all.\n\n## Acceptance criteria\n\n- `validate_crawl_url` refuses a host containing U+FE12 in raw and percent-encoded form, with the same verdict as the Worker's `validateCrawlUrl`; the `_judge_idna_label` separator check is fixed in kind so an A-label decoding to a label containing U+FE12 is also refused (coordinate with #588, which tracks the decoded label's U+3002 case — this issue is the raw/percent form #590 claimed to close, plus the shared helper line).\n- The fix tests the mapping against the separator set the translate step actually applies (U+3002/U+FF0E/U+FF61, and strings whose mapping contains one of them or an ASCII `.`), not only `\".\"`.\n- Literal U+3002/U+FF0E/U+FF61 separator spellings stay accepted; PR #590's pinned refusals (U+2024, U+2488–U+249B, the IDNA classes) and controls stay unchanged.\n- New tests in `pkgs/lab-ops-hub/test/test_container_validate.py` (and the TS pin in `test/lib.test.ts`) cover U+FE12 in raw and percent-encoded form.\n- No regression in the existing Python or TS suites.\n\nSingle-repo: `validate_crawl_url` / `_judge_idna_label` exist only in `developing-today/code` (git-grep verified in the opencode / openchamber / nix clones). Not an mcpx set. Deduped: searches for FE12 / \"label separator\" return no open or closed issue covering the raw form; #588 covers U+3002 inside *decoded A-labels* only.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T15:12:35Z","url":"https://github.com/developing-today/code/issues/593"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f94ec822-4fec-5b7c-fcaf-700b0c43ebbe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA12:3CBF9:B053DF:E2DF54:6B06371E |
| html-safe-nonce | 62846abdb08781a510d15ea7f1d532203cfc247155d50061ae121bf4e85f2a2f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTEyOjNDQkY5OkIwNTNERjpFMkRGNTQ6NkIwNjM3MUUiLCJ2aXNpdG9yX2lkIjoiNDE3NTQ5ODk0NzA1MTUzNDExMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 24c58277164d951c0b367778e69de5225954703c68b8cd61510c97d9af5944c0 |
| hovercard-subject-tag | issue:5982058321 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/593/issue_layout |
| twitter:image | https://opengraph.githubassets.com/12db4d707e5f25f0d39a0df880f9fe2d80180e205cb6db4e8d5ea6011d24b131/developing-today/code/issues/593 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12db4d707e5f25f0d39a0df880f9fe2d80180e205cb6db4e8d5ea6011d24b131/developing-today/code/issues/593 |
| og:image:alt | Summary PR #590 (fixes #583, commit 6bad7e15, merged as ead788e1) added a pre-mapping refusal in the container crawl validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url): a character w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width