Skip to content

equivalence: det-port mutation tooling and the L5 hook (slice 1 of #4628) - #5146

Merged
squid-protocol merged 49 commits into
mainfrom
churn/4628-20261014T1221Z
Oct 18, 2026
Merged

squid-protocol merged 49 commits into
mainfrom
churn/4628-20261014T1221Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Part of #4628 (evidence L5: det-port mutation testing, every surviving mutant accounted for). Slice 1 of 6, the tooling and the L5 hook. Opus rescue, 2026-10-17: the PR had grown to 45 files (tooling, scenario strengthening for 10 cases, per-case runs and triage), and six fix runs in 24 h didn't finish it. It is now cut to five hand-written files. Everything else is in the branch history at 7a05c8eff for the later slices.

What's here

  • tests/tools/det_mutation.py (+ test_det_mutation.py): runs mutation.py on the det port of an equivalence case (det_port.py run --translate-only, service/*.java only, entry points the case's kind never calls are dropped; sample 150, seed 0, same harness and operators). It writes a per-case ledger (tests/equivalence/det_mutation/<case>.json) fingerprinted on port, case, corpus, harness, oracle and generator, so a moved input makes the entry stale. It also writes a reviewed survivor list (det_mutation_survivors/<case>.json, the proof_blockers: the strict branch bar counts statically dead outcomes -- 13 CardDemo programs cannot reach it (#4270) #4602 pattern): equivalent / unreachable count as accounted for, while case-gap / harness-gap are triaged but not accounted for. A run that kills a stated equivalent / unreachable mutant fails.
  • tests/tools/mutation.py: --port / --files / select hook (mutate a port outside the case), and javac runs --jobs at a time.
  • tests/tools/evidence_report.py (tooling: purchaser-facing evidence report (#4601) #4603): places L5 from a fresh entry with every survivor accounted for, and shows the raw score as its own column.
  • docs/language_status/mutation_testing.md: the det-port L5 section.

No ledger is committed in this slice, so the evidence report shows every program as "not measured" for L5. No level moves.

Gates

  • pr_gates.py --fast: 6/6 pass. --ratchets --only-ratchets time: pass.
  • test_det_mutation.py + test_evidence_report.py: 84 passed; test_mutation_tooling.py + test_timeouts_4904.py: 22 passed (plain pytest from /tmp).

Class table

Class: the 13 strict-bar det-port programs of #4628 and their L5 status.

member status evidence
all 13 (COADM01C COBIL00C COCRDSLC COTRN00C COTRN01C COTRN02C COUSR00C COUSR01C COUSR02C COUSR03C COSGN00C ABNDPROC UPDCUST) missing: no ledger committed in this slice Remaining slices 2-6

Remaining slices

Each is one PR of <= 5 hand-written files. Generated files (evidence.json, det_sweep_coverage, det_mutation ledgers) don't count toward that limit.
2. First ledgers: the .gitignore exception for det_mutation/ + det_mutation_survivors/. Run signon (COSGN00C) and updcust (UPDCUST), which were nearest to done (1 harness-gap each), on the strengthened case.json of those two from 7a05c8eff. Re-prove evidence, det_coverage_ledger.py update, commit the ledgers plus the reviewed survivor lists. Acceptance: det_mutation.py check clean, table shows both.
3. adminmenu, billpay, tranadd (case.json from 7a05c8eff, already merged with #5293's XCTL scenarios): re-prove, re-run, carry the verdicts over (handoffs/4628-triage/carry.py), triage the rest.
4. cardview, tranview (COCRDSLC, COTRN01C) + tranlist (COTRN00C, never run).
5. useradd, userupd, userdel (COUSR01C, COUSR02C, COUSR03C).
6. userlist (COUSR00C, 57 untriaged) + cbsa-abndproc (ABNDPROC).

Owner review of the equivalent / unreachable claims happens in each slice's PR.

Uncommitted ledgers from the last runs (cardview, tranlist, tranview, useradd, userdel, userlist, userupd, plus a newer billpay) are saved at handoffs/4628-triage/uncommitted-at-rescue-7a05c8eff/. They are stale on the strengthened cases, so they're useful only as triage input.

Owner decisions

Owner OK (phone, 2026-10-17): fix PR #5146 (churn/4628-20261014T1221Z): conflicts with main. Work on the PR's own branch: merge origin/main (never rebase), resolve (regenerate generated docs, never hand-merge them), read any red check and fix what is real, gates, push; report the PR's CI.

Owner OK (phone 2026-10-17): one more fix run on PR #5146, narrower brief: fix ONLY the failures listed in the latest review/CI on the PR's own branch (merge origin/main first), no scope growth, stop and report on any permission denial.

Owner OK (2026-10-17): a rescue run may close this PR and edit issue #4628.

🤖 Generated with Claude Code

squid-protocol and others added 30 commits October 8, 2026 17:47
…ce L5, #4628)

tests/tools/det_mutation.py runs mutation.py on the det port of a case (its
service/*.java, the entry points the case's kind never calls out of scope),
records it in tests/equivalence/det_mutation.json keyed by fingerprints, and
checks the reviewed survivor list tests/equivalence/det_mutation_survivors.json
(a run that kills a stated equivalent / unreachable mutant fails). status() is
the evidence report's L5 hook (#4603). mutation.py: --port / --files, javac
stillborn check --jobs at a time.

Strengthened carddemo-signon (PF4, both XCTLs failing) and cbsa-updcust (four
scenarios) for killable survivors; evidence record and coverage ledger
regenerated. Part of #4270.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ivors (#4628)

PF4, PF3's XCTL failing (PGMIDERR), and a COMMAREA with every field set.
An unhandled XCTL condition (NOTAUTH) was tried and left out: the committed
model port sends the menu instead of abending, and the det runtime knows no
abend code for NOTAUTH. Evidence record and coverage ledger regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ors (#4628)

PF3's XCTL failing (the task abends), and a COMMAREA with every field set
with the FSET header fields received back. Evidence record and coverage
ledger regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ors (#4628)

A failed lookup after the FSET fields come back, and a COMMAREA with every
field set (the CU03 part too). PF3's XCTL failing was tried and left out: the
committed model port RETURNs instead of abending. Evidence record and coverage
ledger regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ors (#4628)

The first name changed alone, the FSET fields sent back with nothing changed,
a COMMAREA with every field set, and PF12's XCTL failing. Evidence record and
coverage ledger regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…vors (#4628)

The FSET header fields sent back, a COMMAREA with every field set (the CT01
part too), and PF5's XCTL failing. Evidence record and coverage ledger
regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ors (#4628)

A COMMAREA with every field set (the CB00 part too). PF3's XCTL failing was
tried and left out: the committed model port RETURNs instead of abending.
Evidence record and coverage ledger regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…vors (#4628)

PF15 (CSSTRPFY's PF3), a COMMAREA with every field set and the card filter
blank, a card filter of zeros, '*', and a COMMAREA from the card list with
another mapset. Evidence record and coverage ledger regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ors (#4628)

One malformed part at a time in the amount and both dates, the FSET header
fields sent back, and a COMMAREA with every field set. PF3's XCTL failing was
tried and left out (#4648: the model port RETURNs). det_mutation.py record
takes a lock so two runs cannot lose an entry. Evidence record and coverage
ledger regenerated.

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

Paused at the owner's usage limit; see handoff-4628-det-mutation.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-10-08) into churn/4628

Generated files (evidence.json, the retired det_sweep_coverage.json, the git-ignored evidence pages) take main's side;
they are regenerated by their tools for the strengthened cases.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…dence report places L5 and shows the raw score (#4628)

det_mutation.json / det_mutation_survivors.json become tests/equivalence/det_mutation/<CASE>.json and
det_mutation_survivors/<CASE>.json (as det_sweep_coverage/, #4789). det_mutation.measured() returns a stale result
marked stale; status() stays the strict L5 hook. evidence_report.level_of places L5 on a fresh, all-accounted entry;
a raw-score column and the one-line accounting per program.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… per component as an evidence record (#4731, #4628)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… of the strengthened cases; COSGN00C survivors triaged (proposed) (#4628)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ved: re-run mutation after)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-measured after the main merge (#4628)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…et-port caWhole survivors (#4628)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tant 6311acc336); evidence re-proved, det coverage re-measured (#4628)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…df1a4, 2d6479e41b; evidence re-proved (#4628)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol added shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md and removed shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 18, 2026
@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md and removed shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 18, 2026
squid-protocol and others added 2 commits October 18, 2026 06:52
…t of #4628)

test_posix_only_imports_4934 failed on full-suite part 3: the record lock's
`import fcntl` was unguarded. Off POSIX the entry is written unlocked.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol removed 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

CI shepherd: the head of this PR (376c06a) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 93bd51a into main Oct 18, 2026
31 checks passed
@squid-protocol
squid-protocol deleted the churn/4628-20261014T1221Z branch October 18, 2026 11:27
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