Skip to content

fix(l5): the in-process CICS mutant path judges the java-facade side (Part of #8599) - #8639

Merged
squid-protocol merged 1 commit into
mainfrom
fix/8599-facade-in-process
Nov 19, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/8599-facade-in-process

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Part of #8599: the java-facade false survivors.

The gap

A CICS baseline is proven twice: through runTask, and again through the program's deployed entry points (run_case(facades=True), #4449). A separate-run mutant proof (--no-one-jvm, or the fallback) also does both. The in-process worker (mutation._DirectContext, fast+one-jvm, non-Db2/non-IMS) ran only the runTask side and judged it with evaluate_cics_outputs. So a mutant in facade-only code (handleLink, handleTransaction, lastLinkBytes) survived in process where a separate run killed it. Example: ABNDPROC 661ba858a8, COR on lastLinkBytes.

Summary

  • mutation._DirectContext._run_facade: when the baseline has a facade side (report["facade"]), the worker runs every scenario again with -Dequivalence.facades=true, after a passing runTask side. It runs in the same session JVM, under its own epoch (<id>:facade, so a fresh class loader, as a separate JVM would have). The result is judged with equivalence_cics.judge_facade, the same judge run_case uses for the baseline. A timeout counts as timeout, and a broken session falls back to the separate run, as on the runTask side.
  • mutation.facade_killers / killers: a facade kill is named <scenario> [java-facade]. Separate runs now name these too (before, killers ignored report["facade"] and returned []).
  • equivalence_cics.judge_facade(quiet=...): no per-scenario lines when called from mutant workers (stdout is shared between threads).
  • docs/language_status/mutation_testing.md: the gap and the validation.

Verification

  • cbsa-abndproc's 212 recorded survivors (195 still in the port), re-judged in process: 8 now die, 187 survive. Each survivor takes 2.2 s, facade side included.
  • Compare gate: the 8 new kills plus 6 random survivors, re-judged with --no-one-jvm. 14 of 14 agree, with identical killed_by (2 s in process against 31–54 s as separate runs).
  • None of the 8 is a stated equivalent/unreachable claim (416 stated rows checked), so this refutes no existing claim.
  • tests/tools/test_mutation_facade_8599.py (new; stubbed session):
    • no facade run when the baseline had none;
    • facade kill named by scenario;
    • its own epoch and out dir;
    • a failed facade run judged as error;
    • timeout;
    • a runTask kill skips the facade side;
    • killers on a separate run;
    • quiet.
  • pytest mutation suites (test_l5_speedups, test_det_mutation, test_mutation_bytes, test_survivor_attack, the cobol_mainframe mutation tests) plus the new file: 253 passed, 1 skipped. The harness tests that call judge_facade (test_equivalence_cics, test_equivalence_cics_facade_bytes_7607, test_equivalence_cics_facade_raw_bytes_8121): 89 passed, 2 skipped.

Not done here

  • Ledger renewal. The ledgers' harness fingerprint is INFO, not staleness, so recorded false survivors stay until their case is re-run. 112 CICS ledgers can use the in-process path, with 30,800 survivors between them (about 9–10 h on nyx at 2 jobs). That sweep needs a box and a decision. cbsa-abndproc's ledger is not re-recorded here either: its port moved, so a fresh run also brings new survivors.
  • survivor_attack.py try still proves with --no-facades. That's fine for an attack, because a facade-only kill now shows up on the next det-mutation run and refutes any wrong claim.
  • Independent of perf(l5): compile only the program per mutant, time in-process proofs from the unmutated port (Part of #8599) #8637 (compile/limit speedups). The two touch different parts of mutation.py.

Type of change

  • Docs, tooling, or CI only

🤖 Generated with Claude Code

… as the baseline does (Part of #8599)

A CICS baseline is proven through runTask and through the deployed entry points
(run_case facades, #4449), and a separate-run mutant proof does both; the in-process
worker ran runTask only, so facade-only mutants (handleLink, lastLinkBytes) survived
falsely (ABNDPROC 661ba858a8). With a facade side in the baseline, the worker now runs
it after a passing runTask side (own epoch: a fresh class loader) and judges it with
judge_facade (new `quiet`); kills are `<scenario> [java-facade]`, and killers() names
them for a separate run too.

cbsa-abndproc's 212 recorded survivors re-judged in process: 8 die, 187 survive.
The 8 plus 6 survivors with --no-one-jvm: 14 of 14 agree, same killed_by. None of the
8 was a stated claim.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol
squid-protocol marked this pull request as ready for review November 19, 2026 21:53
@squid-protocol
squid-protocol merged commit d6d3619 into main Nov 19, 2026
80 checks passed
@squid-protocol
squid-protocol deleted the fix/8599-facade-in-process branch November 19, 2026 23:00
squid-shepherd Bot pushed a commit that referenced this pull request Nov 20, 2026
…vivors, 7 new rows stated (Part of #7954) (#8733)

* CBSA ABNDPROC and UPDCUST: re-judge the facade-only wrapper survivors, state the 7 new rows (L5) (Part of #7954)

The 16 open rows (linked()/run() names, lastLinkBytes) were recorded before #8639 made the in-process judge run the
java-facade pass; a full re-run kills all 16. The 7 mutants the port move added: 4 constants nothing reads
(auto-state), 3 EIBCALEN / caBack rows stated equivalent after an attack on record.

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

* X10: slice 22, ABNDPROC and UPDCUST reach L5 (Part of #7954)

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant