Repository navigation
feat(nemo_fabric_agent): import measured Relay tool timing - #6958
Draft
RyaliNvidia wants to merge 1 commit into
Draft
RyaliNvidia wants to merge 1 commit into
RyaliNvidia wants to merge 1 commit into
Conversation
Signed-off-by: RyaliNvidia <ryali@nvidia.com>
Contributor
Author
|
/ok to test 57df3c4 |
This branch has not been deployed
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.
What does this PR do?
Import tool start/end timestamps already recorded in Fabric's retained Relay ATIF trajectories into Gym's
ng_agent_observations. Today the timestamps remain only infabric_result.relay_atif, so consumers of Gym's structured observations cannot use them.Match each interval to a tool call in the same step and retain the trajectory ID as the invocation identity, including subagent trajectories. Use the existing
AgentObservationBundle,ToolCallObservationand timing normalizer. Skip copied context, unmatched calls and unusable intervals; deduplicate identical snapshots and omit conflicting measurements. Keep the raw Fabric result intact and omit the observation field when there is no usable timing.Extend the existing Fabric
/runregression and add response-serialization coverage for subagent identity, duplicates, conflicts, missing ownership, copied context, and invalid timestamps. Document the observation field in the component README.Related: #5057 introduced the retained Relay trajectories; #5660 introduced Gym's tool-timing observations. No separate issue: this is a focused integration of those existing representations.
Validation
Base:
228a16b96df8f925220a7edbff2d7d22317c78fb. Python 3.13.14, uv 0.13.4, frozen Fabric component environment.uv sync --project responses_api_agents/nemo_fabric_agent --python 3.13.14 --frozen PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 responses_api_agents/nemo_fabric_agent/.venv/bin/python -m pytest -p pytest_asyncio.plugin responses_api_agents/nemo_fabric_agent/tests tests/unit_tests/trajectory/test_tool_timing.py tests/unit_tests/trajectory/test_trajectory_projection.py -q -o addopts='' --tb=short pre-commit run --all-files git diff --checkRollouts and readiness
Draft pending a representative real-model Fabric + Relay smoke rollout, following the agent-change requirement in the contributing guide. Before marking ready, inspect the agent output and verifier result, and check that exported tool intervals match the retained Relay trajectory. No live-model rollout, container build or remote-sandbox qualification was performed for this commit.
The local
/runtest exercises response assembly and verification with deterministic Fabric and resources-server results. It does not establish live adapter instrumentation fidelity.Compatibility and benchmark impact
This adds structured timing observations when the retained Relay artifact contains a matched, complete measurement. It introduces no dependency or configuration change and does not instrument tool execution, infer missing timestamps, change model prompts, or alter verification/rewards. Timing source remains
nemo_relay; clock domain and durations are not invented. No benchmark-performance claim is made.Checklist