Skip to content

survivor_attack: batch try, and the PR gate refuses bulk survivor reasons (Part of #4628) - #8014

Merged
squid-protocol merged 3 commits into
mainfrom
feat/l5-batch-try
Nov 7, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
feat/l5-batch-try

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4628.

Why. watcher1 (Gemini Flash on the owner's Pi 5) labelled every survivor of its L5 PRs (#7720, #7739, #7762, open #7981), but from about five stock sentences ("Execution path … at line N: condition … is unexercised by current test input scenarios"). Almost none had an attack on record. Four of its eight programs (CBSTM03A, PAUDBLOD, PAUDBUNL, COBSWAIT) are batch programs, and try could not attack batch programs at all. And "unexercised" contradicts the ledger: CBSTM03A's proof covers 25/25 paragraphs.

1. survivor_attack.py try handles batch cases

A batch case is one job step, so each input changes the step. Every input has a name and a why, plus exactly one of:

  • "dataset", "based_on", "set": a new record of an input dataset (reuses strengthen.py's record builder; a keyed file needs a new key)
  • "generate": {DD: {"fields": …, "records": N}}: new generator specs for a @generate dataset (binary records, as in PAUDBLOD/PAUDBUNL)
  • "sysin" or "parm": replaces SYSIN or PARM
  • "fault": {"plan": […]}: a fault run. The trial carries only the proposed fault runs; with none, --faults none.

packet prints the layouts, the first records, the generated fields, SYSIN/PARM and a fault plan to copy.

Also fixed: a committed port that doesn't compile (a JDK 21 shell) is now refused, not port-differs, which the skill says is a real finding to report.

Live check: try carddemo-cobswait 98cd089a4e,f1af8da18b,04115c9006 with a SYSIN of zero wait: the port was proven on the trial case, and all 3 survived. Those survivors are real harness-gaps: the wait length is never observed.

2. The verdict gate (stale-check --vs origin/main, state, lint)

These rules apply only to survivor entries the PR writes; verdicts already carried on main stay untouched:

  • One reason on many lines. The same template (numbers, quoted code and method names stripped) on more than 10 Java lines of a case is refused, unless each entry has an attack or a facts settlement in tried.
  • "Unexercised" on covered code. A case-gap or harness-gap that says the code doesn't run is refused when the proof covers every paragraph. A claim naming a branch still stands while branches are left uncovered.
  • state --attempts now records the attack behind a gap verdict too.

The skill now documents both, and says an unstated survivor is already open: leave it out instead of writing a stock sentence.

Replay over every survivor-file change since 2026-10-28 (142 commit/case pairs):

Effect on lanes

Verification

  • pytest tests/tools/test_survivor_attack.py tests/tools/test_det_mutation.py: 110 passed
  • tests/ruff_audit.py --ci: no new findings; tests/mypy_audit.py --ci: no new errors; ruff format --check clean

🤖 Generated with Claude Code

squid-protocol and others added 3 commits November 7, 2026 09:08
…survivor reasons (Part of #4628)

Batch `try`: a batch case is one job step, so an input changes the step -- a new record of an
input dataset (strengthen.py's record builder), new generator specs for a `@generate` dataset,
SYSIN, PARM, or a fault run. The trial is the committed step with those changes; `packet` shows
the layouts, first records, generated fields and a fault plan to copy. CBSTM03A, PAUDBLOD,
PAUDBUNL and COBSWAIT had no attack path at all before this.

The verdict gate (`stale-check --vs REF`, `state`, `lint`), for the entries a change writes:
- one reason template (numbers, quoted code, method names aside) on more than 10 Java lines of a
  case, unless each entry has an attack or `facts` settlement on record;
- a case-gap / harness-gap saying the code is not exercised when the ledger's proof covers every
  paragraph (a branch claim stands while branches are left uncovered).
`state --attempts` now records the attack behind a gap verdict too.

Replayed over every survivor-file change since 2026-10-28 (142 commit/case pairs): all of
watcher1's PRs (#7720 #7739 #7762, open #7981) are refused, as are the 10-30/11-01 bulk
"account for all" PRs the 11-01 audit found wrong; open #8003 and #8004 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… not port-differs (Part of #4628)

Found on the first live batch `try` (COBSWAIT from a JDK 21 shell): the Java build failed, and
`try` said port-differs, which the skill says is a real finding to stop and report. A compile
failure of the unchanged committed port is the box; a crash on the new input stays port-differs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	tests/tools/test_survivor_attack.py
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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