Repository navigation
Keep parameter mining's behavioral oracle after a failed jitter probe - #6190
Merged
stamparm merged 1 commit intoNov 23, 2026
Merged
Conversation
mineParameters() measures the target's between-request jitter with a second baseline fetch and uses it as the floor for the behavioral oracle. _fetch() swallows exceptions and returns an empty page, and _ratio() returns 0.0 when either side is empty, so one dropped probe sets floor to 0.0 and _differs() can never fire again for the rest of the run. Treat an unanswered probe as unmeasured jitter and assume none instead. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
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.
mineParameters()measures the target's own between-request jitter with a second fetch of the baseline, and uses it as thefloorthe behavioral oracle compares against._fetch()swallows any exception and returns an empty page, and_ratio()returns0.0whenever either side is empty, so a single dropped jitter probe setsfloor = 0.0._differs()then asks for a ratio below-0.05, which nothing satisfies, and the behavioral oracle is off for the rest of the run. Reflection still works, so the run looks normal and just finds fewer parameters.An unanswered probe leaves the jitter unmeasured rather than measured as total, so it now assumes none, which is what a stable target would have given.
Tests:
tests/test_paraminer.py: the two failing cases (dropped probe, empty probe) plus two controls, an answered probe and a target that ignores the candidate, so the result is about the probe and not the mining. All four drive the realmineParameters()withRequest.getPagemocked.unittest discover -s tests: 2,752 tests before, 2,756 after, OK (skipped=32) both ways.paraminer.pychange reverted the two new cases fail again;git diff --checkis clean.Prepared with AI assistance and verified locally as described above.