Track durable engine support for capability scenarios in one `SCENARIO_SUPPORT` table
- Part of #12291 (the durable x capability matrix); doesn't close it.
Stacked on #14437 (base durable-engine-support). It retargets when #14437 does. #14459 (BackgroundTools under every engine) stacks on this.
ENGINE_SUPPORT cells are D1's bar on each case's calls, which run one call per response. Some behaviour needs a scripted run of its own under each engine, such as a background call kept running across a mid-run approval. Without this PR, each such test file would carry its own table. This adds one shared table.
Changes:
tests/capability_cases.py:Scenario(aLiteralof<capability>.<scenario>names) andSCENARIOS.SCENARIO_SUPPORT: Mapping[Scenario, Mapping[Engine, Support]]: the sameSupportcells, one per engine.- A scenario cell is
supported,limited,refusedoruntested, neverbroken, since nothing would check that the bug still reproduces. A scenario'srefusedcell refuses partway through the run: unlike D1's build-time refusals, what ran before the refusal (here the model request and theresearchcall) is recorded.Support.raisesis the refusal's message. - The two
BackgroundToolsrows, lifted from #14459, with a cell for each of the 9 engines. Hatchet's areuntested; the tests check the other 8.
tests/harness/test_engine_support.pyadds these checks:- every scenario has a cell for every engine;
- every key is
<public capability>.<name>and is never a case or anENGINE_SUPPORTkey, so scenarios never feed D1's exemptions or itscallschecks; - no scenario cell is
broken.
agent_docs/capability-conformance.md: one bullet on scenarios.
Next: the ctx.enqueue and event-emission scenarios are #14474, stacked on this.
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
Tracks durable engine support for capability scenarios beyond D1's one-call-per-response run in a shared SCENARIO_SUPPORT table, pinning each engine's behavior with its own harness tests.
- Keyed
<capability>.<scenario>with the same per-engineSupportcells asENGINE_SUPPORT; scenarios never feed D1's exemptions. - Covers both
BackgroundToolsscenarios under all nine engines;hatchetisuntested. survives_approval_waitissupportedunder Temporal now that #13215 landed its waiter;dbosisrefused, raising the same refusal as engines without a durable wait;pgtaskislimitedsince #15531, running the call in the foreground; remaining engines arelimitedorrefusedwith reasons recorded.- A
refusedcell rejects partway through the run, so what ran before the refusal is recorded; scenario cells are neverbroken, as nothing would check that the bug still reproduces. tests/harness/background_tools/test_durable_engines.pyruns a scripted background call and a mid-run approval under each engine, failing when a cell's level or outcome changes;untestedcells skip with their issue. Azure reads only aUserErrororchestration failure as a refusal; unrelated failures propagate.- Harness checks verify every scenario has a cell for every engine and names a public capability outside
ENGINE_SUPPORT; the check that finds a new engine's durability capability now also finds one imported from its module.