Repository navigation
det: no cobolrt/cics in a project without CICS; Batch Badlands cases proven (Part of #7065) - #8873
Merged
Merged
Conversation
…proven (Part of #7065) A det port onto a generated project with no CICS package (a batch-only estate, estate-crucible BDLD) did not compile: runtime_files() always shipped cobolrt/cics/ (DetCics and DetMq import the project's cics.CicsTask / CicsSpec; DetJustify calls DetCics). has_cics(project) and runtime_files(cics=) leave it out there; project_runtime(package, project) picks both switches from the project, used by port_runner, equivalence_java, det_port and det_survey. estate-crucible becomes a case corpus (CRUCIBLE_CORPORA, at its [estate] pin; the checkout path now comes from each crucible's pin), with an estate options file (IBM defaults). A case's db2 ddl may be @case/ (BDLD ships a DCLGEN, no DDL). Three det cases, each proven locally through det_port.py run: est-bdld-bdldrpt 8/8 (RPTOUT), est-bdld-bdldckp 10/10 (1203 records past the RERUN interval, the job log), est-bdld-bdlddb2 16/16 (PROD.BDLD_SUMMARY 40/40, SQL 40/40). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…b/ always Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
squid-protocol
marked this pull request as ready for review
November 22, 2026 18:49
Contributor
… one bind names no ISOLATION / ENCODING) (Part of #7065) main's test_gap1_option_audit requires an ABSENT_OK row for every estate_options file; this PR's new estate-crucible.json had none (KeyError in ground-truth part 2/2). Co-Authored-By: Claude Opus 5.5 <[email protected]>
… est-bdld-bdlddb2 The shard planner fails when more than 25% of cases have no measured duration. Main sat just under that (carddemo-*, cruc-*, est-* cases never measured); this PR's three est-bdld cases tipped it over (51 of 198), failing four planner tests. The 24 durations are measured with proof_sweep.py --update-durations. The det job also failed on 'coverage ledger: est-bdld-bdlddb2: no entry'; the Db2 sweep proved it (2 runs, 3/3 paragraphs, 2/2 branches) and det_coverage_ledger.py update wrote the entry. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…t (the det job's 'no entry' failure), durations for both Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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 #7065 (Batch Badlands, slice: the level's programs translated onto the generated project and proven)
Checklist: partial [c:e739f1dd]
What
A det port onto a generated project with no CICS package did not compile. estate-crucible's Batch Badlands (BDLD) is the first batch-only estate to reach a proof.
runtime_files()always shippedcobolrt/cics/:DetCicsandDetMqimport the project'scics.CicsTask/CicsSpec, andDetJustifycallsDetCics. So every BDLD port failed withpackage com.gitgalaxy.modernized.cics does not existbefore any proof ran. CardDemo, CBSA and GenApp all have CICS, which is why it never showed.det/program.py:has_cics(project),runtime_files(..., cics=)leavescobolrt/cics/out without the package (as the batch forge already does for a SORT step's runtime), andproject_runtime(package, project)takes both switches from the project. Callers that passedhas_batch(project)now use it:port_runner.py,equivalence_java.py(2),det_port.py,det_survey.py.cics_case_ports.pyis CICS only and unchanged.mainframe_corpus.py:estate-crucibleis a case corpus (CRUCIBLE_CORPORA, at its existing[estate]pin, v0.8.0). The checkout path and env vars now come from each crucible's pin (path_env,allow_unpinned_env,default_dir), not cics-crucible's hard-coded ones.branch_solver.corpus_rootno longer assumes every crucible is cics-crucible.equivalence_db2.py: a case'sdb2.ddlmay be@case/..., as dataset inputs already can be. BDLD ships a DCLGEN and no DDL.tests/equivalence/estate_options/estate-crucible.json: IBM defaults, the same as cics-crucible's, with no CICS PARM.Cases (3 new, det, no committed port)
Proven locally through
det_port.py run(the det sweep's path), estate-crucible v0.8.0 BDLD:est-bdld-bdldrptest-bdld-bdldckpRERUN ... EVERY 1000 RECORDSest-bdld-bdlddb2BDLDCKP was the program refused at the level's first-time translate (2026-11-04). The first-time row in
levels.jsonis not touched (Open World rule 5).est-bdld-bdlddb2/BDLDSUM.ddlis the DCLGEN'sDECLARE TABLEwritten as aCREATE TABLE: the same columns, types and NOT NULL, and no key, because the DECLARE states none.Class / Sibling gaps
Class: the det runtime's parts that need a generated package the project may lack. Handled here:
cobolrt/cics/in a project with no cics package. Sibling gaps (not touched):det/mq.pyports MQI calls tocobolrt.cics.DetMq, which importsCicsTask. A batch MQ program in such an estate now fails on a missingDetMqinstead of a missingCicsTask. Either way it needs DetMq split from CICS (the MQSA level, Epic: IBM MQ runtime — MQI calls (MQOPEN/GET/PUT/CLOSE…) and MQ structures #4892).parm: nullfor a program withPROCEDURE DIVISION USING.equivalence.cobol_driverpasses no parameter list, so GnuCOBOL faults on the first LINKAGE reference (BDLDRPT: SIGSEGV atIF LS-PARM-LEN > 0). z/OS passes the halfword-prefixed list (Enterprise COBOL 6.4 Programming Guide, "Accessing main program parameters under z/OS").est-bdld-bdldrptstates"parm": ""and says why in its notes.PARM='MONTHLY'(BDLDRST RPT030) is not a case. The program moves 8 bytes of a 7-byte PARM, so the eighth byte is whatever storage follows the parameter list (oracle\x00, port space). It needs a declared difference or a PARM of 8 or more bytes, not a translator fix.Remaining slices
Batch MQ runtime without CICS (above). A harness fix for a null PARM to a USING program. #4890 utility runtime slices.
Gates
pyteston test_det_runtime_batch_only_7065, test_mainframe_corpus, test_cobolrt_api, test_estate_options, test_trials, test_det_coverage_ledger, test_harness_report, test_evidence_match_5162, test_post_merge_dispatch, test_det_sweep_plan, test_det_layout, test_sort_case_4268, test_job_case_4268, test_call_compare_4778, test_mutation_one_jvm_scope_4047, test_equivalence_cics_commarea, test_source_reads: all pass. The last full run was 268 passed, 22 skipped. One expected update:test_bare_fetch_takes_the_crucible...now lists both crucibles.ruff formatwith the pinned 0.17.4: clean. It rewraps one existing over-long line indet_survey.py, a file this PR touches.audit_check.py: ruff, dead-key, doc-refs, ast-accuracy and signal-coverage are OK. mypy reports 20 findings, none in a file this PR changes (they are incobol_to_java_uow_forge.pyanddet/stmt.py). nyx's local mypy is known to differ from CI.JAVA_HOMEset to JDK 17. nyx's default Java 21 has nojavac(a box issue, not this PR).pr_gates --ratchets,det_port.py check(which ports move). Moving ports is not expected, since every proven corpus has a cics package and so gets the same runtime as before. The det sweep's port diff will confirm that.🤖 Generated with Claude Code