Repository navigation
Conversation
probeSentinel reissues an Indeterminate probe after a jittered pause and decides before sleeping whether the pause plus one request still fits the policy deadline. The check accepts a pause that ends exactly on the deadline; the loop head then saw the deadline reached and threw "gave up at the policy deadline" although a probe had run and its outcome was known. One pause in about five thousand landed there, which showed as a rare failure of CASSentinelProbe.NativeClassifiesUnmodeledErrorAsIndeterminate. Keep the last probe outcome and return it when the deadline is reached after a probe; the admission gate (a lost fence, no lease budget) still throws at any attempt, and a deadline reached before the first probe still throws. No request is sent after the deadline. Closes backlog task CAS-325. Co-Authored-By: Claude Fable 5.1 <[email protected]>
k-morozov
approved these changes
Oct 8, 2026
This was referenced Oct 12, 2026
10 of 30 tasks
7 of 31 tasks
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.
probeSentinelthrew "gave up at the policy deadline" when the jittered pause before a reissue ended exactly on the policy deadline, although a probe had already run and its outcome was known. The loop now keeps the last probe outcome and returns it when the deadline is reached after a probe.Why it matters
The sentinel probe is the typed, cache-bypassing read of the keys whose presence is an authoritative fact about the pool (
_pool_meta, the owner anchor, the mount slot). It never conflates a transport failure with absence:Indeterminatemeans "nothing is known", and every consumer treats it fail-closed. Turning a knownIndeterminateinto a give-up exception on the boundary loses that information: the caller cannot tell "no probe ran" from "a probe ran and was inconclusive". The pre-sleep check accepts a pause that ends exactly on the deadline (one millisecond out of the 0–5000 ms jitter draw), so about one reissue in five thousand hit the loop-head give-up instead — the cause of the rare failures ofCASSentinelProbe.NativeClassifiesUnmodeledErrorAsIndeterminate.Changes
CasOperation::probeSentinelkeepslast_probe; at the loop head, a reached deadline returns it when a probe has run and throwsgiveUpReadDeadlineas before when none has.Testing
Indeterminate, no request is sent after the deadline. Red on the base:gave up at the policy deadline after 1 attempt(s).CASSentinelProbe.NativeClassifiesUnmodeledErrorAsIndeterminate: 100,000 repeats, 0 failures.CAS*gate: 2611 (release), 2615 (ASan, no error).Closes backlog task CAS-325.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
The CAS sentinel probe returns its last inconclusive outcome instead of throwing when a retry pause ends exactly on the policy deadline.
Documentation entry for user-facing changes
CI/CD Options
Exclude tests:
Regression jobs to run: