Skip to content

fix: require initial tool choice for evidence runs#20

Draft
1aal wants to merge 1 commit into
apecloud-basefrom
fix/evidence-tool-choice-required
Draft

fix: require initial tool choice for evidence runs#20
1aal wants to merge 1 commit into
apecloud-basefrom
fix/evidence-tool-choice-required

Conversation

@1aal

@1aal 1aal commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • map Runtime run requests with requires_tool_evidence=true to a require_until_first_tool policy
  • force tool_choice=required only while the current turn has no tool result, then release back to default so final summaries can complete
  • add focused regressions for required tool choice release and Runtime request policy mapping

Validation

  • uv run pytest tests/run_agent/test_required_tool_choice_policy.py tests/runtime_manager/test_registry.py -q
  • uv run pytest tests/run_agent/test_notice_spine.py -q
  • uv run ruff check agent/conversation_loop.py agent/agent_init.py run_agent.py runtime_manager/manager.py runtime_manager/worker_main.py tests/run_agent/test_required_tool_choice_policy.py tests/runtime_manager/test_registry.py
  • python3 -m py_compile agent/conversation_loop.py agent/agent_init.py run_agent.py runtime_manager/manager.py runtime_manager/worker_main.py
  • git diff --check
  • git diff --check origin/apecloud-base

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant