Repository navigation
equivalence: a SORT case, CardDemo TRANREPT STEP05R lowered and proven against the oracle (Part of #4268) - #7251
Conversation
…n against the oracle (Part of #4268) program_source may be @case/<file>: a program the case itself carries, as a JCL SORT step lowered to COBOL (det/dfsort.py) is, since no corpus holds it. One helper, equivalence_common.program_file, adopted by equivalence.py and det_port.py. The case carddemo-sort-tranrept is GnuCOBOL against the det port over 50 unsorted records (distinct keys, the INCLUDE keeping and dropping); evidence recorded, mutation pending. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #7251 @ 99d8c55: 1 failed check(s) == shard 2/2 (failure) -- real |
…ollating sequence, test_det_layout reads a case-local program (Part of #4268) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (d68ec11) is not the one a maintainer labelled |
…art of #4268) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
Part of #4268
Checklist: partial [c:2148d504] -- the case is proven against the oracle for a ZD key and a CH date INCLUDE; the CH-key collation case (waits on #7247), the concatenated-SORTIN COMBTRAN case and the L5 mutation run are left
What changed
No burned-estate COBOL source uses the SORT / MERGE verbs (CardDemo, CBSA, GenApp, zECS, DBB, async credit-card all grepped), so the burned SORT programs are the COBOL that
det/dfsort.pylowers from CardDemo's JCL cards. They were proven only intest_dfsort_4268.py, never as an equivalence case.program_sourcemay now be@case/<file>, a program the case carries (same convention as dataset inputs). One helper,equivalence_common.program_file, adopted at the fiveequivalence.pysites and indet_port.py(translate and the parity check).carddemo-sort-tranrept: CardDemo job TRANREPT step STEP05R (SORT FIELDS=(TRAN-CARD-NUM,A)+ INCLUDE on the date).DFSORTST.cblis the lowered step,sortin.txtis 50 unsorted records (one per card ofcarddemo-trnrpt's POSTTRAN output, dates cycled so the INCLUDE keeps and drops, both boundaries taken), SORTOUT compared under CVTRA05Y. GnuCOBOL runs the program, the det port is its translation: PROVED on 1 run, 1/1 paragraphs, 0/0 branches (the lowered program has no branch in its own paragraphs). Evidence level: translated whole (19/19, no holes); executed-equivalent 1 scenario, no diffs; mutation pending, no approval.test_sort_case_4268.pypins the committed.cblto the dfsort output, the input's properties (distinct keys, unsorted, keeps and drops) and that every@case/program resolves.MUTATION_PENDING/MUTATION_UNREVIEWEDratchet entries (no mutation run yet),fact_crosscheck.case_programsskips a case-local program (it checked the clone).File-cap exception: the case directory is the case (program, input, LICENSE/NOTICE of the source, generated det port and its provenance); the hand-written code is the helper, its 2 adopters, the test, and three one-line edits (fact_crosscheck skip, two mutation-pending ratchet entries) without which main's own tests go red on a new record.
Oracle and assumptions
The oracle is GnuCOBOL plus our stub, not z/OS. The lowering of the DFSORT step to a COBOL SORT is the assumption (register F4, IBM SC23-6878). No EQUALS on the step, so equal keys with differing bytes stop the port by name; the input has distinct keys. The key is ZD and the date compare is CH over digits and hyphens, where EBCDIC and byte order agree (#4035): the case does not claim CH collation over letters.
Class / Sibling gaps
Class: a lowered JCL utility step as an equivalence case (the program is in no corpus). This slice is the SORT with a ZD key and a CH INCLUDE. Siblings, each with the burned-estate program that needs it:
app/jcl/COMBTRAN.jcl): concatenated SORTIN, CH key; its own case.samples/jcl/SORTTEST.jcl): EQ INCLUDE on one date.DFSORTST.cbl(it gains the collating sequence) and add a letter-keyed case. Nothing burned sorts a CH key over letters yet.program_sourceto a corpus clone and would miss a@case/path:construct_map.scan,port_invariance.sweep_pairs,ladder_gaps,strengthen,estate_evidence,publish_examples. No test covers them with this case; they are not run by CI today.fact_crosscheckis fixed here.det_mutation.py run carddemo-sort-tranrept).Cross-repo
None. The corpus pin is unchanged; the case input is derived from CardDemo's own data (LICENSE and NOTICE copied).
Overlap
Builds on, and does not touch, #7247 (
det/dfsort.py, F4.md,test_dfsort_collation_4268.py). When it merges,test_the_committed_program_is_the_dfsort_loweringfails untilDFSORTST.cblis regenerated and the case re-proven.Lessons for agents
port/provenance.jsonwith"translator": "det", orport-surfacelooks for a generated class that does not exist.mutation: nullneeds entries in bothMUTATION_PENDING(test_evidence.py) andMUTATION_UNREVIEWED(test_estate_evidence.py).🤖 Generated with Claude Code