pymutant-mcp
2026-03-08
Initial prerelease hardening with restructured package layout and expanded CI
108 files · 10,191+ · 2,593-
Flatten package layout from server/ to src/
5 files changed
__init__.pyMoved from server/src/pymutant/ to src/pymutant/main.pyConsolidated main entry point with new MCP toolsapi.pyRunner API relocated from server subtreehelpers.pyRunner helpers relocated from server subtreepyproject.tomlUpdated build config to single-package layout with dev dependency groups
- Removed server/ subdirectory and pyproject.toml; all pymutant source now lives under src/pymutant
decouple
architectural
3 files
__init__.pymain.pypyproject.toml
- Moved Claude commands and skills into .claude/ directory from top-level commands/ and skills/
decouple
internal
3 files
mutation-analyze.mdmutation-run.mdSKILL.md
Add new mutation analysis modules
10 files changed
baseline.pyExecution-baseline tracking with fingerprint and drift detectionconfig.pyCentralized runtime config via environment variablesfailure_explain.pyClassify failure sources and suggest remediationpatch_suggest.pyGenerate pytest patch suggestions for surviving mutantspolicy.pyPolicy gate evaluation with baseline-drop and absolute floorprioritization.pyRank survivors by impact, frequency, and churn priorityprofiles.pyProfile resolution from CLI, env, or config filequarantine.pyQuarantine management for flaky mutantsreporting.pyHTML report bundle renderertrends.pyMutation drift and regression summary from score history
- Added nine new feature modules covering baseline tracking, policy gating, trend reporting, quarantine, and prioritization
instantiate
behavioral
5 files
baseline.pypolicy.pytrends.pyprioritization.pyquarantine.py
- Introduced runtime config module centralizing all PYMUTANT_* environment variable access
instantiate
internal
1 file
config.py
Expand CI and pre-commit quality gates
3 files changed
ci.ymlAdded multi-Python matrix (3.11-3.15), compliance job, mutation-gate job, and MCP smoke steprelease-readiness.ymlAdded MCP smoke, schema validation, and HTML report rendering.pre-commit-config.yamlAdded max-LOC, SPDX header, event literal, pytest, schema validation, and mutation-sweep hooks
- CI now tests across Python 3.11 through 3.15 with separate quality and compliance jobs
harden
behavioral
1 file
ci.yml
- Added zero-survivor mutation gate enforced on push and pull request events
harden
behavioral
1 file
ci.yml
- Pre-commit suite expanded with max-LOC guard, SPDX header check, xenon complexity with baseline, and JSON schema validation
harden
internal
1 file
.pre-commit-config.yaml
Add CI policy baselines and JSON schemas
7 files changed
pymutant-policy-baseline.jsonPolicy baseline with default profile score floorpymutant-profiles.jsonMutation root paths and policy thresholdsxenon-baseline.jsonComplexity violation allowlistmax-loc-baseline.jsonFile size exception listbaseline-state.schema.jsonJSON schema for baseline state artifactsbenchmark-quality.schema.jsonJSON schema for quality benchmark outputbenchmark-throughput.schema.jsonJSON schema for throughput benchmark output
Comprehensive test suite expansion
6 files changed
test_helpers.py624 lines of runner helper unit teststest_run_api_core.py543 lines of core run API teststest_baseline_state.pyBaseline state management teststest_feature_modules.pyTests for new feature modulestest_main_api.pyMCP tool endpoint teststest_mutation_gate_cli.pyMutation gate CLI integration tests
- Reorganized test suite from flat tests/ into tests/pymutant/ and tests/repo_verify/ with feature-scoped modules
qualify
behavioral
3 files
test_helpers.pytest_baseline_state.pytest_mutation_gate_cli.py
- Removed legacy flat test files (test_runner.py, test_main.py, test_init.py, test_score.py)
qualify
internal
4 files
test_runner.pytest_main.pytest_init.pytest_score.py
Add verification and mutation gate tooling
3 files changed
mutation_gate.pyZero-survivor mutation gate with changed-only targetingmcp_smoke.pyMCP smoke test for root/setup/run path validationbenchmark.pyExtended benchmark with quality cold-start and artifact compaction
- Added mutation-gate CLI that enforces zero surviving mutants on changed files
instantiate
behavioral
1 file
mutation_gate.py
- Added MCP smoke test verifying server startup and tool availability
instantiate
behavioral
1 file
mcp_smoke.py
Documentation and operational guides
5 files changed
operator-runbook.mdOperational runbook for CI maintenancepolicy-tooling-plan.mdPolicy tooling design planreporting-artifacts.mdCI artifact inventory and descriptionsREADME.mdUpdated for MCP server identity, installation via uvx, and new tool inventoryAGENTS.mdUpdated project structure and build commands for flat layout