Skip to content

det: model a COMMAREA OCCURS DTO property, dto-property (Part of #5565) - #5567

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5565-20261019T0302Z
Oct 19, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5565-20261019T0302Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5565 (first box only: dto-property).

Design: modelled, not refused. det/cics.py reads the DTO's // OCCURS n TIMES line, makes the property one Leaf of n items (layout bytes is the whole table, so one occurrence is bytes / n; a table whose bytes are not n equal items, a List of an unconvertible type, or a List with no OCCURS line is still refused by name), and the COMMAREA codec loops: occurrence i at offset + i * width (table_in / table_out). Dto.extent counts every occurrence.

Before / after holes (det_survey.py, CardDemo, burned; before = origin/main, after = this branch, both compile):

program before after
COPAUS0C 367/370, 3 holes (cdemoCpvsPaukeyPrevPg: a property the port cannot convert) 370/370, whole
COPAUS1C 190/193, 3 holes (2 x same, 1 x EXEC DLI REPL) 192/193, 1 hole (EXEC DLI REPL, #4893)

Evidence level: translated only (and javac-compiled). No equivalence case runs either program, so the new codec is not proven against GnuCOBOL here; the unit test pins the emitted offsets. Nothing about any existing proof is loosened (ports ratchet passes: no existing port moved).

Class table (OCCURS in a COMMAREA DTO): elementary item with own OCCURS (String / Integer / Long / Short / BigDecimal): handled here. Group OCCURS (fields listed once, "appear once"): already handled (#4765). POINTER under OCCURS: refused by name (#4270). See Sibling gaps in the report.

refusal_map.json: dto-property note narrowed to what is still refused, owner -> #5565. The committed evidence-report fixture still shows the old hole until the nightly refresh; test_support_matrix.py stays green.

Gates: pr_gates --fast 6/6, --ratchets 8/8, pre-PR tree-wide guards + test_support_matrix.py + new test green. Not run: Docker/e2e equivalence (needs a case; none exists for COPAUS).

Remaining slices (other boxes of #5565): unbound-file; scanner-input gaps (stand-in copybook inventory, CALL-target category, rule-catalogue feature keys).

🤖 Generated with Claude Code

…rt of #5565)

An elementary item's own OCCURS is a List<T> DTO property; the codec now places occurrence i at offset + i * width
instead of refusing it. CardDemo COPAUS0C is translated whole; COPAUS1C keeps only its IMS REPL hole (#4893).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 19, 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 19, 2026 03:23
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 03:32
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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