Script smoke tests run two 4-vCPU shards sequentially across 174 independent
suites (~768-872s serial suite time / ~15 runner-minutes per PR and main push).
Add bounded concurrent execution (--workers N) with longest-first launch
scheduling (--weights PATH) to scripts/run-script-tests.py and enable 4-worker
execution for --smoke-shard in scripts/tests/run.sh, while keeping --docs-shard,
explicit subsets, and default workers=1 behavior unchanged.
Preserve atomic output-free receipts (PULSE_SCRIPT_TEST_RECEIPT), exact
source-SHA verification, deterministic index-ordered observations and failure
summaries, non-interleaved per-suite stdout/stderr replay, and bounded
process-group interruption across all active workers. Refresh
.github/scripts/smoke-test-seconds.txt from four complete PR runs on 27 Nov
2026 (46013235880, 46006017081, 46004837120, 46002040651; holdout 45997858617).
Contract-Neutral: CI test-runner parallelism and scheduling hints only; no product runtime, API, workflow interface, or coverage change.
Change-source: pulse-maintainer
Observe deferred cancellation after wait returns as well as before it, so a leader completing at that boundary cannot hide a remaining owned output descendant. Cover the boundary and tolerate a fixture child being reaped between process-state observations.
Contract-Neutral: Script-test interruption handling and its disposable regression fixtures only; no application, installed-runtime or release contract change.
Change-source: pulse-maintainer
Forward catchable cancellation to each suite's owned process group, bound its stop and reap observation, and preserve returned exits separately from the runner signal. Never admit a later suite or a passing verdict after interruption; SIGKILL and detached-child cleanup remain unknown. Keep all suite selection and test deadlines unchanged.
Contract-Neutral: Product test-runner observation and cancellation only; no application, installed-runtime or release contract change.
Change-source: pulse-maintainer
Keep the existing complete smoke/docs selection, execution order, streamed output, required checks and test deadlines. Use one process sequencer to atomically retain exact-source, output-free suite results before the next invocation, separating start failures, numeric exits, observed signals and unobserved work. Upload the public smoke receipt even when its job fails. Exercise interruption, stale-source refusal, partial writes, nested harness isolation and unchanged complete sharded consumers.
Contract-Neutral: Adds diagnostic observations to unchanged script-suite selection, assertions, order, deadlines and required CI verdicts; no application, install, release or frontend behaviour changes.
Change-source: pulse-maintainer