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: container validator returns the raw fullwidth/compatibility-mapped host spelling — Worker returns the UTS-46-mapped form it judged · Issue #665 · developing-today/code

lab-ops-hub: container validator returns the raw fullwidth/compatibility-mapped host spelling — Worker returns the UTS-46-mapped form it judged #665

New issue
Copy link
New issue
Copy link
Closed
#666
Closed
lab-ops-hub: container validator returns the raw fullwidth/compatibility-mapped host spelling — Worker returns the UTS-46-mapped form it judged#665
#666
Copy link
Assignees
dezren39
Labels
app/lab-ops-hubPackage/app: lab-ops-hub (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)

Description

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

Summary

The Lab Ops Hub container validator judges a host in its UTS-46/NFKC-mapped form but, for a host whose mapping is a compatibility mapping to ordinary ASCII letters/digits (e.g. fullwidth Latin), returns the caller's raw spelling — while the Worker validator returns the mapped form it judged. The two validators therefore hand back different URLs for the same input, and the URL the container records and fetches is not the spelling it judged.

Evidence (verified this run on current main 6da91105, driving both real validators)

pkgs/lab-ops-hub/container/app.py:

  • Line 229: judging uses the mapped host — host = unicodedata.normalize("NFKC", host).lower() (plus the separator translation at :230 and ignored-codepoint deletion at :231). The security checks do see through the spelling: fullwidth localhost is refused as local host localhost, and the fullwidth-digit IPv4 spelling is refused as 127.0.0.1.
  • Lines 426–431 (public-DNS return path): the URL is rebuilt from the judged host only if percent_decoded or has_literal_separator — otherwise raw is returned unchanged. A fullwidth-letter host is neither, so the raw spelling survives.

Probe results:

container (Python)  validate_crawl_url("http://example.com/")      -> "http://example.com/"   (raw fullwidth returned)
container (Python)  validate_crawl_url("http://EXAMPLE.com/")      -> "http://EXAMPLE.com/"
container (Python)  validate_crawl_url("http://gpt2.example.com/")   -> "http://gpt2.example.com/"
Worker    (TS)      validateCrawlUrl("http://example.com/")        -> "http://example.com/"     (mapped form returned)

Why it matters

The validated URL is the artifact both crawlers fetch, log, and compare; the container/Worker pair is maintained to return one canonical spelling for one input (the same principle behind #637's canonical IP-literal return, #652's ignored-codepoint return, and #660's separator return — #660's rebuild triggers only on has_literal_separator, so compatibility-mapped letters were left behind). Here the container fetches a URL whose host is only converted to the judged name implicitly, by the fetcher's stdlib IDNA-2003 nameprep — a different mapping table from the UTS-46 mapping the validator judged with, so for spellings where the two tables disagree the fetched host need not be the judged host. Returning the judged form removes the second, unjudged mapping from the path.

Acceptance criteria

  • validate_crawl_url("http://example.com/") returns http://example.com/ — in general, whenever the judged (mapped) host differs from the caller's host spelling, the returned URL carries the judged host, as the percent-decoded (lab-ops-hub: container validator blanket-refuses percent-encoded hosts the Worker validator decodes and accepts — public spellings (%65xample.com, 8%2e8%2e8%2e8) diverge, including as redirect targets #529) and literal-separator (lab-ops-hub: literal U+3002/U+FF0E/U+FF61 root-dot spellings still return the fullwidth form from the container validator (PR #657 remainder) #660) paths already do.
  • Spellings whose host the mapping does not change return exactly what they return today (no gratuitous rebuilds; existing return-form tests keep passing).
  • New cases pinned in pkgs/lab-ops-hub/container Python tests (fullwidth lowercase, fullwidth uppercase, fullwidth digit in a label), and the TS suite still passes unchanged.

Dedup / scope

Not #652 (UTS-46 ignored codepoints deleted from the judged host), not #659 (raw U-label returned for IDN targets vs the Worker's A-label), not #660 (literal separator spellings U+3002/U+FF0E/U+FF61), not #527 (judging of mapped spellings of blocked targets — that side works). This is the return-form remainder for compatibility mappings. Single-repo: the validator pair lives only in this repo's pkgs/lab-ops-hub (container + Worker); no copy exists in opencode/openchamber/nix.

Activity

  1. github-actions
    assigned
    dezren39
    on Oct 23, 2026
  2. dezren39
    added a commit that references this issue on Oct 23, 2026

    Merge pull request #666 from developing-today/creator/665-fullwidth-m…

    c1524b6
  3. dezren39
    closed this as completedin #666on Oct 23, 2026
  4. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    AUDIT-7 Lane 2 slice 3 — closing evidence. Verified against the issue body and merged implementation PR(s):

    • PR #666 — fix(lab-ops-hub): return the mapped host for compatibility spellings in the container validator (#665) (merged 2026-10-23)

    The issue had zero comments in the fresh pre-action read; this comment records the missing close evidence.

  5. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    app/lab-ops-hubPackage/app: lab-ops-hub (pkgs/ or apps/ in this repo)
    on Nov 25, 2026
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)kind/bugSomething isn't working (prefixed form of the classic bug label)

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.