Track every durable engine's support for each capability case in one `ENGINE_SUPPORT` table

DO
21h ago
+275-42
  • Part of #12291 (the durable x capability matrix); doesn't close it.

Builds on D1 (#14372, merged). The table shape was agreed with the D1 owner.

D1 checks every case with calls under DBOS and Temporal. This adds the table that says, for every engine, what each case's support is, so the other seven engines show up as untested instead of missing, and every exemption says why.

Changes:

  • tests/capability_cases.py:
    • Engine, ENGINES, and ENGINE_CAPABILITIES (each engine's durability capability).
    • Support(level, reason, raises, issue) with five levels:
      • supported and limited: limited names its limit.
      • refused: raises is a regex the engine's error must match.
      • broken: carries the bug's issue.
      • untested: carries the issue for adding a suite.
    • Support rejects a cell missing what its level needs. It's a separate type from DurableSteps, so W1 can key it by workspace backend.
    • ENGINE_SUPPORT lists only the cells that differ from the default. The default is supported under DBOS and Temporal, which D1's suites run, and untested (#12291) under the other seven engines.
    • DURABLE_DBOS and DURABLE_TEMPORAL now take their exemptions from the table (its refused and broken cells), so there's one source of truth. The cells that differ from the default:
      • CompactOnRequest, PydanticAIDocs: broken under Temporal, #14403. Their for_run copy builds a new toolset, which Temporal refuses as one added at run time.
      • Timers: refused under every engine, since Timers.durable_unsupported_reason refuses the agent when it's built.
      • BrowserUse and Planning have no cell, so they're supported under DBOS and Temporal (the id-less toolsets got an id in #15396, and #15404 fixed #7971).
  • tests/harness/_contracts.py: assert_cell_holds wraps assert_holds and also requires a refused cell's error to match its raises. Both D1 suites use it. A broken cell keeps its "still reproduces" check through the exemption, which fails once the case passes.
  • tests/harness/test_engine_support.py (new, no engine needed):
    • Every public BaseDurabilityCapability in pydantic_ai.durable_exec and the Harness is an engine. The classes are found from source, so collection doesn't import engine SDKs.
    • Every table entry is a public case with calls.
    • The untested count per engine is pinned at 49 and may only go down; a main merge that adds cases with calls raises it.
    • Each Support validation rule has a test.
  • agent_docs/capability-conformance.md, "Durable execution":
    • the table and its levels under "How it's tested";
    • a new requirement: a capability reads engine facts from DurabilityEngineSpec instead of checking which engine it runs under.

Next PRs: one per engine, starting with Prefect, each adding a suite and turning that engine's column from untested into real cells.

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


Summary by cubic

Adds the ENGINE_SUPPORT table, which records how every durable engine runs each capability case, so every engine gets a per-case Support cell and each exemption says why.

  • Support has five levels: supported, limited, refused, broken, and untested; limited names its limit (which no suite asserts), a refused cell names the regex the engine's error must match, and broken and untested cells carry the issue that tracks them.
  • DURABLE_DBOS and DURABLE_TEMPORAL derive their exemptions from the refused and broken cells, making the table the single source of truth. Id-less toolsets' refused cells are built from ID_LESS_TOOLSETS, which Prefect's construction check also reads.
  • Temporal's cells: BrowserUse and Planning are refused, and CompactOnRequest and PydanticAIDocs are broken with the same #14403. Temporal failures now show the full cause chain so a refused cell's error can be matched, and the refused-cell check is excluded from coverage until a D1 cell is refused.
  • The other seven engines default to untested, pinned at 49 per engine with Hatchet's column added on the main merge; the count may only go down, which main's new Skills and WorkLog cases raised.
  • Meta-tests require every public BaseDurabilityCapability to be in ENGINE_CAPABILITIES, every table entry to be a public case with calls, and a refused cell to still raise what it names; they read test tables and source, so they aren't VCR tests.
  • agent_docs/capability-conformance.md now documents the table and requires capabilities to read engine facts from DurabilityEngineSpec instead of checking which engine they run under.