Track every durable engine's support for each capability case in one `ENGINE_SUPPORT` table
Ā
DO
21h ago+275+275+012345678901234567890123456789-42-42-01234567890123456789
- 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, andENGINE_CAPABILITIES(each engine's durability capability).Support(level, reason, raises, issue)with five levels:supportedandlimited:limitednames its limit.refused:raisesis a regex the engine's error must match.broken: carries the bug's issue.untested: carries the issue for adding a suite.
Supportrejects a cell missing what its level needs. It's a separate type fromDurableSteps, so W1 can key it by workspace backend.ENGINE_SUPPORTlists only the cells that differ from the default. The default issupportedunder DBOS and Temporal, which D1's suites run, anduntested(#12291) under the other seven engines.DURABLE_DBOSandDURABLE_TEMPORALnow take their exemptions from the table (itsrefusedandbrokencells), so there's one source of truth. The cells that differ from the default:CompactOnRequest,PydanticAIDocs:brokenunder Temporal, #14403. Theirfor_runcopy builds a new toolset, which Temporal refuses as one added at run time.Timers:refusedunder every engine, sinceTimers.durable_unsupported_reasonrefuses the agent when it's built.BrowserUseandPlanninghave no cell, so they'resupportedunder DBOS and Temporal (the id-less toolsets got anidin #15396, and #15404 fixed #7971).
tests/harness/_contracts.py:assert_cell_holdswrapsassert_holdsand also requires arefusedcell's error to match itsraises. Both D1 suites use it. Abrokencell 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
BaseDurabilityCapabilityinpydantic_ai.durable_execand 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
untestedcount per engine is pinned at 49 and may only go down; a main merge that adds cases withcallsraises it. - Each
Supportvalidation rule has a test.
- Every public
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
DurabilityEngineSpecinstead 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.
Supporthas five levels:supported,limited,refused,broken, anduntested;limitednames its limit (which no suite asserts), arefusedcell names the regex the engine's error must match, andbrokenanduntestedcells carry the issue that tracks them.DURABLE_DBOSandDURABLE_TEMPORALderive their exemptions from therefusedandbrokencells, making the table the single source of truth. Id-less toolsets' refused cells are built fromID_LESS_TOOLSETS, which Prefect's construction check also reads.- Temporal's cells:
BrowserUseandPlanningarerefused, andCompactOnRequestandPydanticAIDocsarebrokenwith 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 isrefused. - 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 newSkillsandWorkLogcases raised. - Meta-tests require every public
BaseDurabilityCapabilityto be inENGINE_CAPABILITIES, every table entry to be a public case withcalls, and arefusedcell to still raise what it names; they read test tables and source, so they aren't VCR tests. agent_docs/capability-conformance.mdnow documents the table and requires capabilities to read engine facts fromDurabilityEngineSpecinstead of checking which engine they run under.