Skip to content

Staging: spawn_parallel_agents registered under both 'tool' and 'graph' kinds — ambiguous dispatch #5601

Description

@Al629176

Summary

spawn_parallel_agents is registered under two kinds simultaneously — both tool and graph — in the tinyagents registry. This is flagged as a non-fatal diagnostic but callers cannot reliably disambiguate which kind is invoked, which can cause incorrect dispatch at runtime.

Log evidence (staging, 2026-08-19)

02:08:43 WRN [tinyagents][registry] non-fatal diagnostic: name `spawn_parallel_agents` is registered
under multiple kinds (tool, graph); ensure callers disambiguate by kind
kind="tool" name=spawn_parallel_agents

[Repeats on each agent turn]

Impact

Non-fatal but creates ambiguous dispatch. If a caller resolves spawn_parallel_agents by name without specifying kind, it may get either the tool or graph variant non-deterministically. Could manifest as inconsistent parallel agent spawning behaviour that's hard to reproduce.

Fix direction

Determine whether spawn_parallel_agents should be a tool or a graph and remove the duplicate registration. If both are intentional, enforce explicit kind disambiguation at all call sites.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpre prod buildBugs found during pre-production build testing

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions