Repository navigation
survivor_attack: batch try, and the PR gate refuses bulk survivor reasons (Part of #4628) - #8014
Merged
Merged
Conversation
…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
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
trycould not attack batch programs at all. And "unexercised" contradicts the ledger: CBSTM03A's proof covers 25/25 paragraphs.1.
survivor_attack.py tryhandles batch casesA batch case is one job step, so each input changes the step. Every input has a
nameand awhy, plus exactly one of:"dataset", "based_on", "set": a new record of an input dataset (reusesstrengthen.py's record builder; a keyed file needs a new key)"generate": {DD: {"fields": …, "records": N}}: new generator specs for a@generatedataset (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.packetprints 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, notport-differs, which the skill says is a real finding to report.Live check:
try carddemo-cobswait 98cd089a4e,f1af8da18b,04115c9006with 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:
factssettlement intried.state --attemptsnow 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
state --attempts, or leave survivors unstated.Verification
pytest tests/tools/test_survivor_attack.py tests/tools/test_det_mutation.py: 110 passedtests/ruff_audit.py --ci: no new findings;tests/mypy_audit.py --ci: no new errors;ruff format --checkclean🤖 Generated with Claude Code