Skip to content

mutation runs record themselves: --record on mutation.py / mutation_crucible.py (Part of #4048) - #5517

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4048-20261018T1903Z
Oct 18, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4048-20261018T1903Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4048.

Checklist: done [c:e577218a]

What

mutation_scores.py build already refreshed the records, but mutation.py run / mutation_crucible.py run only wrote a scratch DIR/mutation.json, so a person chained the scoring and evidence.py mutation by hand.

  • mutation_scores.build_scores() is now the body of build (CLI output unchanged); into the committed file it still refreshes every record's mutation and the pages.
  • mutation_scores.record_run(work, triage_files): scores a run into the committed file with --keep-others, carrying over the committed survivors' triage (new survivors stay untriaged unless --triage FILE is given).
  • mutation.py run CASE --record [--triage F ...] and mutation_crucible.py run --record [--triage F ...] call it after the run.
  • --record is refused with --case-file / --only / --port / --files (mutation.py) and --case-gaps (crucible): those do not judge the committed port on the committed case (re-judging is build --rejudged). Sampling stays allowed: the committed scores are samples.
  • docs/language_status/evidence_records.md writers table updated. No approval is touched (save() keeps them).

Class table

member status
mutation.py run --record added
mutation_crucible.py run --record added
mutation_scores.py build already refreshed; now shares build_scores
det_mutation.py run out of scope: mutates a det port, not the committed port
evidence.py mutation stays as the manual refresh

Tests

tests/cobol_mainframe/test_mutation_scores.py: refresh + triage carry-over, no refresh for a non-committed --out, mutation.py and crucible --record chaining and refusals (runners stubbed; no Java run here, so a real --record run on a port was not exercised).
Gates: pr_gates --fast 6/6 pass; test_mutation_scores.py, test_proof_reach.py, test_source_reads.py pass. --ratchets not run (no parser/golden/port change).

Lessons for agents

mutation_scores.py build replaces a port's survivors' verdicts unless the committed file is passed as triage; record_run does that.

🤖 Generated with Claude Code

… --record (Part of #4048)

build_scores() is the body of `mutation_scores.py build`; --record on both runners scores the run into the
committed file (committed triage kept) and refreshes the evidence records, no `evidence.py mutation` step.

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 Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 18, 2026 19:10
@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 19:19
@squid-protocol
squid-protocol merged commit adbe1ab into main Oct 18, 2026
43 checks passed
@squid-protocol
squid-protocol deleted the churn/4048-20261018T1903Z branch October 18, 2026 19:26
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