Repository navigation
det: HLASM + EXEC CICS front end lowers zECS ZECSNC to COBOL; ZECS002 refused by name (Part of #5859) - #6826
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s the DFHEIENT shape Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… fingerprint reads det/) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
|
|
||
|
|
||
| SUBSET = frozenset({"B", "BC", "BCR", "BAS", "L", "LA", "ST", "STH", "CH", "CLC", "CLI", "MVC", "OC"}) | ||
| _IGNORED = frozenset({"AMODE", "RMODE", "PRINT", "LTORG", "END", "EJECT", "SPACE", "TITLE"}) |
squid-shepherd Bot
pushed a commit
that referenced
this pull request
Oct 28, 2026
…rt of #5859) (#6879) ZECSNC lowers and translates since #6826, so it is core work, not a held member. ZECS002 stays listed apart until slice 3 lowers it. 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 #5859. Assembler slice 1: an HLASM + EXEC CICS front end for the det translator. With it, zECS
ZECSNC.asmis translated instead of refused whole.Checklist: partial [c:e14a97c1] -- slice 1 of the assembler path. The front end lowers HLASM to COBOL (Design.md). ZECSNC is lowered and translated with 2 holes, both in
det/cics.pyoption modelling. Left: 2a (those options, giving L1), 2b (an equivalence case, giving L2), 3 (ZECS002), and 4 (an interpreter cross-check).c:f5d905de(ZUIDSTCK): already done. #5945 is closed, register X69 holds the assumption, andtests/equivalence/zecs-zecs001exists. Nothing in this PR touches it.c:2083e51d(the ladder shows refused assembler programs separately): untouched.What changed
gitgalaxy/tools/cobol_to_java/det/hlasm.py(new).lower_textlowers a command-level CICS assembler program to fixed-format COBOL, following the BLL precedent (X56).0CLngroups and EQU lengths. DFHEISTG becomes WORKING-STORAGE; the USING'd DFHEICAP DSECT becomes LINKAGE DFHCOMMAREA.HL-RnCOMP-5 cells.BAS/BCRbecome return ids dispatched byGO TO DEPENDING ON, with anASRAabend fallback.service_stubsynthesizes the CICS service stub, since the forge makes none for.asm.det/source.py.assembler_lowered:program_linesreads an accepted.asmas its lowering. A refused one keeps the scanner/det: detect and refuse by name macro-level CICS and CICS Assembler programs #5121 shape (<file>:<line>: CICS Assembler not supported (DFHEIENT): ...) and appends the lowering's reason.tests/tools/det_survey.py.assembler_rowsroutes a lowered member throughsurvey_programinstead of writing a refusal row.survey_programwrites the synthesized stub for an.asmprogram.docs/language_status/hlasm_cics_design.md. The decision, IBM references, subset, storage model, CC rules, assumptions, oracle statement and remaining slices.tests/cobol_mainframe/test_hlasm_lowering_5859.py. 33 tests in 0.3 s:DC 08XL01'40').The plan changed
The plan said ZECSNC would reach L1. It stays at L0, but the reason moves from "refused whole" to "2 holes left":
EXEC CICS ABEND ... NOHANDLE(line 103);WRITE OPERATOR ... TEXTLENGTH ROUTECODES NUMROUTES EVENTUAL(line 260).cics.pymodels only plain TEXT (X32).Both need
det/cics.pyplus the stub, a 6th file over the cap, so they are slice 2a.The CC is resolved statically (setter directly before the BC), not held in a CC cell.
No static read-before-write refusal. DFHEISTG's initial fill is a stated assumption instead.
A synthesized CICS stub was needed. Without one, det treats the program as non-CICS.
Gates
All run locally on the branch (selfscan venv, via
heavy-run.shwhere heavy):tests/tools/: 3298 passed, 1 failed. The failure wastest_the_inputs_cover_what_the_translator_imports:hlasm.pyimportedgitgalaxy.core.hlasm_cics, which the translator fingerprint does not read. Fixed by mirroring its two statement helpers in det (ascics_macro_leveldoes). Re-run of that file plus the 5859, 5121 and 5158 tests: 152 passed.time_ratchet.py check --times: 3322 tests checked, 0 over the limit. The new test takes 0.3 s.audit_check.py: ruff, dead-key and ast-accuracy pass. One mypy finding (a loop variable reused across Item and str) is fixed;mypy_audit --ciis clean.pr_gates.py --fast: 9/9 pass.--ratchets: 9 pass, 0 fail.det_port.py check --work <fresh>: 180/180 ports unchanged.det_survey.pyhas no findings beyond main's own.Class / Sibling gaps
The class is assembler members in the burned estates. Only zECS has command-level CICS assembler (ZECSNC, ZECS002); both are covered here, as lowered or refused by name.
app/asm/COBDATFT.asm,MVSWAIT.asmandmaclib/*.macare batch assembler CALLed from COBOL, with no EXEC CICS and no DFHEIENT. They are a different mechanism (CALL target, LE linkage) and not this front end's entry point; they stay refused / out of scope.src/base/asm_src/DFHNCOPT.assemble, a named-counter options table (a CICS table macro), with no DFHEIENT and no EXEC CICS. It is a resource definition, not a program, so it is not in this class..asm .assemble .bal .hlasm .mac), checked over the corpora.Remaining slices
det/cics.pyplus the stub and a register entry forABEND NOHANDLEand the WRITE OPERATOR routing options. Gives ZECSNC L1.tests/equivalence/zecs-zecsnc/, with a lowering hook inequivalence_cics.pybesidebll.lower_textand an X register entry ("the oracle runs the lowered program"). Gives L2.X'40'data;EXEC CICS VERIFY.Facts checked
docs/language_status/register/X69.mdandtests/equivalence/zecs-zecs001exist.det_survey.py, kind cics, 54 statements, 2 holes). The other 5 zecs COBOL programs are unchanged (0 holes).ZECS002.asm:68: CICS Assembler not supported (DFHEIENT): outside the HLASM lowering's subset (#5859): DC 08XL01'40' at line 319; ....test_det_cics_macro_refusal_5121.pyandtest_cics_census_assembler_5158.pypass unedited (42 passed).Lessons for agents
GO TOoperands (GO TO ['SYSDATE','SYSDATE'], "HOLE does not parse").runTask(CicsTask. A program the forge makes no stub for (an.asm) gets the non-CICS fallback, and every EXEC CICS becomes a hole with "no such item EIB...".ruff check --fix/ruff formatover a whole pre-existing file that main leaves unformatted (tests/tools/det_survey.py). It drops# noqacomments and churns unrelated lines; reapply only your hunks.🤖 Generated with Claude Code