chore(SOL-404): add host-neutral eval runner and plugin regression cases
Draft
FA
2mo ago+2430+2430+0123456789012345678901234567890123456789-10-10-01234567890123456789
Summary
Adds a regression suite for the integration plugins: a runner that drives an agent host headless with one plugin loaded, and 38 cases that check what the agent did with the plugin's skill. It was built during the SOL-404 audit to measure the docs-link fixes in #40 to #45.
This PR is opened to keep the work in one place. Whether it stays here long term is still open, alongside the support-agent benchmark in ai-benchmarks.
What it does
- Runner (
scripts/evals/run-host.ts): runs a plugin's cases on Claude Code, Antigravity, Cursor or Codex, in a throwaway project with only that plugin present. Claude Code runs also get a throwaway config directory, so no installed plugin, MCP server or user setting leaks in. - Checks: each case's checks are host-neutral. They cover which docs URLs the agent fetched, which names its reply used, and optionally a list of reference facts that a model judges the reply against. Which skill fired is printed but never scored.
- Cases (
scripts/evals/cases/<plugin>/): 38 across the six integration plugins:- 31 with documented answers
- 7 "graceful no" cases, where the right reply says the docs don't cover it and points to StackOne support
The prompts are rewritten from real support conversations and anonymised.
- Cases live beside the runner, not inside the plugins, so installed plugins ship without test fixtures.
- Runtime: TypeScript that Node 22.18 or later runs directly, with no build step and no runtime dependencies.
typescriptand@types/nodeare dev dependencies for the typecheck only.
Not in this PR
- No CI job runs the suite. Each run makes model calls, so it is run by hand for now.
stackone-defenderhas its ownnpm testsuite and no cases here.
Files
| Path | Content |
|---|---|
scripts/evals/run-host.ts, cases.ts, grade.ts, judge.ts, report.ts, process.ts, types.ts | Runner, case loading, grading, reference judge, reporting |
scripts/evals/hosts/ | One adapter per host, plus a schema-agnostic parser for hosts whose event format is not pinned down yet |
scripts/evals/cases/ | The 38 cases and their README |
scripts/evals/README.md | How the runner works, grading rules, adding a host |
scripts/evals/package.json, package-lock.json, tsconfig.json | Typecheck setup |
README.md | Evals section, and scripts/ added to the repository structure tree |
Test plan
-
npm --prefix scripts/evals run typecheckpasses - The suite runs on Claude Code (sonnet) against the branches of #40 to #45 and against
main - No secrets, local paths or internal references in the committed files
🤖 Generated with Claude Code
Summary by cubic
Adds a host-neutral eval runner and 38 regression cases that measure how the integration plugins guide agent hosts to the right documentation answers, built during the SOL-404 audit.
Runner
- Runs a plugin's cases on Claude Code, Antigravity, Cursor, or Codex in a throwaway project with only that plugin present; Claude Code runs also get a throwaway config directory so no installed plugin, MCP server, or user setting leaks in.
- Checks are host-neutral: which docs URLs the agent fetched, which names its reply used, and optionally reference facts a model judges the reply against. Which skill fired is reported but never scored.
- Runs on Node 22.18+ with no build step and no runtime dependencies;
typescriptand@types/nodeare dev dependencies for typechecking only.
Cases
- 38 cases across the six integration plugins: 31 with documented answers and 7 "graceful no" cases where the right reply says the docs don't cover it and points to StackOne support.
- Cases live beside the runner so installed plugins ship without test fixtures;
stackone-defenderkeeps its ownnpm testsuite and has no cases here. - No CI job runs the suite; each run makes model calls, so it is run by hand.