Skip to content

trial: a program that sets RETURN-CODE has an output channel (Part of #3806) - #5523

Merged
squid-protocol merged 1 commit into
mainfrom
churn/3806-20261018T1931Z
Oct 18, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/3806-20261018T1931Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #3806 (slice: harness extension raising batch-trial eligibility).

_no_output in tests/tools/trial.py declared 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):

estate eligible out of scope blockers
CardDemo 3 41 25 CICS, 9 layout-less inputs, 4 IMS, 2 no channel, 1 Db2
DBB MortgageApplication 1 5 3 CICS, 2 no channel
CBSA 0 31 30 CICS, 1 Db2
GenApp 0 31 31 CICS
zECS 0 5 5 CICS
cics-async 0 10 10 CICS

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 start is 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.py clear (ruff/mypy/dead-key/ast-accuracy), test_trials.py 9 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

Lessons for agents

  • Put the selfscan venv's bin on PATH before audit_check.py (it shells out to bare mypy).
  • docs/language_status/fresh_estate_trials.md is generated by trial.py report; a per-estate preview table cannot live there, use the PR body.

Cross-repo: none.

🤖 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 18, 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 18, 2026 19:43
@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 19:52
@squid-protocol
squid-protocol merged commit 8b3f5a4 into main Oct 18, 2026
43 checks passed
@squid-protocol
squid-protocol deleted the churn/3806-20261018T1931Z branch October 18, 2026 20:04
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.

1 participant