Skip to content

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

Merged
squid-shepherd[bot] merged 11 commits into
mainfrom
churn/5859-20261028T1723Z
Oct 28, 2026
Merged

squid-shepherd[bot] merged 11 commits into
mainfrom
churn/5859-20261028T1723Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5859 (slice 3e).

What changed

  • No det/hlasm.py change. The reserved-word rename the slice planned (PASSWORD -> PASSWORD-HL, a _RESERVED_WORDS set, a collision refusal in _place) already landed in EXEC CICS VERIFY PASSWORD: ZECS002 translates whole (Part of #5859, slice 3c) #6905. The plan was wrong on that point; this branch merges it and adds nothing there.
  • New case tests/equivalence/zecs-zecs002 (zECS ZECS002, HLASM, CICS/REST Basic Auth): 11 scenarios (verified, USERIDERR, NOTAUTH, INVREQ, 8-char and over-8 UserID, 8-char password, no colon, invalid encoding, COMMAREA short and long).
  • Harness: userid_hex on a VERIFY fault (equivalence_cics_faults.py). An assembler program holds the USERID as EBCDIC bytes, so a plain-text userid verdict never matched. userid_hex states the verdict for the field's own bytes, padding included.
  • Harness: fault logs (equivalence_cics.py): faults.cfg is written as latin-1; _fired reads the COBOL log as latin-1 and the Java log as UTF-8, and splits on \n only (str.splitlines breaks at \x85, which an EBCDIC byte can be).
  • Ledgers: det_sweep_coverage/zecs-zecs002.json (new), 603 fact_crosscheck_ledger.json entries for ZECS002.asm assigned hlasm-lowered-cobol (the cause ZECSNC.asm already carries).

Evidence ladder (ZECS002)

  • Translated: 511/511 whole, 0 holes, 0 refused.
  • Executed-equivalent: det_port.py run zecs-zecs002 PROVED: 11 scenarios, runTask side and java-facade side both equal; injected faults agree.
  • Paragraph / branch %: 0/0 and 0/0 (assembler, no paragraphs; not a coverage claim).
  • Assumptions: register X32 -- no security manager, the scenario states the VERIFY verdict per USERID and the password is never compared. Residual risk: a port that compares the password itself passes equivalence.
  • Oracle: GnuCOBOL plus our stub, not z/OS.

Gates

New tests (test_equivalence_cics_verify_5859.py, test_hlasm_lowering_5859.py): 118 pass. audit_check.py: clear. pr_gates --fast: 9/9 after the det ledger refresh (the first run failed derived: no det ledger entry). pr_gates --ratchets: 8/9, the fact-crosscheck failure fixed by the ledger change above; re-run not repeated after the final merge of origin/main. Not run: full suite, crucible_check (no parsing logic touched). Local ruff is 0.16.0, CI pins 0.17.1: format not checked with the pinned version.

Sibling gaps

None found to list: the other reserved-word names were already covered by #6905's set and its tests; I did not search the burned corpora for further reserved-word collisions beyond ZECS002.

Remaining slices

Not started here: the ZECS001 CALL ZUIDSTCK STCK wrapper.

Checklist: partial [c:e14a97c1] -- ZECS002 lowers, translates whole and is proved; the assembler path is not complete for other programs
Checklist: partial [c:f5d905de] -- ZECS001 (the ZUIDSTCK STCK wrapper) is untouched

Lessons for agents

  • An assembler-origin program holds EBCDIC bytes: a VERIFY USERID plan needs userid_hex, and the stub and fired-fault logs are latin-1 (COBOL) / UTF-8 (Java), never splitlines.
  • Use det_port.py run, not equivalence.py run, for an assembler case; the latter needs a COBOL service class and dies with StopIteration.
  • A new det case needs det_sweep_coverage/<case>.json and, for an .asm, fact-crosscheck entries assigned hlasm-lowered-cobol.

🤖 Generated with Claude Code

squid-protocol and others added 11 commits October 28, 2026 11:42
…lice 3c)

Regraft of #6902 onto current main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…#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]>
…538Z-regraft

# Conflicts:
#	tests/tools/equivalence_cics_faults.py
… 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]>
…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]>
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]>
@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 17:54
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 17:55
@squid-shepherd
squid-shepherd Bot merged commit 884c947 into main Oct 28, 2026
83 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5859-20261028T1723Z branch October 28, 2026 18:35
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