fix(webhooks): keep TaskFlow child actions within the owning session (#129633)

* fix(webhooks): bind TaskFlow child actions to owning runs

* fix(tasks): preserve task flow import boundaries

* test(tasks): cover exact-run cancellation callers

* test(webhooks): prove ACP replacement cancellation fence

* fix(tasks): preserve authority across lifecycle races

* fix(tasks): bind TaskFlow children to runtime instances

* fix(acp): revalidate queued cancellation authority
This commit is contained in:
Josh Avant
2026-08-25 23:13:50 -07:00
committed by GitHub
parent 96de6f405b
commit eedc554f6e
29 changed files with 1846 additions and 32 deletions
+5
View File
@@ -142,10 +142,15 @@ with any other status returns `400 invalid_request`.
"flowId": "flow_123",
"runtime": "acp",
"childSessionKey": "agent:main:acp:worker",
"runId": "run_123",
"task": "Inspect the next message batch"
}
```
`childSessionKey` identifies the backing run but does not grant authority over it. For automatic
lifecycle tracking and cancellation, include the exact `runId`; the backing task must be owned by
the route's configured session. Foreign, stale, or replaced runs are rejected at use time.
## Response shape
```json