Repository navigation
Description
Summary
pkgs/id/worker-poc/smoke/participant-validation.mjs — the regression pin for #4074 (merged in PR #4796: PlazaGuest.update must reject participant values the native u64 host can never produce — NaN and -Infinity collapsed to participant 0, negative/fractional participants were delivered/truncated) — is the only smoke file in the package with no entry point at all:
- It is not in the
smokescript chain (package.json:smokeruns onlycounter-smoke.mjsandpost-update-failure.mjs). - It has no script of its own — every sibling does:
post-update-failureandparticipant-clampeach have a dedicated script entry, andcounter-smokeis in the chain. - The README's smoke section (worker-poc/README.md:42-50) documents
counter-smokeandpost-update-failureand never mentionsparticipant-validation. - No workflow, flake check, or justfile recipe runs any worker-poc smoke (the package is manual-smoke by design), so the package's own script chain + README are the only execution contract there is — and this file is in neither.
A regression of the #4074 fix would therefore pass every documented check in the package unnoticed: the pin exists, passes, and is never run.
Evidence (file:line, main @ 1dae17e — the 6 newer origin/main commits touch only pm-stack/aggregator + opencode config)
pkgs/id/worker-poc/package.jsonscripts:smoke=node smoke/counter-smoke.mjs && node smoke/post-update-failure.mjs; separate entries exist forpost-update-failureandparticipant-clamp; no entry namesparticipant-validation.- Repo-wide grep for
participant-validationacross*.json/*.md/*.nix/*.toml/ workflows: zero references outside the file's own header comment. pkgs/id/worker-poc/smoke/participant-validation.mjs:1-9— header: "Participant validation regression (id(worker-poc): PlazaGuest.update collapses NaN and -Infinity to participant 0 (host-event routing) and passes negative/fractional participants the native u64 host can never produce #4074)… Run:node smoke/participant-validation.mjs" (manual path only).
Verified this run (laptop primary, real package)
$ cd pkgs/id/worker-poc && node smoke/participant-validation.mjs
participant-validation: ok (rejects -1/1.5/NaN/-Infinity; preserves 0/1/i32::MAX clamp) exit 0
$ node smoke/participant-clamp.mjs
participant-clamp: ok (i32::MAX view "chat seen=0 last= input=x"; participant 0 view …) exit 0
The suite is green today — this is a wiring gap, not a live regression.
Why it matters
- id(worker-poc): PlazaGuest.update collapses NaN and -Infinity to participant 0 (host-event routing) and passes negative/fractional participants the native u64 host can never produce #4074 was a silent state-divergence bug class (hosted isolate vs native host evolving different state for the same event). Its only regression coverage is this file; orphaned, the divergence can return with no signal — the same "a suite that never runs is not a test" failure class as A suite that never runs is not a test — one coverage contract for the repo's test suites #6185's coverage contract.
- The asymmetry is invisible: a reader of
package.jsonor the README reasonably believes the smoke chain covers the package's regressions —participant-clamp, the sibling participant regression, IS reachable (own script); this one is not.
Acceptance criteria
-
participant-validation.mjsis reachable through the package's documented entry points: added to thesmokescript chain inpkgs/id/worker-poc/package.jsonand/or given its own script entry (matching theparticipant-clampprecedent), sonpm run smoke(or the named script) executes it. - The README smoke section names
participant-validationand what it pins (id(worker-poc): PlazaGuest.update collapses NaN and -Infinity to participant 0 (host-event routing) and passes negative/fractional participants the native u64 host can never produce #4074), alongside the existing counter / post-update-failure entries. - The full smoke chain passes after the change (all four smoke files green on Node ≥ 22, no install needed, as the README promises for the existing smokes).
Dedup
gh search issues for "participant-validation", "worker-poc smoke", "4074" (2026-11-05): #4074 (closed, the bug) and PR #4796 (closed, the fix) cover the behaviour, not the wiring; #6370 covers the hosted-worker package's smoke (pkgs/id/hosted-worker/smoke/smoke.mjs) — a different package and file. No open or closed issue covers this file's orphaned status.
Activity
developing-today commentedon Nov 5, 2026
CODE-1890
dezren39 commentedon Nov 5, 2026
🤖 Agent note · filed
npm run smoke(or the named script) executes participant-validation and the full chain is green.dezren39 commentedon Nov 5, 2026
🤖 Agent note · picked up
6 remaining items
dezren39 commentedon Nov 5, 2026
🤖 Agent note · picked up
ci(id/worker-poc): wire participant-validation smoke into entry points (
dezren39 commentedon Nov 5, 2026
🤖 Agent note · done
npm run smoke), has its ownnpm run participant-validationscript, and is documented in the README.node smoke/participant-validation.mjspasses on laptop main (exit 0, rejects -1/1.5/NaN/-Infinity, preserves clamp); package.json at the PR head parses with the correct smoke chain. PR checks were still QUEUED ~40 min after opening, so the merge proceeded under the standing merge authority (CI runs on main). Merge commit 8f2cf5d. Issue ci(id/worker-poc): participant-validation.mjs — the #4074 regression smoke — has no entry point: not in the smoke chain, no script of its own, absent from the README #6372 closed by the merge; queue/status/work labels removed.