Repository navigation
det/CICS: a program's channel DTO is no COMMAREA contract (Part of #8076) - #8148
Merged
Merged
Conversation
) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
3 tasks done
13 tasks done
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 #8076 (blind trial #8073, tools only). Slice 3: re-measure the 3 scrubbed keys, then model the type the survey finds.
What changed
The 3 scrubbed keys (4 holes) are one class: the det CICS translator read a program's channel-in DTO (
<Prog>ChannelIn, one property per container) as its COMMAREA contract, so a RETURN / LINK / XCTLCOMMAREA(...)was typed with it anddto_forrefused ("cannot convert"). It is not a Double/Float case, so no HFP codec was needed.Generated._commarea_typeingitgalaxy/tools/cobol_to_java/det/cics.pynow treats a DTO whose comment says "The containers X reads/writes" as no COMMAREA type.contract,links,xctlandtarget_contractuse it. The COMMAREA then falls back to the record DTO or to the bytes of the named area, which is IBM's meaning (the COMMAREA is the bytes of the area).Tests:
tests/cobol_mainframe/test_channel_contract_8076.py, on an authored fixture (no estate source read, copied or edited). Two of its five tests fail on the old code and reproduce the hole; all pass now.Class / Sibling gaps
Class: a channel DTO is mistaken for the COMMAREA contract wherever the translator asks for the program's or a callee's contract (RETURN, LINK, XCTL). Fixed at all four call sites.
Sibling gaps, not covered and not filed: (1) Boolean (PL/I BIT) and
byte[]DTO properties, and the OCCURS-versus-List mismatch: no reproduction, no burned analogue. (2) Double/Float DTO properties: no instance in the survey, so no HFP codec. (3) LINK/XCTL to a channel-based callee with a COMMAREA now passes bytes with no DTO typing. No rule-10 labels were used.Checklist: done [c:02a9d050]
Checklist: done [c:4779b787]
Blind re-measure (counts only): 25 -> 28 whole of 29, 28 compile, 29/29 accounted. The remaining program is the previously named clone source defect.
Census
census check: HEAD (worktree) vs origin/main 06e354c, 127 CICS programs: whole 115 -> 115 (census 10 -> 10, burned 105 -> 105), accounted 115 -> 115, gap rows 10 -> 10
Gates
pr_gates --fast9/9,--ratchets9 pass,audit_check.pyall clear,det_port.py check271/271 unchanged, compile survey 28/28, time ratchet 0 over limit, 876 related tests pass. No golden bless (no parsing logic touched).Facts checked
Re-measured with
survey --out ... --label beforeon the working tree; classified by counts only.Lessons for agents
cics_census.py survey --baselinesurveys the committed translator and ignores uncommitted edits: usesurvey --out DIR --blind-root B --label before(the label must bebeforeforgap_prevalence).--blind-roottakes the parent of the clone (.../_shared-scratch/blind), not the clone.cics_census.py checkneedssurvey --baselinefor HEAD first.🤖 Generated with Claude Code