Skip to content

fix: make all structured input unbounded by default#301

Merged
camshaft merged 4 commits intomasterfrom
copilot/default-to-unbounded-entropy
Nov 3, 2025
Merged

fix: make all structured input unbounded by default#301
camshaft merged 4 commits intomasterfrom
copilot/default-to-unbounded-entropy

Conversation

Copy link
Contributor

Copilot AI commented Nov 1, 2025

When using run() instead of for_each(), tests call any() to generate values on-demand. The default max_len of 4096 bytes artificially limited available entropy, causing coverage issues for larger test runs. This also causes problems for generator-based harnesses and isn't obvious from the code that the input is artificially constrained.

This change, instead, defaults to only limiting input length for unstructured input i.e. byte slices. This should make things more predictable and is a better default. The with_max_len function is always there as a way to override.

…ze::MAX

Co-authored-by: camshaft <799311+camshaft@users.noreply.github.com>
Copilot AI changed the title [WIP] Update run function to default to unbounded entropy Default to unbounded entropy for run() function Nov 1, 2025
Copilot AI requested a review from camshaft November 1, 2025 20:42
@camshaft camshaft changed the title Default to unbounded entropy for run() function fix: default to unbounded entropy for run() function Nov 3, 2025
@camshaft camshaft changed the title fix: default to unbounded entropy for run() function fix: make all structured input unbounded by default Nov 3, 2025
@camshaft camshaft marked this pull request as ready for review November 3, 2025 17:28
@camshaft camshaft merged commit c34a6fd into master Nov 3, 2025
6 of 9 checks passed
@camshaft camshaft deleted the copilot/default-to-unbounded-entropy branch November 3, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants