Make fuzz budgets deterministic - #119
Merged
Merged
Conversation
Owner
Author
|
Post-merge proof passed on exact
Issue #118 can now close. The tag and tagged-module proof remain in #109. |
This was referenced Aug 11, 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.
What Changed and Why
The final
masterworkflow hit Go's duration-boundary fuzz coordinator race:FuzzParseGrainMarkercompleted 421,658 executions, then returnedcontext deadline exceededat the normal ten-second stop. There was no productassertion or failing corpus input.
This change replaces wall-clock budgets with hard-coded fixed iteration counts:
FuzzReadFrame: 1,600,000;FuzzDecodeRequestContext: 225,000;FuzzParseGrainMarker: 2,250,000.Every count exceeds the earlier successful ten-second baseline. Caller Make
variables cannot reduce the counts. A new behavior fixture proves that a real
fuzz callback failure still returns exit 1 through
testcheck.Related Issue
Related #118. Keep the issue open until the resulting exact
mastercommitpasses the same hosted jobs.
Specification
This is the seventh release-audit follow-up in ROADMAP step 8. The updated
contract and measured basis are in
design/release-0.1.0.mdandresearch/release-0.1.0-issue-118-fuzz-budget.md. Release status documents nowmark hosted, final same-commit, and tagged proof as open for the new candidate.
Breaking Changes and Migration
None.
User-Visible Change
Verification
Exact commit:
ffbf26e2e94ac82d702bcf2995671073d9caa119on Linux amd64 with Go 1.26.5.make external, cold test cache: exit 0, 213.97 seconds, 20 external tests,including restart recovery and the exact
v0.0.5upgrade.make ci, cold test cache: exit 0, 116.30 seconds. It ran 4 release-contracttests, 639 default and race tests, 20 simulation tests, 19 generator tests,
45 Transport network tests, 50 Shadow network tests, both resource tests,
and all fixed fuzz budgets.
make fuzz: exit 0 and completed 1,600,000, 225,000, and 2,250,000executions.
TestRunKeepsFuzzFailure: exit 0; its child fuzz callback returned exit 1and preserved the failure output.
31503688931
passed on this exact PR head: Go 1.25.12, Go 1.26.5 stable with
govulncheck, macOS, Windows, and aggregate
ci. Both Linux lanes completedall three fixed fuzz budgets.
Mutation Test
Temporarily changing the first contract expectation from
1,600,000to1,599,999madeTestMakefile_ReleaseCommandsKeepTestcheckfail with exit 1because the required command was absent. The mutation was restored.
Required Checks
make cipasses locally.time.Now().time.Sleepfor synchronization.