Skip to content

Add more decision points#154

Open
Soupstraw wants to merge 5 commits intomasterfrom
jj/more-decision-points
Open

Add more decision points#154
Soupstraw wants to merge 5 commits intomasterfrom
jj/more-decision-points

Conversation

@Soupstraw
Copy link
Contributor

@Soupstraw Soupstraw commented Mar 5, 2026

This PR adds AntiGen decision points to prelude term generators, so that when zapped, the type of the will change to something completely different.

Because of #155, this will sometimes produce valid values after zapping, since the zapped term might get overwritten by nubOrdBy. This was actually an issue before, but there were no tests to actually catch that.

@Soupstraw Soupstraw changed the title WIP Add more decision points Mar 5, 2026
@Soupstraw Soupstraw marked this pull request as ready for review March 6, 2026 10:11
Soupstraw and others added 5 commits March 6, 2026 12:11
Extract genAndValidateRule and genAndValidateCddl from genAndValidateFromFile
to enable reuse for testing Huddle schemas. Add "Generated value validates"
tests that verify generated CBOR values pass validation.

This exposes a bug in optionalMapExample where the generator cannot reliably
produce 10 unique keys from a 10-element range (1..10), causing most generated
maps to have fewer than the required 10 entries.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The generator cannot reliably produce unique keys for maps where the
key range size equals the required entry count. This will be addressed
in a separate PR.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Soupstraw Soupstraw force-pushed the jj/more-decision-points branch from 7d3f0c7 to 9c73e92 Compare March 6, 2026 10:12
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.

1 participant