Skip to content

harness: the CICS stub translator reads standards/cics -- same options, refusals and RESP as det (#4270, spec PR 3) - #4593

Merged
squid-protocol merged 1 commit into
mainfrom
feat/4270-cics-spec-pr3
Oct 7, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
feat/4270-cics-spec-pr3

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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 from gitgalaxy/standards/cics, which det/cics.py has used as its source since PR 2 (#4591).

  • Options are allow-lists from the spec. An option refused by the translator is Unsupported with SPEC[key].refusal_message(bad), word for word the translator's CicsError. A command refused whole gets whole_refusal(...).whole_message(verb), and translate() no longer prefixes "EXEC CICS" twice. Feature keys are unchanged.
  • Silent ignores fixed. START, RETRIEVE, CANCEL and SEND TEXT used deny-lists and ignored unknown options (PR 1's finding). So did RECEIVE MAP, SEND MAP, ABEND, PUSH/POP HANDLE, ASKTIME, SYNCPOINT, WRITEQ TD and the file/TS commands for anything off their deny-lists. All of these now refuse what the translator refuses.
  • Option rules. LENGTH+FLENGTH (START, RETRIEVE, RECEIVE; also MAXLENGTH+MAXFLENGTH), START LENGTH without FROM and LINK/XCTL CHANNEL+LENGTH are now checked. Group messages are the spec's.
  • DFHRESP is the spec's table, which adds VOLIDERR 71, RESIDERR 75 and NOSPOOL 80. CICS_RESP takes the spec's numbers.
  • Stub-only refusals. Options det honours but ggcics.c does 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.
  • Tests. The 9 "Deleted in PR 3" equality tests are deleted, including test_assign_terminal_options_are_the_harness_copy, along with DFHRESP_DIFFERENCES and HARNESS_DIFFERENCES. The importer test now also scans tests/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.
  • Not touched: ggcics.c, the Java runtime and the engine (PRs 4 / 8a). RESP2 None stays for PR 6.

Verdict equality (before = origin/main de03955, after = this branch)

  • cics-crucible v0.5.0 (a private clone at 9ee42d1), 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).
  • Translation probe (every EXEC CICS program in tests/equivalence, the crucible cases and the 7 mainframe corpora, 127 programs): no program in any case changes verdict. One corpus program outside every case, GenApp lgtestc1.cbl, now refuses RECEIVE MAP ... ASIS. The stub used to ignore ASIS; the translator refuses it. Two CBSA programs that were already refused now also name RECEIVE MAP TERMINAL / ASIS.
  • Message snapshots: no committed file snapshots the stub's messages (no cobol-stub cell is unsupported in the baseline). The new tests are the snapshot.

Gates

pr_gates.py --ratchets: 6 pass, 0 fail, 0 skipped. Full pr_gates.py: 7/7 (lint, audits incl. mypy, secrets, xray, gauntlet, golden, suite).

🤖 Generated with Claude Code

https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6

…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
@squid-protocol squid-protocol added enhancement New feature, sensor, or structural signature legacy-modernization COBOL refractor, dead-code extraction, and JCL forging testing Unit, integration, and E2E pipeline verification labels Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 7, 2026 02:03
@squid-protocol
squid-protocol merged commit 8dff2ec into main Oct 7, 2026
34 of 35 checks passed
@squid-protocol
squid-protocol deleted the feat/4270-cics-spec-pr3 branch October 7, 2026 02:03
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, sensor, or structural signature legacy-modernization COBOL refractor, dead-code extraction, and JCL forging testing Unit, integration, and E2E pipeline verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant