Skip to content

fix(agent): withhold compact-tier email tools - #6842

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
huong8373tt-beep:fix/6832-compact-email-tools
Nov 6, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
huong8373tt-beep:fix/6832-compact-email-tools

Conversation

@huong8373tt-beep

@huong8373tt-beep huong8373tt-beep commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • withhold get_thread, list_connected_mailboxes, and list_waiting_on_you from Gemma 4 E4B's compact feature tier
  • keep the compact-tier documentation count accurate (19 fewer tool descriptions)
  • add a regression test covering the complete registered email-tool set

Fixes #6832.

Verification

  • python -m pytest -q tests/unit/agents/test_model_features.py — 10 passed
  • python -m compileall -q src/gaia/agents/base/model_features.py — passed
  • git diff --check — passed
  • Black unavailable in the local Python environment; CI should run the repository formatter.

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.

@github-actions github-actions Bot added documentation Documentation changes tests Test changes agents labels Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

On Gemma 4 E4B, three email tools added later (reading a thread, listing connected mailboxes, and finding mail waiting on you) were still offered, even though email is meant to be switched off on that model. This PR withholds them too. The fix is correct: all eight email tools are now covered, and the guide's new count of 19 matches the table (5 + 8 + 3 + 3).

The one thing worth changing: the new test copies the list of email tools by hand, so the next email tool someone adds will slip through the same way these three did. Have the test register the email tools and compare against what actually registers.

Real-world evidence

N/A: no evidence bundle was produced for this fork PR. The change is a server-side tool filter with no CLI, API or UI output of its own, so this verdict rests on static review. I couldn't run the tests here because pytest isn't installed on the runner. The PR reports tests/unit/agents/test_model_features.py passing.

🔍 Technical details

🟡 The regression test can't catch the next missed email tool (tests/unit/agents/test_model_features.py:71)
test_compact_withholds_every_registered_email_tool compares FEATURE_TOOLS["email"] to a second hand-written list, so both copies go stale together. The existing test_gemma_loses_exactly_the_compact_features_tools in hub/agents/gaia/python/tests/test_compact_tier.py didn't catch this bug either: it only checks that withheld names are real tools, not that every tool of a feature is withheld. To match the name, derive the expected set from registration, the way tests/unit/agents/tools/test_email_tools.py:867 does with _Harness(backend=None).register_email_tools(). Then assert that the set of email tools in _TOOL_REGISTRY equals FEATURE_TOOLS["email"]. That snapshots the registry and clears it before registering, as test_compact_tier.py does. The same idea applies to the scratchpad, SD and skill-hub mixins if you want to cover the whole table.

🟢 No CHANGELOG entry
The flagship's behaviour on Gemma changes, but hub/agents/gaia/npm/CHANGELOG.md [Unreleased] says nothing about it. One line would do, e.g. "On Gemma 4 E4B, the thread and waiting-on-you email tools are withheld with the rest of email." The "16 tool descriptions" line in [0.3.4] describes a release that has already shipped, so leave it as it is.

🟢 Name the eval category to watch
This changes which tools are registered on Gemma, which CLAUDE.md lists as an eval-affecting change. Say in the PR that the email/compact-tier scenarios should be watched on the next RC.

Strengths

  • A one-table fix in the right place (FEATURE_TOOLS), so tool gating, skill unloading and the catalog all pick it up with no other edits.
  • The guide's tool count was updated in the same change, and it's correct.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 6, 2026
Merged via the queue into amd:main with commit a8db3b4 Nov 6, 2026
40 checks passed
@kovtcharov-amd kovtcharov-amd mentioned this pull request Nov 7, 2026
6 of 12 tasks
kovtcharov-amd added a commit to rezamuliawijaya/gaia that referenced this pull request Nov 7, 2026
## Why this matters

v0.26.0 makes the first reply in a new chat much faster by loading tools
on demand (amd#6449), and adds long recordings and video links (amd#6451),
read aloud in both apps (amd#6489), a live system usage strip (amd#6548),
cloud spend in the composer (amd#6775), local problem reports for failed
model calls (amd#6665) and GAIA on stock GNOME without a tray (amd#6868).
Among the fixes, a duplicated edit can no longer damage a file and
long-running agents on macOS keep answering. 31 commits since v0.25.4;
the notes are in `docs/releases/v0.26.0.mdx` and credit 4 outside
contributors.

This is a minor: 7 `feat` commits, and dynamic tool loading drops two
environment variables and the old Beta toggle (listed under Breaking
Changes). Merging it moves main to 0.26.0 so `v0.26.0-rc1` can be tagged
right after v0.25.4 publishes. The changelog is regenerated before the
final.

## Test plan

- [x] `python util/validate_release_notes.py docs/releases/v0.26.0.mdx
--tag v0.26.0` passes, and with `--tag v0.26.0-rc1`
- [x] `mintlify validate` (from `docs/`) passes; the notes have no
unescaped `<` or `{`
- [x] Narrative word count is 391, under the 600 cap for a minor
- [x] `python util/release_versions.py --check`, `python
util/check_doc_links.py --internal-only` and `python
util/check_doc_versions.py` pass
- [x] `python util/check_component_core_api.py --release-version 0.26.0`
passes
- [x] `pytest tests/unit/test_docs_json_release.py
tests/unit/test_check_component_core_api.py
tests/unit/test_release_tag.py tests/unit/test_hub_core_version_gate.py
tests/unit/test_release_versions.py
hub/agents/gaia/python/tests/test_npm_doc_min_version.py`: 232 passed
- [ ] CI green on the merge commit
- [ ] `release_train_dryrun.yml` passes on that commit before the RC tag

<details>
<summary>🔍 Technical details</summary>

- `test_release_versions.py` simulated a core bump to a hard-coded
`0.26.0`, which is a no-op once the tree is on 0.26.0. It now bumps to
the next minor above whatever the tree declares.
- The flagship agent stays at 0.3.5; its `amd-gaia` floors and
`min_gaia_version` move to 0.26.0 through `--stamp`, and its npm
CHANGELOG's `[Unreleased]` quotes the new minimum.
`hub/components/agent-ui/` is no longer published and is left alone.
- `RELEASED_DAEMON_API` no longer exists (amd#5394); the core API guard
reads released versions from PyPI.
</details>

## Evals to re-run on the RC tag

LLM-affecting PRs merged without per-PR evals; run these on
`v0.26.0-rc1`:

- `gaia_tool_selection`, `tool_selection`, `gaia_core` and
`context_retention` for dynamic tool loading (amd#6449, amd#6842)
- `gaia_media` and `gaia_voice` (amd#6451, amd#6489, amd#6825)
- `gaia_data` and `gaia_honesty` (amd#6828, amd#6831, amd#6817)
- `gaia_files` (amd#6844)
- `adversarial` (amd#6837)
- `memory` and `gaia_memory` (amd#6828, amd#6843)
- `gaia_email` (amd#6842)

## Release checklist

- [ ] Merge once v0.25.4 has published; amd#6114 (flagship follows core) is
not part of this release PR
- [ ] Freeze main, wait for green CI on the exact commit, pass
`release_train_dryrun.yml`, then push `v0.26.0-rc1` (the RC freezes its
own flagship; no agent release needed)
- [ ] Before the final: release the flagship from the release commit
(`agent-pkg-gaia-v<next>`), merge its pin-lock PR, and pass
`check_flagship_release.py`
- [ ] Regenerate the changelog if main gains commits before the final
tag
kovtcharov-amd added a commit to kovtcharov/gaia that referenced this pull request Nov 11, 2026
…a branch

The plan pointed at an unmerged branch for the compact-tier email fix; that
fix has since landed as amd#6842, so cite the PR, which stays valid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents documentation Documentation changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gemma 4 E4B still gets three email tools the guide says it leaves out

2 participants