Skip to content

det/CICS: a program's channel DTO is no COMMAREA contract (Part of #8076) - #8148

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8076-20261108T0935Z
Nov 9, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8076-20261108T0935Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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 / XCTL COMMAREA(...) was typed with it and dto_for refused ("cannot convert"). It is not a Double/Float case, so no HFP codec was needed.

Generated._commarea_type in gitgalaxy/tools/cobol_to_java/det/cics.py now treats a DTO whose comment says "The containers X reads/writes" as no COMMAREA type. contract, links, xctl and target_contract use 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 --fast 9/9, --ratchets 9 pass, audit_check.py all clear, det_port.py check 271/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 before on the working tree; classified by counts only.

Lessons for agents

  • cics_census.py survey --baseline surveys the committed translator and ignores uncommitted edits: use survey --out DIR --blind-root B --label before (the label must be before for gap_prevalence).
  • --blind-root takes the parent of the clone (.../_shared-scratch/blind), not the clone.
  • cics_census.py check needs survey --baseline for HEAD first.

🤖 Generated with Claude Code

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

squid-shepherd Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 9, 2026 00:26
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 9, 2026 00:33
@squid-shepherd
squid-shepherd Bot merged commit 0b8e6e0 into main Nov 9, 2026
96 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8076-20261108T0935Z branch November 9, 2026 00:58
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