Skip to content

creastmt det mutants: 2 stated equivalent, 0 killed, SORTOUT OPEN finding (Part of #8885) - #9091

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8885-20261123T0741Z
Nov 23, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8885-20261123T0741Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8885. Survivor attack on the 78 open carddemo-sort-creastmt (DFSORTST) det mutants from #9082: 2 stated equivalent, 0 killed, 1 port finding. L5 for the program moves from 59/137 (43%) with 78 open to 59/137 with 76 open.

Checklist: partial [c:69f0e953] -- not worked here; the nightly proof item is untouched (TRANIDX stays refused by name).

What I did

  • survivor_attack.py facts: settles 7 of the 78 from the port's text (already stated on main or not new yield).
  • try with fault inputs (SORTIN OPEN 35 / READ 30, SORTOUT OPEN 37 / WRITE 34) aimed at the message-literal and open-name survivors (87ed862a65 fbaed07eed 5395bd522e 98c11bbc2f 605059d62c f477c39f80 f8018d5d8e): all port-differs, see Finding. None killed.
  • try with a dataset input (SORTIN based_on / set) aimed at a73c67716b (K2 key length 17, killed only by a pair with equal card + TRAN-ID and a different TRAN-TYPE-CD byte): the tool cannot build it, because input_layout reads program_source as a corpus path and this case's source is @case/DFSORTST.cbl (FileNotFoundError). A hand-built case would also put equal keys into a case that avoids them by design (DFSORT with no EQUALS leaves their order undefined), so it stays open.
  • try with a PARM (the only input the tool can run here) on 0208aac286 63ac1a8908 1853734acb 762fd54863: all survived, as expected for an unread PARM. Two are stated, by reading the port:
    • 0208aac286: MOVE W-REC(263:17) into the 16-byte W-OUT(1:16) truncates on the right; same receiver.
    • 63ac1a8908: W-OUT(1:17) only pads byte 17, which the next MOVE (W-REC(1:262) to W-OUT(17:262)) rewrites on the only path.
      The PARM attempt is on record only so state accepts the entry; the verdicts rest on the reasons, not on it. Stated with attempts per det_mutation.py state --attempts; survivor_attack.py lint, det_mutation.py check and stale-check --vs origin/main pass.

Finding (port-differs, not fixed here)

Fault SORTOUT OPEN status 37: COBOL RETURN-CODE 1 (runtime error), Java RETURN-CODE 0. DfsortstService.p1 stores O_FILE.open("OUTPUT") in st2 and never reads it (the WRITE has a Hole for a bad status, the OPEN has none). IBM abends an OPEN with no FILE STATUS / declarative; the port carries on. The SORTIN faults are refused by name (Sort$NotModelled), the SORTOUT WRITE fault by Hole: the port refuses, GnuCOBOL does not abend the same way, so the fault runs differ by design.

Still open (unstated; no reason written without an input)

Left unstated: the 76 others. Notes: IMAGE/initialState mutants (W-OUT is fully rewritten per record) and perform-stack scaffolding (performThru, depth) need a harness that compares working-storage, or a deeper nest than this program has; 1853734acb (perform(1, 2) runs BUILD-OUT once more after the loop, writing nothing) changes only uncompared W-OUT state: a harness-gap candidate.

Class / Sibling gaps

Class: survivors of the det-port mutation ledger on a DFSORT-lowered batch step (a case whose program source is @case/...), which survivor_attack.py try cannot aim dataset inputs at. Sibling gaps: every other carddemo-sort-* / @case-source case has the same try limitation (strengthen.input_layout resolves program_source against the corpus only); the SORTOUT OPEN-status gap above is the same shape for any lowered file OPEN whose status the port discards. Not done here; no issues filed.

Remaining slices

  1. strengthen.input_layout: resolve @case/ sources (1 file + test), then redo the dataset attacks (a73c67716b with a duplicate-key pair needs an owner ruling on EQUALS first).
  2. DfsortstService OPEN OUTPUT status check in the det translator (finding above) with a fault case.

🤖 Generated with Claude Code

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 23, 2026 07:47
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 23, 2026 07:49
@squid-shepherd
squid-shepherd Bot merged commit 1514959 into main Nov 23, 2026
57 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8885-20261123T0741Z branch November 23, 2026 07:53
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