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 — lab-ops-hub: PR #584's A-label check still accepts decoded labels that are not valid UTS-46 labels — mapped/compatibility characters, IDNA-disallowed symbols, leading combining marks · Issue #588 · developing-today/code

lab-ops-hub: PR #584's A-label check still accepts decoded labels that are not valid UTS-46 labels — mapped/compatibility characters, IDNA-disallowed symbols, leading combining marks #588

New issue
Copy link
New issue
Copy link
Closed
Closed
lab-ops-hub: PR #584's A-label check still accepts decoded labels that are not valid UTS-46 labels — mapped/compatibility characters, IDNA-disallowed symbols, leading combining marks#588
Copy link
Assignees
dezren39
Labels
app/lab-ops-hubPackage/app: lab-ops-hub (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review job

Description

@dezren39
dezren39
opened on Oct 22, 2026
Issue body actions

Summary

PR #584 (fixes #580, commit 24566d9f, merged as 22a4b98f) added _judge_a_label to the container crawl validator (pkgs/lab-ops-hub/container/app.py:325, called from validate_crawl_url at :213) so an xn-- (A-label) host is judged by its punycode-decoded label. It checks: the label decodes, is non-empty/non-ASCII, re-encodes to exactly the same punycode (:351), carries no character in the validator's enumerated forbidden set, contains no unassigned (Cn) or format (Cf) codepoint, and passes decoded.encode("idna") (:383).

That still does not hold the decoded label to the UTS-46 validity the Worker's WHATWG parser applies, so whole classes of A-label spellings are certified by the container as ordinary public DNS names while the Worker's validateCrawlUrl (pkgs/lab-ops-hub/src/lib.ts) refuses them outright (new URL throws):

  1. Decoded labels that are not the canonical (mapped) form of anything. UTS-46 processing maps uppercase, fullwidth and compatibility characters before punycode; a decoded label still containing one was never the encoding of a valid U-label. Examples: a decoded label containing À (maps to à), ² (NFKC → 2), U+FF0F / (NFKC → /, a host delimiter), U+3002 。 (a label separator), or U+2000 (NFKC → space). The container's own raw-form path refuses or transforms every one of these (the mapped-delimiter re-check and the forbidden-character check in validate_crawl_url); the A-label path bypasses them because mapping was applied to the ASCII spelling, before decoding.
  2. IDNA-disallowed characters the stdlib IDNA-2003 codec passes. Symbols and punctuation that IDNA2008/UTS-46 mark DISALLOWED (e.g. U+00A8 ¨, U+00B4 ´, U+037E, currency/math symbols) encode happily with decoded.encode("idna"), so the :383 check does not catch them.
  3. Labels beginning with a combining mark. UTS-46/IDNA requires a label not to start with a non-spacing mark; "\u0301abcé".encode("idna") succeeds, so an A-label decoding to such a label passes.

Evidence (verified 2026-10-22 on current main 22a4b98f, the merge commit of PR #584 itself)

Headline cases — Python validate_crawl_url imported from container/app.py at main, TS validateCrawlUrl imported from src/lib.ts under Bun (the same differential method as #583):

URL (A-label host) Decoded label Container Worker
http://xn--abc-dma09x.com/ \u0301abcé (starts with combining acute) accepts refuses — url is not a valid URL
http://xn--mnchende-65a9941j.com/ münchen。de (contains U+3002) accepts refuses
http://xn--ab-cja0631x.com/ a/bé (contains U+FF0F) accepts refuses
http://xn--mnchen-3ya5364d.com/ mün\u2000chen (contains U+2000) accepts refuses
http://xn--example-yoa.com/ exÀample (uppercase in decoded label) accepts refuses
http://xn--example-rla.com/ ex²ample (compatibility digit) accepts refuses
http://xn--mnchen-3ya.de/, http://xn--bcher-kva.de/, http://xn--fsq.com/ münchen, bücher, 例 (controls, PR #584's own accepted set) accepts accepts

Differential battery: 13,040 A-label hosts — every codepoint U+0080–U+32FF inserted into ex<cp>ample and punycode-encoded, plus labels beginning with U+0300–U+036F — run through both real validators: 2,449 divergences, all container-accepts / Worker-refuses (by category of the inserted codepoint: Lu 866, So 512, Lo 355, No 155, Lm 140, Mn 139 incl. 112 leading-mark labels, Ll 94, Zs 14, plus smaller Po/Nl/Lt/Sk/Sm/Nd/Sc/Ps/Pe/Pd pockets). One smaller reverse pocket exists: 41 container-refuses / Worker-accepts, all codepoints this Python's unicodedata 15.0.0 still classes Cn that Bun's newer Unicode has assigned — a Unicode-version skew in PR #584's new Cn check, noted here so the fix does not bake the skew in deeper.

Root cause: the canonical check at :351 compares raw punycode only (decoded.encode("punycode") != body) — punycode round-trips any string, valid U-label or not — and the validity check at :383 is the stdlib IDNA-2003 codec, which applies neither UTS-46 mapping/canonical-form verification nor the IDNA2008 disallowed/leading-mark rules. PR #584's battery (25 A-label hosts) only exercised the Arabic-Indic, malformed-punycode and ordinary-IDN classes it set out to fix, so the residual classes were untested.

Relation to existing issues: #583 tracks the same kind of gap for raw-form hosts (unassigned + bidi classes; its battery and acceptance corpus are raw spellings, and a raw-form fix that never decodes A-labels leaves this issue's spellings untouched). PR #584 already treated the A-label form of #583's bidi/unassigned classes as this validator's separate A-label work; this issue is the remaining A-label residue after that fix. Coordinate with #583 — one shared UTS-46 validity helper applied to the decoded label would close both. #531 is the opposite direction (raw-form over-refusal) and is unaffected.

Why it matters

Same shape as #502/#507/#516/#574/#580: 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, re-validating independently) disagree on thousands of spellings. The container certifies a non-name as a public DNS name; the failure then surfaces deep inside the fetcher/resolver as a crawl failure instead of the validator's up-front refusal, and behaviour depends on which crawler runs.

Acceptance criteria

  • validate_crawl_url refuses an A-label whose decoded label is not a valid UTS-46 label: decoded form differs from its UTS-46 mapped/NFC form, contains an IDNA-disallowed codepoint, or begins with a combining mark — with the same accept/refuse verdict as the Worker's validateCrawlUrl on a differential battery over A-label hosts (the 13,040-host probe above, or an equivalent committed corpus).
  • PR lab-ops-hub: judge A-label hosts by their decoded label #584's pinned behaviour is unchanged: the Arabic-Indic A-label spellings and malformed A-labels stay refused; its accepted controls (xn--mnchen-3ya, xn--bcher-kva, xn--fsq, the Devanagari-digit A-label) stay accepted.
  • New tests in pkgs/lab-ops-hub/test/test_container_validate.py pin the headline cases above (leading combining mark, U+3002/U+FF0F/U+2000 in decoded label, uppercase decoded label — refused; ordinary IDN A-labels — accepted).
  • The 41-case reverse pocket is either closed (Cn judged against a Unicode version at least as new as the Worker's runtime) or explicitly documented as a known version-skew over-refusal.
  • No regression in the existing Python or TS suites.

Single-repo: validate_crawl_url / _judge_a_label exist only in developing-today/code (the lab-ops-hub validator has no copy in opencode / openchamber / nix). Not an mcpx set.

Activity

Next
  1. github-actions
    assigned
    dezren39
    on Oct 22, 2026
  2. dezren39 commented on Oct 22, 2026

    @dezren39
    dezren39
    on Oct 22, 2026
    MemberAuthor
    More actions

    Partial narrowing from the #593 fix (PR #600): the shared _maps_to_label_separator check in _judge_idna_label now tests a decoded label against the full UTS-46 separator set, so a decoded label containing a literal U+3002 (or U+FF0E/U+FF61) is refused, as is one containing U+FE12. This issue stays open for its remaining classes (canonical mapped-form characters and IDNA-disallowed symbols in decoded labels).

  3. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    Intake review

    Still live, but narrowed (verified this run, fleet monitor): _judge_a_label on current code main (pkgs/lab-ops-hub/container/app.py:543) has gained follow-up hardening since this issue was filed against PR #584's merge — it now checks the _IDNA_DISALLOWED set and delegates to _judge_idna_label, which refuses labels beginning with a combining mark. So classes 2 (IDNA-disallowed symbols) and 3 (leading combining marks) from the issue body appear covered by the #583/#595/#605 follow-ups. Class 1 appears still open: a decoded A-label is judged unmapped (the code says so at the mapped-dot check), so a decoded label carrying a character UTS-46 maps — e.g. À, ², U+2000, U+FF0F — is not refused for not being the canonical mapped form; the punycode re-encode check only proves the spelling encodes that unmapped label.

    Related: the lab-ops-hub validator divergence series: #583, #595, #605 (follow-ups that landed parts of this), #659 (the A-label return-form remainder, enriched last run), #571 (redirect-policy divergence). Whoever works this should re-run the issue's headline differential table first — several rows may now pass.

    Notes / risks: do not re-litigate the covered classes; the remaining work is a mapped-form/canonical check for decoded labels, which must not over-refuse legitimate U-labels (the #596 leading-mark over-refusal is the cautionary tale in the same function).

    Suggested approach: re-run the differential battery from the issue body against current main, confirm which headline cases still diverge, then add a UTS-46 mapped-form check to the A-label path (compare the decoded label against its mapped form) with regression tests for the surviving cases only.

    Labels normalized by the fleet monitor: kind/bug, source/pr-diff-review, status/needs-triage, priority/normal, effort/m, app/lab-ops-hub.

  4. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    source/pr-diff-reviewFiled by the pr-diff-review job
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    app/lab-ops-hubPackage/app: lab-ops-hub (pkgs/ or apps/ in this repo)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Oct 26, 2026
  5. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    agent: repo-worker-code
    state: picked up
    found_via: queue task 2175
    at: 2026-11-01T02:36:00Z

    Lane D claimed the triage of the A-label UTS-46 gap. Verifying the current validator at HEAD before routing.

  6. 11 remaining items

  7. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), Lane F
    • Session / ID: task 4845
    • Found via: queue claim
    • Task: PR fix(lab-ops-hub): judge decoded A-labels by UTS-46 mapped form + IDNA-disallowed categories (#588) #3774 implements the lab-ops-hub: PR #584's A-label check still accepts decoded labels that are not valid UTS-46 labels — mapped/compatibility characters, IDNA-disallowed symbols, leading combining marks #588 residual fix (mapped-form equivalence in _judge_a_label; IDNA-disallowed P/S/Z + Co/Cs categories in _judge_idna_label with CONTEXTO exemptions). Container validator suite 64/64 pass on the laptop, including the new lab-ops-hub: PR #584's A-label check still accepts decoded labels that are not valid UTS-46 labels — mapped/compatibility characters, IDNA-disallowed symbols, leading combining marks #588 battery (headline hosts refused, PR lab-ops-hub: judge A-label hosts by their decoded label #584 controls + Catalan middle-dot control accepted).
    • Expectation: resume when the Codex review on PR fix(lab-ops-hub): judge decoded A-labels by UTS-46 mapped form + IDNA-disallowed categories (#588) #3774 completes: disposition any findings, then merge (PR is MERGEABLE, head d7d0692) and close lab-ops-hub: PR #584's A-label check still accepts decoded labels that are not valid UTS-46 labels — mapped/compatibility characters, IDNA-disallowed symbols, leading combining marks #588 via the merge.
    • Links: PR fix(lab-ops-hub): judge decoded A-labels by UTS-46 mapped form + IDNA-disallowed categories (#588) #3774 · task 4845 (queue, parked 20m)
  8. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 1, 2026
  9. dezren39
    added a commit that references this issue on Nov 1, 2026

    Merge pull request #3774 from developing-today/queue/4845-588-mapped-…

    ba05276
  10. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 1, 2026
  11. developing-today
    closed this as completedon Nov 1, 2026
  12. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane A
    • Session / ID: task 4845
    • Found via: queue claim
    • Task: resume check for lab-ops-hub: PR #584's A-label check still accepts decoded labels that are not valid UTS-46 labels — mapped/compatibility characters, IDNA-disallowed symbols, leading combining marks #588 residual A-label fix — PR fix(lab-ops-hub): judge decoded A-labels by UTS-46 mapped form + IDNA-disallowed categories (#588) #3774 already merged (merge sha ba05276, merged 2026-11-01T16:48:22Z) and issue lab-ops-hub: PR #584's A-label check still accepts decoded labels that are not valid UTS-46 labels — mapped/compatibility characters, IDNA-disallowed symbols, leading combining marks #588 closed 2026-11-01T16:48:27Z; completing task 4845 as already_done and clearing stale queue/status/work labels.
    • Expectation: done = task 4845 terminal with GitHub evidence
    • Links: PR fix(lab-ops-hub): judge decoded A-labels by UTS-46 mapped form + IDNA-disallowed categories (#588) #3774
  13. dezren39
    removed
    status:done
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 1, 2026
  14. dezren39
    added a commit that references this issue on Nov 14, 2026

    fix(lab-ops-hub): WHATWG parity for symbol hosts in container validat…

    a1ef9a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/lab-ops-hubPackage/app: lab-ops-hub (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review job

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.