Updated 1 path from 8cc903ef9
============================= test session starts ==============================
platform linux -- Python 3.13.14, pytest-9.1.1, pluggy-1.6.0 -- /usr/local/bin/python
cachedir: .pytest_cache
rootdir: /agno/libs/agno
configfile: pyproject.toml
plugins: cov-7.1.0, mock-3.15.1, asyncio-1.4.0, anyio-4.14.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
collecting ... collected 58 items

tests/unit/team/test_continue_run_requirements.py::TestPropagateMemberPause::test_copies_requirements_with_member_context PASSED [  1%]
tests/unit/team/test_continue_run_requirements.py::TestPropagateMemberPause::test_deep_copies_requirements PASSED [  3%]
tests/unit/team/test_continue_run_requirements.py::TestPropagateMemberPause::test_user_input_schema_is_deeply_copied PASSED [  5%]
tests/unit/team/test_continue_run_requirements.py::TestPropagateMemberPause::test_tool_execution_is_deeply_copied PASSED [  6%]
tests/unit/team/test_continue_run_requirements.py::TestPropagateMemberPause::test_empty_requirements_does_nothing PASSED [  8%]
tests/unit/team/test_continue_run_requirements.py::TestPropagateMemberPause::test_multiple_requirements_all_copied PASSED [ 10%]
tests/unit/team/test_continue_run_requirements.py::TestPropagateMemberPause::test_appends_to_existing_requirements PASSED [ 12%]
tests/unit/team/test_continue_run_requirements.py::TestFindMemberRouteById::test_direct_member_match PASSED [ 13%]
tests/unit/team/test_continue_run_requirements.py::TestFindMemberRouteById::test_nested_member_returns_sub_team PASSED [ 15%]
tests/unit/team/test_continue_run_requirements.py::TestFindMemberRouteById::test_unknown_member_returns_none PASSED [ 17%]
tests/unit/team/test_continue_run_requirements.py::TestNormalizeRequirementsPayload::test_converts_dict_to_run_requirement PASSED [ 18%]
tests/unit/team/test_continue_run_requirements.py::TestNormalizeRequirementsPayload::test_passes_through_run_requirement_objects PASSED [ 20%]
tests/unit/team/test_continue_run_requirements.py::TestNormalizeRequirementsPayload::test_handles_mixed_list PASSED [ 22%]
tests/unit/team/test_continue_run_requirements.py::TestRequirementClassification::test_has_member_requirements PASSED [ 24%]
tests/unit/team/test_continue_run_requirements.py::TestRequirementClassification::test_has_no_member_requirements PASSED [ 25%]
tests/unit/team/test_continue_run_requirements.py::TestRequirementClassification::test_has_team_level_requirements PASSED [ 27%]
tests/unit/team/test_continue_run_requirements.py::TestRequirementClassification::test_has_no_team_level_requirements PASSED [ 29%]
tests/unit/team/test_continue_run_requirements.py::TestRequirementClassification::test_mixed_requirements PASSED [ 31%]
tests/unit/team/test_continue_run_requirements.py::TestRequirementClassification::test_empty_list PASSED [ 32%]
tests/unit/team/test_continue_run_requirements.py::TestBuildContinuationMessage::test_empty_results PASSED [ 34%]
tests/unit/team/test_continue_run_requirements.py::TestBuildContinuationMessage::test_single_result PASSED [ 36%]
tests/unit/team/test_continue_run_requirements.py::TestBuildContinuationMessage::test_multiple_results PASSED [ 37%]
tests/unit/team/test_continue_run_requirements.py::TestChainedHITLRequirements::test_newly_propagated_reqs_preserved_after_routing PASSED [ 39%]
tests/unit/team/test_continue_run_requirements.py::TestChainedHITLRequirements::test_no_propagated_reqs_yields_only_team_level PASSED [ 41%]
tests/unit/team/test_continue_run_requirements.py::TestMixedHITLTypes::test_mixed_confirmation_and_external_execution PASSED [ 43%]
tests/unit/team/test_continue_run_requirements.py::TestMixedHITLTypes::test_mixed_member_and_team_level_requirements PASSED [ 44%]
tests/unit/team/test_continue_run_requirements.py::TestDeeplyNestedTeams::test_three_level_nesting_returns_top_sub_team PASSED [ 46%]
tests/unit/team/test_continue_run_requirements.py::TestDeeplyNestedTeams::test_three_level_nesting_direct_child_match PASSED [ 48%]
tests/unit/team/test_continue_run_requirements.py::TestDeeplyNestedTeams::test_deeply_nested_unknown_returns_none PASSED [ 50%]
tests/unit/team/test_continue_run_requirements.py::TestMemberRunResponseCleanup::test_propagate_sets_member_run_response PASSED [ 51%]
tests/unit/team/test_continue_run_requirements.py::TestUnresolvedTeamLevelRequirements::test_unresolved_team_level_detected PASSED [ 53%]
tests/unit/team/test_continue_run_requirements.py::TestUnresolvedTeamLevelRequirements::test_resolved_team_level_not_detected PASSED [ 55%]
tests/unit/team/test_continue_run_requirements.py::TestUnresolvedTeamLevelRequirements::test_member_reqs_excluded_from_team_level_guard PASSED [ 56%]
tests/unit/team/test_continue_run_requirements.py::TestUnresolvedTeamLevelRequirements::test_mixed_reqs_only_team_level_unresolved PASSED [ 58%]
tests/unit/team/test_continue_run_requirements.py::TestAsyncGatherErrorHandling::test_gather_filters_exceptions PASSED [ 60%]
tests/unit/team/test_continue_run_requirements.py::TestAsyncGatherErrorHandling::test_all_exceptions_yields_empty_results PASSED [ 62%]
tests/unit/team/test_continue_run_requirements.py::TestToolResultRequiresHumanInput::test_matching_string PASSED [ 63%]
tests/unit/team/test_continue_run_requirements.py::TestToolResultRequiresHumanInput::test_case_insensitive PASSED [ 65%]
tests/unit/team/test_continue_run_requirements.py::TestToolResultRequiresHumanInput::test_no_match PASSED [ 67%]
tests/unit/team/test_continue_run_requirements.py::TestToolResultRequiresHumanInput::test_none_result PASSED [ 68%]
tests/unit/team/test_continue_run_requirements.py::TestToolResultRequiresHumanInput::test_non_string_result PASSED [ 70%]
tests/unit/team/test_continue_run_requirements.py::TestPrepareMemberHitlContinuation::test_updates_delegate_task_to_member PASSED [ 72%]
tests/unit/team/test_continue_run_requirements.py::TestPrepareMemberHitlContinuation::test_updates_delegate_task_to_members_plural PASSED [ 74%]
tests/unit/team/test_continue_run_requirements.py::TestPrepareMemberHitlContinuation::test_updates_multiple_matching_tools PASSED [ 75%]
tests/unit/team/test_continue_run_requirements.py::TestPrepareMemberHitlContinuation::test_falls_back_to_any_tool_with_human_input PASSED [ 77%]
tests/unit/team/test_continue_run_requirements.py::TestPrepareMemberHitlContinuation::test_resets_run_state PASSED [ 79%]
tests/unit/team/test_continue_run_requirements.py::TestContinueRunApprovalResolution::test_continue_run_dispatch_uses_resolved_admin_approval_without_requirements PASSED [ 81%]
tests/unit/team/test_continue_run_requirements.py::TestContinueRunApprovalResolution::test_acontinue_run_uses_resolved_admin_approval_without_requirements PASSED [ 82%]
tests/unit/team/test_continue_run_requirements.py::TestContinueRunApprovalResolution::test_acontinue_run_stream_uses_run_id_for_empty_requirements PASSED [ 84%]
tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_sync_routing_forwards_dependencies FAILED [ 86%]
tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_sync_routing_run_id_fallback_forwards_dependencies FAILED [ 87%]
tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_async_routing_forwards_dependencies FAILED [ 89%]
tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_async_routing_run_id_fallback_forwards_dependencies FAILED [ 91%]
tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_async_streaming_routing_forwards_dependencies 
-------------------------------- live log call ---------------------------------
WARNING  agno:log.py:225 Member member-id-1 streaming did not yield a final RunOutput
FAILED                                                                   [ 93%]
tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_async_streaming_run_id_fallback_forwards_dependencies 
-------------------------------- live log call ---------------------------------
WARNING  agno:log.py:225 Member member-id-1 streaming did not yield a final RunOutput
FAILED                                                                   [ 94%]
tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_sync_streaming_routing_forwards_dependencies 
-------------------------------- live log call ---------------------------------
WARNING  agno:log.py:225 Member member-id-1 streaming did not yield a final RunOutput
FAILED                                                                   [ 96%]
tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_sync_streaming_run_id_fallback_forwards_dependencies 
-------------------------------- live log call ---------------------------------
WARNING  agno:log.py:225 Member member-id-1 streaming did not yield a final RunOutput
FAILED                                                                   [ 98%]
tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_routing_with_none_run_context_does_not_forward_dependencies PASSED [100%]

=================================== FAILURES ===================================
___ TestRunContextForwardingBehavior.test_sync_routing_forwards_dependencies ___

self = <tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffc12bb10>

    def test_sync_routing_forwards_dependencies(self):
        """Sync non-streaming routing forwards dependencies to member.continue_run."""
        from agno.team._run import _route_requirements_to_members
    
        run_response, session, _member_run_output = self._make_run_response_with_member_req()
        run_context = self._make_run_context()
    
        member = MagicMock()
        member.name = "Member 1"
        member_response = MagicMock(is_paused=False, content="ok")
        member.continue_run = MagicMock(return_value=member_response)
    
        team = MagicMock()
    
        with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
            _route_requirements_to_members(team, run_response=run_response, session=session, run_context=run_context)
    
        member.continue_run.assert_called_once()
        kwargs = member.continue_run.call_args.kwargs
>       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1079: KeyError
_ TestRunContextForwardingBehavior.test_sync_routing_run_id_fallback_forwards_dependencies _

self = <tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffc12b9d0>

    def test_sync_routing_run_id_fallback_forwards_dependencies(self):
        """Sync run-id fallback path also forwards dependencies."""
        from agno.team._run import _route_requirements_to_members
    
        run_response, session, _ = self._make_run_response_with_member_req()
        # Force the run_id fallback path (no cached member RunOutput)
        run_response.requirements[0]._member_run_response = None
        run_response.member_responses = []
        run_context = self._make_run_context()
    
        member = MagicMock()
        member.name = "Member 1"
        member.continue_run = MagicMock(return_value=MagicMock(is_paused=False, content="ok"))
    
        team = MagicMock()
    
        with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
            _route_requirements_to_members(team, run_response=run_response, session=session, run_context=run_context)
    
        member.continue_run.assert_called_once()
        kwargs = member.continue_run.call_args.kwargs
>       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1102: KeyError
__ TestRunContextForwardingBehavior.test_async_routing_forwards_dependencies ___

self = <tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffc03ad70>

    def test_async_routing_forwards_dependencies(self):
        """Async non-streaming routing forwards dependencies to member.acontinue_run."""
        from agno.team._run import _aroute_requirements_to_members
    
        run_response, session, _ = self._make_run_response_with_member_req()
        run_context = self._make_run_context()
    
        member = MagicMock()
        member.name = "Member 1"
        member_response = MagicMock(is_paused=False, content="ok")
        member.acontinue_run = AsyncMock(return_value=member_response)
    
        team = MagicMock()
    
        async def _exercise():
            with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
                await _aroute_requirements_to_members(
                    team, run_response=run_response, session=session, run_context=run_context
                )
    
        asyncio.run(_exercise())
    
        member.acontinue_run.assert_awaited_once()
        kwargs = member.acontinue_run.call_args.kwargs
>       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1128: KeyError
_ TestRunContextForwardingBehavior.test_async_routing_run_id_fallback_forwards_dependencies _

self = <tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffc03aea0>

    def test_async_routing_run_id_fallback_forwards_dependencies(self):
        """Async run-id fallback path also forwards dependencies."""
        from agno.team._run import _aroute_requirements_to_members
    
        run_response, session, _ = self._make_run_response_with_member_req()
        # Force the run_id fallback path (no cached member RunOutput)
        run_response.requirements[0]._member_run_response = None
        run_response.member_responses = []
        run_context = self._make_run_context()
    
        member = MagicMock()
        member.name = "Member 1"
        member.acontinue_run = AsyncMock(return_value=MagicMock(is_paused=False, content="ok"))
    
        team = MagicMock()
    
        async def _exercise():
            with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
                await _aroute_requirements_to_members(
                    team, run_response=run_response, session=session, run_context=run_context
                )
    
        asyncio.run(_exercise())
    
        member.acontinue_run.assert_awaited_once()
        kwargs = member.acontinue_run.call_args.kwargs
>       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1156: KeyError
_ TestRunContextForwardingBehavior.test_async_streaming_routing_forwards_dependencies _

self = <tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffbe4f1d0>

    def test_async_streaming_routing_forwards_dependencies(self):
        """Async streaming routing forwards dependencies to member.acontinue_run."""
        from agno.team._run import _aroute_requirements_to_members_stream
    
        run_response, session, _ = self._make_run_response_with_member_req()
        run_context = self._make_run_context()
    
        member_response = MagicMock(is_paused=False, content="ok")
    
        async def _member_stream(*args, **kwargs):
            yield member_response
    
        member = MagicMock()
        member.name = "Member 1"
        member.acontinue_run = MagicMock(side_effect=lambda *a, **kw: _member_stream())
    
        team = MagicMock()
        team.stream_member_events = False
        team.events_to_skip = []
        team.store_events = False
    
        async def _exercise():
            with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
                member_results = []
                async for _ in _aroute_requirements_to_members_stream(
                    team,
                    run_response=run_response,
                    session=session,
                    member_results=member_results,
                    run_context=run_context,
                    stream_events=False,
                ):
                    pass
    
        asyncio.run(_exercise())
    
        member.acontinue_run.assert_called_once()
        kwargs = member.acontinue_run.call_args.kwargs
>       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1196: KeyError
----------------------------- Captured stdout call -----------------------------
WARNING  Member member-id-1 streaming did not yield a final RunOutput           
------------------------------ Captured log call -------------------------------
WARNING  agno:log.py:225 Member member-id-1 streaming did not yield a final RunOutput
_ TestRunContextForwardingBehavior.test_async_streaming_run_id_fallback_forwards_dependencies _

self = <tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffd66ae00>

    def test_async_streaming_run_id_fallback_forwards_dependencies(self):
        """Async streaming run-id fallback path also forwards dependencies."""
        from agno.team._run import _aroute_requirements_to_members_stream
    
        run_response, session, _ = self._make_run_response_with_member_req()
        # Force the run_id fallback path (no cached member RunOutput)
        run_response.requirements[0]._member_run_response = None
        run_response.member_responses = []
        run_context = self._make_run_context()
    
        member_response = MagicMock(is_paused=False, content="ok")
    
        async def _member_stream(*args, **kwargs):
            yield member_response
    
        member = MagicMock()
        member.name = "Member 1"
        member.acontinue_run = MagicMock(side_effect=lambda *a, **kw: _member_stream())
    
        team = MagicMock()
        team.stream_member_events = False
        team.events_to_skip = []
        team.store_events = False
    
        async def _exercise():
            with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
                member_results = []
                async for _ in _aroute_requirements_to_members_stream(
                    team,
                    run_response=run_response,
                    session=session,
                    member_results=member_results,
                    run_context=run_context,
                    stream_events=False,
                ):
                    pass
    
        asyncio.run(_exercise())
    
        member.acontinue_run.assert_called_once()
        kwargs = member.acontinue_run.call_args.kwargs
>       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1239: KeyError
----------------------------- Captured stdout call -----------------------------
WARNING  Member member-id-1 streaming did not yield a final RunOutput           
------------------------------ Captured log call -------------------------------
WARNING  agno:log.py:225 Member member-id-1 streaming did not yield a final RunOutput
_ TestRunContextForwardingBehavior.test_sync_streaming_routing_forwards_dependencies _

self = <tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffc0629c0>

    def test_sync_streaming_routing_forwards_dependencies(self):
        """Sync streaming routing forwards dependencies to member.continue_run."""
        from agno.team._run import _route_requirements_to_members_stream
    
        run_response, session, _ = self._make_run_response_with_member_req()
        run_context = self._make_run_context()
    
        member_response = MagicMock(is_paused=False, content="ok")
    
        def _member_stream(*args, **kwargs):
            yield member_response
    
        member = MagicMock()
        member.name = "Member 1"
        member.continue_run = MagicMock(side_effect=lambda *a, **kw: _member_stream())
    
        team = MagicMock()
        team.stream_member_events = False
        team.events_to_skip = []
        team.store_events = False
    
        with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
            member_results = []
            list(
                _route_requirements_to_members_stream(
                    team,
                    run_response=run_response,
                    session=session,
                    member_results=member_results,
                    run_context=run_context,
                    stream_events=False,
                )
            )
    
        member.continue_run.assert_called_once()
        kwargs = member.continue_run.call_args.kwargs
>       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1277: KeyError
----------------------------- Captured stdout call -----------------------------
WARNING  Member member-id-1 streaming did not yield a final RunOutput           
------------------------------ Captured log call -------------------------------
WARNING  agno:log.py:225 Member member-id-1 streaming did not yield a final RunOutput
_ TestRunContextForwardingBehavior.test_sync_streaming_run_id_fallback_forwards_dependencies _

self = <tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffd687e50>

    def test_sync_streaming_run_id_fallback_forwards_dependencies(self):
        """Sync streaming run-id fallback path also forwards dependencies."""
        from agno.team._run import _route_requirements_to_members_stream
    
        run_response, session, _ = self._make_run_response_with_member_req()
        # Force the run_id fallback path (no cached member RunOutput)
        run_response.requirements[0]._member_run_response = None
        run_response.member_responses = []
        run_context = self._make_run_context()
    
        member_response = MagicMock(is_paused=False, content="ok")
    
        def _member_stream(*args, **kwargs):
            yield member_response
    
        member = MagicMock()
        member.name = "Member 1"
        member.continue_run = MagicMock(side_effect=lambda *a, **kw: _member_stream())
    
        team = MagicMock()
        team.stream_member_events = False
        team.events_to_skip = []
        team.store_events = False
    
        with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
            member_results = []
            list(
                _route_requirements_to_members_stream(
                    team,
                    run_response=run_response,
                    session=session,
                    member_results=member_results,
                    run_context=run_context,
                    stream_events=False,
                )
            )
    
        member.continue_run.assert_called_once()
        kwargs = member.continue_run.call_args.kwargs
>       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1318: KeyError
----------------------------- Captured stdout call -----------------------------
WARNING  Member member-id-1 streaming did not yield a final RunOutput           
------------------------------ Captured log call -------------------------------
WARNING  agno:log.py:225 Member member-id-1 streaming did not yield a final RunOutput
-------------- generated xml file: /tmp/rebench-test-results.xml ---------------
=========================== short test summary info ============================
FAILED tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_sync_routing_forwards_dependencies
FAILED tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_sync_routing_run_id_fallback_forwards_dependencies
FAILED tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_async_routing_forwards_dependencies
FAILED tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_async_routing_run_id_fallback_forwards_dependencies
FAILED tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_async_streaming_routing_forwards_dependencies
FAILED tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_async_streaming_run_id_fallback_forwards_dependencies
FAILED tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_sync_streaming_routing_forwards_dependencies
FAILED tests/unit/team/test_continue_run_requirements.py::TestRunContextForwardingBehavior::test_sync_streaming_run_id_fallback_forwards_dependencies
========================= 8 failed, 50 passed in 0.59s =========================
<?xml version="1.0" encoding="utf-8"?><testsuites name="pytest tests"><testsuite name="pytest" errors="0" failures="8" skipped="0" tests="58" time="0.587" timestamp="2026-09-04T02:50:51.523773+00:00" hostname="3c4dacc35e39"><testcase classname="tests.unit.team.test_continue_run_requirements.TestPropagateMemberPause" name="test_copies_requirements_with_member_context" time="0.108" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestPropagateMemberPause" name="test_deep_copies_requirements" time="0.001" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestPropagateMemberPause" name="test_user_input_schema_is_deeply_copied" time="0.001" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestPropagateMemberPause" name="test_tool_execution_is_deeply_copied" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestPropagateMemberPause" name="test_empty_requirements_does_nothing" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestPropagateMemberPause" name="test_multiple_requirements_all_copied" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestPropagateMemberPause" name="test_appends_to_existing_requirements" time="0.001" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestFindMemberRouteById" name="test_direct_member_match" time="0.001" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestFindMemberRouteById" name="test_nested_member_returns_sub_team" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestFindMemberRouteById" name="test_unknown_member_returns_none" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestNormalizeRequirementsPayload" name="test_converts_dict_to_run_requirement" time="0.001" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestNormalizeRequirementsPayload" name="test_passes_through_run_requirement_objects" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestNormalizeRequirementsPayload" name="test_handles_mixed_list" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestRequirementClassification" name="test_has_member_requirements" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestRequirementClassification" name="test_has_no_member_requirements" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestRequirementClassification" name="test_has_team_level_requirements" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestRequirementClassification" name="test_has_no_team_level_requirements" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestRequirementClassification" name="test_mixed_requirements" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestRequirementClassification" name="test_empty_list" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestBuildContinuationMessage" name="test_empty_results" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestBuildContinuationMessage" name="test_single_result" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestBuildContinuationMessage" name="test_multiple_results" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestChainedHITLRequirements" name="test_newly_propagated_reqs_preserved_after_routing" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestChainedHITLRequirements" name="test_no_propagated_reqs_yields_only_team_level" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestMixedHITLTypes" name="test_mixed_confirmation_and_external_execution" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestMixedHITLTypes" name="test_mixed_member_and_team_level_requirements" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestDeeplyNestedTeams" name="test_three_level_nesting_returns_top_sub_team" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestDeeplyNestedTeams" name="test_three_level_nesting_direct_child_match" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestDeeplyNestedTeams" name="test_deeply_nested_unknown_returns_none" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestMemberRunResponseCleanup" name="test_propagate_sets_member_run_response" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestUnresolvedTeamLevelRequirements" name="test_unresolved_team_level_detected" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestUnresolvedTeamLevelRequirements" name="test_resolved_team_level_not_detected" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestUnresolvedTeamLevelRequirements" name="test_member_reqs_excluded_from_team_level_guard" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestUnresolvedTeamLevelRequirements" name="test_mixed_reqs_only_team_level_unresolved" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestAsyncGatherErrorHandling" name="test_gather_filters_exceptions" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestAsyncGatherErrorHandling" name="test_all_exceptions_yields_empty_results" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestToolResultRequiresHumanInput" name="test_matching_string" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestToolResultRequiresHumanInput" name="test_case_insensitive" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestToolResultRequiresHumanInput" name="test_no_match" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestToolResultRequiresHumanInput" name="test_none_result" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestToolResultRequiresHumanInput" name="test_non_string_result" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestPrepareMemberHitlContinuation" name="test_updates_delegate_task_to_member" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestPrepareMemberHitlContinuation" name="test_updates_delegate_task_to_members_plural" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestPrepareMemberHitlContinuation" name="test_updates_multiple_matching_tools" time="0.002" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestPrepareMemberHitlContinuation" name="test_falls_back_to_any_tool_with_human_input" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestPrepareMemberHitlContinuation" name="test_resets_run_state" time="0.000" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestContinueRunApprovalResolution" name="test_continue_run_dispatch_uses_resolved_admin_approval_without_requirements" time="0.002" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestContinueRunApprovalResolution" name="test_acontinue_run_uses_resolved_admin_approval_without_requirements" time="0.004" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestContinueRunApprovalResolution" name="test_acontinue_run_stream_uses_run_id_for_empty_requirements" time="0.002" /><testcase classname="tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior" name="test_sync_routing_forwards_dependencies" time="0.001"><failure message="KeyError: 'dependencies'">self = &lt;tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffc12bb10&gt;

    def test_sync_routing_forwards_dependencies(self):
        """Sync non-streaming routing forwards dependencies to member.continue_run."""
        from agno.team._run import _route_requirements_to_members
    
        run_response, session, _member_run_output = self._make_run_response_with_member_req()
        run_context = self._make_run_context()
    
        member = MagicMock()
        member.name = "Member 1"
        member_response = MagicMock(is_paused=False, content="ok")
        member.continue_run = MagicMock(return_value=member_response)
    
        team = MagicMock()
    
        with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
            _route_requirements_to_members(team, run_response=run_response, session=session, run_context=run_context)
    
        member.continue_run.assert_called_once()
        kwargs = member.continue_run.call_args.kwargs
&gt;       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1079: KeyError</failure></testcase><testcase classname="tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior" name="test_sync_routing_run_id_fallback_forwards_dependencies" time="0.001"><failure message="KeyError: 'dependencies'">self = &lt;tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffc12b9d0&gt;

    def test_sync_routing_run_id_fallback_forwards_dependencies(self):
        """Sync run-id fallback path also forwards dependencies."""
        from agno.team._run import _route_requirements_to_members
    
        run_response, session, _ = self._make_run_response_with_member_req()
        # Force the run_id fallback path (no cached member RunOutput)
        run_response.requirements[0]._member_run_response = None
        run_response.member_responses = []
        run_context = self._make_run_context()
    
        member = MagicMock()
        member.name = "Member 1"
        member.continue_run = MagicMock(return_value=MagicMock(is_paused=False, content="ok"))
    
        team = MagicMock()
    
        with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
            _route_requirements_to_members(team, run_response=run_response, session=session, run_context=run_context)
    
        member.continue_run.assert_called_once()
        kwargs = member.continue_run.call_args.kwargs
&gt;       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1102: KeyError</failure></testcase><testcase classname="tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior" name="test_async_routing_forwards_dependencies" time="0.001"><failure message="KeyError: 'dependencies'">self = &lt;tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffc03ad70&gt;

    def test_async_routing_forwards_dependencies(self):
        """Async non-streaming routing forwards dependencies to member.acontinue_run."""
        from agno.team._run import _aroute_requirements_to_members
    
        run_response, session, _ = self._make_run_response_with_member_req()
        run_context = self._make_run_context()
    
        member = MagicMock()
        member.name = "Member 1"
        member_response = MagicMock(is_paused=False, content="ok")
        member.acontinue_run = AsyncMock(return_value=member_response)
    
        team = MagicMock()
    
        async def _exercise():
            with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
                await _aroute_requirements_to_members(
                    team, run_response=run_response, session=session, run_context=run_context
                )
    
        asyncio.run(_exercise())
    
        member.acontinue_run.assert_awaited_once()
        kwargs = member.acontinue_run.call_args.kwargs
&gt;       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1128: KeyError</failure></testcase><testcase classname="tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior" name="test_async_routing_run_id_fallback_forwards_dependencies" time="0.001"><failure message="KeyError: 'dependencies'">self = &lt;tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffc03aea0&gt;

    def test_async_routing_run_id_fallback_forwards_dependencies(self):
        """Async run-id fallback path also forwards dependencies."""
        from agno.team._run import _aroute_requirements_to_members
    
        run_response, session, _ = self._make_run_response_with_member_req()
        # Force the run_id fallback path (no cached member RunOutput)
        run_response.requirements[0]._member_run_response = None
        run_response.member_responses = []
        run_context = self._make_run_context()
    
        member = MagicMock()
        member.name = "Member 1"
        member.acontinue_run = AsyncMock(return_value=MagicMock(is_paused=False, content="ok"))
    
        team = MagicMock()
    
        async def _exercise():
            with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
                await _aroute_requirements_to_members(
                    team, run_response=run_response, session=session, run_context=run_context
                )
    
        asyncio.run(_exercise())
    
        member.acontinue_run.assert_awaited_once()
        kwargs = member.acontinue_run.call_args.kwargs
&gt;       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1156: KeyError</failure></testcase><testcase classname="tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior" name="test_async_streaming_routing_forwards_dependencies" time="0.004"><failure message="KeyError: 'dependencies'">self = &lt;tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffbe4f1d0&gt;

    def test_async_streaming_routing_forwards_dependencies(self):
        """Async streaming routing forwards dependencies to member.acontinue_run."""
        from agno.team._run import _aroute_requirements_to_members_stream
    
        run_response, session, _ = self._make_run_response_with_member_req()
        run_context = self._make_run_context()
    
        member_response = MagicMock(is_paused=False, content="ok")
    
        async def _member_stream(*args, **kwargs):
            yield member_response
    
        member = MagicMock()
        member.name = "Member 1"
        member.acontinue_run = MagicMock(side_effect=lambda *a, **kw: _member_stream())
    
        team = MagicMock()
        team.stream_member_events = False
        team.events_to_skip = []
        team.store_events = False
    
        async def _exercise():
            with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
                member_results = []
                async for _ in _aroute_requirements_to_members_stream(
                    team,
                    run_response=run_response,
                    session=session,
                    member_results=member_results,
                    run_context=run_context,
                    stream_events=False,
                ):
                    pass
    
        asyncio.run(_exercise())
    
        member.acontinue_run.assert_called_once()
        kwargs = member.acontinue_run.call_args.kwargs
&gt;       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1196: KeyError</failure></testcase><testcase classname="tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior" name="test_async_streaming_run_id_fallback_forwards_dependencies" time="0.002"><failure message="KeyError: 'dependencies'">self = &lt;tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffd66ae00&gt;

    def test_async_streaming_run_id_fallback_forwards_dependencies(self):
        """Async streaming run-id fallback path also forwards dependencies."""
        from agno.team._run import _aroute_requirements_to_members_stream
    
        run_response, session, _ = self._make_run_response_with_member_req()
        # Force the run_id fallback path (no cached member RunOutput)
        run_response.requirements[0]._member_run_response = None
        run_response.member_responses = []
        run_context = self._make_run_context()
    
        member_response = MagicMock(is_paused=False, content="ok")
    
        async def _member_stream(*args, **kwargs):
            yield member_response
    
        member = MagicMock()
        member.name = "Member 1"
        member.acontinue_run = MagicMock(side_effect=lambda *a, **kw: _member_stream())
    
        team = MagicMock()
        team.stream_member_events = False
        team.events_to_skip = []
        team.store_events = False
    
        async def _exercise():
            with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
                member_results = []
                async for _ in _aroute_requirements_to_members_stream(
                    team,
                    run_response=run_response,
                    session=session,
                    member_results=member_results,
                    run_context=run_context,
                    stream_events=False,
                ):
                    pass
    
        asyncio.run(_exercise())
    
        member.acontinue_run.assert_called_once()
        kwargs = member.acontinue_run.call_args.kwargs
&gt;       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1239: KeyError</failure></testcase><testcase classname="tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior" name="test_sync_streaming_routing_forwards_dependencies" time="0.001"><failure message="KeyError: 'dependencies'">self = &lt;tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffc0629c0&gt;

    def test_sync_streaming_routing_forwards_dependencies(self):
        """Sync streaming routing forwards dependencies to member.continue_run."""
        from agno.team._run import _route_requirements_to_members_stream
    
        run_response, session, _ = self._make_run_response_with_member_req()
        run_context = self._make_run_context()
    
        member_response = MagicMock(is_paused=False, content="ok")
    
        def _member_stream(*args, **kwargs):
            yield member_response
    
        member = MagicMock()
        member.name = "Member 1"
        member.continue_run = MagicMock(side_effect=lambda *a, **kw: _member_stream())
    
        team = MagicMock()
        team.stream_member_events = False
        team.events_to_skip = []
        team.store_events = False
    
        with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
            member_results = []
            list(
                _route_requirements_to_members_stream(
                    team,
                    run_response=run_response,
                    session=session,
                    member_results=member_results,
                    run_context=run_context,
                    stream_events=False,
                )
            )
    
        member.continue_run.assert_called_once()
        kwargs = member.continue_run.call_args.kwargs
&gt;       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1277: KeyError</failure></testcase><testcase classname="tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior" name="test_sync_streaming_run_id_fallback_forwards_dependencies" time="0.001"><failure message="KeyError: 'dependencies'">self = &lt;tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior object at 0x7ffffd687e50&gt;

    def test_sync_streaming_run_id_fallback_forwards_dependencies(self):
        """Sync streaming run-id fallback path also forwards dependencies."""
        from agno.team._run import _route_requirements_to_members_stream
    
        run_response, session, _ = self._make_run_response_with_member_req()
        # Force the run_id fallback path (no cached member RunOutput)
        run_response.requirements[0]._member_run_response = None
        run_response.member_responses = []
        run_context = self._make_run_context()
    
        member_response = MagicMock(is_paused=False, content="ok")
    
        def _member_stream(*args, **kwargs):
            yield member_response
    
        member = MagicMock()
        member.name = "Member 1"
        member.continue_run = MagicMock(side_effect=lambda *a, **kw: _member_stream())
    
        team = MagicMock()
        team.stream_member_events = False
        team.events_to_skip = []
        team.store_events = False
    
        with patch("agno.team._tools._find_member_route_by_id", return_value=(0, member)):
            member_results = []
            list(
                _route_requirements_to_members_stream(
                    team,
                    run_response=run_response,
                    session=session,
                    member_results=member_results,
                    run_context=run_context,
                    stream_events=False,
                )
            )
    
        member.continue_run.assert_called_once()
        kwargs = member.continue_run.call_args.kwargs
&gt;       assert kwargs["dependencies"] == {"user_token": "Bearer abc"}
               ^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'dependencies'

tests/unit/team/test_continue_run_requirements.py:1318: KeyError</failure></testcase><testcase classname="tests.unit.team.test_continue_run_requirements.TestRunContextForwardingBehavior" name="test_routing_with_none_run_context_does_not_forward_dependencies" time="0.001" /></testsuite></testsuites>Updated 1 path from 8cc903ef9
SWE-rebench parser: parse_log_pytest
SWE-rebench results:
FAILED
