Skip to content

det: batch file runtime for no-JCL file-owning estates; WRITE phrase holes named (Part of #6065) - #6111

Merged
squid-protocol merged 4 commits into
mainfrom
churn/6065-20261022T2340Z
Oct 23, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/6065-20261022T2340Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6065 (slice 1 of 2).

Owner decisions

Owner OK (phone, 2026-10-22): go ahead. Fix #6065: emit the batch runtime (CobolFiles) for estates with file-owning main programs but no application JCL job, and model WRITE ... ADVANCING per IBM (named holes for the rest); burned estates' generated output unchanged; post the dsf/zopeneditor before/after survey counts on the issue. Copy the Owner OK line into the PR body under ## Owner decisions.

What changed

File Change
cobol_to_java_batch_forge.py file_runtime_only: a no-JCL estate with an unscheduled file-owning main program gets the file runtime (CobolFiles, Sysout, CobolAbend, Dd, DatasetResolver), not the Spring job classes. CICS-only / file-free estates still get nothing.
det/stmt.py WRITE ... BEFORE/AFTER ADVANCING and other trailing phrases become holes that name the phrase (was a generic hole).
tests/cobol_mainframe/test_det_write_advancing_6065.py 10 tests.

Survey (det_survey.py --no-compile)

corpus before after
dsf 0/7 whole, 231/318 stmts 0/7 whole, 309/334 stmts
zopeneditor-sample 2/5 whole, 595/632 unchanged

Burned estates: generated src/ trees are identical before/after (diff -r); the CICS-only async-credit-card estate still has no batch package. det_port.py check: 178/178 ports unchanged.

Remaining slices

  • Slice 2: model ASA carriage control for AFTER ADVANCING n/PAGE (new runtime class, conditional runtime_files, ADV/LINAGE detection in program.py, ~6 hand-written files). Editing shared DetFiles.java moved 108 ports, so it must not be touched.

Sibling gaps

  • LINAGE is not parsed (needs program.py).
  • ORGANIZATION LINE SEQUENTIAL is treated as record-sequential, no newline framing.
  • AT END-OF-PAGE / EOP is only a generic "grammar node eop" hole.
  • No burned program uses ADVANCING, so Part 2 stays translation-only (nothing to prove).

Gates

pr_gates --fast 7/7, --ratchets 9/9 pass, audit_check clear, new tests pass.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 23, 2026 01:27
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 01:31
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 355b3c5 into main Oct 23, 2026
86 checks passed
@squid-protocol
squid-protocol deleted the churn/6065-20261022T2340Z branch October 23, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

det: batch file I/O holes in estates without an application JCL job (no CobolFiles), and WRITE ... ADVANCING

1 participant