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 #6095DescriptionProblem
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.
Activitydeveloping-today commented on Nov 5, 2026 added kind/ciCI/CD pipelines, workflows, and build automation task/triageQueue packet kind: verify, reproduce, and route this item app/idPackage/app: id (pkgs/ or apps/ in this repo) on Nov 5, 2026dezren39 commented on Nov 5, 2026 🤖 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)
dezren39 commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 🤖 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
dezren39 commented on Nov 5, 2026 🤖 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
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|