Repository navigation
feat(server): record agent identity in the routing log - #1002
Merged
nachiketb-nvidia merged 3 commits intoOct 22, 2026
Merged
nachiketb-nvidia merged 3 commits into
nachiketb-nvidia merged 3 commits into
Conversation
Contributor
Contributor
|
Looks good, thanks @eugenn !
|
Signed-off-by: Eugen Nekhai <eugen.nekhai@gmail.com>
Signed-off-by: Eugen Nekhai <eugen.nekhai@gmail.com>
Signed-off-by: Eugen Nekhai <eugen.nekhai@gmail.com>
eugenn
force-pushed
the
feature/routing-log-agent-identity
branch
from
October 20, 2026 08:55
40b38bd to
f76d56a
Compare
nachiketb-nvidia
approved these changes
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Routing logs now include agent identity so a child agent's calls can be distinguished from its parent's, even when they share a session ID.
Each record copies
agent_id,parent_agent_id,agent_kind, andagent_rolefrom request metadata.delegatedusesMetadata::is_subagent_work().subagent_identity_unsupportedmarks clients that cannot identify their child agents. Unset fields and false flags are omitted. Older records remain readable by the session stats endpoint.The existing
turn_idfield from #971 is preserved alongside the agent fields.Validation
One focused unit test writes a delegated call to JSONL and checks its session, turn, agent lineage, role, and delegation flag. It also checks that an unset unsupported-identity flag is omitted. The existing session snapshot test covers reading older records.
cargo fmt --all --check— passed.cargo clippy --workspace --all-targets --locked -- -D warnings— passed.cargo test -p switchyard-server --locked— 99 passed.git diff --check— passed.Tests used local mock servers; no live model provider was called.
Summary by CodeRabbit