Skip to content

equivalence harness: COBOL side drops WRITEQ TS events (first hit: GenApp LGSTSQ run in-task) #4607

Closed

Description

@squid-protocol

Part of #4270. Found while classifying the branch gaps of the GenApp Db2 cases (det/4270-eibtaskn-stated).

Finding

The equivalence harness's COBOL side never turns a WRITEQ TS into an event, but the Java side records one (CicsTask → WRITEQ-TS). No equivalence case has run a program that writes TS until now, so this never showed up.

tests/tools/equivalence_cics.py cobol_events() handles SEND-MAP / SEND-TEXT / SYNCPOINT / WRITEQ-TD / RECEIVE-MAP / RETURN / XCTL / LINK / ABEND. It drops the stub's WRITEQ-TS line even though the stub logs it (003 WRITEQ-TS pgm=LGSTSQ queue=47454E4145525253 item=1 resp=0 len=76) and writes the item under scenarios/<sc>/ts/.

Reproduction (probe, not committed)

genapp-lgacdb02 with "programs": [LGSTSQ], "region": {"applid": "GENAREGN", "sysid": "CICA"} (LGSTSQ needs ASSIGN SYSID) and a scenario with "commarea": null:

  • LGACDB02 no-commarea: 2/5 events equal. COBOL gives LINK, WRITEQ-TD, RETURN, ABEND LGCA. Java gives LINK, WRITEQ-TD, WRITEQ-TS (GENAERRS), RETURN, ABEND LGCA.
  • The WRITEQ-TD record is the same on both sides, and so is the abend. The only difference is the event the COBOL side never reports.

Why it matters

This is the only route to GenApp's EIBCALEN = 0 outcomes, the IF EIBCALEN IS EQUAL TO ZERO true side and IF EIBCALEN > 0 false side in WRITE-ERROR-MESSAGE, in LGACDB01/02, LGDPDB01, LGIPDB01 and LGUCDB01. That LINK to LGSTSQ passes the 71/87-byte ERROR-MSG, so WRITEQ LENGTH is at most 92, which is within WRITE-MSG's 95 bytes and not X6. The X10 read-past (COMMA-DATA 90 bytes) never reaches the output.

Fix sketch

cobol_events() should emit {"event": "WRITEQ-TS", "queue", "data", "resp", "item"} from the stub's line and its ts/ item, in the shape CicsTask records (the crucible's crucible_events.py already has it). Also add an oracle_assumptions note.

🤖 Generated with Claude Code

Activity

  1. squid-protocol commented on Oct 7, 2026

    @squid-protocol
    OwnerAuthor

    Owner decision (2026-10-07) on X6 for the GenApp WRITE-ERROR-MESSAGE path (LGSTSQ writes 104 bytes from a 95-byte area): judge a task up to the refused WRITEQ, as #4173 does for an unrun LINK. Outcomes before the refusal count as executed; the evidence report lists X6 as an assumption for those programs. Not settled on z/OS (#4050). Queued after #4602 lands, together with this issue's fix.

  2. added
    scope:core
    era:3
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    era:3scope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions