Repository navigation
fix(tools): every file tool checks the allowed-folders rule - #4656
Conversation
Folder listing, folder and content search, recent files, document and code indexing, folder watching, and the paths tools save to now go through the same PathValidator.validate_read / validate_write check that read_file and write_file use, including its approval prompt for out-of-scope paths. - New gaia.agents.tools.path_access wraps the validator; it adds no rule. - PathValidator expands ~ before resolving symlinks and .., so the check judges the path the tool opens. - Folder walks skip entries that resolve outside the scope or are secrets. - ChatAgent hands its validator to the RAG SDK, so an approved folder is readable by indexing too. - Name search over the common document folders, GAIA's own output folders, and capture_skill stay wider on purpose, each documented in one line.
The chat agent now imports gaia.agents.tools.path_access, which first ships in core 0.25.0. Installing it on core 0.22-0.24 would fail at startup with an ImportError, so the floor in pyproject.toml and gaia-agent.yaml moves to 0.25.0 and the package version to 0.1.1. The floor guard test now pins the new module.
The flagship ships the allowed-folders check its file tools now share, so it requires the core that provides gaia.agents.tools.path_access and the chat release that uses it. Package version 0.2.1, stamped across the manifest, pyproject, package.json and binaries.lock.json; the npm README, SKILL and CHANGELOG quote the new minimum core. Removes the chat package's test_dependency_floor.py: it ran the same three checks as test_chat_dependency_floor.py with a narrower regex, so the two could only ever disagree.
# Conflicts: # hub/agents/chat/python/CHANGELOG.md # src/gaia/agents/tools/file_tools.py # src/gaia/agents/tools/rag_tools.py
…tion_about_image These two VLM tools read arbitrary file bytes straight from a model-supplied path with no sandbox check at all, missed by the allowed-folders sweep because VLMToolsMixin lives outside src/gaia/agents/tools/. They're composed into the shipping ChatAgent/GaiaAgent, so a model could read any file on disk (.env, SSH keys, etc.) and have it fed to the VLM backend. Also drops an import of NOT_EXECUTED from rag_tools.py left unused after the allowed-folders check replaced its two call sites.
|
Verdict: Approve with suggestions This closes a real gap. Before, the model could get around the allowed-folders scope by using a listing, search, indexing or save tool instead of 🟡 The hub packages now need a core version that hasn't been released. The chat and flagship packages require 🟡 There's no proof yet from a real session, and the evals are still unchecked. The refusal text, the default
🔍 Technical details
|
|
Rebased onto main and fixed the merge conflict with #4642 (both touched the same Also closed a real gap in the "every file tool" claim: With the conflict gone, full CI ran for the first time and found a second, unrelated problem that needs your call before this can merge: the dependency floor bump ( 🔍 Technical details
Holding off on merge until the floor/version question is resolved — flagging for human call given this also needs security sign-off on the allowed-folders coverage itself. |
…nment (amd#4659) Merge after amd#4635 — contains its commits. amd#4635 gave shell commands and MCP servers a trimmed environment: GAIA's internal credentials left out, the user's own variables kept. Processes GAIA starts for skills and tools now get the same trimmed environment as the shell tool. That covers skill CLI setup and sign-in, native hub agents, ffmpeg and its installers, PPTX conversion, the engineering handoff, and every Lemonade launch. `GH_TOKEN`, `PATH` and other user variables still pass through, so CLI skills keep working. - **The engineering pairing token is now an internal credential.** Programs GAIA starts no longer receive it. The coding app still does, because it gets the token from the MCP server config it was given, not by inheritance. - **The daemon now starts with a clean environment.** It creates its own credentials and custody endpoint, so it no longer inherits a sidecar's credentials or custody URL when a sidecar starts it. An inherited URL with no matching secret would stop its sidecars from starting. `GAIA_CHILD_ENV_DENY` does not apply to the daemon, because the daemon is GAIA itself. - **Not covered yet: the chat package's `run_python` / `execute_python_file`.** They need a core floor that includes `gaia.env`, which waits on amd#4656. ## Test plan - [ ] `pytest tests/unit/test_child_env_launch_sites.py tests/unit/test_child_env.py`: each launch site, with the launch mocked, gets none of GAIA's internal credentials (now including `GAIA_ENGINEERING_TOKEN`) and keeps `PATH` / `GH_TOKEN`. The engineering MCP config still carries the pairing token, and the daemon launch has no `GAIA_HOST_CUSTODY_URL`. - [ ] `pytest tests/unit/test_binary_setup.py tests/unit/test_cli_setup_tools.py tests/unit/test_native_launcher.py tests/unit/test_lemonade_supervisor.py tests/unit/test_lemonade_embedded.py tests/unit/test_lemonade_server_process_lifecycle.py tests/unit/test_media.py tests/unit/agents/test_edit_impact.py tests/unit/engineering tests/mcp/test_engineering_mcp.py tests/unit/test_daemon_client.py tests/unit/test_agent_sidecar_manager.py` - [ ] With a sidecar running, `gaia daemon status` still shows the gaia and email sidecars authenticated after a daemon restart. --------- Co-authored-by: Kalin Ovtcharov <[email protected]> Co-authored-by: Kalin Ovtcharov <[email protected]>
# Conflicts: # hub/agents/gaia/npm/CHANGELOG.md
amd-gaia 0.25.0 is not released yet, so floors and version stamps pointing at it break every CI lane that installs the hub packages. Following the repo convention, the feature lands unversioned and the chat and flagship floors are raised in a follow-up once the core release that ships gaia.agents.tools.path_access is out. The chat CHANGELOG records that the next release must raise its core floor.
|
The dependency-floor and version bumps are moved to the release follow-up, per the repo convention of landing the feature unversioned and raising downstream floors once the core release ships. CI should now resolve, since nothing pins the unreleased amd-gaia 0.25.0 anymore. |
# Conflicts: # hub/agents/chat/python/CHANGELOG.md
The core unit lane has no gaia_agent_chat, so the file skipped wholesale there and failed the module-skip gate. The chat-agent lane installs the package and runs hub/agents/chat/python/tests/, so the tests now live there.
…olders test Path.home() is faked to /fake/home for the characterization fixture, but PathValidator.__init__ unconditionally mkdirs its cache_dir under gaia_home(), which fell through to that fake, unwritable path.
# Conflicts: # src/gaia/agents/tools/file_io_tools.py
…es (amd#4686) On Windows, a text file saved as UTF-16 (PowerShell 5.1 `>` and some Notepad saves do this) came back from `read_file` as `[Binary file, 110 bytes]`, and searches never matched inside it. The agent then fell back to `run_python`, so the user had to approve a "DESTRUCTIVE" code prompt just to read a text file. Separately, a search hit deep in a long line (minified JS, single-line JSON or CSV, log lines) came back as the line's first 200 characters, so the model never saw the match. One `search_code` hit on a 5 MB line also returned the entire 5 MB line. Now file reads and searches detect UTF-16, UTF-32 and UTF-8 byte-order marks and decode the text. Genuinely binary files are still reported as binary. A long matching line comes back as a 200-character window centred on the match, with `...` where it was cut. ## Test plan - [x] `python -m pytest tests/unit/agents/test_file_tools_text_encoding.py`: 45 pass. With only the `src/` changes reverted, 34 of them fail; the 11 that still pass are the binary and plain UTF-8 guards and the pure excerpt-helper tests. - [x] `python -m pytest tests/unit/agents/test_read_file_line_ranges.py tests/unit/agents/test_chunk_index.py tests/unit/test_file_tools.py tests/unit/agents/test_read_before_edit.py tests/unit/agents/test_file_edit_semantics.py tests/unit/test_tool_tilde_expansion.py`: all 462 pass. - [x] `python -m pytest tests/unit/ -k "file or search or read"`: no new failures. The 20 failures there also happen on `main` (profilespec goldens, diarize/speech, email sidecar, shell guardrails, and an order-dependent tool-label test polluted by other suites). - [x] `python util/lint.py --black --isort --pylint`: black and isort pass. The only pylint errors are the existing POSIX-only `os.getuid` / `signal.SIGKILL` hits on Windows, in files this PR doesn't touch. - [ ] Reviewer: in the TUI, ask the flagship to read a file written with `Set-Content -Encoding Unicode` in PowerShell 5.1 and confirm it reads it without a `run_python` approval. <details> <summary>🔍 Technical details</summary> - The shared helper is `gaia/agents/tools/text_files.py` (`text_encoding`, `read_text`, `match_excerpt`). It's used by both `read_file` mixins (full read, `offset`/`limit` paging, `start_line` ranges), `search_file_content`, `search_code` and `get_file_info`. `get_file_info`'s `latin-1` fallback used to accept UTF-16 bytes and return a `ÿþL\x00e\x00…` preview. - A file starting with a UTF-16/32 BOM that decodes to a NUL is still reported as binary. - When the file has a BOM, `read_file` includes `"encoding"` in its result. Plain UTF-8 results are unchanged. - `search_file_content` used to open every file twice when `context_lines=0` and leaked the inner handle. It now opens each file once. - I left `read_file` on a 5 MB single-line file alone because the result isn't silent. The agent already condenses it with `truncated: true`, `original_chars`, an archived artifact and a paged `read_tool_output` continuation. - Out of scope: `edit_file` on a UTF-16 file still fails with a UTF-8 decode error and leaves the file unchanged, same as on `main`. Making writes keep the original encoding is a separate change. - This touches the same files as amd#4656, so whichever merges second may need a small rebase. </details>
# Conflicts: # docs/guides/gaia.mdx
|
🟡 The chat agent's dependency-floor guard test is still deleted, even though the version bumps it went with were backed out. That test stops the chat agent's 🔍 Technical details
|
The floor bump it was removed alongside moved to the release follow-up, so the guard still applies at 0.22.0 and passes unchanged.
|
Restored the chat agent's dependency-floor test; it passes unchanged against the current 0.22.0 floor and can move with the floor in the release follow-up. Also merged main so CI re-runs. |
# Conflicts: # docs/guides/gaia.mdx # hub/agents/chat/python/CHANGELOG.md # hub/agents/chat/python/gaia_agent_chat/agent.py # src/gaia/agents/tools/rag_tools.py
# Conflicts: # hub/agents/chat/python/CHANGELOG.md
…folder-rule Background indexing keeps the allowed-folders check ahead of it: index_document and query_specific_file ask the validator before the existence probe and before a job is queued. Tests cover a path outside the folders and a secret inside them on both tools.
# GAIA v0.25.0 Release Notes ## Breaking Changes - **`gaia chat` runs the flagship GAIA agent**, the same agent as the TUI and Agent UI, instead of the retired ChatAgent. `gaia chat -q "…"` queries it once. (PR [amd#4520](amd#4520)) - **`gaia talk` transcribes and speaks through Lemonade** — it uses Lemonade's Whisper and `kokoro-v1`, and stops with the reason if Lemonade is down. The `[audio]` extra is gone; `pip install amd-gaia[audio]` only warns. (PR [amd#4665](amd#4665)) - **The Agent UI runs only the GAIA agent** — the Agent Hub home, agent picker, and custom-agent export/import are removed from the UI. The CLI and eval harness can still run other agents. (PR [amd#4509](amd#4509)) - **The retired nomic embedder is removed** — memory saved with it is re-embedded on first start. (PR [amd#4489](amd#4489)) - **Indexed documents are re-indexed once** — the document cache is now keyed on chunking settings, so the first query after upgrading rebuilds it. (PR [amd#4624](amd#4624)) - **A skill that asks for more than its tier allows no longer loads** — the permission ceiling is checked at every load, so a skill already on disk that exceeds it is refused with the reason. (PR [amd#4849](amd#4849)) ## What's New - **A larger local model where the GPU holds it** — `gaia init` picks Qwen3.6-35B-A3B on a 64 GB+ Strix Halo or a 32 GB GPU and keeps Gemma-4-E4B elsewhere, with each context window sized to available memory. Qwen3.8 Flash Next is opt-in on 128 GB Strix Halo. (PRs [amd#4479](amd#4479), [amd#4670](amd#4670), [amd#4671](amd#4671), [amd#4658](amd#4658), [amd#4655](amd#4655)) - **The Agent UI opens straight to a chat and sets itself up** — a fresh install runs the same setup steps as the TUI in the window, with provider, key and model settings, permission modes, and revocable "always allow" grants. (PR [amd#4509](amd#4509)) - **A much smaller install** — PyTorch, transformers and accelerate are gone from the core, `[ui]` and `[talk]` installs; the desktop app's Python environment drops from ~0.9 GB to ~0.1 GB on Windows. (PRs [amd#4666](amd#4666), [amd#4621](amd#4621), [amd#4665](amd#4665)) - **One Windows installer for the desktop app and the terminal**, with a GAIA Windows Terminal profile. (PRs [amd#4720](amd#4720), [amd#4707](amd#4707)) - **A "no" holds** — a declined action isn't retried through another tool; the agent asks again with the exact command. The TUI gains Shift+Tab permission modes. (PRs [amd#4460](amd#4460), [amd#4461](amd#4461)) - **Answers are checked against what the tools actually did** — the agent looks at files you name before answering about them, and a short plain-English note appears only when work isn't confirmed. (PRs [amd#4532](amd#4532), [amd#4501](amd#4501), [amd#4508](amd#4508)) - **One shell session** — commands share a persistent shell, risky ones ask instead of being refused, and "full access" is one setting everywhere. (PR [amd#4408](amd#4408)) - **Memory surfaces what's relevant to each request, with its age**, keeps what fixed a failure as a lesson for that workspace, and extracts after the answer instead of before it. (PRs [amd#4061](amd#4061), [amd#4066](amd#4066), [amd#4406](amd#4406)) - **`gaia.log` stays bounded** — it rotates at 10 MB with three backups (`GAIA_LOG_MAX_MB`, `GAIA_LOG_BACKUPS`). (PRs [amd#4668](amd#4668), [amd#4760](amd#4760)) - **Child processes get a trimmed environment** — shell, MCP and skill children no longer inherit GAIA's internal credentials; `GAIA_NO_DOTENV` skips loading `.env`. (PRs [amd#4635](amd#4635), [amd#4659](amd#4659)) - **Every file tool checks the allowed-folders rule**, and paths inside an inline shell script are checked one by one. (PRs [amd#4656](amd#4656), [amd#4758](amd#4758)) ## Bug Fixes A selection of the user-visible fixes; the full list is in the changelog below. - **Local Qwen models no longer loop on repeated tool calls** — they run with their model card's sampling instead of near-greedy settings. (PR [amd#4655](amd#4655)) - **Qwen3.6 runs on a Strix Halo with an older AMD driver** — it used to crash on its first token, so `gaia init` failed; GAIA now turns off the Vulkan path that crashes on those drivers only, and newer drivers keep the faster path. (PR [amd#4674](amd#4674)) - **A long PDF no longer hangs or times out while indexing** — big documents index in the background, and PDFs that only carry owner-password restrictions now index. (PRs [amd#4754](amd#4754), [amd#4679](amd#4679), [amd#4734](amd#4734)) - **Document answers cite the right document and page**, and every chunk is embedded whole instead of its first 1,200 characters. (PRs [amd#4688](amd#4688), [amd#4723](amd#4723)) - **`gaia init` fails when model verification fails**, shows downloads live, and no longer hangs while Lemonade hashes a large model. (PRs [amd#4620](amd#4620), [amd#4564](amd#4564), [amd#4673](amd#4673)) - **`gaia init` adds a profile's extras without reinstalling GAIA**, which failed on Windows while `gaia.exe` was running. (PR [amd#4672](amd#4672)) - **Every SDK and CLI entry point starts GAIA's own Lemonade**, and every call goes to the resolved URL with its API key. (PRs [amd#4657](amd#4657), [amd#4627](amd#4627)) - **Local chat stays cached across turns** — the system prompt is fixed and side requests no longer evict the conversation. (PRs [amd#4698](amd#4698), [amd#4543](amd#4543)) - **A cloud model selection never preloads a local model**, and cloud models no longer get llama.cpp-only fields. (PRs [amd#4757](amd#4757), [amd#4709](amd#4709)) - **The Agent UI stops claiming "100% local" while chat goes to a cloud model**, and the chat header names the session's real model. (PRs [amd#4711](amd#4711), [amd#4550](amd#4550)) - **Enter can't approve a permission prompt**, and prompts wait 10 minutes before timing out. (PRs [amd#4700](amd#4700), [amd#4699](amd#4699)) - **Stopping a run keeps the turn and its steps visible.** (PR [amd#4743](amd#4743)) - **A file edit keeps the file's line endings** — a one-line edit on Windows used to rewrite every line ending, so a small change showed up as the whole file changed. (PR [amd#4864](amd#4864)) - **A broken agent install is reported as broken, not as missing** — the error names both package versions and the real import error, and suggests a reinstall that works. (PR [amd#4588](amd#4588)) - **A meeting or document summary is never cut off mid-sentence** — a thinking model used to spend the summary's output budget reasoning, so a long meeting lost its second half. (PR [amd#4827](amd#4827)) - **"What can you do?" gets an answer** instead of an attempt to generate an image of the question. (PR [amd#4809](amd#4809)) - **Writes and approved edits can't reach credential folders** (`~/.ssh`, `~/.aws`, `~/.kube` and others), and shell option values and script arguments get the same path check as plain paths. (PRs [amd#4848](amd#4848), [amd#4847](amd#4847)) - **`gaia connectors connect google --grant-agent installed:gaia` works** — it used to fail with no sign-in link for the shipped agent; it now asks for read-only Gmail and grants exactly that. (PR [amd#4859](amd#4859)) - **A "no" to creating a folder also covers writing into it** — GAIA no longer asks again to create the same folder a different way. (PR [amd#4857](amd#4857)) - **`gaia skill import` runs the same checks as a hub install** — https only, the audit, the permission ceiling, and an explicit opt-in for skills that ship code. (PR [amd#4849](amd#4849)) - **Memory off and private chats apply to scheduled and background runs too.** (PRs [amd#4842](amd#4842), [amd#4821](amd#4821)) - **Memory stops false apologies and reusing deleted values**, saves "remember this" requests, and skips loading the embedder when memory is off. (PRs [amd#4708](amd#4708), [amd#4756](amd#4756)) - **A reply cut off by the token limit is continued** instead of ending mid-sentence, and a tool call cut off at the output cap is retried shorter. (PRs [amd#4054](amd#4054), [amd#4556](amd#4556)) - **The TUI remembers the chosen model** across restarts and agent-process restarts. (PRs [amd#4497](amd#4497), [amd#4710](amd#4710)) - **`gaia uninstall --purge` removes installer binaries, PATH edits and daemon state.** (PR [amd#4413](amd#4413)) ## Contributors Thanks to the community members who contributed to this release: - [@itomek](https://github.com/itomek) — the flagship's browser and tool picker, one shell session, memory extraction off the answer path, stale tool-result eviction, the TUI's sourced Fireworks rankings, and `--purge` cleanup (PRs [amd#4407](amd#4407), [amd#4408](amd#4408), [amd#4406](amd#4406), [amd#4465](amd#4465), [amd#4414](amd#4414), [amd#4413](amd#4413)) - [@mikemikimike](https://github.com/mikemikimike) — chained shell command timeouts, bundled skills in frozen builds, and sidecar cleanup reporting (PRs [amd#4463](amd#4463), [amd#4467](amd#4467), [amd#4419](amd#4419)) - [@Hashim1999164](https://github.com/Hashim1999164) — honoring `GAIA_HOME` for cache, chat and index paths (PR [amd#4381](amd#4381)) - [@krtadev](https://github.com/krtadev) — `~` expansion in file and document tool paths (PR [amd#4576](amd#4576)) - [@aksh8b](https://github.com/aksh8b) — telling a broken agent install apart from a missing one, with a reinstall hint that works (PR [amd#4588](amd#4588)) - [@Dev-next-gen](https://github.com/Dev-next-gen) — numeric prerelease ordering in the hub (PR [amd#4517](amd#4517)) - [@vianmangal](https://github.com/vianmangal) — recording denied tool calls as unsuccessful in memory (PR [amd#4412](amd#4412)) - [@GaetanVDB07](https://github.com/GaetanVDB07) — links to upstream credential setup guides for connectors (PR [amd#4669](amd#4669)) - [@rradjabi](https://github.com/rradjabi) — moving self-hosted CI jobs to the xsj-dispatch runner pool (PR [amd#4534](amd#4534)) ## Also in this PR - **Hub floors raised to core 0.25.0** — the chat agent imports the allowed-folders check that only 0.25.0 ships (amd#4656), so `gaia-agent-chat` goes to 0.2.0 with `amd-gaia>=0.25.0`, and the flagship requires `amd-gaia>=0.25.0` and `gaia-agent-chat>=0.2.0`. - **Two follow-ups held back until that floor could rise** — `~/.gaia/logs/gaia-agent.log` now rotates like `gaia.log` (amd#4668), and the chat agent's Python runners and Windows notification start their children without GAIA's internal credentials (amd#4659). The full changelog (300 commits) is in `docs/releases/v0.25.0.mdx`. ## Test plan - [x] `util/validate_release_notes.py docs/releases/v0.25.0.mdx --tag v0.25.0` passes; narrative is 590 words (cap 600) - [x] `util/check_component_core_api.py --release-version 0.25.0` passes - [x] `pytest tests/unit/test_docs_json_release.py tests/unit/test_check_component_core_api.py hub/agents/chat/python/tests/test_chat_dependency_floor.py hub/agents/chat/python/tests/test_dependency_floor.py hub/agents/gaia/python/tests/test_gen_binaries_lock.py` (72 passed) - [x] `pytest hub/agents/gaia/python/tests/test_stdio.py` (91 passed, incl. the new rotation test); `pytest tests/unit/test_execute_python_file_cwd.py tests/unit/test_run_python_tool.py` (42 passed) - [ ] `mintlify validate` (docs CI job) — timed out locally, relying on CI - [x] Full flagship eval on main 9ce6598 (https://github.com/amd/gaia/actions/runs/37436249503): 181/308 scenarios pass vs 100/183 for the same categories in the baseline, 39 FAIL→PASS, 13 PASS→FAIL (two fixed in amd#4878, held until after rc1); retrieval lane still finishing at merge time - [ ] CI green ## Release checklist - [ ] Publish `gaia-agent-chat` 0.2.0 only after core 0.25.0 is on PyPI — it fails at import on an older core - [ ] Build Installers on the merged SHA (pre-tag verification) before pushing `v0.25.0` - [ ] terminal-hub 0.25.0 published before the flagship npm release consumes `binaries.lock.json` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> Co-authored-by: Kalin Ovtcharov <[email protected]>
File tools now all check the same allowed-folders rule. Before,
read_fileandwrite_filechecked 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.PathValidator.validate_read/validate_writethrough a thin helper. The validator now expands~before resolving symlinks and.., so it judges the path the tool actually opens.capture_skill, which asks the user on every call.🔍 Technical details
gaia.agents.tools.path_access(read_access_error,write_access_error,readable_entry). Folder walks callreadable_entryper file, which never prompts.list_recent_filesreportslocations_not_searched, andsearch_directorywith no root searches the allowed folders instead of the whole home folder. No tool docstrings changed.~expansion tobrowse_directory,get_file_info,analyze_data_fileandsearch_file_content, with identical lines, so either merge order applies cleanly. Merging fix(tools): expand ~ in the data, file-info, browse and grep tools #4642 first is the simplest order.rag_tools.py), fix(code-index): stop an abandoned index build instead of racing the next one #4644 (code_index_tools.py), chore: remove leftovers from the deleted per-task agents and demos #4626 (filesystem_tools.py), and fix(gaia): start code search in a folder the chat can reach #4647 (flagship CHANGELOG). Their hunks don't overlap these, but whichever lands second may need a trivial rebase.Test plan
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 nogaia_agent_chat.test_persisted_grants_are_not_unioned_into_a_host_scope,test_backups_directory_is_owner_only) also fail on main on this machine.path_access: raise the chat and flagshipamd-gaiafloors to it, as the chat CHANGELOG records.gaia_files,gaia_core,gaia_data,tool_selection.