pymutant-mcp 2026-03-21
Update runner API with option validation, expand benchmark tooling, and add cold-start tests
14 files · 673+ · 150-

Add run option validation

2 files changed
  • api.py Added _validate_run_options to reject conflicting paths + strict_campaign/changed_only
  • helpers.py Minor adjustments to helper output handling
  • Run API now rejects explicit paths when combined with strict_campaign or changed_only flags harden behavioral
    1 file
    • api.py

Expand benchmark and mutation gate tooling

2 files changed
  • benchmark.py Major expansion with artifact compaction, cold-start quality benchmark, and improved reporting
  • mutation_gate.py Extended gate with additional budget controls and improved JSON output
  • Quality benchmark now supports cold-start mode and compacts artifacts after run completion harden behavioral
    1 file
    • benchmark.py
  • Mutation gate expanded with finer-grained budget tracking and JSON result output harden behavioral
    1 file
    • mutation_gate.py

Add focused tests for new features

5 files changed
  • test_run_option_validation.py 29 lines testing run option conflict detection
  • test_output_sanitization.py Added 20 lines of output sanitization edge case tests
  • test_artifact_compaction.py 44 lines testing benchmark artifact compaction
  • test_quality_cold_start.py 48 lines testing quality benchmark cold-start path
  • test_main_api.py Added 27 lines testing new MCP tool integration
  • Added tests for run option validation, artifact compaction, and quality cold-start scenarios qualify behavioral
    3 files
    • test_run_option_validation.py
    • test_artifact_compaction.py
    • test_quality_cold_start.py

Update LOC baselines

1 file changed
  • max-loc-baseline.json Updated limits for expanded api.py, helpers.py, and test files
  • Max LOC baseline updated for runner/api.py (575), runner/helpers.py (619), and test_run_api_core.py (543) baseline internal
    1 file
    • max-loc-baseline.json