design-b D-1b: delete the legacy handlesleep runtime from the injector

Doc 20 D-1, second slice: the injector now injects asyncify-scheduler.js
unconditionally — the WX_SCHEDULER=0 legacy opt-out, the
SHIM_DISABLE_HANDLESLEEP ablation skip, and the
SHIM_DISABLE_TRAMPOLINE_HEAL ablation skip are gone, and
scripts/common/shims/handlesleep.js is deleted (the scheduler subsumed
its capture/restore, fiber guard, and trampoline-heal duties in S2).
Comment-only scrubs point the remaining references at the scheduler
shim. .ci-cache-epoch bumped (shim/injector behavior changed).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TEHGiiXMShNXbBr7gSJ7iz
This commit is contained in:
Gergő Törcsvári 2026-08-05 20:02:18 +02:00
commit 4906b9fb56
No known key found for this signature in database
GPG key ID: 8E75F2CDE64E5322
10 changed files with 34 additions and 477 deletions

View file

@ -2,9 +2,9 @@ import { test, expect, tryLoadApp } from '../e2e/utils/fixtures';
/**
* S2 scheduler-core gates (docs/features/async/17 §3d N1/N4, §4 S2).
* Runs against the races harness built with WX_SCHEDULER=1 (scheduler-only
* glue — the legacy handlesleep shim is NOT injected on scheduler builds).
* Both tests self-skip on legacy glue, so the file is safe in either variant.
* Runs against the races harness; the scheduler shim is the only runtime
* (the legacy handlesleep opt-out was deleted at doc 20 D-1). The self-skip
* on shim-less glue is kept as a stale-build guard.
*
* N1 — single-writer tripwire: Asyncify.currData is an accessor; a pure-JS
* write without scheduler authorization beacons (and throws in strict mode).
@ -48,7 +48,7 @@ async function bootAndSettle(
);
}
test.describe('S2 scheduler core (WX_SCHEDULER=1 glue)', () => {
test.describe('S2 scheduler core (scheduler glue)', () => {
test('N4: battery leaves coherent books — wakes drained, no strays, battery green', async ({
page,
testLogger,