Skip to content

det: no cobolrt/cics in a project without CICS; Batch Badlands cases proven (Part of #7065) - #8873

Merged
squid-protocol merged 8 commits into
mainfrom
det-batch-only-runtime-7065
Nov 23, 2026
Merged

squid-protocol merged 8 commits into
mainfrom
det-batch-only-runtime-7065

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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 shipped cobolrt/cics/: DetCics and DetMq import the project's cics.CicsTask / CicsSpec, and DetJustify calls DetCics. So every BDLD port failed with package com.gitgalaxy.modernized.cics does not exist before 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=) leaves cobolrt/cics/ out without the package (as the batch forge already does for a SORT step's runtime), and project_runtime(package, project) takes both switches from the project. Callers that passed has_batch(project) now use it: port_runner.py, equivalence_java.py (2), det_port.py, det_survey.py. cics_case_ports.py is CICS only and unchanged.
  • mainframe_corpus.py: estate-crucible is 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_root no longer assumes every crucible is cics-crucible.
  • equivalence_db2.py: a case's db2.ddl may 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:

case program / step translated proof
est-bdld-bdldrpt BDLDRPT, BDLDNITE RPT030 8/8 PROVED, RPTOUT 1/1
est-bdld-bdldckp BDLDCKP, BDLDCKJ CKP010, 1203 generated records past RERUN ... EVERY 1000 RECORDS 10/10 PROVED, job log 1/1
est-bdld-bdlddb2 BDLDDB2, BDLDNITE LOAD020 (IKJEFT01) 16/16 PROVED, PROD.BDLD_SUMMARY 40/40, SQL 40/40

BDLDCKP was the program refused at the level's first-time translate (2026-11-04). The first-time row in levels.json is not touched (Open World rule 5).

est-bdld-bdlddb2/BDLDSUM.ddl is the DCLGEN's DECLARE TABLE written as a CREATE 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):

  • Batch MQ in an estate without CICS. det/mq.py ports MQI calls to cobolrt.cics.DetMq, which imports CicsTask. A batch MQ program in such an estate now fails on a missing DetMq instead of a missing CicsTask. 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: null for a program with PROCEDURE DIVISION USING. equivalence.cobol_driver passes no parameter list, so GnuCOBOL faults on the first LINKAGE reference (BDLDRPT: SIGSEGV at IF 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-bdldrpt states "parm": "" and says why in its notes.
  • BDLDRPT with 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

  • pytest on 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 format with the pinned 0.17.4: clean. It rewraps one existing over-long line in det_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 in cobol_to_java_uow_forge.py and det/stmt.py). nyx's local mypy is known to differ from CI.
  • Local proofs ran with JAVA_HOME set to JDK 17. nyx's default Java 21 has no javac (a box issue, not this PR).
  • Not run: 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

…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]>
@squid-protocol
squid-protocol marked this pull request as ready for review November 22, 2026 18:49
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

squid-protocol and others added 5 commits November 22, 2026 14:09
… 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]>
@squid-protocol
squid-protocol merged commit 9e1124c into main Nov 23, 2026
72 checks passed
@squid-protocol
squid-protocol deleted the det-batch-only-runtime-7065 branch November 23, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant