test: embed-concurrent's planted-race control runs until it observes the race - #1107
Merged
Merged
Conversation
…the race The #885 control asserted that a deliberately shared global cross-talks between two threads within a fixed 200 rounds each. That is a bet on the scheduler, and it lost on CI for PR #1106 @ 07a0ac3 (2026-09-06): `control cross-talk: A=0 B=0 over 200 rounds each`, with the file identical on main and the lane green on the previous push. PR #1034 hit the same shape before the start barrier was added. Now each worker runs at least ROUNDS rounds and keeps racing until BOTH sides have observed at least one mismatch or PLANT_BUDGET (200000) rounds elapse; the check requires both sides to have seen it. The property is unchanged — a harness that never interleaves exhausts the budget and FAILS — only the sample size adapts to the scheduler. Measured on the dev box: 3/3 runs stop at the 200-round minimum (A=198/200 B=199/200; 199/198; 188/189). Plant: making the shared global `__thread` (race impossible) gives `A=0/200000 B=0/200000` and EMBED_CONCURRENT_FAIL in 0.37 s, so the budget costs nothing on a failing control either. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kpzyjv1SaLaqBf45FSFDhB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The #885 control bet on the scheduler (fixed 200 rounds) and lost on CI for #1106 @ 07a0ac3 with the file identical on main (
A=0 B=0 over 200 rounds each); PR #1034 saw the same shape before the barrier landed. Each worker now races until both sides have observed a mismatch or a 200000-round budget elapses; a never-interleaving harness still fails. Dev box: 3/3 stop at the 200-round minimum; a__threadplant (race impossible) fails in 0.37 s.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kpzyjv1SaLaqBf45FSFDhB