Repository navigation
Closed
Labels
priority/p3-lowPriority P3: a small improvementscope/ciGitHub Actions workflows, pre-commit hooks, CI gates, and runnersscope/cliCore CLI framework, Typer subcommands, options, and tablestype/featureType feature: a new function
Milestone
Description
Context & Rationale
Coverage at or above 90% shows that tests run the code, not that they check it. #601 measured a generated test passing against a multiply() that returned x + y (ROADMAP.md:546). The repo has no mutation tool; ai/review/defects.py scores only the reviewer.
Prior art:
- Google surfaces individual mutants in code review ('Please fix this mutant', ICSE-SEIP 2023).
- Meta's ACH generates tests that kill the mutants that survive (arXiv 2501.12862).
- Neither gates on a score. An '80% killed' threshold has no source, and on a small diff a single surviving mutant decides it.
Scope & Deliverables
- Deliverable:
- Pin mutmut 3.8.x (Python 3.10-3.15) in the dev group, with a
[tool.mutmut]section:source_pathssrc/devops_cli;- pytest args that override
-n logical; also_copyfor the repository files the tests read.
- Add
mutants/to.gitignore. The CI cache fingerprint hashes untracked files (ci/cache.py:150-161). devops ci mutate [PATHS] [--changed]:- maps lines changed since the merge base to their enclosing functions with
ast; - runs mutmut on those function globs;
- prints each surviving mutant (file, function, diff) and the killed, survived and timeout counts;
- exits 0, and never prints a score.
- maps lines changed since the merge base to their enclosing functions with
- An invariant test forbids
pragma: no mutateundersrc.
- Pin mutmut 3.8.x (Python 3.10-3.15) in the dev group, with a
- Acceptance criteria:
- A unit test maps a fixture diff to the expected globs and asserts that the argv disables xdist.
git check-ignore mutants/xsucceeds.- Neither the
devops cistage list norci.ymlcontains a mutate step. - The pragma test fails on a fixture that uses the pragma.
- The new unit tests take at most 1 s.
uv lock --check,uv auditanddevops docs checkpass.
- Key questions:
- Do the network guard and the fix(test): tests never write to the project config, data or tracked files #749 tripwire behave in mutmut's forked children? (proposed) Verify in the PR, and use forkserver if they don't.
- Constraint: Never a gate. Report survivors, not percentages (the feat(ai): retract the false "prompt mutation testing" delivery claim #600 precedent).
Strategic Alignment
- Milestone: Backlog
- Depends on: none
Metadata
Metadata
Assignees
Labels
priority/p3-lowPriority P3: a small improvementscope/ciGitHub Actions workflows, pre-commit hooks, CI gates, and runnersscope/cliCore CLI framework, Typer subcommands, options, and tablestype/featureType feature: a new function
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 8, 2026
Placed in v0.2.32 on 2026-10-08 at the owner's request ("Populate 10 security and ci issues into each v0.2.30, v0.2.31, and v0.2.32 milestone"). This is a person's placement. Release theme: URLs and host keys read by the library that dials, ollama hardening, and pull-request test-quality tooling. Position 10 of 10 in the release's planned merge order. Its board Status is set to Ready, so the release-start fill keeps it.
feat(ci): on-demand mutation testing of changed functions (`devops ci…
dan-petty-bot commentedon Oct 9, 2026
What changed
#1513, merged into
release/v0.2.32as ed0baa3.20 file(s) changed.
How it was verified
Check runs at a898721:
Acceptance Criteria of
docs/agent/tasks/task-853-on-demand-mutation-testing-of-changed-functions.md:get_mutant_nameandmangle_function_name, and asserts that the run argv disables xdistthrough
[tool.mutmut].pytest_add_cli_args:test_changed_functions_map_to_the_globs_mutmut_names,test_mutate_runs_mutmut_serially_on_the_changed_function_globs.git check-ignore mutants/xsucceeds, andtest_gitignore_keeps_mutants_out_of_the_treematches it with the gitignore rules.
devops cistage list norci.ymlcontains a mutate step:test_mutate_is_no_gate_step.test_a_no_mutate_pragma_is_reported;test_no_source_line_exempts_itself_from_mutationpasses on
src.uv lock --check,uv auditanddevops docs checkpass.rm -rf mutants && time uv run devops ci mutate --changed --base release/v0.2.32, then the samecommand again without
rm -rf mutants.feat(release): v0.2.32 (#1516)