Skip to content

EXEC CICS VERIFY PASSWORD: stub GGCVER and fault validation (Part of #5859, slice 3d) - #6907

Merged
squid-shepherd[bot] merged 1 commit into
churn/5859-20261028T1538Z-regraftfrom
churn/5859-20261028T1551Z
Oct 28, 2026
Merged

squid-shepherd[bot] merged 1 commit into
churn/5859-20261028T1538Z-regraftfrom
churn/5859-20261028T1551Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Part of #5859 (slice 3d, partial). Checklist: partial [c:e14a97c1]

What

  • ggcics.c: GGCVER stub for EXEC CICS VERIFY PASSWORD. It takes the trimmed USERID, looks up the fault plan's VERIFY line, and records one VERIFY-PASSWORD event. The password is never passed. A USERID with no stated verdict is refused by name.
  • equivalence_cics.py: translates VERIFY PASSWORD to GGCVER, converts the event, adds USERIDERR to CICS_RESP. PHRASE and TOKEN stay refused.
  • equivalence_cics_faults.py: VERIFY fault lines are accepted with NORMAL / USERIDERR / NOTAUTH / INVREQ and no RESP2 (register X32).
  • 37 new tests (test_equivalence_cics_verify_5859.py); X32 updated.

Not done: the zecs-zecs002 case

I wrote the case (11 scenarios) and ran the harness. The COBOL side fails to compile: syntax error, unexpected PASSWORD. ZECS002's DSECT field PASSWORD is emitted verbatim by _cobol() in det/hlasm.py, and GnuCOBOL reserves the word. The fix is a reserved-word rename there, a 6th hand-written file, so it is left as the next slice and the case is not committed (a failing case would break the sweep). The case was kept under /tmp/gitgalaxy-scratch/claude/5859/zecs-zecs002-case only.

File cap

This PR's own diff is 5 hand-written files (base is #6905's branch). Against main the diff also shows #6905's 9 files, which are its commit 9b12718, not written here.
File-cap exception: stacked PR; the extra files are #6905's, and retargeting to main after #6905 merges leaves only these 5.

Cross-repo

None. This PR carries #6905's commit (9b12718) and is stacked on its branch. Overlaps: #6898 and #6900 (ggcics.c, equivalence_cics_faults.py); merge-tree against origin/main is clean at push.

Class / Sibling gaps

Class: HLASM field names that are COBOL reserved words. _cobol() only upper-cases and swaps _ for -, so any DSECT field named like a reserved word (PASSWORD, and likely others such as FILE, DATE, TIME) breaks the generated source. Sibling gaps: the same rename must also reach the Java side's field naming; VERIFY PHRASE / VERIFY TOKEN remain refused; ZECS001 CALL ZUIDSTCK unchanged.

Remaining slices

  1. det/hlasm.py reserved-word rename, then commit the zecs-zecs002 case, equivalence.py run --record, det_port run, ledgers.
  2. Slice 4: interpreter cross-check (tests/tools/hlasm_interp.py and its test).
  3. Possibly more stub gaps the case exposes once it compiles ('@tdq@' queue literal, FORMATTIME YYYYMMDD / DATESEP / TIMESEP).

Gates

pr_gates.py --fast 9/9 (re-run after merging origin/main); new test file, test_equivalence_cics_fault_resp, abend_injection, test_source_reads, test_cics_spec pass; ruff format clean on changed files. --ratchets and audit_check.py not run.

Lessons for agents

  • GnuCOBOL reserves names such as PASSWORD; an HLASM-lowered case fails at cobc with "unexpected PASSWORD", not in the translator.

🤖 Generated with Claude Code

…#5859, slice 3d)

The cobol-stub side models VERIFY PASSWORD: GGCVER looks up the verdict a
scenario states for the trimmed USERID and records one VERIFY-PASSWORD event;
the password is never passed (register X32). equivalence_cics_faults.py accepts
only NORMAL / USERIDERR / NOTAUTH / INVREQ and no RESP2. The zecs-zecs002 case
is not in this commit: GnuCOBOL reserves PASSWORD and the HLASM lowering emits
the DSECT field verbatim (see PR body).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 28, 2026 16:06
@squid-shepherd
squid-shepherd Bot merged commit 9265dc9 into churn/5859-20261028T1538Z-regraft Oct 28, 2026
5 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5859-20261028T1551Z branch October 28, 2026 16:08
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

squid-shepherd Bot pushed a commit that referenced this pull request Oct 28, 2026
…lice 3c) (#6905)

* EXEC CICS VERIFY PASSWORD: ZECS002 translates whole (Part of #5859, slice 3c)

Regraft of #6902 onto current main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* EXEC CICS VERIFY PASSWORD: stub GGCVER, fault-plan validation (Part of #5859, slice 3d) (#6907)

The cobol-stub side models VERIFY PASSWORD: GGCVER looks up the verdict a
scenario states for the trimmed USERID and records one VERIFY-PASSWORD event;
the password is never passed (register X32). equivalence_cics_faults.py accepts
only NORMAL / USERIDERR / NOTAUTH / INVREQ and no RESP2. The zecs-zecs002 case
is not in this commit: GnuCOBOL reserves PASSWORD and the HLASM lowering emits
the DSECT field verbatim (see PR body).

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* test_strengthen_loop: plan VERIFY's fault by its userid, NOTAUTH with no RESP2 (Part of #5859)

The PR added VERIFY to FAULT_COMMANDS but not to the test's fault tables, so
the parametrized case planned NOTAUTH/RESP2 101 on a file, which the X32
registry entry rightly refuses (ground-truth red on #6905).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* HLASM lowering: rename reserved-word symbols; zecs002 case deferred (Part of #5859, slice 3e) (#6910)

* Include resolution: generated forwarder headers and the importer's own module tree (Part of #6266) (#6899)

* call_resolver: a ctor-init tie keeps the class fewest include hops away (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* DOOM-rosetta: re-bless doomsday callgraph_misses 74 -> 73 (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Include resolution: generated forwarder headers and the importer's own module tree (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* DOOM-rosetta: re-bless doomsday callgraph_misses 73 -> 70 (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* DOOM-rosetta: re-bless doomsday after merging main (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* DOOM-rosetta: oracle drops branches on toggles no file defines, as the engine does (Part of #6266)

#6870 made the engine drop preprocessor branches on toggles no C file or build file
defines; the oracle kept them, so 19 ports went red. The oracle now reads the same toggle
table (the engine's file selection, vendored libraries excluded) and evaluates #if/#ifdef
with the engine's _directive_value. Where tree-sitter pairs a conditional with the wrong
#endif or splits an if head over #else, the function is read by its directive lines.

Re-blessed every port. 18 licensed ports reach 0 misses / 0 engine-only; doom3-bfg,
fastdoom and gzdoom keep callgraph in expected_fails for engine defects (vcxproj toggles
unread; a function-like macro expanded at its own definition).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* DOOM-rosetta: re-bless doomsday after merging main (Part of #6266)

The merge conflict on the binary golden is resolved by a rescan of the merged head:
callgraph_unscored 4668 -> 4664; misses 46 and engine-only 67 unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* CICS fault vocabulary: RUN TRANSID and FETCH ANY faults, CRECUST 46 -> 52 of 70 (Part of #6882) (#6900)

* CICS fault vocabulary: SET / INQUIRE TERMINAL faults, CBSA SET arms (Part of #6882)

A scenario can plan TERMIDERR (RESP2 23) or INVREQ (RESP2 43) on SET TERMINAL
and TERMIDERR (RESP2 1) on INQUIRE TERMINAL, as DELAY does (X72): the stub's
injected() and the port's task.planned() read the same line, a planned fault
means the command is not performed. Four CBSA scenarios reach BNK1CCS 415/1134
and BNK1DCS 532/1676 (net branches 126->128 of 143 and 93->95 of 102).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* CICS fault vocabulary: RUN TRANSID and FETCH ANY faults, CBSA CRECUST 46 -> 52 of 70 net branches (Part of #6882)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* strengthen-loop fault-command test: plan the SET/INQ TERMINAL, RUN TRANSID and FETCH ANY conditions (Part of #6882)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* HLASM lowering: rename symbols spelled like a COBOL reserved word (PASSWORD) (Part of #5859, slice 3e)

cobc stops at a DSECT field named PASSWORD (unexpected PASSWORD); _cobol() now gives a reserved-word symbol a -HL suffix and refuses a rename that collides with another symbol. GGCVER names the USERID it found no verdict for.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* hlasm: build the reserved-word set with findall (SIM905)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Joe Esquibel <[email protected]>
squid-shepherd Bot pushed a commit that referenced this pull request Oct 28, 2026
…) (#6923)

* EXEC CICS VERIFY PASSWORD: ZECS002 translates whole (Part of #5859, slice 3c)

Regraft of #6902 onto current main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* EXEC CICS VERIFY PASSWORD: stub GGCVER, fault-plan validation (Part of #5859, slice 3d) (#6907)

The cobol-stub side models VERIFY PASSWORD: GGCVER looks up the verdict a
scenario states for the trimmed USERID and records one VERIFY-PASSWORD event;
the password is never passed (register X32). equivalence_cics_faults.py accepts
only NORMAL / USERIDERR / NOTAUTH / INVREQ and no RESP2. The zecs-zecs002 case
is not in this commit: GnuCOBOL reserves PASSWORD and the HLASM lowering emits
the DSECT field verbatim (see PR body).

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* test_strengthen_loop: plan VERIFY's fault by its userid, NOTAUTH with no RESP2 (Part of #5859)

The PR added VERIFY to FAULT_COMMANDS but not to the test's fault tables, so
the parametrized case planned NOTAUTH/RESP2 101 on a file, which the X32
registry entry rightly refuses (ground-truth red on #6905).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* HLASM lowering: rename reserved-word symbols; zecs002 case deferred (Part of #5859, slice 3e) (#6910)

* Include resolution: generated forwarder headers and the importer's own module tree (Part of #6266) (#6899)

* call_resolver: a ctor-init tie keeps the class fewest include hops away (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* DOOM-rosetta: re-bless doomsday callgraph_misses 74 -> 73 (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Include resolution: generated forwarder headers and the importer's own module tree (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* DOOM-rosetta: re-bless doomsday callgraph_misses 73 -> 70 (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* DOOM-rosetta: re-bless doomsday after merging main (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* DOOM-rosetta: oracle drops branches on toggles no file defines, as the engine does (Part of #6266)

#6870 made the engine drop preprocessor branches on toggles no C file or build file
defines; the oracle kept them, so 19 ports went red. The oracle now reads the same toggle
table (the engine's file selection, vendored libraries excluded) and evaluates #if/#ifdef
with the engine's _directive_value. Where tree-sitter pairs a conditional with the wrong
#endif or splits an if head over #else, the function is read by its directive lines.

Re-blessed every port. 18 licensed ports reach 0 misses / 0 engine-only; doom3-bfg,
fastdoom and gzdoom keep callgraph in expected_fails for engine defects (vcxproj toggles
unread; a function-like macro expanded at its own definition).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* DOOM-rosetta: re-bless doomsday after merging main (Part of #6266)

The merge conflict on the binary golden is resolved by a rescan of the merged head:
callgraph_unscored 4668 -> 4664; misses 46 and engine-only 67 unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* CICS fault vocabulary: RUN TRANSID and FETCH ANY faults, CRECUST 46 -> 52 of 70 (Part of #6882) (#6900)

* CICS fault vocabulary: SET / INQUIRE TERMINAL faults, CBSA SET arms (Part of #6882)

A scenario can plan TERMIDERR (RESP2 23) or INVREQ (RESP2 43) on SET TERMINAL
and TERMIDERR (RESP2 1) on INQUIRE TERMINAL, as DELAY does (X72): the stub's
injected() and the port's task.planned() read the same line, a planned fault
means the command is not performed. Four CBSA scenarios reach BNK1CCS 415/1134
and BNK1DCS 532/1676 (net branches 126->128 of 143 and 93->95 of 102).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* CICS fault vocabulary: RUN TRANSID and FETCH ANY faults, CBSA CRECUST 46 -> 52 of 70 net branches (Part of #6882)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* strengthen-loop fault-command test: plan the SET/INQ TERMINAL, RUN TRANSID and FETCH ANY conditions (Part of #6882)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* HLASM lowering: rename symbols spelled like a COBOL reserved word (PASSWORD) (Part of #5859, slice 3e)

cobc stops at a DSECT field named PASSWORD (unexpected PASSWORD); _cobol() now gives a reserved-word symbol a -HL suffix and refuses a rename that collides with another symbol. GGCVER names the USERID it found no verdict for.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* hlasm: build the reserved-word set with findall (SIM905)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* zecs-zecs002 case: VERIFY userid_hex, latin-1 fault logs (Part of #5859)

ZECS002 holds the USERID as EBCDIC bytes, so a plain-text VERIFY verdict could not
match it. `userid_hex` states the verdict for the field's own bytes; faults.cfg and
the fired-fault logs are read/written as latin-1 (COBOL stub) and UTF-8 (Java), split
on newline only. COBOL-reserved-word renaming (PASSWORD etc.) came with #6905.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* fact-crosscheck ledger: ZECS002.asm disagreements assigned hlasm-lowered-cobol (Part of #5859)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Joe Esquibel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant