-
Notifications
You must be signed in to change notification settings - Fork 0
Testing and Proof
Christian Pojoni edited this page May 2, 2026
·
1 revision
This page records what has been verified in the repository.
7cf49a3 feat: add configurable subagent router
npm testVerified result:
12 tests
12 pass
0 fail
Covered behavior includes:
- simple questions route to
answer_directly - representative prompts route conservatively
- app-specific routers support custom intent policy
- app-specific
promptClassvalues validate through the schema -
createSubagentRouterTool({ router })uses the supplied router - worker execution works with injected runners and tools
- profile-provided tools and system prompts work
- invalid
maxWorkersvalues are rejected - nullish tool implementations are rejected before workers run
- TanStack AI tools are created
- background runs update handle status
npm pack --dry-runVerified package contents include:
dist/README.mdLICENSEdemo/routing-in-action.castpackage.json
The router uses local scoring rules. It does not call a model or provider API.
spawn_multiple_specialists enforces worker count limits before execution.
Workers cannot request tools outside the configured registry. Nullish tool implementations are rejected before worker execution.
createSubagentRouter(...) lets apps add intent terms, risk terms, parallel terms, area terms, ambiguity policy, and fallback action while preserving the default router behavior.
The package does not claim:
- automatic LLM fallback inside the router
- concrete worker tools
- tracing storage
- persistence
- UI rendering
- official TanStack affiliation