chap.task.route
chap.task.routeRoutes a task by choosing an assignee from candidates and records an auditable route_decision with policy, selected participant, and passed-over alternatives.
Instructions
Choose an assignee for a task from a list of candidates and record a route_decision artefact naming the policy, the candidate chosen, and the alternatives it passed over.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Participant URI, e.g. 'human:alice@example.org' or 'agent:bot@local'. | |
| task_id | Yes | Task identifier returned by chap.task.create. | |
| workspace | Yes | Workspace identifier, e.g. 'wsp_techcorp_support'. | |
| candidates | Yes | Candidate assignees. An empty list is refused with -32513. Candidates that are not workspace members are dropped, and if none remain the call is refused with -32510. The default policy selects the first remaining candidate; an operator-supplied routing policy may select on any basis. |