Repository navigation
cics forge: an opaque DFHCOMMAREA takes the record its flows pass (#4464) - #4499
Closed
squid-protocol wants to merge 1 commit into
Closed
squid-protocol wants to merge 1 commit into
squid-protocol wants to merge 1 commit into
Conversation
) COSGN00C's LINKAGE DFHCOMMAREA is an opaque ODO byte area, and the engine pairs no COMMAREA with it (every XCTL into it is data-driven; its RETURN TRANSID(CC00) to itself is unresolved because the CSD also pairs CC00 with COCRDLIC via a DEFINE PROGRAM ... TRANSID). Its facade took none, so the equivalence harness's java-facade side refused 11 of 12 scenarios. The CICS forge now gives a program with an opaque DFHCOMMAREA the record that its RETURN TRANSID to its own transactions (and any resolved flow into it) passes, as the estate's single DTO for that record (name, file, width, field count). It refuses by name in the commarea gap when the flows disagree, a data-driven site names another record, or no single DTO carries it. A RETURN TRANSID to the sender's own transaction counts as a self-RETURN in the #4427 conversation typing. carddemo-signon resurfaced (port_surface.py equivalence) and re-proven: runTask 12/12, java-facade 12/12; stale mark cleared, dropped from facade_baseline.json. Co-Authored-By: Claude Opus 5.5 <[email protected]>
3 tasks
Contributor
This was referenced Oct 5, 2026
Owner
Author
|
Superseded by the merge train #4524 (merged as 8137353), which carries this PR's commits plus a single regeneration of the generated files on top of main. 🤖 Generated with Claude Code |
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.
Closes #4464.
Problem
CardDemo's COSGN00C declares an opaque DFHCOMMAREA (
LK-COMMAREA PIC X(01) OCCURS 1 TO 32767 DEPENDING ON EIBCALEN) and continues its pseudo-conversation withRETURN TRANSID(CC00) COMMAREA(CARDDEMO-COMMAREA). The engine pairs no COMMAREA with it for two reasons. Every XCTL into it is data-driven (via: moves). Its RETURN's callee is unresolved because the CSD also pairs CC00 with COCRDLIC throughDEFINE PROGRAM(COCRDLIC) ... TRANSID(CC00). So the generated façade washandleTransaction(String)/handleLink(), and the java-facade side refused 11 of 12 scenarios.Change (generator only:
cobol_to_java_transaction_forge.py)New
CicsForge._plan_opaque_commareaspass. It runs for a program with no COMMAREA, no channel, and a LINKAGE DFHCOMMAREA that is an opaque byte area (one alphanumeric leaf, e.g. ODOPIC X). The program's COMMAREA becomes the record that flows into it pass:RETURN TRANSIDto one of its own transactions (callee unresolved or itself)That record is given as the estate's one DTO matching it on name, file, width and field count. Extended copies such as
Cobil00cCarddemoCommareado not match.The gap names the reason when it refuses: the flows pass different records, a data-driven site into it
passesanother record name, or no DTO (or several) carries the record.In the Generator: CICS facades type the COMMAREA per program, but a pseudo-conversation carries it across programs #4427 conversation typing, a RETURN TRANSID to the sender's own transaction counts as a self-RETURN, and the crossing notes name it.
COSGN00C now generates
public Object handleTransaction(String transid, CarddemoCommarea request)andpublic CarddemoCommarea handleLink(CarddemoCommarea request). Its response isObjectbecause the task can XCTL into programs with other DTOs, the same as COMEN01C. Nothing is special-cased for COSGN00C.Generated-output impact, regenerated before and after:
src/.Evidence
tests/cobol_mainframe/test_cics_opaque_commarea_4464.pycovers the shape (opaque ODO DFHCOMMAREA plus RETURN TRANSID(own) COMMAREA(record) with an unresolved callee), the cases that are not opaque, and each refusal by name. The Generator: CICS facades type the COMMAREA per program, but a pseudo-conversation carries it across programs #4427, endpoints and region tests still pass.port_surface.py equivalence --cases carddemo-signonreplaced handleTransaction and handleLink.evidence.py prove carddemo-signongives proven: runTask 12/12, java-facade 12/12. The provenancestalemark (Equivalence harness: prove CICS ports through their deployed entry points (java-facade side) (#4449) #4455) is cleared, with areprovenhistory event. carddemo-signon is dropped fromtests/equivalence/facade_baseline.json.--det-only --skip-db2): as expected, 10/37.Follow-up owed
#4490 (det façades copy the stub's signature) has not merged. Once it does, merge main and drop carddemo-signon from
det_sweep_baseline.jsonwithproof_sweep.py --det-only --skip-db2 --update-baseline. The det port of COSGN00C should then take the COMMAREA with no det change.Note
The engine's
_transaction_programresolves CC00 ambiguously because it treatsDEFINE PROGRAM ... TRANSIDas a transaction pairing. An explicitDEFINE TRANSACTION ... PROGRAMarguably outranks it. This PR doesn't change the engine; the generator copes either way.🤖 Generated with Claude Code