Skip to content

equivalence: scenario-stated datasets reach the Java side as stated; FILENOTFOUND for an undefinable file name; ZECS001 82 -> 91/119 paragraphs (Part of #6072) - #6952

Merged
squid-shepherd[bot] merged 5 commits into
mainfrom
credit/zecs-ladder-tail
Oct 29, 2026
Merged

squid-shepherd[bot] merged 5 commits into
mainfrom
credit/zecs-ladder-tail

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #6072. Rows A and B of #6839.

File-cap exception: this is one coupled change, not a rename. Row B (det runtime FILENOTFOUND) is only reachable once row A (harness stages the scenario's stated inputs) lands, and the new ZECS001 scenarios plus the register/test pins need both; splitting would leave the first slice with ZECS000 comparing on wrong inputs or a Hole it cannot reach. Counted hand-written files are 14 (6 source, 5 tests + 1 new test, port_blockers/X75/C20 docs); owner may still ask for a split into A then B.

What was wrong

A. Harness (one class: the Java side's input for a scenario that states its own datasets). run_java_cics copied each scenario-stated file's Java input (in/<DD>.<scenario>.in) from the COBOL scenario's files/ copy. That copy is the COBOL task's own working file, and the stub updates it in place, so after the COBOL run it held the task's end state. The Java task then started from a different file than the COBOL task did. Cases that use scenario-stated datasets: 33 scenarios in 4 cases (ZECS000 13, ZECS001 16, ZECS003 3, CardDemo cardlist 1).

  • This was the undiagnosed cause in P117: "ZECS001 DELETE of a stored key and POST / PUT over an existing key diverge (204 Record not found; SYNCPOINT rollback)". Java found the key already deleted, or the new record already written.
  • It also made ZECS000's expiry scenarios compare vacuously. For example, expired-501-delete's Java key file was 512 bytes (already pruned) against a 1024-byte stated seed, and control-record-first-write started with the control record the COBOL task had just written. So ZECS000's published L4 rested on wrong Java inputs.
  • Fix: stage_scenario_inputs builds the Java input from the scenario's stated records (case_file_records), the same bytes the COBOL task started with. Case-level files were already staged from the pristine files/ and are unchanged.

B. det runtime (unmasked by A). With real inputs, ZECS000 control-record-first-write reaches READ FILE(ZF-FCT) with ZF-FCT = ' FILE' (RETRIEVE answered NOTFND, so ZF-TRANID stayed blank). The stub answers FILENOTFOUND. The det port threw Hole: CICS file FILE: no store in the generated project, after .strip() had turned the name into FILE.

  • IBM: a FILE name is padded with trailing blanks, and a CSD name has no blank in it, so ' FILE' is defined in no region.
  • Fix:
    • The translator passes FILE / DATASET names with stripTrailing() (det/cics.py file_name).
    • CicsTask.undefinableFile (empty, or a blank inside) and CicsTask.fileFault answer FILENOTFOUND after any planned condition, in the stub's order. Every file-control entry point that consulted injected now goes through it.
    • The generated store() returns an empty store for such a name, so eager arguments (a WRITE's exists) don't throw first.
    • A definable name with no store stays a Hole: the region's file list is not known to the port.

Assumptions (register X75, new)

Ladder evidence (det sweep, --faults all)

case scenarios paragraphs before -> after net branches before -> after equal on every scenario
zecs-zecs001 38 -> 42 82/119 (68.9%) -> 91/119 (76.5%) 116/208 (55.8%) -> 124/208 (59.6%) yes (L2)
zecs-zecs000 19 38/38 -> 38/38 48/48 -> 48/48 yes, now on its stated inputs (L4 holds)
zecs-zecs003 18 21/21 30/30 yes
carddemo-cardlist 46 run 36/36 147/149 yes

New ZECS001 scenarios: delete-stored, post-existing, put-existing, post-existing-rewrite-ioerr. These reach 5000-EXIT, 5300-SEND-RESPONSE, 4110-PRIME-KEY, 4500-UPDATE-KEY (both arms), 4700-DELETE and 4130-EXIT.

Full non-Db2 det sweep with this change: 98/99 cases equal. The one exception is genapp-lgsetup, baselined (#5252); its fix is the companion credit PR (#6839 row C). Only zecs-zecs001's coverage ledger entry is committed (its case changed). The other entries' harness fingerprints go stale (non-blocking) and are left to the evidence-refresh bot.

Left open (ZECS001 stays L2)

The GET-hit path (3000-EXIT, 3400-STAGE, 3500/3510, 3600-SEND-RESPONSE) is blocked on row D: variable-length VSAM READ returns the area length. Rows E-K list the rest, and the 1500/1600/1610 arms wait on ZECS002 (#5859).

Checks

🤖 Generated with Claude Code

…ed; FILENOTFOUND for a file name no region defines; ZECS001 82 -> 91 of 119 paragraphs (Part of #6072)

Harness (#6839 row A): run_java_cics copied each scenario-stated file's Java
input from the COBOL scenario's files/ copy, which the stub updates in place,
so the Java task started from the COBOL task's end state. This was P117's
undiagnosed "stored-key DELETE / POST over an existing key diverge" and made
ZECS000's expiry scenarios compare vacuously. stage_scenario_inputs builds
the input from the stated records.

det runtime (#6839 row B, unmasked by A): a FILE name with a blank in it
(ZECS000's '    FILE' when RETRIEVE answers NOTFND) answers FILENOTFOUND as
the stub does, instead of a Hole; file names keep leading blanks
(stripTrailing). Register X75 (RESP2 0, the stub's; IBM documents 1).

ZECS001: four scenarios (stored-key DELETE, POST / PUT over an existing key,
the key REWRITE IOERR arm): 82/119 -> 91/119 paragraphs, 116/208 -> 124/208
net branches, equal on all 42. Non-Db2 det sweep: 98/99 equal (lgsetup
baselined, fixed separately).

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

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab


def ref(self, text: str) -> E.Ref: ...
def name(self, text: str) -> str: ...
def file_name(self, text: str) -> str: ...
@squid-protocol

Copy link
Copy Markdown
Owner Author

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

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 29, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 29, 2026 12:26
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 29, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit c0c4a89 into main Oct 29, 2026
68 checks passed
@squid-shepherd
squid-shepherd Bot deleted the credit/zecs-ladder-tail branch October 29, 2026 13:27
squid-protocol added a commit that referenced this pull request Oct 29, 2026
squid-shepherd Bot pushed a commit that referenced this pull request Oct 29, 2026
…proved, cp037 at the boundary (Part of #6839) (#7009)

* WIP: ZECS001 1500-AUTHENTICATE LINKs the lowered ZECS002 (Part of #6839)

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

* WIP: dto_for LINK test, design-doc boundary note, P117 round 8, det coverage refresh (Part of #6839)

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

* zecs-zecs001 auth scenarios: TODs 81-88, apart from #6952's 71-73 kept prefixes (Part of #6839)

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

---------

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

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.

Equivalence harness gaps that block the L1->L4 ladder: abend injection, SEND/RECEIVE/RETURN/SYNCPOINT/DELAY faults, CEEDAYS, X6 WRITEQ

2 participants