Repository navigation
Fix #4002: CICS harness models TS queues (READQ / WRITEQ TS) - #4015
Merged
Merged
Conversation
- Translator: READQ / WRITEQ TS (TS is the default) become GGCREADQ / GGCWRTQ. READQ's LENGTH is in-out and set back on NORMAL / LENGERR only; ITEM or NEXT; WRITEQ's ITEM is returned (or an input under REWRITE); NUMITEMS on NORMAL. SET and SYSID are refused by name. - Stub: a TS store per scenario ($GGCICS_TS), one directory per queue. QIDERR, ITEMERR (NEXT past the end too), LENGERR truncating with LENGTH = the item's length (IBM, EXEC CICS READQ TS); WRITEQ creates the queue. - Runner: seeds each scenario's `initial` queues and reports the `final` ones, on both sides; READQ-TS / WRITEQ-TS events. - CicsTask: withTempStorage / writeqTs / rewriteqTs / readqTs / readqTsNext and the shared TempStorage. - Fixture fx-ts-queue: RECEIVE + TS end to end on the stub. The TS cells' remaining blockers are conditions (#4003), LINK (#4004), interval control (#4006) and BMS output (#4001); 9 java cells move from unsupported to fail (the unported runTask). Part of #3989. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EC8FWfn3aPmsUPnRgKNVup
Contributor
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 #4002
Part of #3989 (phase 3, lane B)
What
Temporary storage in the CICS harness: READQ TS and WRITEQ TS with ITEM, NEXT, in/out LENGTH, ITEMERR, QIDERR and LENGERR. Each scenario is seeded from
initialand reports itsfinalqueues, on both sides.equivalence_cics.py):READQ/WRITEQ [TS]becomesGGCREADQ/GGCWRTQ. TS is the default, soREADQ QUEUE(..)counts as TS.ITEM(n)takes a value, and NEXT is passed as item 0.ITEMis returned on NORMAL. Under REWRITE it is an input instead.SET,SYSIDandREWRITEwithout ITEM are refused by name.GG-CICSfields (appended):GG-QNAME X(16),GG-ITEMandGG-NUM.ggcics.c): a TS store per scenario, in$GGCICS_TS, with one directory per queue named by the queue name's hex. This follows IBM EXEC CICS READQ TS / WRITEQ TS:seed_ts/read_tshandle the seeds and the final queues. Values are SPEC 6.1 text or hex, as EBCDIC.lengthanddataare null where the command sets none, as the logs spell it.CicsTask):TempStorage, withseedandqueues.withTempStorage,writeqTs,rewriteqTs,readqTs,readqTsNext, returningTsResult(resp, item, length, data, numItems).fx-ts-queue: an end-to-end run on the stub covering terminal RECEIVE, a seeded READQ, WRITEQ returning ITEM, READQ LENGERR under RESP (LENGTH 5 into 3 bytes), QIDERR, and the final queue.Cells (side × status)
runTaskis not ported (Logic porting loop: bring-your-own LLM, human approval, proven by the equivalence harness #3753).Tests
test_cics_runtimes.py: compilesggcics.cand drives the whole READQ/WRITEQ table. It also compiles the generatedCicsTaskwith javac and drives the TS API.EQUIVALENCE_E2E=1fixture run covers both fixture cases on every side. CardDemo account view still passes 9/9 events.Generated output
CicsTask.javagains the TS API (intended). It is generated only for CICS transaction programs, and java-compile builds it. No goldens change.Audits: ruff, mypy and dead-key show no new findings. Touched files are formatted. No new regexes.
🤖 Generated with Claude Code