Skip to content

det_mutation: sibling cases score a case's survivors; carddemo-userlist re-scored on its LINK sibling (Part of #6166) - #7767

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6166-20261105T0751Z
Nov 5, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6166-20261105T0751Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6166, slice 2 (slice 1: #7760).

Checklist: partial [c:da7b5789] -- 3 LINK-level survivors of carddemo-userlist stay case-gap (need a byte[]-area LINK caller / a LINK-level survivor attack); 38 others are stated, the ~34 stated verdicts without tried and the dataset-key mutants are not touched here.

What changed

  • tests/tools/det_mutation.py: new sibling CASE SIBLING --work DIR. A case whose program another case enters differently (COUSR00C by LINK: linked is a case-level flag) can now kill the first case's recorded survivors. It translates CASE's det port, runs only CASE's survivors against SIBLING's case.json (mutation.py, same fast mode), moves kills to killed, drops their stated verdicts, and records siblings: {name: {case sha, ran, killed}} in the ledger entry. A moved sibling case.json stales the entry (sibling:<name> in stale()), so a kill cannot outlive its case.
  • tests/tools/test_det_mutation.py: 4 tests (kill, no kill, unjudged survivor refused, sibling move stales).
  • tests/equivalence/det_mutation/carddemo-userlist.json, .../det_mutation_survivors/carddemo-userlist.json (regenerated / ledger): refresh --run-moved first (the translator moved the caBack line; one new mutant), then sibling carddemo-userlist carddemo-userlist-linked.

Evidence

  • Sibling run: 42 survivors judged on the 10 linked scenarios (runTask and java-facade sides), 1 killed (040dc5b38a, the caBack raw offset CON, by the java side: the port crashed), 41 survive. Carddemo-userlist now 109 killed / 41 survived / 38 accounted / 3 unaccounted (was 27 unaccounted before slice 1's attack and re-statement).
  • The 4 LINK-entry survivors: f38b97a36c moved with the port (ROR line gone; its successor 040dc5b38a is the kill) and its stale stated entry is dropped, as is the stale 7f8c9b127d (id no longer in the port). 7671a00fb6, 34799ba0a3, ce878f3bbb survive the linked case; each stays case-gap with the narrower reason (reasons name the line: byte[] COMMAREA branch, handleLink(request, byte[] area) overload only, abend hand-back never has a write to hand back since COUSR00C only reads DFHCOMMAREA). No equivalent is claimed: no attack on record.
  • det_mutation.py check ok; test_det_mutation.py 55 passed; pr_gates --fast lint/audits/secrets/xray/gen-docs/derived/workflows/gauntlet PASS (see CI for the rest). Ratchets (--ratchets) not run: no engine, golden, or port change.

Class / Sibling gaps

Class: a det-mutation survivor of one case that only a sibling case of the same program (another entry mode: LINK, XCTL target, batch step) can kill; the ledger had no way to score such a case. Members covered here: carddemo-userlist x carddemo-userlist-linked (the only sibling pair in tests/equivalence/ with a shared program and a different entry mode that the ledger records).
Sibling gaps:

  • 7671a00fb6, 34799ba0a3, ce878f3bbb (carddemo-userlist): case-gap, need a case whose LINK caller passes a byte[] COMMAREA/area and a harness that reads lastLinkBytes; why not here: harness change (equivalence_cics.py), over the 5-file cap.
  • survivor_attack.py try builds the committed case (linked is not carried), so a LINK-level equivalent verdict cannot get a tried record yet.
  • refresh carries siblings but does not re-judge them after a port move; a moved port drops back to sibling.
  • Other 38 stated entries without tried (pre 2026-11-01), dataset-key mutants 7c6d5055f5 / 8526a1b6cf.
  • Other burned cases with a -linked / sibling twin: none found beyond this pair.

Remaining slices

  1. Harness: byte[] LINK area caller + lastLinkBytes comparison (equivalence_cics.py, case, test).
  2. survivor_attack.py sibling/linked-aware try.
  3. refresh re-judges recorded siblings.

Lessons for agents

  • det_mutation.py ledger survivors can hold ids whose line the translator moved: run refresh --run-moved before any re-score, or a sibling run reports "did not judge every survivor".

🤖 Generated with Claude Code

…t re-scored on its LINK sibling (Part of #6166)

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 Nov 5, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 5, 2026 08:27
@squid-shepherd

squid-shepherd Bot commented Nov 5, 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