mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
07326b9802
aqe arena run: seeded tournaments where test strategies compete on REAL fitness — built-in first-order operator mutants (string/comment/arrow-safe enumeration) executed per strategy via node --test, real line coverage from --experimental-test-coverage, and a deterministic suite-cost term. Tournament emits a Wolfram-style pairwise competitive array; --evolve hill-climbs the winner by seeded group flips with real re-evaluation. Runs persist fail-soft to memory.db kv_store (namespace 'arena'); aqe arena list reads them back. Self-contained: no core changes, no new dependencies; fixtures/arena-demo ships 4 test groups of varying kill power over a branch-dense pricing module. Reproducibility contract: same seed + fixture => byte-identical envelope (verified E2E by diffing two runs), with informational.runtimesMs the only excluded field. Honest finding during verification: the original measured-runtime rank penalty was jitter-dominated at fixture scale and flipped rankings between identical-seed runs — replaced with the deterministic suite-size ratio (documented in ADR-104). Phase 2 (documented): LLM-generated strategies frozen as artifacts, winners distilled into qe-test-architect priors; MCP arena_run registration (CLI and MCP share runArena() — parity by construction). 10 tests green (incl. real-engine reproducibility); tsc + eslint clean. Part of #520 (improvement 7/7 — initiative complete). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>