Task Routing
Storsko's task router assigns incoming work to the most appropriate agent based on capabilities, ownership, and node freshness.
Task Routing
Storsko's task router assigns incoming work to the most appropriate agent based on capabilities, ownership, and node freshness.
How routing works
When POST /api/v1/routing/resolve is called, the router:
- Filters agents by required capabilities — only agents with all requested grants are considered.
- Scores by ownership type —
personal>team>org(personal ownership scores highest). - Prefers fresh nodes — agents with a recent
node_last_seenheartbeat rank higher. - Returns the best match, or a
404if no eligible agent exists.
Request
Response
Routing log
All routing decisions are recorded:
Returns the last 200 decisions with agent, capabilities requested, score, and timestamp.
Delegation
An agent with the agent.delegate capability can forward a task to another agent (max depth 3):
Delegation chains are stored in delegation_log and visible in the audit trail.