GeezerVison is showing github.com — ci(id-mail): runtime.test.mjs (5 tests pinning the #5739 limiter/caller-denial contract) run by no workflow — the Worker runtime contract is verified nowhere · Issue #6351 · developing-today/code
ci(id-mail): runtime.test.mjs (5 tests pinning the #5739 limiter/caller-denial contract) run by no workflow — the Worker runtime contract is verified nowhere #6351DescriptionProblem
nixos/services/id-mail/worker/runtime.test.mjs — the runtime-contract suite for the id-mail Worker handler and its Limiter Durable Object — is run by no workflow, flake check, justfile recipe, or Nix build. The package's own npm test now covers it, but nothing in the repo invokes that script.
Evidence (verified this run, laptop primary @ 50237a7, HEAD == origin/main)
runtime.test.mjs:1-9 documents what it pins: it drives the real fetch handler and the real Limiter class (from src/index.js) against in-memory fakes of the Durable Object storage/namespace APIs. The 5 tests pin the id-mail worker: skip recipient Durable Object work after caller throttling rejects a request #5739 contract: caller-denied requests short-circuit before recipient-limiter work, caller-allowed requests deliver and consult recipient limiters, the recipient limit and per-request recipient cap still apply, and limiter state is alarm-bounded with alarm cleanup of dormant keys.
- The suite was added in PR fix(id-mail): short-circuit caller denials and expire limiter state (#5739) #6336 (
fix(id-mail): short-circuit caller denials and expire limiter state (#5739)) — it postdates ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082, which covered only the sibling deploy.test.mjs suite. Since then package.json's test script reads node --test deploy.test.mjs runtime.test.mjs, but no automation runs it.
- Grep of
.github/workflows/, flake.nix, justfile, and the id-mail Nix modules for runtime.test / any test invocation: zero references (the Nix files only define the service and the deploy wrapper).
- Laptop run this run:
cd nixos/services/id-mail/worker && node --test runtime.test.mjs → 5 tests, 5 pass, 0 fail, ~0.65 s, fully offline (node:test, in-memory fakes; no network, wrangler, or secrets).
Why it matters
These tests are the only regression net for the #5739 throttling fix — a security/availability contract (a throttled caller must not consume recipient-limiter work; limiter state must not grow unbounded). A future change to src/index.js can silently reintroduce the pre-#5739 behaviour and nothing will flag it, exactly the failure mode #6082 documented for the deploy suite in the same package.
Acceptance criteria
- An automated check (workflow, flake check, or equivalent) runs the id-mail worker test script (
node --test deploy.test.mjs runtime.test.mjs, or runtime.test.mjs at minimum) with a fail-if-missing guard, so deleting/renaming the suite fails the check instead of silently unwiring it.
- The check passes on current main (5 runtime tests + 4 deploy tests at filing).
- Breaking a pinned behaviour (e.g. recipient-limiter work performed after a caller denial, or limiter state without alarm cleanup) makes the check fail.
Related: #6082 (deploy.test.mjs wiring, same package), #5739 / PR #6336 (the contract this suite pins). Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 Filed by the new-issue creator (Lane B) this run. Verified on the laptop primary @ 50237a7: node --test runtime.test.mjs → 5 pass / 0 fail offline; no workflow, flake check, justfile recipe, or Nix build references the suite. This suite postdates issue #6082 (which covered only deploy.test.mjs in the same package). Filed-only; a repo-task/v1 triage packet has been enqueued on the repo-health-code-pilot queue.
Found via: filed this run (new-issue-creator-code-b) dezren39 commented on Nov 5, 2026 developing-today commented on Nov 5, 2026 dezren39 commented on Nov 6, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 6, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 6, 2026 🤖 Agent note · correction
dezren39 commented on Nov 6, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 11, 2026
🤖 Agent note · done (already_done) — task 10704, lane code-c
dezren39 commented on Nov 11, 2026
🤖 Agent note · done (already_done, lane code-b)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|