Repository navigation
fix(agents): make composed file tool ownership deterministic - #6982
kovtcharov-amd merged 6 commits into
Conversation
|
Verdict: Request changes This PR tries to stop the overlapping file tools (
Real-world evidenceN/A: no evidence bundle was produced for this PR. The verdict rests on static review alone. I couldn't run a local reproduction because this runner lacks the project's dependencies. 🔍 Technical details🔴 Cross-agent tool leak via the global registry ( Here is the sequence that triggers it:
This crosses session boundaries in the UI server. The fix is to scope the check to the current build. from gaia.agents.base.tools import _BUILD_NAMES, _TOOL_REGISTRY
build = _BUILD_NAMES.get()
if build is None or tool_name not in build:
return False
entry = _TOOL_REGISTRY.get(tool_name)Also add a regression test that builds a 🟡 🟡 The 🟢 The comment in Strengths
|
|
Verdict: Request changes The tool leak between agents is fixed, and
🔍 Technical details
|
|
Addressed the review findings in
Local verification on the updated source:
Disclosure and authorizationSlai Agent Runtime performed the investigation, implementation, and test execution. |
|
Verdict: Request changes The line endings are fixed: the diff is back to its real size of about 160 lines. One finding from the last review is still open:
🔍 Technical details
|
|
Correction to the PR description: the current scope is the cross-agent tool-leak fix and deterministic same-build reuse. The Disclosure and authorizationSlai Agent Runtime performed the investigation, implementation, and test execution. |
482ca9e to
969d746
Compare
|
Thanks — the ownership change is safe: every tool's owner and schema are identical to main for both the flagship and chat agents, in every profile and either import order. Two text fixes before merge, since the PR body becomes the commit message:
🔍 Technical details
|
… line Both files now match main, so the PR changes only file tool ownership.
|
Pushed one small catch-up commit so this can merge: |
Summary
Refs #4776 by scoping overlapping file-tool reuse to the current agent build. This prevents a long-running process from reusing another agent's workspace-bound closures.
Changes
_BUILD_NAMESfrom the currenttool_build()context.browse_directoryowner/schema; the FileSystem variant'spathschema is intentionally left for a separate eval-backed change.Validation
tests/unit/test_tool_name_collisions.py: 9 passed.hub/agents/gaia/python/tests/test_tool_name_owners.py: 12 passed.compileall: passed.git diff --check: passed.Disclosure and authorization
Slai Agent Runtime performed the investigation, implementation, and test execution.
The account owner authorized this contribution and is responsible for its content.