Skip to content

zECS L5 revalidation: ZECS003, ECS001, ZECSNC, attacked survivors, gaps stated, L5 lost (Part of #4628) - #7496

Merged
squid-shepherd[bot] merged 5 commits into
mainfrom
l5-reval-zecs
Nov 3, 2026
Merged

squid-shepherd[bot] merged 5 commits into
mainfrom
l5-reval-zecs

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4628.

Attacked the zECS survivor verdicts with real inputs on the COBOL oracle. Three programs lose L5 here, which is the correct result: their verdicts were false, or the survivors are open gaps. No verdict was chosen to keep a level.

Partial PR. The owner asked to stop at a good point, so this holds only the cases whose full ledger run and survivors update finished. ZECSPLT is left out (see below).

L5 and raw score, per program

program L5 before L5 after raw before raw after survived before / after open gaps
ZECS003 yes no 432/950 (45%) 455/950 (48%) 518 / 495 15
ECS001 yes no 339/662 (51%) 344/662 (52%) 323 / 318 29
ZECSNC yes no 240/524 (46%) 240/524 (46%) 284 / 284 23
ZECSPLT (not in this PR) yes unchanged 124/361 (34%) unchanged 237 0

ZECSPLT's "yes" stands only because its ledger was not re-run: two of its stated verdicts are known false (below).

Paragraph and branch coverage did not move: ZECS003 21/21 and 30/30, ECS001 15/15 and 18/20.

What changed

Inputs added.

  • zecs-zecs003 (7): abs-equal-current (new seed zcfile-abs-equal.bin, with @case/), fault-read-zf, fault-delete-zk, doc-too-long, hex-ca-adr, dto-entry-sdr, body-41.
  • zecs-ecs001 (1): get-body-3001.
  • zecs-zecsnc: none; no attack killed anything.

Verdicts removed by the full ledger run. Ids the run killed were dropped: 23 in ZECS003, 5 in ECS001. That is more than the attacks aimed at: 10 of the ZECS003 ids and 2 of the ECS001 ids (494424feef, 6efd238a10) were killed in passing. ECS001's 941dff385c needed no new input; an existing scenario kills it, so that verdict was simply stale.

Open gaps stated with det_mutation.py state, each with its own reason.

  • harness-gap:
    • WEB OPEN failure: ZECS003 L1009-1010, ECS001's A3000 error path.
    • WEB CLOSE failure: ECS001's A5000 error path.
    • WEB SEND failure before DOCUMENT CREATE: ZECS003 L953.
    • The facades: ZECS003's two-argument handleLink and lastLinkBytes, ECS001's handleLink().
  • case-gap:
    • ZECSNC's DTO and raw COMMAREA paths, which need a caller in the case.
    • ZECS003's 3c8bee1dba and 5b478174de, killed only by a 100-byte record zECS never writes (excluded pending an owner ruling).
    • The ZECS003 task.write tag group (below).

Deliberately left out

  • transid-zc02 (port-differs): COBOL answers FILENOTFOUND for ZC02FILE; the port's fileKey maps it onto the ZC01 store and deletes records. Separate work.
  • short-record-stale-zk and send-fail-lengerr: pending an owner ruling. ECS001's b3aecad802 therefore keeps its stated verdict.
  • "recovery": "NONE": the CSD says it for both ZC## files, but stating it with an abend after DELETE GENERIC makes the port differ from the COBOL, so it does not settle the tag group. Both were backed out and the group stays case-gap.

Not done

  • ZECSPLT. Its case edits (two-instances, and the case note that scenario makes false) are on local branch l5-reval-zecs-plt, unpushed. Its ledger was not re-run, so 64243e3a41 and 54cdfc3a66 stay stated although attacks killed them, and 14d9c71816, the XCTL/LINK group and the facades are not yet moved to gaps.
  • 54cdfc3a66 (ZECSPLT). It is killed only by a byte COMMAREA followed by another task. The java-facade refuses that input (handleTransaction of ZECSPLT cannot take the COMMAREA ([B)), so it cannot enter the case without a harness change.
  • b7052a41df (ZECS003). The earlier audit killed it with a URIMAP path holding X00; that input is not in this PR and the verdict still stands.
  • 07e99ad17e (ZECS003). Its stated reason (a task.write tag) is wrong: it is the ZkRecord lengths lookup. state refuses a new equivalent because the mutant's attempts include the transid-zc02 port-differs, so it stays as stated.
  • Mutants scored below 3 by survivor_attack.py next were not attacked individually.

To resume ZECSPLT: take the case edit from l5-reval-zecs-plt, run det_mutation.py run zecs-zecsplt --work DIR --sample 0, drop killed ids, state its gaps, then ladder_refresh.py zecs-zecsplt.

Gates

  • pr_gates --ratchets: 9 pass, 0 fail, 0 skipped.
  • pr_gates --fast: 8 of 9. derived fails because tests/tools/docs_read_by_tests.txt is stale on a docs/wiki/05-20-equivalence-harness.md line. This PR touches no docs or tests, so I left it alone.
  • det_mutation.py stale-check --vs origin/main: no stale ledger.
  • ladder_refresh.py zecs-zecs003 zecs-ecs001: both proven, pin tests 1108 passed, 3 skipped. That run was on the base this branch started from; main moved before push, and none of main's commits touch these files.

Class / Sibling gaps

Class: stated survivor verdicts that an input of the program can refute, across the zECS L5 programs; each member was attacked with oracle inputs, not re-reasoned. Handled here: ZECS003, ECS001, ZECSNC.

Sibling gaps:

  • ZECSPLT: not landed (see Not done).
  • ZECS000, ZECS001, ZECS002: not in this revalidation's scope.
  • Faults the harness cannot plan: WEB OPEN, WEB SEND, WEB CLOSE.
  • The java-facade refusing a byte COMMAREA.
  • Translator: fileKey folding every instance's files onto one store.
  • Harness or runtime: RECOVERY(NONE) after an abend; the READ event comparison, which reported equal events on transid-zc02.

🤖 Generated with Claude Code

@squid-protocol

Copy link
Copy Markdown
Owner Author

Rulings (made by Claude at the owner's request, 2026-11-03; the owner may override)

1. Records zECS never writes (short-record-stale-zk; ZECS003 3c8bee1dba, 5b478174de): they are valid inputs. Add them.

  • What bounds a program's file input is the dataset's stated definition, not the estate's own writers. ZC01FILE is RECORDSIZE(100 32700), so a 100-byte record is a record the file can hold. It can be loaded by IDCAMS REPRO, a migration, or another region. Accepting "our own writers never write it" as a verdict is the kind of verdict the 11-01 audit found false.
  • So both mutants are real case gaps. Add the 100-byte record scenario; if it kills them, drop the verdicts.
  • Rule for later cases: an input inside the CSD/IDCAMS definition counts. One outside it (a record longer than the maximum, a key of the wrong length) is family G, with the definition cited.

2. Injected command faults (send-fail-lengerr; ECS001 b3aecad802): only conditions IBM documents as possible for the program's actual operands.

  • A fault scenario may raise a condition only if IBM's page for that command lists it and the program's operands can trigger it. Example: SEND TEXT LENGERR is "an out-of-range value supplied in LENGTH". If the program passes a literal length IBM accepts for the device, LENGERR cannot happen, the scenario stays out, and b3aecad802 keeps equivalent. Its reason must then be rewritten to cite the operand and the IBM page (the current Math.min reason is not the real one).
  • If the length comes from data, or the device makes 1920 out of range, the scenario goes in and decides the verdict.

3. ZECSPLT: its unpushed case edits are now on origin/l5-reval-zecs-plt (114d72d, five commits, pushed as-is). Finish it per this PR's "To resume ZECSPLT" steps, in this PR or in one that follows.

Merge path: apply 1 and 2, re-run the affected ledgers (det_mutation.py run ... --sample 0), state the gaps, ladder_refresh.py, then mark ready and merge. Programs that lose L5 lose it: that is the audit result.

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

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 3, 2026 15:45
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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