Skip to content

Strengthen mutation coverage and remove legacy gate exclusions - #213

Merged
tob-scott-a merged 1 commit into
mainfrom
codex/improve-mutation-coverage
Nov 24, 2026
Merged

tob-scott-a merged 1 commit into
mainfrom
codex/improve-mutation-coverage

Conversation

@tob-scott-a

Copy link
Copy Markdown
Collaborator

The reviewed mutation gate now checks every function in 12 production files and removes all 29 blanket legacy-function exclusions. The full reviewed campaign kills 780/786 mutants (99.24% raw); the remaining six match individually documented equivalence reviews. The gate reports zero unreviewed or inconclusive outcomes.

Adds boundary and invariant tests for snapshots, path matching, binary/query contracts, parser identity/linking, and Python/PHP callable references. These expose and fix newline/consecutive-globstar matching, valid binary/proxy/synthetic snapshot reloads, annotated variadic Python shadowing, and namespace-relative PHP callable acquisition. Small simplifications remove redundant snapshot work, query lookups, and resolved-node callable flags.

Also fixes the failure in mutation shard 2/8: the one-second assertion in test_many_runtime_definitions_are_linear failed at roughly 1.23 seconds under instrumentation. The replacement compares traversal work for 1,000 and 4,000 definitions, requires at most fivefold growth, and verifies that every function is retained.

Validation:

  • 5,812 tests pass with native GNU/LLVM tools required, including 322 additional pytest cases.
  • Full reviewed mutation campaign: 780/786 killed, six reviewed equivalents, zero errors/timeouts; standard gate passes.
  • Matched-source comparisons: snapshot tests add 29 kills on the same 131-mutant inventory; final callable vectors add 17 kills on the same 380-mutant inventory, reaching 361/380 (95.0%).
  • Both CI regression cases pass with all 213 production files instrumented through the repository runner.
  • Ruff lint/format, ty, and whitespace checks pass.

Mutation CI now installs the binary extra and GNU/LLVM tools, requires native tests, and streams confirmed outcomes to a progress journal. Completed reports and source manifests remain authoritative.

These scores cover the stated components. The initial 12,068-mutant repository-wide campaign remains incomplete, so there is no complete global score. Callable references remain outside the reviewed gate: ten surviving mutations have source-invariant explanations and nine need further structured-input or graph-projection investigation. Raw campaign artifacts and triage reports remain ignored.

@tob-scott-a
tob-scott-a merged commit a30a6df into main Nov 24, 2026
30 checks passed
@tob-scott-a
tob-scott-a deleted the codex/improve-mutation-coverage branch November 24, 2026 04:08
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