Add a capability conformance checklist and require `calls` for capabilities that run tools

Merged
DO
10d ago
+324-17

Not tied to a closing issue: this is the first step of the capability conformance plan, toward #13118 (no capability content below 'operator' in system voice). Later PRs add the route matrix (C1) and the #13118 sink check (C2) on top of it.

The checklist. agent_docs/capability-conformance.md says, per area, what a capability's CASES entry must pass and how the suite checks it:

  • Coverage (C0, this PR).
  • Prompt cache: the existing append-only and combine suites.
  • Voice and authority: the requirements, with C1–C5 listed as planned.
  • Durable execution and Workspaces/sandboxes: placeholders with their planned scope.

A box is ticked by a passing contract or a reasoned Exempt, never by prose. It is linked from agent_docs/index.md, the Harness capability-authoring.md and review-checklist.md, and tests/AGENTS.md. scripts/gather-pydantic-ai-review-context.sh adds it to CI Review's agents-md.txt when a PR changes a capability or its case, the way the durable AGENTS.md reaches it, and the CI Review prompt gets a matching targeted check.

C0, DECLARES_CALLS. Only cases with calls ever had their tools run by RENAMED and FORWARDS_USAGE, so those contracts passed vacuously for everything else. The new contract requires every buildable public capability that contributes a toolset, a wrapper toolset or a tool hook to declare calls, or to carry an exemption:

  • 27 cases get real calls, all running offline. Each also passes RENAMED and FORWARDS_USAGE:
    • core: Toolset, PrefixTools, MCP, Instrumentation, SetToolMetadata and IncludeToolReturnSchemas;
    • Harness: the 11 hosted MCP integrations, Shell, CompactOnRequest, RepairToolArguments, StepPersistence, ToolGuardrail, ReportToolErrors, ToolBudgets, PromptInjectionDefender, Macroscope (against a stand-in CLI) and PydanticAIDocs (against a local docs checkout).
  • A shared helper for hook-only capabilities: with_echo builds one beside an echo tool.
  • 7 reasoned exemptions: structural wrappers and bundles, a durable engine, bwrap and Playwright.
  • 15 PENDING_CALLS exemptions, 5 of them the routes C1 will run (BackgroundTools, CodeMode, IPythonCodeMode, ToolBridge, ToolSearch). test_pending_calls_backfill pins the count, so later PRs can burn it down.

Checklist

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
  • PR title is fit for the release changelog.

šŸ¤– Generated with Claude Code