Repository navigation
Fix #4009: CicsTask records SEND TEXT length/options, RECEIVE MAP, and EIBCALEN - #4017
Merged
Merged
Conversation
squid-protocol
force-pushed
the
fix/4009-cicstask-event-model
branch
from
September 29, 2026 18:37
b6e1123 to
f245b36
Compare
…d EIBCALEN The generated CicsTask now records what the CICS crucible compares: - sendText(from, length, options...): SEND TEXT's LENGTH and sorted options; sendText(text) keeps its own length and no options. - receive(map, mapset, type) records a RECEIVE-MAP event with its RESP (NORMAL, or MAPFAIL when nothing was received); receive(map, type) too. - EIBCALEN beside the DTO: CicsTask(transid, aid, commarea, eibcalen, received) and eibcalen(); returnTransid(transid, commarea, length) records RETURN ... LENGTH. Null means the whole record. The crucible runner's Java driver carries each RETURN's length into the next task, JAVA_CAPS models SEND-TEXT length/options and RECEIVE-MAP, and the comparison resolves a whole-record COMMAREA against its layout (a shorter one must state its LENGTH, else it fails rather than being unsupported). The CardDemo account-view equivalence compares RECEIVE MAP on both sides. The port tickets describe the new API. Cell verdicts are unchanged; the report drops the SEND TEXT and RECEIVE MAP features. Part of #3989. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EC8FWfn3aPmsUPnRgKNVup
Contributor
squid-protocol
force-pushed
the
fix/4009-cicstask-event-model
branch
from
September 29, 2026 18:44
f245b36 to
2ff4a4a
Compare
This was referenced Sep 29, 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.
Fixes #4009
Part of #3989 (phase 3, lane A)
What changed
Forge: the generated
CicsTask(cobol_to_java_transaction_forge.CICS_TASK_JAVA). Every existing signature is kept.sendText(String text, int length, String... options)records the FROM data, LENGTH and the sorted options (ERASE, FREEKB, ...).sendText(text)keeps working, with the text's own length and no options.receive(map, mapset, type)records aRECEIVE-MAPevent withmap,mapsetandresp: NORMAL, or MAPFAIL when nothing was received.receive(map, type)records one too, with a null mapset.CicsTask(transid, aid, commarea, Integer eibcalen, received), andeibcalen()carry the length beside the DTO, so a short or long COMMAREA can be represented. It is 0 without a COMMAREA, and null means the whole record.returnTransid(transid, commarea, Integer length)records RETURN ... LENGTH. The two-argument form means the whole record.runTasknames the new calls.Runner (
tests/tools/cics_crucible.py,cics_crucible_compare.py)lengthinto the next task'sCicsTaskand reports each task'seibcalen. An XCTL passes on itslengthwhen the event has one; CICS harness: XCTL RESP/RESP2 and LENGTH semantics #4008 adds that.JAVA_CAPSnow modelsSEND-TEXT {text, length, options}andRECEIVE-MAP {map, mapset, resp}.java_actualmaps them.FULL, and the comparison resolvesFULLagainst the expected layout's record size, for both a task'seibcalenand an area. A shorter expected COMMAREA is now a fail: the port passed its whole record without a LENGTH. Before, it was unsupported: a DTO has no EIBCALEN, and that excuse is gone now that CicsTask carries the length.CardDemo equivalence (
equivalence_cics.cobol_events): the COBOL side's stub already logged RECEIVE-MAP. It now lists it too, so both sides compare it. The account-view scenarios that type into the screen go from 2 to 3 compared events, all equal.test_carddemo_account_view_is_equivalent_end_to_endis updated to match.Crucible cells
Rebased on #4013 (5c6d17f, after #4002 and #4005). The cell verdicts are unchanged: 22 pass, 38 fail, 34 unsupported. No cell's status or reason moves, because each needs other work too; the report's "alone" column already showed 0 for this piece. What changes is the features the cells need.
docs/language_status/cics_crucible.mdis regenerated with--update-baseline, andbaseline.jsonis byte-identical.CicsTask: SEND-TEXT length/options(28 cells each) andCicsTask: RECEIVE-MAP event(9 cells) are no longer missing features.(As on main after #4002; unchanged by this PR.)
Generated output
java_target_matrix.py --same-as origin/mainon CardDemo (default) reports exactly one changed build input,cics/CicsTask.java. That change is intended; the API is described above. Every project that has a CICS transaction gets the newCicsTask. It compiles in all 10 crucible cases (forge-compile 10/10) and runs the Java side there. The java-compile workflow compiles it across the corpora. No golden-master fixtures change.Tests
test_cics_endpoints: the generatedCicsTaskhas the new signatures and the RECEIVE-MAP event.test_cics_crucible_runner:java_actualmaps RECEIVE-MAP, SEND-TEXT length/options and RETURN LENGTH, and turns an absent EIBCALEN intoFULL;eibcalenofFULLpasses against its layout's size and fails against a shorter one;test_equivalence_cics(E2E): CardDemo account view is equal on every event, RECEIVE MAP included.Verification
pytest tests/cics_crucible tests/cobol_mainframe/test_equivalence_cics.py tests/cobol_mainframe/test_cics_endpoints.pypasses, withEQUIVALENCE_E2E=1for the CardDemo account view.cics_crucible.py --update-baselinerewrites only the report.ruff formatis clean on the touched files, andtool_regex_redos --cireports 0 offenders.🤖 Generated with Claude Code