Skip to content

COPAUA0C: READ KEYLENGTH is no hole on mapped files; W6 text corrected (Part of #5278) - #5831

Merged
squid-protocol merged 7 commits into
mainfrom
churn/5278-20261021T0634Z
Oct 21, 2026
Merged

squid-protocol merged 7 commits into
mainfrom
churn/5278-20261021T0634Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Checklist: partial/done [c:595f3352]

Part of #5278 (slice 2 of 3). Stacked on #5823 (merged here): its C17 run-time guard is what removes the last COPAUA0C hole; merge #5823 first, then retarget/merge this.

Cross-repo: none.

Finding

det_survey.py --corpus aws-mainframe-modernization-carddemo --program .../COPAUA0C.cbl (with #5823): 344 of 344 statements translate, no hole, port compiles, nothing inferred. The three READ ... KEYLENGTH(LENGTH OF x) (CCXREF 16, ACCTDAT 11, CUSTDAT 9 bytes) are the file's full key on mapped files, so _keylength needs no change. They were holes only when the file was unmapped (the stub-only translation in test_det_mq.py). EXEC DLI no longer holds it either.

Changes (2 hand-written files)

  • docs/language_status/register/W6.md: stale "held by EXEC DLI, three KEYLENGTH forms, C17" text replaced with the measured result.
  • tests/cobol_mainframe/test_det_translate.py: class tests for READ / READ UPDATE through a data-name dataset with KEYLENGTH(LENGTH OF alias) (translates as without KEYLENGTH; alias shorter or longer than the key -> INVREQ RESP2 26).

Class table

KEYLENGTH on mapped files via Cics._keylength: READ full key (covered, new tests), READ GENERIC/GTEQ, DELETE, WRITE, REWRITE, STARTBR/READNEXT/READPREV (same function, existing tests in test_det_translate.py / test_read_resp2_5092.py).

Gates

pr_gates --fast 7/7, --ratchets 8/8 pass (JDK 17); guard tests + test_det_translate/test_det_mq pass (617). No golden bless (no parser change).

🤖 Generated with Claude Code

squid-protocol and others added 6 commits October 21, 2026 00:56
…me instead of refusing (C17; Part of #5278)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…LACING-TABLE, carrying register C17 (Part of #5278)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…6 text corrected (Part of #5278)

det_survey on CardDemo COPAUA0C (with C17's run-time guard): 344/344 translated, no hole, compiles.
W6.md named EXEC DLI, three KEYLENGTH forms and C17 as holders; none holds it. Tests pin the
named-dataset KEYLENGTH(LENGTH OF alias) class.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

Waiting on an owner decision (asked privately, 2026-10-21). Nothing is needed from contributors; work resumes once it is answered.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (79a4d9d) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 21, 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 21, 2026 11:26
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 11:27
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit a60cd11 into main Oct 21, 2026
54 checks passed
@squid-protocol
squid-protocol deleted the churn/5278-20261021T0634Z branch October 21, 2026 11:52
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