Track durable engine support for capability scenarios in one `SCENARIO_SUPPORT` table

DO
20h ago
+609-2
  • 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 (a Literal of <capability>.<scenario> names) and SCENARIOS.
    • SCENARIO_SUPPORT: Mapping[Scenario, Mapping[Engine, Support]]: the same Support cells, one per engine.
    • A scenario cell is supported, limited, refused or untested, never broken, since nothing would check that the bug still reproduces. A scenario's refused cell refuses partway through the run: unlike D1's build-time refusals, what ran before the refusal (here the model request and the research call) is recorded. Support.raises is the refusal's message.
    • The two BackgroundTools rows, lifted from #14459, with a cell for each of the 9 engines. Hatchet's are untested; the tests check the other 8.
  • tests/harness/test_engine_support.py adds these checks:
    • every scenario has a cell for every engine;
    • every key is <public capability>.<name> and is never a case or an ENGINE_SUPPORT key, so scenarios never feed D1's exemptions or its calls checks;
    • 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-engine Support cells as ENGINE_SUPPORT; scenarios never feed D1's exemptions.
  • Covers both BackgroundTools scenarios under all nine engines; hatchet is untested.
  • survives_approval_wait is supported under Temporal now that #13215 landed its waiter; dbos is refused, raising the same refusal as engines without a durable wait; pgtask is limited since #15531, running the call in the foreground; remaining engines are limited or refused with reasons recorded.
  • A refused cell rejects partway through the run, so what ran before the refusal is recorded; scenario cells are never broken, as nothing would check that the bug still reproduces.
  • tests/harness/background_tools/test_durable_engines.py runs a scripted background call and a mid-run approval under each engine, failing when a cell's level or outcome changes; untested cells skip with their issue. Azure reads only a UserError orchestration 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.