Skip to content

docs(evals): metering, provider validation and on_removed for host adapters - #466

Merged
TonsOfFun merged 2 commits into
release/1.6.3from
docs-host-adapter-metering
Sep 18, 2026
Merged

TonsOfFun merged 2 commits into
release/1.6.3from
docs-host-adapter-metering

Conversation

@TonsOfFun

Copy link
Copy Markdown
Contributor

Three documentation gaps for hosts that integrate their own agent runtime with the dashboard's scenario evaluations. All three follow from #460 (merged) and were found by writing an integration against these docs.

The adapter guide's usage-accounting claim is now wrong

It says:

The host owns provider execution, usage accounting, tool definitions, and judge configuration.

Since #460 the engine meters each adapted result as one :execution, one per scenario × model — the same unit the default replay path records. A host following the current text calls ActionAgent.record_usage itself and double-counts every replay. Corrected, with the unit stated so a host knows what it is getting.

Provider validation is undocumented

#460 also made the runner reject a spec naming a provider the agent cannot serve, before the adapter is called. Worth saying explicitly, because adapters written against the old behaviour carry their own models.all? { |m| m.provider.in?(...) } check that is now dead code.

replace_scenarios! has no prose

The method is how a host syncs a suite from its own catalog, and its on_removed: option (also #460) is the difference between an old report still resolving its rows and losing them. Adds a short Refreshing a suite section under Suites covering both values and when to choose :disable.

Notes

  • Branched off main (which has fix(dashboard): meter adapted replays, validate providers, keep dropped scenarios #460) and targeted at release/1.6.3, since the release branch does not carry that commit yet. Retarget to main if that is the preferred flow.
  • Docs-only; no code or test changes.
  • The enabled-scope claim is checked against ScenarioEvaluationRunner#selected_scenarios, which selects @evaluation.scenarios.enabled.ordered.
  • Pushed as docs-host-adapter-metering rather than docs/... because a bare docs branch already exists on the remote and blocks that namespace.

…apters

The adapter guide told hosts they own usage accounting, which stopped being
true when the engine began metering each adapted result. A host following it
now double-counts every replay. It also predates provider validation, so it
left adapters re-checking what the runner already rejects.

Documents replace_scenarios!'s on_removed: option alongside them, since a
host syncing a suite from its own catalog is the caller that needs :disable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@TonsOfFun
TonsOfFun marked this pull request as ready for review September 18, 2026 16:49
@TonsOfFun
TonsOfFun merged commit 5f68213 into release/1.6.3 Sep 18, 2026
8 checks passed
TonsOfFun added a commit that referenced this pull request Sep 18, 2026
chore(release): activeagent and actionagent 1.6.3

Brings main up to the 1.6.3 release line: context-meter token attribution
(#458), host-adapter metering, provider validation and on_removed (#460),
evaluation trace correlation (#465), the judge call kind (#468, closes #462),
Agent#generations (#469, closes #464), and the host-adapter docs (#466).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants