Repository navigation
trial: a program that sets RETURN-CODE has an output channel (Part of #3806) - #5523
Merged
Merged
Conversation
…3806) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 18, 2026 19:43
squid-protocol
enabled auto-merge (squash)
October 18, 2026 19:52
This was referenced Nov 16, 2026
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 #3806 (slice: harness extension raising batch-trial eligibility).
_no_outputintests/tools/trial.pydeclared a batch program out of scope as "writes no file and DISPLAYs nothing" even though the equivalence harness already compares the step's RETURN-CODE (equivalence.py). A program now has an output channel if it opens a file for OUTPUT/EXTEND/I-O, has a PROCEDURE DIVISION DISPLAY (#5411), or sets RETURN-CODE (... TO RETURN-CODE,COMPUTE RETURN-CODE,... GIVING RETURN-CODE). A read, a comment, a longer name (WS-RETURN-CODE,RETURN-CODE-X) or a data-division mention is not a set. The comment/PROCEDURE stripping is now shared by both detectors (_procedure_body).Measured (
trial.py preview, all six burned estates, this branch):4 of 127 eligible (the issue's baseline was 2 of 127; #5411 measured CardDemo at 2 of 44 before this change). The remaining ~117 are CICS / IMS / Db2, out of scope by design for the batch harness; the only batch lever left on the burned estates is the 9 layout-less CardDemo inputs (next checklist item, #3804 follow-up).
Not verified: that the harness proves a RETURN-CODE-only program end to end for the newly eligible CardDemo program (not run;
trial startis not run on a burned estate).Tests:
tests/cobol_mainframe/test_trials.py::test_return_code_is_an_output_channel_but_only_when_set(4 set forms eligible, 5 non-set forms out of scope). Gates:audit_check.pyclear (ruff/mypy/dead-key/ast-accuracy),test_trials.py9 passed. No engine parsing touched, no golden bless.Checklist: partial [c:ce9d5d36] -- the stdout and RETURN-CODE channels are in and preview now shows 4 of 127, but more eligibility on burned estates needs the layout-less input slice (9 CardDemo programs); the rest is CICS/IMS/Db2 by design
Sibling gaps
_input_without_layout: 9 CardDemo programs (Equivalence harness: generate test inputs from record layouts (any estate testable, edge cases included) #3804 follow-up; core).Lessons for agents
binon PATH beforeaudit_check.py(it shells out to baremypy).docs/language_status/fresh_estate_trials.mdis generated bytrial.py report; a per-estate preview table cannot live there, use the PR body.Cross-repo: none.
🤖 Generated with Claude Code