Repository navigation
Commit a81dc22
committed
feat(mcp): run, track, file and compare the AI panel model tests
Four phoenix-builder tools so a running Claude session can be asked "run
the AI test suite" and do the rest. The session is the runner and the judge;
the tools do the deterministic parts.
- run_ai_test_suite: installs the fixture, records git revs / CLI version /
connected instance, opens a run record, and returns the runner briefing
plus the documents for exactly the tests in scope — quick (default), all,
a suite name, explicit test ids, or resumeRunId for a stopped run.
- ai_test_progress: called after every test; answers "how far along is it",
lists runs, and stops a run on request. Progress lives in reports/runs/.
- save_ai_test_report: writes reports/latest.md, overwriting the previous
run — git history is the archive, baseline.md is never touched. A stopped
run is saved with a Partial section; a completed run's progress record
is removed.
- compare_ai_test_reports: diffs latest.md against baseline.md by default,
or against the last committed latest.md ("previous"), flagging
REGRESSION / quality drop / slower per the suite's thresholds. Reads the
merged "PASS · poor" Result column and the older two-column form.
The suite itself lives in phoenix-pro under unit-tests/ai_model_tests/.
CLAUDE.md tells any session what to do when asked; the MCP README lists
the tools. .eslintignore excludes the suite's fixture pages — they are
deliberately broken and are test data, not code.1 parent 7163b10 commit a81dc22
4 files changed
Lines changed: 471 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
100 | 112 | | |
101 | 113 | | |
102 | 114 | | |
| |||
0 commit comments