Repository navigation
Fix #4006: CICS harness models interval control (START/RETRIEVE/CANCEL) on a virtual clock - #4019
Merged
Merged
Conversation
This was referenced Sep 29, 2026
squid-protocol
force-pushed
the
fix/4006-interval-control
branch
from
September 29, 2026 19:27
276f556 to
0444cbc
Compare
Contributor
…ANCEL) on a virtual clock - Scheduler (drive_scenario, SPEC 4), shared by both sides: when a task ends its STARTs become requests (a PROTECT one only if it ended normally; a CANCEL drops one); then expired requests run -- earliest expiry first, ties by issue order; one with a TERMID takes every expired request for its TRANSID and terminal, RETRIEVEing their data in expiry order -- then the next operator step; virtual time jumps to the next expiry or step, and requests keep running until none expires before `until`. Started tasks are non-terminal (or terminal with TERMID) with their start trigger. - Stub: START computes expiry from the virtual clock ($GGCICS_NOW): now + INTERVAL, or TIME today with IBM's six-hour rule (earlier than that: tomorrow); INVREQ / LENGERR / TRANSIDERR / TERMIDERR. RETRIEVE: NORMAL, LENGERR truncating with LENGTH = the record's length, ENDDATA. CANCEL REQID: NORMAL only for an unexpired request (NOTFND otherwise). - CicsTask: start / startAt / retrieve / cancel / withClock / withRetrieveData / withRequests; the Java driver runs the same scheduler. - Comparison: a final TS item's text is blank-padded to the item's own length (SPEC 6.1: trailing blanks optional), as the crucible's GTLOG items are logged. cobol-stub: gt-start-retrieve (5) and gt-terminal-coalesce (4) now pass. Part of #3989. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EC8FWfn3aPmsUPnRgKNVup
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EC8FWfn3aPmsUPnRgKNVup
squid-protocol
marked this pull request as ready for review
September 29, 2026 19:38
squid-protocol
force-pushed
the
fix/4006-interval-control
branch
from
September 29, 2026 19:38
0444cbc to
c01badb
Compare
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 #4006
Part of #3989 (phase 3, lane B)
What
Scheduler.
drive_scenarioimplements SPEC §4, and both sides share it: the Java driver runs the same rules.trigger: startand no EIBAID.until.Stub (
$GGCICS_NOWis the virtual clock):transactions.cfgfrom the CSD) and TERMIDERR.expires.requests.cfg), and NOTFND otherwise ("fails to match an unexpired interval control command").Java (generated
CicsTask). A started task's EIBCALEN is 0, and a terminal task's follows #4009's RETURN LENGTH:start(transid, termid, interval, from, reqid, protect)andstartAt(...)for TIME, returningStartResult(resp, expires).retrieve(maxLength)returnsRetrieveResult, andcancel(reqid).withClock,withRetrieveDataandwithRequestsfeed the task.Programsgains defaulttransactionandterminalchecks.Scenarioclass that mirrorsdrive_scenario.Comparison fix (not an oracle change):
finalTS item's text with no padding. SPEC 6.1 says a text value is blank-padded to the area's known length, and a TS item's length is known: it is the item's own. So trailing blanks are optional."R=00 L=0020 D=ORDER 0001 READY"), so the old comparison failed every gt-start-retrieve cell on trailing blanks alone.Cells (side × status)
Tests
drive_scenario, driven by fake tasks: dispatch order and time jumps, coalescing and the first-request trigger, PROTECT versus abend, CANCEL,until, and the terminal following its RETURN TRANSID.cc: START expiry (INTERVAL, TIME within six hours, TIME the next day) and its INVREQ, TRANSIDERR and TERMIDERR; CANCEL (own request,requests.cfg, expired); RETRIEVE LENGERR and ENDDATA.CicsTaskunder javac: the same rules.EQUIVALENCE_E2E=1fixture passes, and CardDemo account view passes 9/9 events.Audits: ruff, mypy and dead-key show no new findings. Touched files are formatted.
🤖 Generated with Claude Code