Skip to content

det_mutation: a ledger that lost only the mutants a moved port no longer has is not a narrower run - #7718

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
claude/detmut-rebase-guard
Nov 4, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
claude/detmut-rebase-guard

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

The evidence-refresh bot PR #7591 has failed the det required check on every push since 2026-11-03 11:41Z, so no evidence refresh has merged to main since #7538 (2026-11-02). That is why the evidence report is stale and the v2.12.0 PyPI publish stopped at its "Evidence report is current" job.

Cause: two rules disagree.

Fix: regressions() allows the fall only when every mutant the old entry judged and the new one does not is absent from the new entry's every, meaning it is gone from the port (_rebased_away). A sample that leaves out mutants the port still has is still flagged, and so is any entry that lacks the ids to tell.

Checked against the real ledgers (main vs auto/evidence-refresh-full):

case chosen lost lost still in port result
carddemo-adminmenu 156 -> 154 2 0 allowed
carddemo-signon 149 -> 148 1 0 allowed
carddemo-tranadd 149 -> 147 2 0 allowed
carddemo-tranview 149 -> 148 2 0 allowed
cbsa-abndproc (bot push 960949e, the cut the guard rightly caught) 455 -> 150 309 302 still flagged

Type of change

  • Bug fix
  • Docs, tooling, or CI only

Verification

  • python -m pytest tests/tools/test_det_mutation.py: 51 passed, including the new test_regressions_allows_a_count_that_fell_by_mutants_the_moved_port_lost, which covers the rebased case, a narrower sample, an entry with no every, and an old entry with no ids.
  • python tests/tools/audit_check.py: all clear (ruff baseline, format, mypy, dead-key, doc-refs, ast-accuracy).

After merge

#7591 needs a new merge commit so its det check runs this code: update its branch from main, or let the next evidence-refresh run push it.

🤖 Generated with Claude Code

…ger has is not a narrower run

The evidence-refresh bot PR (#7591) has failed the det check on every push
since 2026-11-03 11:41Z, so no evidence refresh has reached main since #7538
and the v2.12.0 publish stopped at its evidence-report check.

Cause: refresh carries a moved port's verdicts (#7292) and rebase_entry drops
the sampled mutants the new port no longer has, so chosen falls (CardDemo
COADM01C 156 -> 154 after #7520). regressions() (#5862) read every fall as a
narrower sample and refused the ledger.

regressions() now allows the fall only when every mutant the old entry judged
and the new one does not is absent from the new entry's every, i.e. gone from
the port. A sample that leaves out mutants the port still has is still a
regression, and so is any entry that lacks the ids to tell.

Checked on the real ledgers: the 4 blocked CardDemo cases pass (0 of their
lost mutants are still in the port); the 2026-11-03 cbsa-abndproc 455 -> 150
cut that the guard caught is still flagged (302 of 309 lost still in the port).

Co-Authored-By: Claude Opus 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 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 18:13
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 098ddd5 into main Nov 4, 2026
34 checks passed
@squid-shepherd
squid-shepherd Bot deleted the claude/detmut-rebase-guard branch November 4, 2026 18:37
squid-protocol added a commit that referenced this pull request Nov 4, 2026
…#7721)

* skills: cut-release -- tag, preflight and publish a GitGalaxy release

What v2.12.0 taught: the version is the tag; publish.yml checks that the
evidence report is current at the tagged commit before it touches PyPI; the
evidence-refresh bot PR can sit unmerged for days while every refresh run
reports success (#7591, guard fixed in #7718); publishing the release page
first leaves a public release with no package. Adds the preflight, the safe
order (tag, watch PyPI, then the release page), the failure playbook, and how
to draft a large release's note cheaply from the generated reports. Linked
from release-notes and docs/ecosystem.md.

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

* cut-release skill: read per-estate reports through generated_branch.py show (#5206)

test_evidence_report_single_source failed: two lines named files under
docs/language_status/evidence_report/ that only the generated branch keeps
current. One now quotes the error generically; the other reads the report
the sanctioned way.

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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