Repository navigation
Gate warm-up test waits on the flag it asserts, not on the committed mark - #1175
Merged
Merged
Conversation
…mark that drives it #1174's CI run failed the_gate_flip_is_driven_by_committed_progression_not_by_what_was_loaded on an unrelated one-line version bump: SideEffectsSuppressed was still true the instant LastCommitted reached the mark. In the RangeCompleted pass the committed write, a tracker publish and the gate flip are three steps on the command loop, so a poller keyed on LastCommitted can observe the first before the third. Widening that window locally with a delay reproduces the failure every time; the test now waits for the flag to drop and then checks that committed progression had reached the mark, which is the same contract read from the other side. The agent's ordering is unchanged, since pages past the mark are only ever loaded after the flip in the same pass. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Nov 16, 2026
Closed
Closed
Closed
This was referenced Nov 30, 2026
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.
Flake fix for the failure on #1174's
buildjob (EventTests.Daemon.SideEffectGateWarmupThrottleTests.the_gate_flip_is_driven_by_committed_progression_not_by_what_was_loaded,ShouldBeFalseonSideEffectsSuppressed). #1174 is a one-line version bump, so the failure is not its doing; the same source passed on main's push run and on #1173.Cause. In
SubscriptionAgent'sRangeCompletedpass the committed write (LastCommitted = …), a_tracker.PublishAsyncand the gate flip incompleteSideEffectGateAsyncare three steps on the command loop. The test polledLastCommitted >= GateMarkevery 20 ms and asserted the flag immediately, so on a loaded runner it could land between step one and step three. Inserting a 60 ms delay after the committed write locally reproduces the CI failure on every run.Change. Test-only. The fact now waits for the flag to drop and then asserts committed progression had reached the mark, the same contract observed from the other side. The hold-phase assertion (plenty enqueued, nothing committed, still suppressed) and the per-page checks (everything up to the mark suppressed, everything past it live) are unchanged. With the delay still in place the fixed test passes 3/3; clean, the class passes 3/3.
Not changed. The agent's ordering: pages past the mark are only loaded after the flip in the same pass, so production is consistent and the published
ShardStatealready stamps a consistent pair.🤖 Generated with Claude Code