Parents: #476, #494 Related: #491
Problem
The unit test parallel_js: cooperative shared nursery rendezvous bounds object churn is scheduler-sensitive in the eight-shard full inventory. Twice on current main plus an unrelated one-file change, both worker results were exact but gc_cooperative_attempts remained zero, failing the first telemetry assertion after roughly 8 to 9 seconds. The exact isolated test passed immediately after each failure in roughly 3.7 seconds with all rendezvous assertions intact.
Observed full-suite records:
- #671 landing run: 1765 passed, 1 skipped, this one failure; exact focused rerun passed; complete rerun then passed 1766 plus 1 skip.
- #672 verification run: 1766 passed, 1 skipped, this one failure; exact focused rerun passed.
The test comment claims its two lanes necessarily exceed the frozen 512 KiB tranche, so a zero-attempt outcome means either the witness does not actually force the intended allocation accounting path under shard scheduling or the test reads the wrong lifecycle boundary. Repeating the test until it happens is not evidence.
Scope
- Determine why the sharded run can complete exact JS work with zero cooperative attempts.
- Make the witness deterministically cross the production tranche through real Object-class allocation accounting.
- Preserve the production tranche, rendezvous deadlines, allocator/GC behavior, and all telemetry equalities.
- Keep one exact focused runtime budget and verify repeated sharded placement.
No-workaround rules
- No lowered production threshold, sleeps, retry-until-pass loop, weakened or deleted telemetry assertion, synthetic counter mutation, disabled sharding, blanket timeout increase, or sanitizer suppression.
- No Thread lifecycle, stack, queue, job, Promise, Worker, or Map/Set iterator implementation changes.
Acceptance
- Root cause explains the zero-attempt sharded outcome.
- The test deterministically records attempts, collections, peer parks, phase bytes/times, and zero unsanitized timeouts.
- At least 20 repeated focused executions and repeated eight-shard placements pass with exact checksum and no leaks.
- Debug, ReleaseSafe, and TSan retain the production GC contract and functional result.
- Full units pass without retrying a failed inventory.