Something is amiss in digraph allpaths.
% digraph allpaths BaseAgent LlmRequest <deps.topo
BaseAgent BaseAgent
BaseAgent Telemetry
BaseTool LlmRequest
InvocationContext BaseAgent
LlmRequest BaseTool
Telemetry LlmRequest
%
InvocationContext looks out of place here, since it is not reachable from BaseAgent in the output graph. But it turns out that it is:
% digraph somepath BaseAgent InvocationContext <deps.topo
BaseAgent InvocationContext
%
% go version -m `{which digraph}
/Users/rsc/bin/digraph: go1.25-devel_607adee5a6 Sun May 4 10:29:18 2025 -0400
path golang.org/x/tools/cmd/digraph
mod golang.org/x/tools v0.35.0 h1:mBffYraMEf7aa0sB+NuKnuCy8qI/9Bughn8dC2Gu5r0=
build -buildmode=exe
build -compiler=gc
build DefaultGODEBUG=decoratemappings=0,gotestjsonbuildtext=1,multipathtcp=0,randseednop=0,rsa1024min=0,tlsmlkem=0,x509rsacrt=0,x509usepolicies=0
build CGO_ENABLED=1
build CGO_CFLAGS=
build CGO_CPPFLAGS=
build CGO_CXXFLAGS=
build CGO_LDFLAGS=
build GOARCH=arm64
build GOOS=darwin
build GOARM64=v8.0
%
Comment From: adonovan
Would you mind sharing deps.topo? Thanks.
Comment From: gopherbot
Change https://go.dev/cl/692675 mentions this issue: cmd/digraph: fix bug in allpaths