Repository navigation
det: model EXEC CICS READ ... INTO LENGTH (#4436) - #4453
Merged
Merged
Conversation
A keyed READ's LENGTH is now in-out on both sides, per IBM's EXEC CICS READ: the record goes INTO, truncated to LENGTH with LENGERR (RESP2 11) when longer, and LENGTH is set to the record's length on NORMAL / LENGERR. - det translator: Cics.read_length emits DetCics.readInto and the set-back; a literal / LENGTH OF equal to INTO's length translates as before. READNEXT / READPREV and RBA browses still refuse any other LENGTH (#4411). - harness: GGCREAD gets LENGTH through GG-LEN (it was handed LENGTH OF INTO, so both sides ignored LENGTH and agreed) and sets it back. - refused by name on both sides: negative LENGTH, a record moved past INTO (X6 storage layout), LENGERR on READ UPDATE (IBM silent on the hold). - oracle_assumptions.md X14; design-doc finding; case notes. Re-proven: genapp-lgucvs01, genapp-lgupvs01, genapp-lgucdb01, genapp-lgupdb01 (det), and the committed LGUPDB01 model port (evidence record refreshed). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
Contributor
squid-protocol
marked this pull request as ready for review
October 5, 2026 14:22
This was referenced Oct 5, 2026
Closed
squid-protocol
added a commit
that referenced
this pull request
Oct 5, 2026
…ncluded (#4449) After #4436 (#4453) merged, genapp-lgupdb01's runTask side passes, so it is proven with the java-facade side too. java-facade passes 1/5: the det port LGUPVS01's handleLink is a throwing stub (#4465, the same root cause as cbsa-inqacc / ABNDPROC). Ledgered in facade_baseline.json and its provenance marked stale. The other 19 were re-proven on the merged harness. Results are unchanged: 17 proven; signon (#4464) and inqacc (#4465) fail. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
This was referenced Oct 5, 2026
This was referenced Oct 17, 2026
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.
What
EXEC CICS READ ... INTO LENGTH(x)was refused after #4411 (PR #4432) unlessxwas INTO's own length. GenApp LGUCVS01 and LGUPVS01 lost their proofs to that refusal. This PR models a keyed READ's LENGTH the way IBM's EXEC CICS READ describes it:The harness ignored LENGTH too. Its stub (
GGCREAD) was givenLENGTH OF INTO, so both sides ignored LENGTH and still agreed. That is why the earlier GenApp proofs held. The stub now gets LENGTH throughGG-LENand sets it back.Changes
det/cics.py:Cics.read_lengthemitsDetCics.readIntoplus the set-back. A literal orLENGTH OFequal to INTO's length translates exactly as before.DetCics.readInto/ggcics.cGGCREAD refuse at run time (98 /UnsupportedOperationException):oracle_assumptions.mdgets X14. Also a finding indet_port_design.md, and updated notes in the GenApp case files.Proof
det_port.py run, all PROVED:In every scenario, LENGTH (EIBCALEN-derived, or 225 from LGUPDB01's LINK) differs from INTO (1024) and from the record (225 / 64).
The committed LGUPDB01 model port was re-proven:
evidence.py prove genapp-lgupdb01gives proven, unapproved. The evidence record is refreshed.Tests:
test_det_translate.py,test_equivalence_cics.py,test_evidence.py,test_proof_reach.pyandtest_equivalence_faults.pyran with tree-sitter-language-pack installed: 207 passed. The 2 skips are the opt-in Docker e2e tests.Not covered
No proven scenario reaches LENGERR. Every non-NORMAL READ in GenApp LINKs LGSTSQ (X6), and both READs are UPDATE. The truncation path is pinned by unit tests only.
Closes #4436
🤖 Generated with Claude Code
https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz