70b4357316
When an agent creates or claims a task via the tool, record its session as a CONTEXT/SESSION link so the context bundle's session resolver has real edges to inline (status/intent/workflow). Shared linkOriginSession helper; reducer dedupes so create+claim from one session is a single edge. The REST create path stays unlinked (no agent session there). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>