Repository navigation
Equivalence harness: inputs generated from record layouts (#3804) - #3808
Merged
Merged
Conversation
A dataset's input may be "@generate": records built from its copybook layout (tests/tools/equivalence_inputs.py) -- per PICTURE, edge values first (zero, one, the maximum and its negative, the smallest fraction), then spread; text at full width, short and blank; YYYY-MM-DD for date-shaped fields; FILLER blank. Primary keys are unique and never blank, an indexed dataset is in key order; "from" draws a field from another generated file (with "miss" for the not-found path), "values" with "every" fills a cartesian product; seeded, byte-identical per seed. A case may prove another case's port ("port_from"). carddemo-intcalc-generated: the CBACT04C port -- written against CardDemo's data -- on generated accounts, cross-references, category balances and disclosure groups (one group without rates: the DEFAULT fallback ran 11 times): ACCTFILE 30/30, TRANSACT 37/37, RETURN-CODE 0 = 0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
Contributor
…CodeQL cyclic import, #3808) equivalence_inputs builds on equivalence_common instead of importing the batch harness that calls it. The module is byte-identical to #3801's, so the two merge cleanly. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
…L unused import) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
This was referenced Oct 5, 2026
2 of 3 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.
Part of #3804 (epic #3803). This is the piece that makes a fresh estate testable: most repositories ship no data, and one sample file reaches only the paths its records do.
What it does
A dataset's input may now be
"@generate": records built from its copybook layout (tests/tools/equivalence_inputs.py).YYYY-MM-DDvalues. FILLER stays blank.fromrule draws a field from another generated file, so lookups find their row;missmakes some deliberately not, so not-found paths run too. Files are generated in dependency order, and a cycle is refused.valueswitheveryfills a cartesian product (every group × type × category).A case can also prove another case's port with
"port_from".Result
carddemo-intcalc-generatedruns the CBACT04C port, which was written against CardDemo's own data, on generated inputs:The port holds on data it was never written against.
Still to do for #3804
Tests
test_equivalence_inputs.pycovers:everyfills a cartesian product;EQUIVALENCE_E2E=1).The mainframe suite passes locally with end-to-end runs on: 705 passed.
🤖 Generated with Claude Code
https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g