Repository navigation
chore: remove leftovers from the deleted per-task agents and demos - #4626
Conversation
The routing, code, docker, and jira agents were deleted, but code, config, and CI output that only existed for them stayed behind and still points contributors at agents that no longer ship. - print_agent_selected (the routing agent's hook) was an abstract OutputHandler method with five implementations and no callers. Removed, along with the API SSE agent_selected event, its test, and the spec entries. Subclasses that still define it keep working. - .env.example drops variables nothing reads: OPENAI_API_KEY, GROQ_API_KEY, PHOENIX_API_KEY, AGENT_ROUTING_MODEL, ATLASSIAN_*. - Comments, the cache-status hint, and the security workflow summary no longer name CodeAgent or DockerAgent. - src/gaia/talk/app.py, an unreferenced TalkSDK demo, is deleted with its README, which documented flags the demo never had.
|
Verdict: Approve This PR cleans up what the deleted routing, code, docker and jira agents left behind: unused variables in the config template, a cache-status hint that still mentioned the Code Agent, security-coverage lines for agents that no longer exist, an output hook nothing calls, and an orphaned voice demo. I found nothing left behind that still uses any of it, so it's safe to merge.
Real-world evidenceN/A. This is a cleanup PR, and no evidence bundle was produced. The one user-visible change is one line of 🔍 Technical detailsIssues found 🟢 The cache-status hint names an internal tool ( Strengths
|
src/gaia/talk/README.md documented the removed talk/app.py demo, so its test now fails on a missing file. The guide users actually read already has its own checks; the one claim only the README test covered, the "restart" voice command, moves there.
File tools now all check the same allowed-folders rule. Before, `read_file` and `write_file` checked a path against the session's allowed folders (asking the user when it was outside), but several neighbouring tools did not: folder browsing and directory search, recent files, document and code indexing, folder watching, `list_files`, and the paths screenshots, transcripts, speech and exports are saved to. Now every one goes through the same check and the same approval prompt, so a chat scoped to its documents behaves the same whichever tool the model picks. - **One rule, not a second one.** Tools call the existing `PathValidator.validate_read` / `validate_write` through a thin helper. The validator now expands `~` before resolving symlinks and `..`, so it judges the path the tool actually opens. - **Approving a folder now covers document indexing too.** The chat agent's RAG SDK kept a separate validator, so a folder approved in the chat was still refused at indexing time. It now shares the agent's. - **Wider on purpose, and documented:** name search over the common document folders (it returns paths only, and opening one is checked), GAIA's own output folders, and `capture_skill`, which asks the user on every call. <details> <summary>🔍 Technical details</summary> - Helper: `gaia.agents.tools.path_access` (`read_access_error`, `write_access_error`, `readable_entry`). Folder walks call `readable_entry` per file, which never prompts. - Model-visible changes: refusal text from these tools is now the validator's standard message, `list_recent_files` reports `locations_not_searched`, and `search_directory` with no root searches the allowed folders instead of the whole home folder. No tool docstrings changed. - Overlap with amd#4642: both PRs add the same `~` expansion to `browse_directory`, `get_file_info`, `analyze_data_file` and `search_file_content`, with identical lines, so either merge order applies cleanly. Merging amd#4642 first is the simplest order. - Nearby open PRs: amd#4613 and amd#4648 (`rag_tools.py`), amd#4644 (`code_index_tools.py`), amd#4626 (`filesystem_tools.py`), and amd#4647 (flagship CHANGELOG). Their hunks don't overlap these, but whichever lands second may need a trivial rebase. </details> ## Test plan - [x] `pytest tests/unit/test_file_tools_allowed_folders.py hub/agents/chat/python/tests/test_chat_file_tools_allowed_folders.py`: 66 tests. For each tool, a path outside the allowed folders (direct, through `..`, and through a symlink) goes through the approval prompt and is refused, and a path inside still works. 41 of them fail on main. The ChatAgent tests live in the chat package, so the chat-agent lane runs them; the core unit lane has no `gaia_agent_chat`. - [x] Existing file, RAG, audio, screenshot, code-index, security and chat-agent unit tests pass. The two local failures (`test_persisted_grants_are_not_unioned_into_a_host_scope`, `test_backups_directory_is_owner_only`) also fail on main on this machine. - [x] black, isort, flake8 and pylint are clean on the changed files. - [ ] Follow-up after the core release that ships `path_access`: raise the chat and flagship `amd-gaia` floors to it, as the chat CHANGELOG records. - [ ] CI eval re-run, since refusal text and the default search scope are model-visible: `gaia_files`, `gaia_core`, `gaia_data`, `tool_selection`. --------- Co-authored-by: Kalin Ovtcharov <[email protected]> Co-authored-by: Kalin Ovtcharov <[email protected]>
The routing, code, docker, and jira agents are gone, but parts of the repo still point to them.
.env.exampleasked new contributors for six variables nothing reads.gaia cache statussaid "the Code Agent will use embedded knowledge". The security workflow claims coverage of DockerAgent and CodeAgent. Every output handler still had to implement a routing hook that nothing calls. This PR removes those leftovers so the config template, CLI hints, and CI summaries describe what actually ships.Also removes
src/gaia/talk/app.py, an unreferenced TalkSDK demo, and its README, which documented flags the demo never had. Removingprint_agent_selectedfrom theOutputHandlerABC doesn't break anyone: subclasses that still define it keep working.Test plan
print_agent_selectedandagent_selectedfinds nothing insrc,hub,tests, ordocs..env.examplevariable has no reader insrc/hub/tests/util/installer(only mentions in plan docs remain).gaia.talk.apporsrc/gaia/talk/app.py(setup.py, docs, workflows).pytest tests/unit/agents tests/unit/api tests/unit/chat/ui tests/unit/messaging tests/test_sdk.pyplus the console/SSE unit files and three offline integration files: 3651 passed. One xdist-only order flake intest_sidecar_relay_profiles.pypasses when run alone.test_security.ymlparses.util/check_test_lane_coverage.pyandutil/check_workflow_triggers.pypass. black and isort are clean.