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 — ci(id): hosted-worker routing.test.ts (4 tests pinning the fail-closed binding/jurisdiction contract) run by no workflow — the hosted data plane's gate is verified nowhere · Issue #6095 · developing-today/code

ci(id): hosted-worker routing.test.ts (4 tests pinning the fail-closed binding/jurisdiction contract) run by no workflow — the hosted data plane's gate is verified nowhere #6095

New issue
Copy link
New issue
Copy link
Closed
#6101
Closed
ci(id): hosted-worker routing.test.ts (4 tests pinning the fail-closed binding/jurisdiction contract) run by no workflow — the hosted data plane's gate is verified nowhere#6095
#6101
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 5, 2026
Issue body actions

Problem

pkgs/id/hosted-worker/test/routing.test.ts — the only test suite for the hosted Worker's routing module (pkgs/id/hosted-worker/src/routing.ts) — is run by no workflow, flake check, justfile recipe, or Nix build. The package sits outside every automated check that covers the rest of pkgs/id.

Evidence (verified this run, laptop primary @ e90672d, HEAD == origin/main)

  • git grep / workflow scan: no file under .github/workflows/ mentions hosted-worker or hosted_worker; neither do pkgs/id/flake.nix, pkgs/id/default.nix, pkgs/id/check-all, or pkgs/id/justfile. The id workflows (id-check.yml, id-e2e-nightly.yml, id-bench.yml) and the flake checks cover the Rust crates and web/ — never this package. Its own package.json defines "test": "node --test test/routing.test.ts", and nothing invokes it.
  • Hand run on the laptop this run: cd pkgs/id/hosted-worker && npm test → 4 tests, 4 pass, 0 fail (~0.09 s, fully offline — plain node:test, no workerd, no bindings).
  • What the 4 tests pin (test file lines 7–59, against src/routing.ts lines 14–83): a binding id must be a minted 32-char lowercase-hex id (null, google:123, an email, and uppercase hex all throw FailClosed); jurisdiction must be present and supported (us/eu accepted, null/empty/apac throw); userStub takes the id and stub from the jurisdiction-restricted namespace only, in that order; and when the restriction is unavailable userStub fails closed with a 503 instead of falling back to the unrestricted namespace.
  • Why these pins are load-bearing: routing.ts lines 1–12 state the contract — objects are named by the stable binding_id minted by the binding ceremony (id: design: hosted provisioning + SSO→ID binding spec — account/binding records, challenge ceremony, delayed rebind, metering, export (from #2045) #2258 / id: implement hosted Worker API + per-user DO provisioning and metering (from #2046/#2852 slice 3) #3811), never by email or provider subject, and there is no unrestricted fallback. This is the fail-closed gate for the hosted data plane (id(hosted): scaffold binding-backed per-user Durable Object #5199). A regression — accepting an email-derived name, or silently using the unrestricted namespace when jurisdiction() throws — merges with no signal and routes a user's objects to the wrong name or the wrong jurisdiction.

Why it matters

The rest of pkgs/id has layered CI (flake checks, id-check shards, nightly e2e). The one package whose entire job is a security/routing invariant — fail closed, restricted namespace only — is the one package with decorative tests.

Acceptance criteria

  • An automated check (a step in an id workflow following the repo's existing fail-if-missing pattern, a flake check, or an equivalent) runs node --test test/routing.test.ts (the package's npm test) on changes under pkgs/id/hosted-worker/.
  • The check passes on current main (4 tests at filing).
  • Breaking a pinned behaviour (e.g. letting userStub fall back to the unrestricted namespace, or accepting an uppercase binding id) makes the check fail.

Activity

Next
  1. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    CODE-1754

  2. dezren39
    added
    kind/ciCI/CD pipelines, workflows, and build automation
    task/triageQueue packet kind: verify, reproduce, and route this item
    source/creatorFiled by the new-issue-creator job
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  3. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: filed

    • Agent: new-issue-creator (new-issue-creator-code-b)
    • Session / ID: cron job new-issue-creator-code-b, run 2026-11-05 00:20 CST
    • Found via: filed this run
    • Task: Filed this issue — pkgs/id/hosted-worker's routing test suite (test/routing.test.ts, the fail-closed binding-id/jurisdiction contract for the hosted data plane) is run by no workflow, flake check, or justfile recipe. Verified by grepping .github/workflows + pkgs/id flake/justfile/check-all (zero hosted-worker references), plus a hand run on the laptop @e90672dc9e (4 tests, 4 pass via the package's npm test).
    • Expectation: effort xs — wire the suite into an automated check on changes under pkgs/id/hosted-worker/; done when it passes on current main and an unrestricted-namespace fallback fails it.
    • Links: packet hidden_files/packet-6095-triage.json (queue repo-health-code-pilot)
  4. dezren39
    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
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: repo-worker-code (OpenChamber scheduled lane)
    • Session / ID: ses_e5e55a2bd80ffeS1HxLDGj2qhQ; queue task 9907
    • Found via: repo-health-code-pilot, lane 9aca43b4-5439-4939-9f71-323f5d32521b
    • Task: Revalidate ci(id): hosted-worker routing.test.ts (4 tests pinning the fail-closed binding/jurisdiction contract) run by no workflow — the hosted data plane's gate is verified nowhere #6095 and hosted-worker CI coverage, then route based on the current issue and PR state.
    • Expectation: Record a verified triage disposition and an implementation follow-up if the gap remains.
    • Links: ci(id): hosted-worker routing.test.ts (4 tests pinning the fail-closed binding/jurisdiction contract) run by no workflow — the hosted data plane's gate is verified nowhere #6095
  6. 9 remaining items

  7. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-i
    • Session / ID: task 9909
    • Found via: queue claim
    • Task: Add a guarded CI step that runs the hosted-worker routing suite (npm test in pkgs/id/hosted-worker) following the repo's fail-if-missing pattern, on changes under pkgs/id/hosted-worker/.
    • Expectation: effort s — done when a PR is open (and merged if verified) with the check passing on current main.
    • Links: task 9909
  8. dezren39
    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
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  9. developing-today
    added
    status:in-review
    on Nov 5, 2026
  10. dezren39
    added a commit that references this issue on Nov 5, 2026

    Merge pull request #6101 from developing-today/queue/9909-6095-hosted…

    c7a0982
  11. dezren39
    closed this as completedin #6101on Nov 5, 2026
  12. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 5, 2026
  13. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-i
    • Session / ID: task 9909
    • Found via: queue claim
    • Task: Added .github/workflows/id-hosted-worker-tests.yml (main-tier, bin-tests.yml shape): runs pkgs/id/hosted-worker's own npm test on pushes to main touching pkgs/id/hosted-worker/**, guarded so a missing suite/manifest fails the step instead of silently passing.
    • Expectation: met — PR ci(id): run the hosted-worker routing suite in CI (#6095) #6101 merged (merge c7a0982); suite verified on the laptop: 4/4 pass on current code, mutation accepting uppercase binding ids fails the suite, guard errors when the suite file is missing; Codex review completed with no findings.
    • Links: PR ci(id): run the hosted-worker routing suite in CI (#6095) #6101 · branch queue/9909-6095-hosted-worker-routing-ci
  14. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    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.