Repository navigation
Description
Evidence
pm-stack/decision-events-worker/ (the #9335 decision-set event pipeline: authenticated webhook → D1 store + Durable Object fan-out) carries a real test suite that no venue runs.
pm-stack/decision-events-worker/package.jsondeclares"test": "bun test".- The directory holds
test/events.test.ts(104 lines) andtest/pagination.test.ts(117 lines) — 14 tests, 51expect()calls. - Runs nowhere. A repo-wide search for
decision-events-workerfinds no reference in.github/**,justfile,flake.nix, or any*.nixfile. .github/workflows/pm-stack-tests.ymlis the pm-stack venue. Itspushpath filters listexternal-comms,opencode-claimant,opencode-usage-export,cloudflare-export,supabase-export,meta-exporter,dispatch,pad,grist,scripts—pm-stack/decision-events-worker/**is absent, so no step could fire even if one were added. Its steps run aggregator/projector/dispatch/external-comms/claimant/grist/exporter suites; none touches this worker..github/test-suite-registry.jsonhas no entry for it (grep -c decision-events .github/test-suite-registry.json→ 0; thequota-exportersrow covers only the three other exporter suites).
Verified this run on origin/main at f8a79cd224 (clean checkout, HEAD == origin/main):
$ cd pm-stack/decision-events-worker && bun test
bun test v1.4.4 (38afee6c8)
14 pass
0 fail
51 expect() calls
Ran 14 tests across 2 files. [12.00ms]
It needs only bun — no wrangler or npm install is required for the suite to run.
Why it matters
This suite is the only verification of the Worker's validation, auth, event-cursor and pagination logic, and its test titles pin the exact Codex-round findings filed as separate open issues:
events cursor (#9614)andGET /sets/<setId>/events pagination (#9614)— the composite(ts, event_id)cursor skip, fixed today by PR fix(pm-stack): composite (ts, event_id) cursor for decision-events read-back (#9614) #9645 (pm-stack: decision-events Worker read-back pagination skips events sharing a timestamp (PR #9341 Codex P2) #9614). These are the regression pins for that fix.isAuthorized accepts Bearer or X-Webhook-Secret, fails closed unsetandtimingSafeEqual— the webhook auth path must fail closed when the secret is unset.- Related behavior still open: pm-stack: decision-events Worker loses Durable Object fan-out when ingest fails after the D1 commit (PR #9341 Codex P1) #9612 (DO fan-out lost when ingest fails after the D1 commit), pm-stack: decision-event sync acks events the Worker rejected — validator mismatch silently drops events (PR #9341 Codex P2) #9613 (sync acks events the Worker rejected), pm-stack: sync-decision-events silently ignores an unreadable --outbox-dir (PR #9341 Codex P2) #9615 (unreadable
--outbox-dirignored), pm-stack: sync-decision-events kill switch returns 0 before parseArgs, so invalid args silently succeed (from PR #9341) #9794 (kill switch returns 0 beforeparseArgs).
Because nothing runs the suite, a regression of any of these — including the auth fail-closed behavior — passes CI silently.
This is the same class the fleet has already fixed per suite: #6084 (three quota-exporter suites), #6090 (dispatch), #6091 (claimant install bun suite), #6217 (external-comms), #6344 (meta-exporter), and still-open #8026 (pm-stack/exporters/watchdog-state.test.ts).
Suggested fix shape
Follow the guarded-step pattern already in pm-stack-tests.yml (see the dispatch step and the #6090/#6091/#6217 comments there):
- Add
pm-stack/decision-events-worker/**to the workflow'spush(andpull_request, where present) trigger paths. - Add a step that asserts
test/*.test.tsexists (fail the job if not, so a green run can never be a silently skipped suite), then runsbun install --frozen-lockfile && bun testinpm-stack/decision-events-worker(the dispatch step shows the exact shape). - Add a
.github/test-suite-registry.jsonrow recording the venue.
Acceptance criteria
- A CI job runs the suite on every change touching
pm-stack/decision-events-worker/**, and fails if the directory holds no*.test.tsor any test fails. -
pm-stack-tests.yml(or another workflow) listspm-stack/decision-events-worker/**in its trigger paths. -
.github/test-suite-registry.jsonrecords the suite's venue.
Notes
- Not a duplicate: pm-stack: decision-events Worker loses Durable Object fan-out when ingest fails after the D1 commit (PR #9341 Codex P1) #9612/pm-stack: decision-event sync acks events the Worker rejected — validator mismatch silently drops events (PR #9341 Codex P2) #9613/pm-stack: decision-events Worker read-back pagination skips events sharing a timestamp (PR #9341 Codex P2) #9614/pm-stack: sync-decision-events silently ignores an unreadable --outbox-dir (PR #9341 Codex P2) #9615/pm-stack: sync-decision-events kill switch returns 0 before parseArgs, so invalid args silently succeed (from PR #9341) #9794 are behavioral bugs in this same component; none tracks test wiring.
- The sibling wiring gaps ci(pm-stack/exporters): watchdog-state.test.ts (12 tests, added in #6032) runs nowhere — and pm-stack-tests trigger paths omit pm-stack/exporters/** #8026 (exporters) and ci(pm-stack): the three quota-exporter test suites (opencode-usage 4, cloudflare 35, supabase 12) run by no workflow — the #2574/#2492 regression pins are decorative #6084/ci(pm-stack/meta-exporter): meta-quota-export.test.mjs (11 tests, added in #6333) run by no workflow — and its documented node --test directory invocation fails on Node 24 #6344 (exporters) are the same class but different files.
Activity
developing-today commentedon Nov 14, 2026
CODE-3380
dezren39 commentedon Nov 17, 2026
Task 19066 (triage) — triaged. The gap is still live on current main; follow-on fix task 20487 enqueued (queued).
Fresh verification this run:
pm-stack/decision-events-worker/test/holdsevents.test.tsandpagination.test.tson main, andpackage.jsondeclares"test": "bun test"— the suite exists and (per the filing verification) passes 14/14 with bun alone.decision-eventsreference in.github/workflows/pm-stack-tests.ymlor.github/test-suite-registry.json— no trigger path, no step, no registry row. Nothing runs the suite.test/*.test.tsexists, fail loudly if absent, then run the suite).Route: task 20487 (small_fix) carries the issue's own fix shape — trigger paths + guarded step + registry row. The behavioral issues in this component (#9612, #9613, #9615, #9794) and the sibling wiring gap #8026 are explicitly out of its scope.
Labels set: status/triaged, queue/queued, effort/s, task/small-fix (priority/normal already present).
dezren39 commentedon Nov 18, 2026
agent-note:v1
lane: openchamber-scheduled-lane (code-g) · worker repo-worker-code · queue task 20487
state: pr_opened — PR #11735 (branch queue/20487-9860-decision-events-ci) adds a guarded "Test decision-events-worker suite" step to pm-stack-tests.yml plus a registry row. Local run: bun test passes (15 tests). pm-stack-tests is nightly/dispatch-only, so no PR checks run; merge needs owner review or a workflow_dispatch run on the branch.
Merge pull request #11735 from developing-today/queue/20487-9860-deci…