You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds explicit opt-in standalone DeepAgent observability through create_deep_agent()/resolve_deep_agent_parts().
Adds standalone agent root spans so task-loop and single-round DeepAgent runs can emit a complete trace outside team context.
Starts standalone root spans from a clean OTel context so sequential invocations do not inherit an ended span.
Reuses the existing ObservabilityRail and parent-resolution path for LLM/tool spans.
Keeps observability imports lazy so normal harness imports do not require optional OTel dependencies.
Adds regression coverage for standalone task-loop, single-round, sequential invocation, and factory wiring behavior.
Validation
env UV_CACHE_DIR=/tmp/uv-cache uv run --extra observability pytest tests/unit_tests/agent_teams/observability/test_observability.py tests/unit_tests/harness/test_factory_llm_retry_rail.py -q
git diff --check
Notes
The broader team-run mock test tests/unit_tests/agent_teams/observability/test_team_observability_mock_llm.py::test_leader_single_iteration_trace_via_runner still times out with zero mock LLM calls when run alone. The direct observability callback/rail suite passes.
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
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.
Paired: GitHub #427 ↔ GitCode !2254
Summary
Implements PR1 from the observability RFC.
Refs #426.
Changes:
Validation
Notes
The broader team-run mock test tests/unit_tests/agent_teams/observability/test_team_observability_mock_llm.py::test_leader_single_iteration_trace_via_runner still times out with zero mock LLM calls when run alone. The direct observability callback/rail suite passes.
Linked Closing Issues: