Skip to content

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

Merged
squid-shepherd[bot] merged 7 commits into
mainfrom
churn/5859-20261028T1538Z-regraft
Oct 28, 2026
Merged

squid-shepherd[bot] merged 7 commits into
mainfrom
churn/5859-20261028T1538Z-regraft

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #5859, slice 3c. Supersedes #6902 (and #6901, #6896 before it): regraft onto current main 3b9a43109; the old branch stopped taking main merges.

models EXEC CICS VERIFY PASSWORD, ZECS002's last translation hole. ZECS002 now translates whole and compiles (det_survey zecs: 7 of 7 whole, 7 compile). It is still L0 on the ladder: the stub has no VERIFY, so there is no case yet.

Checklist: partial [c:e14a97c1] -- the zecs-zecs002 equivalence case (blocked on the HLASM PASSWORD reserved-word rename in det/hlasm.py) and 4 interpreter cross-check left. The 3d stub GGCVER and fault-plan validation landed on this branch via #6907.

What changed

  • Registry: VERIFY PASSWORD is a modelled command (register X32) in standards/cics/commands/task.py (USERID, PASSWORD, RESP/RESP2; NORMAL, USERIDERR, NOTAUTH, INVREQ). Removed from the name-only refusals in api.py. VERIFY PHRASE / TOKEN stay refused.
  • det/cics.py: dispatch to task.verifyPassword(userid); _FORM_OPTION["VERIFY"] so the two-word key resolves.
  • CicsTask.verifyPassword (forge): the region has no security manager, so the verdict is a fact the scenario states through the fault plan. An unstated verdict is refused by name. The password is not compared (assumption in X32, residual risk stated).
  • det/hlasm.py: ZECS002 continues an EXEC CICS command in column 15; the front end now keeps that text (it used to cut the first character, losing the option). A non-EXEC continuation before column 16 is refused by name.
  • equivalence_cics.py: one line refusing VERIFY as stub-only until 3d.
  • Tests: det-translate sample and VERIFY test, two lowering tests, pinned counts in test_cics_spec (modelled 103, refused 152). Docs: X32, hlasm_cics_design.md, ladder_exclusions.py reason text.

Gates

Regraft: #6902's diff applied to main 3b9a43109 with git apply -3, no conflicts (none of the 12 files moved on main since bbe38ee5a); no generated files carried.
pr_gates --fast 9/9 (incl. affected); det-translate / HLASM lowering 5859 / cics_spec tests: 609 passed, 108 skipped.
Not re-run locally: crucible_check (#6896 measured both legs PASS, no golden change; this diff touches no detector, prism or language rules) and det_port check (no cobc; CICS ports list for re-prove because CicsTask.java gains a method, additive; CI ground-truth covers them).
DOOM-rosetta: #6902's four red shards (crispy-doom, prboom-plus, fastdoom, srb2 ... fail 'callgraph') (<port> fails 'callgraph', the manifest expects '') are not from this diff. Main's own DOOM-rosetta runs on e51660227 and 332ca4679 are red too (the last two main runs; ba863100a was the last green), and the same assertion failed on unrelated branches (#6895, #6894). The workflow reaches this PR only through its broad gitgalaxy/standards/** path filter (this PR edits standards/cics/commands/).

Class / Sibling gaps

Same class: security commands still refused by name: VERIFY PHRASE, VERIFY TOKEN, SIGNON, SIGNOFF, CHANGE PASSWORD. No burned-estate program uses any of them (only ZECS002 reads VERIFY PASSWORD), so none is in scope.
Remaining slices: 3e (reserved-word rename for HLASM fields such as PASSWORD in det/hlasm.py _cobol(), then the zecs-zecs002 case from /tmp/gitgalaxy-scratch/claude/5859/zecs-zecs002-case), 4 (interpreter cross-check), ZECS001 CALL ZUIDSTCK (c:f5d905de).

Hand-written file count

File-cap exception: one indivisible slice. The model (registry task.py + api.py), its dispatch (det/cics.py), runtime (forge) and the front-end continuation fix (hlasm.py) cannot land apart: a registry entry without dispatch fails the survey and test_cics_spec, and ZECS002 needs the continuation fix to reach VERIFY's options. The test files (test_det_translate.py, test_hlasm_lowering_5859.py, test_cics_spec.py), the one-line stub-only refusal in equivalence_cics.py and the docs are forced by existing guard tests (pinned counts, a required _RESP_SAMPLES entry, the X32 register) or are one-line text corrections.

Cross-repo

None.

Lessons for agents

  • A bare cat > file with no heredoc blocks a shell on stdin until the timeout.
  • A new two-word command needs a _FORM_OPTION entry in det/cics.py, or the survey says "EXEC CICS VERB not modelled".
  • ZECS002 continues EXEC CICS in column 15 ([15:71] slicing drops a character); the CICS translator takes continuation text wherever it starts.
  • A new modelled command bumps the pinned counts in test_cics_spec.py and needs a _RESP_SAMPLES entry.

🤖 Generated with Claude Code

…lice 3c)

Regraft of #6902 onto current main.

Co-Authored-By: Claude Opus 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
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

Waiting on an owner decision (asked privately, 2026-10-28). Nothing is needed from contributors; work resumes once it is answered.

…#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]>
@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (9265dc9) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-shepherd
squid-shepherd Bot disabled auto-merge October 28, 2026 16:11
@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Oct 28, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 16:14
@squid-shepherd

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 28, 2026
@squid-shepherd squid-shepherd Bot added the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

…538Z-regraft

# Conflicts:
#	tests/tools/equivalence_cics_faults.py
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

… 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]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

Owner fix pushed (a6cbef9): test_strengthen_loop now plans VERIFY's fault by its userid with NOTAUTH and no RESP2, matching the X32 registry entry. That was the ground-truth red. The remaining DOOM-rosetta red (odamex, gzdoom, fastdoom, srb2) is main's own drift, fixed by #6908. If a rescue run pushes here, merge this commit; don't force-push.

@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (018b6d8) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-shepherd
squid-shepherd Bot disabled auto-merge October 28, 2026 16:37
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 28, 2026
squid-protocol and others added 2 commits October 28, 2026 16:44
…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]>
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 17:10
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 82e8a44 into main Oct 28, 2026
74 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5859-20261028T1538Z-regraft branch October 28, 2026 17:49
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