Point the durable-exec leaf-toolset `id` error at the capability `id`

Draft
DS
3mo ago
+73-9

BaseDurabilityCapability._wrap_and_register_leaf raises two variants of the same "leaves need a unique id" error. The DynamicToolset branch tells you how to fix it; the generic branch — the one a capability-contributed FunctionToolset actually hits — didn't, even though the capability id is the only lever a user has for a toolset they never constructed:

Agent('openai:gpt-5', name='a', capabilities=[WebSearch(local='duckduckgo'), TemporalDurability()])

The generic branch now names both routes (toolset id, capability id) with a NativeOrLocalTool-shaped example.

Also fixes the plural: _durable_unit_noun was interpolated as {noun}s, rendering activitys for Temporal at all four sites in _base.py. Each engine now carries a _durable_unit_noun_plural (activities / tasks / steps). The deprecated TemporalAgent wrapper has its own hardcoded copy of the message that already read activities, which is why test_toolset_without_id was green.

DBOS never reaches the generic branch (its _wrap_leaf_toolset returns None for FunctionToolset), but it shares the interpolation sites, so it gets the plural too.

Checklist

  • 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.
  • PR title is fit for the release changelog.