Repository navigation
harness: the CICS stub translator reads standards/cics -- same options, refusals and RESP as det (#4270, spec PR 3) - #4593
Merged
Conversation
…s, refusals and RESP as det (#4270, spec PR 3) tests/tools/equivalence_cics.py takes its options, refusals, option-rule messages and DFHRESP from gitgalaxy/standards/cics, the det translator's source since spec PR 2. Unsupported carries the translator's CicsError text (SPEC[key].refusal_message, the group messages, whole_message for a command refused whole); feature keys are unchanged. Every command the stub models now checks an allow-list (the spec entry's options): START, RETRIEVE, CANCEL, SEND TEXT, RECEIVE MAP, SEND MAP, ABEND, PUSH / POP HANDLE, ASKTIME, SYNCPOINT and the file / queue commands no longer ignore an option the translator refuses. LENGTH with FLENGTH (START, RETRIEVE, RECEIVE; MAXLENGTH with MAXFLENGTH) and START LENGTH without FROM are refused as the translator refuses them. DFHRESP gains VOLIDERR 71, RESIDERR 75, NOSPOOL 80; CICS_RESP reads the spec's numbers. Options det honours and the stub runtime does not (READ RBA, HANDLE ABEND PROGRAM, ...) stay refused as the stub's own. Deletes the PR 3 transitional equality tests; the spec importer test covers tests/tools/ and lists the harness. New tests pin the stub's messages to the spec's. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6
Contributor
squid-protocol
marked this pull request as ready for review
October 7, 2026 02:03
This was referenced Oct 7, 2026
squid-protocol
added a commit
that referenced
this pull request
Oct 7, 2026
…on, unmask, pr_check (#4270, 1 of 2) (#4596) * tooling: blocker baseline cache, history, provision, unmask (#4270) - cics_census survey --baseline: one survey per main SHA with that commit's own translator, cached at <root>/census-cache/<sha>/ (a no-op once cached, locked); blockers --baseline and compare --before-baseline read it. - cics_census history append/show: docs/language_status/blockers_history.jsonl, seeded with #4587 / #4590 / #4592 (approximate SHAs, noted) and #4593. - equivalence_env --provision: private cics-crucible at the pin + census clones (INELIGIBLE_LIST minus burned; estate4 candidate names refused), provision.json with SHAs, the exports; --check WARNs on an off-pin shared checkout. - blockers --unmask GAPKEY: what-if re-translation of the programs one whole-program refusal stops, with that check off via det.source.survey_unmask (survey-only; det_survey.py is its only caller). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6 * cics_census: --no-census reads no $CICS_CENSUS_CORPORA either (survey, usage, compare, blockers) (#4270) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6 * cics_census: --no-census with --census-corpora is an error; regression test over survey, usage, compare (#4598) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6 --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Part of #4270 (spec PR 3 of
docs/language_status/cics_command_spec.md, section 7; section 9 decision 3: messages change, verdicts don't).What
tests/tools/equivalence_cics.py(the COBOL side's stub translator) now reads its options, refusals, option-rule messages and DFHRESP fromgitgalaxy/standards/cics, which det/cics.py has used as its source since PR 2 (#4591).UnsupportedwithSPEC[key].refusal_message(bad), word for word the translator'sCicsError. A command refused whole getswhole_refusal(...).whole_message(verb), andtranslate()no longer prefixes "EXEC CICS" twice. Feature keys are unchanged.CICS_RESPtakes the spec's numbers.ggcics.cdoes not model (READ/WRITE/DELETE RBA·XRBA·RRN, STARTBR/READNEXT RRN·XRBA and the RBA-browse limits, HANDLE ABEND PROGRAM) stay refused as the stub's own:<feature>: not modelled by the stub runtime.test_assign_terminal_options_are_the_harness_copy, along withDFHRESP_DIFFERENCESandHARNESS_DIFFERENCES. The importer test now also scanstests/tools/, matching import statements only, and lists the harness. New permanent tests pin the stub's messages to the spec's (29 commands × every spec refusal + an unknown option), the option rules and the whole-command reason.Verdict equality (before = origin/main de03955, after = this branch)
cics_crucible.py --sides cobol-stub java-ported --offline: before 130 pass, 42 fail, 0 unsupported (172 cells), after the same. All 172 cells have identical status and reason.proof_sweep.py --det-only --skip-db2: 40 cases, 37 proved / 3 not proven, the same before and after. Every case's verdict, coverage line and translated count is identical (only the timings differ).lgtestc1.cbl, now refusesRECEIVE MAP ... ASIS. The stub used to ignore ASIS; the translator refuses it. Two CBSA programs that were already refused now also nameRECEIVE MAP TERMINAL/ASIS.unsupportedin the baseline). The new tests are the snapshot.Gates
pr_gates.py --ratchets: 6 pass, 0 fail, 0 skipped. Fullpr_gates.py: 7/7 (lint, audits incl. mypy, secrets, xray, gauntlet, golden, suite).🤖 Generated with Claude Code
https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6