Skip to content

fix(test): count run_python among ChatAgent's inline tools - #4016

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:claude/fix-main-run-python-skill
Sep 21, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:claude/fix-main-run-python-skill

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

Main's Gaia Agent Tests have failed since #3994 merged. The coding skill now lists run_python as a required tool, and the skill test only accepts tools it knows are registered. run_python is registered directly by ChatAgent, the same way as execute_python_file right beside it, but the test's list of such tools didn't include it. Adding it turns main green. The name is still checked against the agent's source, so a rename would still be caught.

Test plan

  • pytest tests/unit/test_starter_skills.py: 188 passed, 15 skipped. Before this change test_starter_skill_tools_required_are_real_tools[coding] fails on main with coding declares tools_required that no mixin registers: run_python, matching CI run 35417717225.

Main's Gaia Agent Tests fail since amd#3994: the coding skill now requires run_python, which ChatAgent registers inline like execute_python_file, but the skill test's list of inline tools didn't name it. The name is still checked against agent.py's source, so a rename can't slip past.
@github-actions github-actions Bot added the tests Test changes label Sep 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve

One-word fix to a test list that fell behind the code: the coding skill started requiring a tool that ChatAgent registers directly, but the test's list of such tools hadn't been updated, so main's Gaia Agent Tests went red. Adding the name turns it green without weakening the check — the test still confirms the tool really exists in the agent's source, so a rename or deletion would still fail.

No blocking issues.

Real-world evidence

N/A — tests-only change, no user-visible surface, and no evidence-bundle.md was produced for this PR. I verified the fix by reading the code rather than running it: pytest isn't installed on this review runner, so I could not re-run the suite myself. The PR's own test-plan line reports 188 passed / 15 skipped, and the failure it cites matches what the code shows.

🔍 Technical details

Verified the premise holds (no findings):

  • run_python is defined at hub/agents/chat/python/gaia_agent_chat/agent.py:1512, inline under the same if spec.generic_file_ops: guard as execute_python_file (:1443) — so the new entry is exactly symmetric with the one beside it in the list.
  • It is registered nowhere else: grep -rn "def run_python" src/ hub/ returns only that line, confirming no mixin covers it and that test_starter_skill_tools_required_are_real_tools[coding] would fail on main.
  • hub/skills/coding/SKILL.md:16 declares it in tools_required and the body references it at :79, so test_starter_skill_body_mentions_the_tools_it_declares is satisfied too.
  • The guard in tests/unit/test_starter_skills.py:234 is preserved: the name only counts if def run_python( is present in the source, so the list still can't drift past a rename.

Observation, not a finding: the source-scan check proves the def exists, not that the profile under test registers it — both python-exec tools sit behind spec.generic_file_ops, so a chat-profile skill could declare one and still not get it. That's the pre-existing design the fixture's docstring already describes, unchanged by this PR; worth knowing only if the skill↔profile mapping ever gets stricter.

Strengths

kovtcharov-amd pushed a commit to kovtcharov/gaia that referenced this pull request Sep 21, 2026
The coding starter skill declares run_python, which ChatAgent registers
inline rather than through a mixin, so the starter-skill tool check
called it a tool no mixin registers and Test Gaia Agent failed.

Mirrors amd#4016 so this stack tip is green without waiting on that PR.
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Sep 21, 2026
Merged via the queue into amd:main with commit 7364471 Sep 21, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants