GeezerVison is showing github.com — ci(id): hosted-worker smoke.mjs (15 checks — the only coverage for UserDO and the worker fail-closed matrix) is run by no workflow · Issue #6370 · developing-today/code
ci(id): hosted-worker smoke.mjs (15 checks — the only coverage for UserDO and the worker fail-closed matrix) is run by no workflow #6370Descriptionci(id): hosted-worker smoke.mjs (15 checks — the only coverage for UserDO and the worker fail-closed matrix) is run by no workflow
Summary
pkgs/id/hosted-worker/smoke/smoke.mjs is a 15-check executable verification suite (two local wrangler dev passes) and the only coverage for src/user-do.ts and the application-worker fail-closed matrix in src/worker.ts. No workflow, flake check, justfile recipe, or Nix build runs it. The CI workflow added for #6095 (.github/workflows/id-hosted-worker-tests.yml) runs only npm test (= node --test test/routing.test.ts), which imports solely from src/routing.ts (test/routing.test.ts:3).
A regression in the Durable Object's identity guard, schema bootstrap, or cross-binding isolation — or in the worker's 401/403/503 fail-closed matrix — would merge with no signal anywhere.
Evidence (verified this run, laptop @1dae17e457 = origin/main)
pkgs/id/hosted-worker/package.json:10 — "smoke": "node smoke/smoke.mjs"; pkgs/id/hosted-worker/README.md "Tests" section lists npm run smoke alongside npm test as one of the package's three verification steps.
pkgs/id/hosted-worker/smoke/smoke.mjs:1-15 — Part 1: app worker fail-closed matrix (401 missing_binding, 403 missing_jurisdiction, 403 unsupported_jurisdiction, 401 invalid_binding for a subject-derived id, 503 jurisdiction_unavailable with no unrestricted fallback). Part 2: UserDO through the test-only harness (wrangler.test.toml): lazy creation, idempotent schema bootstrap, concurrent first requests, immutable identity binding (409 on mismatched binding/jurisdiction), cross-binding isolation, unrouted-request 403.
pkgs/id/hosted-worker/src/user-do.ts (141 lines) has no unit test: test/routing.test.ts:3 imports only { FailClosed, parseBindingId, parseJurisdiction, userStub } from ../src/routing.ts.
- Grep for
smoke.mjs / npm run smoke across .github/workflows/, pkgs/id/flake.nix, pkgs/id/nix-common.nix, and the justfile: zero references. The only hosted-worker workflow, .github/workflows/id-hosted-worker-tests.yml, runs npm test only.
- Run on the laptop in a clean probe copy (
~/git/fleet/probe-hosted-smoke, git archive of HEAD): npm install + npm run smoke → 15 PASS, SMOKE OK, exit 0 (~29s including both wrangler dev passes). The suite passes today; it is simply never run by automation.
Why it matters
user-do.ts is the per-user Durable Object for the hosted data plane (#5199 / #3811): its binding/jurisdiction immutability and cross-binding isolation are the custody boundary between users' hosted data. worker.ts is the front door that strips client-supplied internal headers and must fail closed (401/403/503) rather than fall back to an unrestricted namespace. Today both are verified only when a human remembers to run the smoke locally — exactly the failure mode #6095 fixed for routing.ts, one package over in the same directory.
Distinct from #6095
#6095 filed the routing unit suite (test/routing.test.ts, routing.ts only); that suite is now wired by id-hosted-worker-tests.yml. This issue is the smoke suite (smoke/smoke.mjs), the sole coverage of user-do.ts and worker.ts, which that workflow does not run.
Acceptance criteria
- An automated check (extending
id-hosted-worker-tests.yml or an equivalent venue) runs node smoke/smoke.mjs in pkgs/id/hosted-worker, with a fail-if-missing guard for smoke/smoke.mjs so a green run can never be a silently skipped suite.
- The check passes on current main (15/15 checks,
SMOKE OK, verified at filing).
- Breaking a pinned behaviour (e.g. allowing a mismatched binding on a bound object, or an unrestricted-namespace fallback in the app worker) fails the check.
- The venue's runtime stays bounded (the suite completes in ~30s locally, plus
wrangler install/setup time).
Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 🤖 Agent note · filed
- Agent: new-issue-creator (new-issue-creator-code-a)
- Session / ID: cron job new-issue-creator-code-a, run 2026-11-05 14:05 CST
- Found via: filed this run
- Task: File the verified finding that pkgs/id/hosted-worker smoke.mjs (15 checks, sole coverage for user-do.ts + worker.ts fail-closed matrix) is run by no workflow/flake/justfile, and enqueue it for triage.
- Expectation: effort s — done looks like a fail-if-missing-guarded automated venue running node smoke/smoke.mjs for pkgs/id/hosted-worker, green on current main (15/15 verified at filing).
- Links: packet enqueued to queue repo-health-code-pilot (repo-task/v1, triage)
dezren39 commented on Nov 14, 2026 🤖 Agent note · done — fixed and merged
dezren39 commented on Nov 14, 2026 🤖 Agent note · done — already done (verified on re-claim)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|