Make worker concurrency tests deterministic

This commit is contained in:
2026-11-26 01:43:32 +00:00
parent a27c2cd89c
commit 73023f6397
3 changed files with 118 additions and 13 deletions

View File

@@ -20,8 +20,8 @@ The [Core And Integration API Roadmap](../core-integration-api.md) established
the core/integration boundary. The reassessment below distinguishes its completed
work from the remaining audit remediation.
The **45 original finding entries** reduce to **23 outstanding catalog entries
and eleven resolved entries**. Repeated responsibility findings are
The **45 original finding entries** reduce to **22 outstanding catalog entries
and twelve resolved entries**. Repeated responsibility findings are
merged. Regression gaps are attached to the defects they protect rather than
counted as additional runtime bugs. In particular, TEST-001, TEST-002, and
TEST-004 each cover several distinct defects; TEST-003's native-fixture oracle
@@ -66,7 +66,7 @@ context; they are not one universal severity scale. No audit establishes a P1
incident or a measured end-to-end production speedup.
CAT-001, CAT-002, CAT-004, CAT-005, CAT-007, CAT-011, CAT-012, CAT-013, CAT-015,
CAT-016, and CAT-034 are resolved;
CAT-016, CAT-027, and CAT-034 are resolved;
the other entries remain outstanding. The original reports and their baseline
observations are historical.
"Refactoring" denotes a maintenance opportunity, not a confirmed runtime
@@ -528,6 +528,10 @@ all string assertions; authored prompt quality still needs review.
**Assessment:** Static reliability/diagnosability risk; original P3;
no failure was observed in the audit's repeated runs.
**Status:** Resolved. Controlled gates establish continuation overlap and reverse
completion; bounded handshakes cancel and join work on failure. Repeated focused
tests and affected race tests pass.
**Source:** [TEST-007](08-testing.md#test-007--concurrency-tests-need-controlled-overlap-and-better-failure-bounds).
A continuation test uses a five-millisecond sleep to induce required overlap;

View File

@@ -345,6 +345,12 @@ if no recorded migration condition prevents it.
## Stage 10 — Control Worker-Test Overlap And Bound Handshakes
**Completed.** Continuation overlap is established by start/release gates;
reverse-completion handshakes enforce actual completion order, detect early runner
exit, and use bounded cancellation and joining. Both tests check no jobs remain
active. The prescribed ten-run focused check and affected race check pass. No
runtime timeout guarantee or follow-up was added.
**Coverage:** CAT-027. **Prerequisites:** none; precedes lifecycle edits.
Replace continuation sleep in runner_concurrency_test.go with start/release gates.