fix: bind per-run capability durable operations on callable backends
Closed
BE
3mo ago+165+165+012345678901234567890123456789-88-88-01234567890123456789
Prefect (and other callable durability backends) wrap units per call, so a capability passed to agent.run(capabilities=[...]) is accepted. @durable_operation methods on that instance were still only bound by walking agent.root_capability at for_agent time, so dispatch fell through to the plain method and the call never became a Prefect task.
Bind those operations on demand in _prepare_run_context for callable backends. Registered backends still require the full set at agent construction.
Fixes #7973
- Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver.
- PR title is fit for the release changelog.