Skip to content

feat!: remove the standalone email agent - #7108

Merged
kovtcharov-amd merged 68 commits into
amd:mainfrom
kovtcharov:kalin/remove-email-agent
Nov 19, 2026
Merged

kovtcharov-amd merged 68 commits into
amd:mainfrom
kovtcharov:kalin/remove-email-agent

Conversation

@kovtcharov

@kovtcharov kovtcharov commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

The standalone email agent from the hub is removed, so GAIA has one mail implementation to maintain: the flagship's. That takes out the gaia-agent-email and @amd-gaia/agent-email packages, the gaia email command, the /v1/email routes, six workflows and about 173,000 lines. gaia agent list goes too: GAIA ships one agent, so there is nothing to list.

Mail and calendar through connectors are unchanged. The flagship still reads and triages Gmail or Outlook with its eight reading tools and the inbox-triage skill, drafts and sends through the send-email skill (asking before anything leaves), and works with calendars through the calendar skill. The Google and Microsoft connectors, Settings > Connectors, the Connect buttons under a reply that says an account is not connected, and the "connected, ask again" banner all stay. Organizing (labels, archive, delete), undo, briefings, scheduled sends and autonomous mail runs went with the old agent on purpose.

Closes #6102
Closes #7200
Closes #4825

What a reviewer should weigh

  • Connect prompt now grants GAIA. The in-chat Connect buttons used to give mailbox access to the email agent. They now give it to the flagship and to no other installed agent, and sign-in asks only for the scopes the flagship declares. The work Microsoft 365 button is gone from the chat; that connector stays in Settings.
  • Upgrade cleanup. At daemon start a leftover ~/.gaia/agents/email is deleted only when it is provably the old install. A folder holding an agent.py or anything else is left alone and logged, so a person's own agent named email is safe. The same pass also cleans up the retired agent's leftover connector state, and names, once, each email the old agent had scheduled that will not be sent. ~/.gaia/email/ is kept. A saved chat made with the email agent opens read-only.
  • Installing email is refused with a pointer to the flagship; gaia email and gaia agent list print what replaced them.
  • Old sidecar binaries. The deprecated environment-variable path for delivering secrets to a sidecar is gone. A sidecar binary too old for file delivery is refused with an update remedy.
  • Renamed, not removed. gaia.ui.email_sidecar becomes gaia.ui.sidecar, because it also serves the flagship. An open PR that imports the old name needs a one-line change after this merges.
  • Moved. The Terminal UI's release publisher lived inside the email package; it is now hub/components/terminal-hub/publish_to_r2.py, and release_components.yml points at it.
  • After merge, maintainer only: deprecate @amd-gaia/agent-email on npm and gaia-agent-email on PyPI, and unpublish email from the hub index.

Test plan

  • Mail stays with the flagship: hub/agents/gaia/python/tests/test_flagship_mail_capability.py builds the flagship on a full-tier model and checks its eight mailbox reading tools are registered, the send-email skill adds its eight tools, and an unconnected mailbox is reported per provider. MessageBubble.connectCta.test.tsx checks a not-connected reply shows the Connect buttons in the Agent UI.
  • Upgrade cleanup: tests/unit/test_daemon_retired_agents.py covers a person's own agent.py surviving, the old install being removed, a mixed folder left alone and logged, scheduled mail being named once, and a retired id being refused by the installer.
  • Agent UI: npx tsc --noEmit -p . clean and the full npx vitest run (counts in the comment below).
  • tests/unit/agents, tests/unit/chat/ui, tests/unit/connectors, tests/unit/test_amd_gaia_urls.py and the relay tests on the tree merged with main.
  • check_workflow_triggers, check_test_lane_coverage, check_ci_path_coverage, check_dependabot, internal doc links, black, isort and flake8 pass on the merged tree.
  • util/verify_publish_pipeline.py for the flagship and Terminal UI publishers. It was 7/9 for the flagship before this change and wasn't re-run on the final tree.
  • Upgrade on a PC that has the email sidecar installed: the daemon removes it and the Agent UI and TUI start normally.
  • Next RC: watch the gaia_email eval category and the relay/chat categories.
🔍 Technical details
  • Kept for the flagship: agents/tools/email_tools.py, agents/tools/_email/, the email entry in KNOWN_TOOLS, hub/skills/inbox-triage/, hub/skills/send-email/, eval/scenarios/gaia_email/, the mail fixtures it uses, src/gaia/connectors/, and the generic daemon sidecar framework. The PR's edits under _email/, readiness.py, registry.py and connectors/setup_routes.py are docstrings and comments only.
  • Kept in the Agent UI: ConnectorRetryBanner, EmailConnectCta (mailGrantIds now targets the flagship), and their wiring in ChatView and MessageBubble.
  • Removed with the package: the email_pre_scan card (only the email agent's pre_scan_inbox tool produced it), gaia eval benchmark and the email eval modules, the email init profile, the daemon and UI email spec, router and proxy, and the TUI's email catalog entry and mailbox gate.
  • The connector scope drift guard now checks the flagship's declared mail scopes (mail_scopes.json).
  • Overlaps with other open PRs, which this one supersedes for those files: chore: retire deprecated shims and unreferenced code in src/gaia #7042 (the email_sidecar.errors shim), test: delete tests that can never run or cover removed code #7033 (email test skip messages) and test(mcp): read mcp 2.x result fields in the email stdio parity test #7050 (the email MCP parity test).
  • The four wip: commits are a save point from development; squash-merge with this description.

The package already relays every flagship turn (daemon client, relay, profiles, grants), so its email name was wrong and would have outlived the email agent it was named for. Pure rename; the email-only proxy and router go in the next commit.

Refs amd#4825
…ailbox gate

The standalone email agent is gone, so its catalog entry, pre-scan and attention cards, mailbox preflight and connect hand-off have nothing to talk to. Generic tests now use the flagship or a stand-in id.

WIP preservation commit: go build/vet/test passed in the TUI's own run; branch-wide lint not yet run.

Refs amd#4825
The pre-scan card, the email connect button and its retry banner only served the email agent. The needs_confirmation card stays: older flagship binaries still emit it.

WIP preservation commit: tsc clean and npm test 3166/3166 in the frontend run; not yet reviewed against the final branch.

Refs amd#4825
Docs, CLAUDE.md, README, the .claude skills and agents, the hub worker examples and the flagship npm docs no longer describe the standalone email agent, gaia email, gaia eval benchmark or the email init profile. Removed plans get redirects to the email guide.

WIP preservation commit: check_doc_links passed (1,019 links, 0 broken); the external-URL check did not finish.

Refs amd#4825
Mail is now only what the flagship already has: its read-only Gmail and Outlook tools and the inbox-triage skill. This deletes hub/agents/email/ and every core path that reached into it: gaia email, gaia eval benchmark and the email eval modules, the email init profile, the daemon's email sidecar spec, the Agent UI's /v1/email proxy, and their tests and workflows.

- An upgrade removes a leftover ~/.gaia/agents/email install at daemon start and logs it; a directory a live process still runs from is kept and retried next start.
- The daemon's deprecated bare-env secret leg is gone; a sidecar binary too old for file delivery is refused with an update remedy.
- The mail scope drift guard now pins the flagship's declared scopes (tests/fixtures/connectors/mail_scopes.json).
- The TUI publisher moved to hub/components/terminal-hub/publish_to_r2.py.

WIP preservation commit: tests/unit passed 38,286 with 1 unrelated failure (Windows taskkill under xdist); lint, integration sidecar subsets and the import smoke test were not yet run on the final tree.

Closes amd#4825
Closes amd#6102
…itattributes)

Sorts imports after the gaia.ui.sidecar rename, drops an import cli.py no longer uses, and removes the /v1/email endpoint tests that could only skip once the package was gone.
# Conflicts:
#	.github/workflows/email_scorecard_refresh.yml
#	.github/workflows/eval_flagship.yml
#	.github/workflows/eval_flagship_gemma_stx.yml
#	.github/workflows/release_agent_email.yml
#	docs/reference/eval-scorecard.mdx
#	hub/agents/email/npm/EVALUATION.md
#	hub/agents/email/python/packaging/eval_drafting_report.py
#	hub/agents/email/python/packaging/eval_gate_report.py
#	hub/agents/gaia/npm/CHANGELOG.md
#	tests/unit/agents/email/test_draft_token_provider_binding.py
#	tests/unit/email/conftest.py
# Conflicts:
#	.claude/agents/eval-engineer.md
#	docs/reference/features.mdx
@kovtcharov

Copy link
Copy Markdown
Contributor Author

The red checks on this head aren't from the change. The admin Worker failure is a date-dependent test in a file this PR doesn't touch; it passes locally and is filed as #7110. The website build, label, verdict and Resolve the release hit the GitHub API rate limit, and Dependency Review isn't enabled for the repo. main hasn't moved since the last merge, so there's nothing to merge in to re-run them yet.

The seams test now imports gaia.ui.sse_translation instead of the email package's copy, so the workflow's path filters need that file and gaia/ui/__init__.py; without them a PR changing only those files would skip the lane.
# Conflicts:
#	tui/internal/catalog/hub_test.go
#	tui/internal/ui/cards/emailprescan.go
#	tui/test/daemon_skew_test.go
#	tui/test/fakedaemon_test.go
@github-actions github-actions Bot added documentation Documentation changes installer Installer changes dependencies Dependency updates devops DevOps/infrastructure changes mcp MCP integration changes llm LLM backend changes cli CLI changes eval Evaluation framework changes tests Test changes electron Electron app changes performance Performance-critical changes agents agent::email Email agent changes tui Go terminal UI (gaia-tui) daemon Daemon supervisor / sidecar control plane sidecar Agent sidecar contract / harness labels Nov 10, 2026
kovtcharov-amd and others added 3 commits November 17, 2026 16:31
Brings the email-agent removal up to date with main after v0.26.0.

- Main's fixes to the deleted email package and its tests stay deleted;
  main's changes to the email_sidecar relay, proxy, profiles and daemon
  client land in their new home under gaia.ui.sidecar.
- New code on main that still imported gaia.ui.email_sidecar now imports
  gaia.ui.sidecar, and the session-delete path gets its profile_for import.
- The lookalike generator and its drift test stop writing and comparing the
  email agent's copy; the sidecar parent-watch and relayed-stop tests run
  against the flagship.
- Tests that created "email" sessions no longer pass or fail depending on
  which test loaded the agent registry first.
- TUI docs and help text keep this branch's flagship-only examples under
  main's gaia-cli binary name.
# Conflicts:
#	docs/reference/cli.mdx
#	hub/agents/email/python/CHANGELOG.md
#	hub/agents/email/python/gaia_agent_email/connector_routes.py
#	hub/agents/email/python/tests/test_connector_routes.py
#	tests/unit/connectors/test_grant_agent_scope_derivation.py
Keeps main's multi-account Connect UI and drops only what belonged to the
removed email agent: the pre-scan card and its new test, the in-chat
Microsoft 365 (work) button, and the email-agent grant test. The in-chat
Connect still sends no scopes, so sign-in asks only for what GAIA declares.
@kovtcharov-amd
kovtcharov-amd merged commit 4cd6057 into amd:main Nov 19, 2026
156 of 161 checks passed
kovtcharov-amd added a commit that referenced this pull request Nov 19, 2026
# GAIA v0.27.0 Release Notes

## Summary

- Connect more than one Google or Microsoft account, and manage each one
separately.
- GAIA desktop has a browser beside the chat that both you and GAIA can
use.
- Type `/` and a skill's name to run that skill on a request.
- New skills build and check Office files and triage logs.
- The standalone email agent is gone; the main GAIA agent handles mail.
- 8 contributors merged 87 PRs and closed 72 issues since v0.26.0.

## Breaking Changes

- **The standalone email agent is removed** — `gaia email`, the
`gaia-agent-email` and `@amd-gaia/agent-email` packages, the `/v1/email`
routes and the `email` setup profile are gone. Ask GAIA about your mail
in `gaia chat` or the Agent UI instead; it reads, drafts and sends
through the Google and Microsoft connectors, as the [Email
guide](/guides/email) describes. On upgrade the old install is removed,
and any email it had scheduled is named once, since it won't be sent.
(PR [#7108](#7108))
- **`gaia agent list` and `gaia eval benchmark` are removed** — GAIA
ships one agent, and `gaia agent list` now says what replaced it. (PR
[#7108](#7108))
- **`gaia.ui.email_sidecar` is renamed `gaia.ui.sidecar`** — update the
import. (PR [#7108](#7108))

## What's New

- **Several accounts per mail provider** — `gaia connectors connect
google --add` adds another account; Settings and the terminal UI list
each one with its own Reconnect, Make default and Disconnect. (PRs
[#8331](#8331),
[#8332](#8332),
[#8333](#8333))
- **Browser pane in GAIA desktop** — browse beside the chat while GAIA
reads and drives the same tab, and pick part of a page to ask about. (PR
[#5973](#5973))
- **Run a skill by name** — start a message with `/skill-name` in the
Agent UI, terminal UI, `gaia -p` or the API; typing `/` lists installed
skills. (PR [#8483](#8483))
- **Office documents** — the `office-docs` skill builds spreadsheets,
decks with editable charts and Word files; its `verify_workbook` tool
recalculates formulas to catch wrong cell references. (PR
[#5417](#5417))
- **Log triage** — the `log-triage` skill's `triage_logs` tool reads
every named log in one call and returns the anomalies, bursts and hosts
hit. (PR [#5465](#5465))
- **Skill auto-load, opt-in** — with `GAIA_SKILL_AUTOLOAD=1` a skill
that clearly matches the request loads before the turn. Off by default.
(PR [#5442](#5442))
- **Document reranking, opt-in** — `RAGConfig(enable_reranking=True)`
reorders retrieved passages with a downloaded Lemonade reranking model.
(PR [#6136](#6136))
- **Review saved folder answers** — `gaia trust` lists, adds, declines
and forgets GAIA's per-folder answers about project guidance files. (PR
[#8480](#8480))
- **Sign in to Gmail over SSH** — `gaia connectors connect google
--callback-port PORT` fixes the sign-in port so it can be forwarded. (PR
[#8474](#8474))
- **Settings reach open chats** — a model server, connector or skill
change applies on an open chat's next message, including in the terminal
UI. (PR [#8400](#8400))
- **Agent UI** — Ctrl+/ lists keyboard shortcuts, formulas render
instead of LaTeX source, the library shows which chats use each
document, a scheduled task can be edited in place with its past runs
listed, and connector setup is shown as numbered steps. (PRs
[#7504](#7504),
[#7499](#7499),
[#7514](#7514),
[#7527](#7527),
[#8281](#8281),
[#8279](#8279),
[#8280](#8280))
- **Scripted `gaia -p` runs** — `--disallowed-tools`, `--no-web` and
`--no-skills` withhold tools; the run uses the apps' model without
downloading one, uses its whole `--time-limit`, and the agent knows
nobody is there to answer questions. (PRs
[#8326](#8326),
[#7808](#7808),
[#8385](#8385),
[#8451](#8451))
- **Large tool results pass by handle** — a tool given an `output_…`
handle gets the full result without it entering the prompt. (PR
[#8121](#8121))

## Bug Fixes

- **A missing command-line program becomes a step to install it**, not a
dead end. (PR [#8251](#8251))
- **A reply that stalls partway is requested again.** (PR
[#8446](#8446))
- **A chat fails at once when the chosen model server is down**, instead
of waiting. (PR [#8436](#8436))
- **A failed turn stays marked failed in history.** (PR
[#8335](#8335))
- **A document is never reported attached when nothing was written.**
(PR [#8388](#8388))
- **Attached file names keep their spaces and non-Latin scripts.** (PR
[#8461](#8461))
- **The agent can read images GAIA generated.** (PR
[#8478](#8478))
- **A bare JSON answer ends the turn.** (PR
[#8462](#8462))
- **A reply that was all thinking is told to act**, and the next one
thinks less. (PRs [#8430](#8430),
[#8448](#8448))
- **A file shown whole with `cat` counts as read back.** (PR
[#8458](#8458))
- **`run_python` says when long output was cut**, and a script missing a
module is pointed at the system Python. (PRs
[#8450](#8450),
[#8426](#8426))
- **Time limits are respected** — the model is told the limit, a
command's timeout never outlasts it, and no test run is requested after
it. (PRs [#8429](#8429),
[#8424](#8424),
[#8452](#8452))
- **`gaia -p` streams its model calls**, so a long reply is not lost.
(PR [#8427](#8427))
- **Model SDKs load on first use**, and context checkpoints are limited.
(PR [#8459](#8459))
- **A shell result sent to the model leaves out what it already knows.**
(PR [#8428](#8428))
- **Outlook availability is no longer guessed** when a meeting's time
can't be read. (PR [#8267](#8267))
- **No local chat download is planned while chat runs on a cloud
model.** (PR [#8086](#8086))
- **Setup shows the same model size and name as Settings.** (PR
[#8431](#8431))
- **A reply cut short by a crash isn't continued.** (PR
[#8391](#8391))
- **An MCP connector shows Connected only after a check has started
it.** (PR [#8434](#8434))
- **The document library's install hint matches this build.** (PR
[#8327](#8327))
- **A document overlap of 0 repeats nothing between chunks.** (PR
[#8382](#8382))
- **Documents in Russian, Greek, Polish and other languages are split
into sentences**, so their chunks overlap like English ones instead of
being cut every 2,000 characters. (PR
[#8499](#8499))
- **Documents added while the model server was down are indexed once it
is back**, and show "Waiting", not "Failed". (PR
[#8353](#8353))
- **Setup retries and resumes a dropped assistant download** instead of
failing. (PR [#8490](#8490))
- **A failed model download stays reported after Settings closes**,
until you dismiss it. (PR
[#8468](#8468))
- **Impossible input gets a 4xx error, not a 500.** (PR
[#8291](#8291))
- **Agent UI layout** — popovers stay on screen in right-to-left layouts
at phone width, the Mac window buttons clear the folded sidebar, and
closing the resource strip says how to bring it back. (PRs
[#8455](#8455),
[#8476](#8476),
[#8432](#8432))
- **The "GAIA doesn't run this model server" line is translated in
Arabic.** (PR [#8435](#8435))
- **A release candidate names its own pre-release as the agent's
source.** (PR [#8433](#8433))

## Known Issues

- **Installed builds: `gaia -p` refuses `--time-limit`,
`--disallowed-tools`, `--no-web` and `--no-skills`**, because there the
agent runs through GAIA's background service — run without them, or from
a developer install that includes the agent package. Tracked in
[#8495](#8495).
- **NPU PCs: chat on the NPU profile returns an empty reply** — use the
GPU/CPU profile for now. Tracked in
[#6008](#6008).
- **Fedora 44: setup cannot reach any HTTPS site**, so it can neither
connect a cloud model nor download one — tracked in
[#7226](#7226).
- **Long sessions on Windows: Lemonade's bundled llama-server leaks
handles on every request** — restart the model server from time to time.
Tracked in [#8312](#8312).
- **Coding: editing a config, data or `SKILL.md` file does not mark an
earlier "tests pass" as stale** — re-run the tests after such an edit.
Tracked in [#8213](#8213).
- **Your own model server, stopped: the connection banner says it is
"not installed"** — start your server again. Tracked in
[#8313](#8313).
- **Summarizing a 1,000+ page document can time out** — ask about
sections or page ranges instead. Tracked in
[#8218](#8218).

## Contributors

Thanks to the community members who contributed to this release:

- [@tylerbea](https://github.com/tylerbea) — several accounts per
connector, the browser pane, `/skill-name` in chat, and Mac window
layout (PRs [#8331](#8331),
[#8332](#8332),
[#8333](#8333),
[#5973](#5973),
[#8483](#8483),
[#8476](#8476))
- [@akshat-lakhera](https://github.com/akshat-lakhera) — `gaia trust`
and the Gmail sign-in callback port (PRs
[#8480](#8480),
[#8474](#8474))
- [@rapuckett](https://github.com/rapuckett) — failed-turn history,
honest document attachment, right-to-left popovers, and test and tooling
fixes (PRs [#8335](#8335),
[#8388](#8388),
[#8455](#8455),
[#8453](#8453),
[#8454](#8454),
[#8471](#8471))
- [@eshitakundu](https://github.com/eshitakundu) — passing tool results
by handle, and measuring what MCP servers cost an agent (PRs
[#8121](#8121),
[#8294](#8294))
- [@bniladridas](https://github.com/bniladridas) — bare JSON answers,
attachment names, failed-download reporting, and installer and test CI
fixes (PRs [#8462](#8462),
[#8461](#8461),
[#8468](#8468),
[#8482](#8482),
[#8466](#8466),
[#8465](#8465),
[#8467](#8467),
[#8464](#8464),
[#8402](#8402))
- [@huong8373tt-beep](https://github.com/huong8373tt-beep) — optional
Lemonade reranking for document search (PR
[#6136](#6136))
- [@0z5a](https://github.com/0z5a) — sentence splitting for non-ASCII
languages (PR [#8499](#8499))

## Full Changelog

**87 commits** since v0.26.0. The PR links above are the changelog.

Full Changelog:
[v0.26.0...v0.27.0](v0.26.0...v0.27.0)
rapuckett pushed a commit to rapuckett/gaia that referenced this pull request Nov 19, 2026
The standalone email agent from the hub is removed, so GAIA has one mail
implementation to maintain: the flagship's. That takes out the
`gaia-agent-email` and `@amd-gaia/agent-email` packages, the `gaia
email` command, the `/v1/email` routes, six workflows and about 173,000
lines. `gaia agent list` goes too: GAIA ships one agent, so there is
nothing to list.

**Mail and calendar through connectors are unchanged.** The flagship
still reads and triages Gmail or Outlook with its eight reading tools
and the `inbox-triage` skill, drafts and sends through the `send-email`
skill (asking before anything leaves), and works with calendars through
the `calendar` skill. The Google and Microsoft connectors, Settings >
Connectors, the Connect buttons under a reply that says an account is
not connected, and the "connected, ask again" banner all stay.
Organizing (labels, archive, delete), undo, briefings, scheduled sends
and autonomous mail runs went with the old agent on purpose.

Closes amd#6102
Closes amd#7200
Closes amd#4825

## What a reviewer should weigh
- **Connect prompt now grants GAIA.** The in-chat Connect buttons used
to give mailbox access to the email agent. They now give it to the
flagship and to no other installed agent, and sign-in asks only for the
scopes the flagship declares. The work Microsoft 365 button is gone from
the chat; that connector stays in Settings.
- **Upgrade cleanup.** At daemon start a leftover `~/.gaia/agents/email`
is deleted only when it is provably the old install. A folder holding an
`agent.py` or anything else is left alone and logged, so a person's own
agent named `email` is safe. The same pass also cleans up the retired
agent's leftover connector state, and names, once, each email the old
agent had scheduled that will not be sent. `~/.gaia/email/` is kept. A
saved chat made with the email agent opens read-only.
- **Installing `email` is refused** with a pointer to the flagship;
`gaia email` and `gaia agent list` print what replaced them.
- **Old sidecar binaries.** The deprecated environment-variable path for
delivering secrets to a sidecar is gone. A sidecar binary too old for
file delivery is refused with an update remedy.
- **Renamed, not removed.** `gaia.ui.email_sidecar` becomes
`gaia.ui.sidecar`, because it also serves the flagship. An open PR that
imports the old name needs a one-line change after this merges.
- **Moved.** The Terminal UI's release publisher lived inside the email
package; it is now `hub/components/terminal-hub/publish_to_r2.py`, and
`release_components.yml` points at it.
- **After merge, maintainer only:** deprecate `@amd-gaia/agent-email` on
npm and `gaia-agent-email` on PyPI, and unpublish `email` from the hub
index.

## Test plan
- [x] Mail stays with the flagship:
`hub/agents/gaia/python/tests/test_flagship_mail_capability.py` builds
the flagship on a full-tier model and checks its eight mailbox reading
tools are registered, the `send-email` skill adds its eight tools, and
an unconnected mailbox is reported per provider.
`MessageBubble.connectCta.test.tsx` checks a not-connected reply shows
the Connect buttons in the Agent UI.
- [x] Upgrade cleanup: `tests/unit/test_daemon_retired_agents.py` covers
a person's own `agent.py` surviving, the old install being removed, a
mixed folder left alone and logged, scheduled mail being named once, and
a retired id being refused by the installer.
- [x] Agent UI: `npx tsc --noEmit -p .` clean and the full `npx vitest
run` (counts in the comment below).
- [x] `tests/unit/agents`, `tests/unit/chat/ui`,
`tests/unit/connectors`, `tests/unit/test_amd_gaia_urls.py` and the
relay tests on the tree merged with `main`.
- [x] `check_workflow_triggers`, `check_test_lane_coverage`,
`check_ci_path_coverage`, `check_dependabot`, internal doc links, black,
isort and flake8 pass on the merged tree.
- [ ] `util/verify_publish_pipeline.py` for the flagship and Terminal UI
publishers. It was 7/9 for the flagship before this change and wasn't
re-run on the final tree.
- [ ] Upgrade on a PC that has the email sidecar installed: the daemon
removes it and the Agent UI and TUI start normally.
- [ ] Next RC: watch the `gaia_email` eval category and the relay/chat
categories.

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

- Kept for the flagship: `agents/tools/email_tools.py`,
`agents/tools/_email/`, the `email` entry in `KNOWN_TOOLS`,
`hub/skills/inbox-triage/`, `hub/skills/send-email/`,
`eval/scenarios/gaia_email/`, the mail fixtures it uses,
`src/gaia/connectors/`, and the generic daemon sidecar framework. The
PR's edits under `_email/`, `readiness.py`, `registry.py` and
`connectors/setup_routes.py` are docstrings and comments only.
- Kept in the Agent UI: `ConnectorRetryBanner`, `EmailConnectCta`
(`mailGrantIds` now targets the flagship), and their wiring in
`ChatView` and `MessageBubble`.
- Removed with the package: the `email_pre_scan` card (only the email
agent's `pre_scan_inbox` tool produced it), `gaia eval benchmark` and
the email eval modules, the `email` init profile, the daemon and UI
email spec, router and proxy, and the TUI's email catalog entry and
mailbox gate.
- The connector scope drift guard now checks the flagship's declared
mail scopes (`mail_scopes.json`).
- Overlaps with other open PRs, which this one supersedes for those
files: amd#7042 (the `email_sidecar.errors` shim), amd#7033 (email test skip
messages) and amd#7050 (the email MCP parity test).
- The four `wip:` commits are a save point from development;
squash-merge with this description.
</details>

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
rapuckett pushed a commit to rapuckett/gaia that referenced this pull request Nov 19, 2026
# GAIA v0.27.0 Release Notes

## Summary

- Connect more than one Google or Microsoft account, and manage each one
separately.
- GAIA desktop has a browser beside the chat that both you and GAIA can
use.
- Type `/` and a skill's name to run that skill on a request.
- New skills build and check Office files and triage logs.
- The standalone email agent is gone; the main GAIA agent handles mail.
- 8 contributors merged 87 PRs and closed 72 issues since v0.26.0.

## Breaking Changes

- **The standalone email agent is removed** — `gaia email`, the
`gaia-agent-email` and `@amd-gaia/agent-email` packages, the `/v1/email`
routes and the `email` setup profile are gone. Ask GAIA about your mail
in `gaia chat` or the Agent UI instead; it reads, drafts and sends
through the Google and Microsoft connectors, as the [Email
guide](/guides/email) describes. On upgrade the old install is removed,
and any email it had scheduled is named once, since it won't be sent.
(PR [amd#7108](amd#7108))
- **`gaia agent list` and `gaia eval benchmark` are removed** — GAIA
ships one agent, and `gaia agent list` now says what replaced it. (PR
[amd#7108](amd#7108))
- **`gaia.ui.email_sidecar` is renamed `gaia.ui.sidecar`** — update the
import. (PR [amd#7108](amd#7108))

## What's New

- **Several accounts per mail provider** — `gaia connectors connect
google --add` adds another account; Settings and the terminal UI list
each one with its own Reconnect, Make default and Disconnect. (PRs
[amd#8331](amd#8331),
[amd#8332](amd#8332),
[amd#8333](amd#8333))
- **Browser pane in GAIA desktop** — browse beside the chat while GAIA
reads and drives the same tab, and pick part of a page to ask about. (PR
[amd#5973](amd#5973))
- **Run a skill by name** — start a message with `/skill-name` in the
Agent UI, terminal UI, `gaia -p` or the API; typing `/` lists installed
skills. (PR [amd#8483](amd#8483))
- **Office documents** — the `office-docs` skill builds spreadsheets,
decks with editable charts and Word files; its `verify_workbook` tool
recalculates formulas to catch wrong cell references. (PR
[amd#5417](amd#5417))
- **Log triage** — the `log-triage` skill's `triage_logs` tool reads
every named log in one call and returns the anomalies, bursts and hosts
hit. (PR [amd#5465](amd#5465))
- **Skill auto-load, opt-in** — with `GAIA_SKILL_AUTOLOAD=1` a skill
that clearly matches the request loads before the turn. Off by default.
(PR [amd#5442](amd#5442))
- **Document reranking, opt-in** — `RAGConfig(enable_reranking=True)`
reorders retrieved passages with a downloaded Lemonade reranking model.
(PR [amd#6136](amd#6136))
- **Review saved folder answers** — `gaia trust` lists, adds, declines
and forgets GAIA's per-folder answers about project guidance files. (PR
[amd#8480](amd#8480))
- **Sign in to Gmail over SSH** — `gaia connectors connect google
--callback-port PORT` fixes the sign-in port so it can be forwarded. (PR
[amd#8474](amd#8474))
- **Settings reach open chats** — a model server, connector or skill
change applies on an open chat's next message, including in the terminal
UI. (PR [amd#8400](amd#8400))
- **Agent UI** — Ctrl+/ lists keyboard shortcuts, formulas render
instead of LaTeX source, the library shows which chats use each
document, a scheduled task can be edited in place with its past runs
listed, and connector setup is shown as numbered steps. (PRs
[amd#7504](amd#7504),
[amd#7499](amd#7499),
[amd#7514](amd#7514),
[amd#7527](amd#7527),
[amd#8281](amd#8281),
[amd#8279](amd#8279),
[amd#8280](amd#8280))
- **Scripted `gaia -p` runs** — `--disallowed-tools`, `--no-web` and
`--no-skills` withhold tools; the run uses the apps' model without
downloading one, uses its whole `--time-limit`, and the agent knows
nobody is there to answer questions. (PRs
[amd#8326](amd#8326),
[amd#7808](amd#7808),
[amd#8385](amd#8385),
[amd#8451](amd#8451))
- **Large tool results pass by handle** — a tool given an `output_…`
handle gets the full result without it entering the prompt. (PR
[amd#8121](amd#8121))

## Bug Fixes

- **A missing command-line program becomes a step to install it**, not a
dead end. (PR [amd#8251](amd#8251))
- **A reply that stalls partway is requested again.** (PR
[amd#8446](amd#8446))
- **A chat fails at once when the chosen model server is down**, instead
of waiting. (PR [amd#8436](amd#8436))
- **A failed turn stays marked failed in history.** (PR
[amd#8335](amd#8335))
- **A document is never reported attached when nothing was written.**
(PR [amd#8388](amd#8388))
- **Attached file names keep their spaces and non-Latin scripts.** (PR
[amd#8461](amd#8461))
- **The agent can read images GAIA generated.** (PR
[amd#8478](amd#8478))
- **A bare JSON answer ends the turn.** (PR
[amd#8462](amd#8462))
- **A reply that was all thinking is told to act**, and the next one
thinks less. (PRs [amd#8430](amd#8430),
[amd#8448](amd#8448))
- **A file shown whole with `cat` counts as read back.** (PR
[amd#8458](amd#8458))
- **`run_python` says when long output was cut**, and a script missing a
module is pointed at the system Python. (PRs
[amd#8450](amd#8450),
[amd#8426](amd#8426))
- **Time limits are respected** — the model is told the limit, a
command's timeout never outlasts it, and no test run is requested after
it. (PRs [amd#8429](amd#8429),
[amd#8424](amd#8424),
[amd#8452](amd#8452))
- **`gaia -p` streams its model calls**, so a long reply is not lost.
(PR [amd#8427](amd#8427))
- **Model SDKs load on first use**, and context checkpoints are limited.
(PR [amd#8459](amd#8459))
- **A shell result sent to the model leaves out what it already knows.**
(PR [amd#8428](amd#8428))
- **Outlook availability is no longer guessed** when a meeting's time
can't be read. (PR [amd#8267](amd#8267))
- **No local chat download is planned while chat runs on a cloud
model.** (PR [amd#8086](amd#8086))
- **Setup shows the same model size and name as Settings.** (PR
[amd#8431](amd#8431))
- **A reply cut short by a crash isn't continued.** (PR
[amd#8391](amd#8391))
- **An MCP connector shows Connected only after a check has started
it.** (PR [amd#8434](amd#8434))
- **The document library's install hint matches this build.** (PR
[amd#8327](amd#8327))
- **A document overlap of 0 repeats nothing between chunks.** (PR
[amd#8382](amd#8382))
- **Documents in Russian, Greek, Polish and other languages are split
into sentences**, so their chunks overlap like English ones instead of
being cut every 2,000 characters. (PR
[amd#8499](amd#8499))
- **Documents added while the model server was down are indexed once it
is back**, and show "Waiting", not "Failed". (PR
[amd#8353](amd#8353))
- **Setup retries and resumes a dropped assistant download** instead of
failing. (PR [amd#8490](amd#8490))
- **A failed model download stays reported after Settings closes**,
until you dismiss it. (PR
[amd#8468](amd#8468))
- **Impossible input gets a 4xx error, not a 500.** (PR
[amd#8291](amd#8291))
- **Agent UI layout** — popovers stay on screen in right-to-left layouts
at phone width, the Mac window buttons clear the folded sidebar, and
closing the resource strip says how to bring it back. (PRs
[amd#8455](amd#8455),
[amd#8476](amd#8476),
[amd#8432](amd#8432))
- **The "GAIA doesn't run this model server" line is translated in
Arabic.** (PR [amd#8435](amd#8435))
- **A release candidate names its own pre-release as the agent's
source.** (PR [amd#8433](amd#8433))

## Known Issues

- **Installed builds: `gaia -p` refuses `--time-limit`,
`--disallowed-tools`, `--no-web` and `--no-skills`**, because there the
agent runs through GAIA's background service — run without them, or from
a developer install that includes the agent package. Tracked in
[amd#8495](amd#8495).
- **NPU PCs: chat on the NPU profile returns an empty reply** — use the
GPU/CPU profile for now. Tracked in
[amd#6008](amd#6008).
- **Fedora 44: setup cannot reach any HTTPS site**, so it can neither
connect a cloud model nor download one — tracked in
[amd#7226](amd#7226).
- **Long sessions on Windows: Lemonade's bundled llama-server leaks
handles on every request** — restart the model server from time to time.
Tracked in [amd#8312](amd#8312).
- **Coding: editing a config, data or `SKILL.md` file does not mark an
earlier "tests pass" as stale** — re-run the tests after such an edit.
Tracked in [amd#8213](amd#8213).
- **Your own model server, stopped: the connection banner says it is
"not installed"** — start your server again. Tracked in
[amd#8313](amd#8313).
- **Summarizing a 1,000+ page document can time out** — ask about
sections or page ranges instead. Tracked in
[amd#8218](amd#8218).

## Contributors

Thanks to the community members who contributed to this release:

- [@tylerbea](https://github.com/tylerbea) — several accounts per
connector, the browser pane, `/skill-name` in chat, and Mac window
layout (PRs [amd#8331](amd#8331),
[amd#8332](amd#8332),
[amd#8333](amd#8333),
[amd#5973](amd#5973),
[amd#8483](amd#8483),
[amd#8476](amd#8476))
- [@akshat-lakhera](https://github.com/akshat-lakhera) — `gaia trust`
and the Gmail sign-in callback port (PRs
[amd#8480](amd#8480),
[amd#8474](amd#8474))
- [@rapuckett](https://github.com/rapuckett) — failed-turn history,
honest document attachment, right-to-left popovers, and test and tooling
fixes (PRs [amd#8335](amd#8335),
[amd#8388](amd#8388),
[amd#8455](amd#8455),
[amd#8453](amd#8453),
[amd#8454](amd#8454),
[amd#8471](amd#8471))
- [@eshitakundu](https://github.com/eshitakundu) — passing tool results
by handle, and measuring what MCP servers cost an agent (PRs
[amd#8121](amd#8121),
[amd#8294](amd#8294))
- [@bniladridas](https://github.com/bniladridas) — bare JSON answers,
attachment names, failed-download reporting, and installer and test CI
fixes (PRs [amd#8462](amd#8462),
[amd#8461](amd#8461),
[amd#8468](amd#8468),
[amd#8482](amd#8482),
[amd#8466](amd#8466),
[amd#8465](amd#8465),
[amd#8467](amd#8467),
[amd#8464](amd#8464),
[amd#8402](amd#8402))
- [@huong8373tt-beep](https://github.com/huong8373tt-beep) — optional
Lemonade reranking for document search (PR
[amd#6136](amd#6136))
- [@0z5a](https://github.com/0z5a) — sentence splitting for non-ASCII
languages (PR [amd#8499](amd#8499))

## Full Changelog

**87 commits** since v0.26.0. The PR links above are the changelog.

Full Changelog:
[v0.26.0...v0.27.0](amd/gaia@v0.26.0...v0.27.0)
kovtcharov-amd added a commit that referenced this pull request Nov 21, 2026
…8089)

Fixes #2040 (re-targeted per @kovtcharov-amd's review on #6589).

## Why this replaces #6589

#6589 wired the standalone email agent's follow-up eval into CI.
@kovtcharov-amd pointed out that the email agent is being removed in
#7108, along with `email_scorecard_refresh.yml` and the email eval
modules — so that PR's target no longer exists.

Verified, not assumed: #7108 deletes every file #6589 touches.

| #6589 touches | #7108 |
|---|---|
| `.github/workflows/email_scorecard_refresh.yml` | removed |
| `hub/agents/email/python/packaging/eval_followup_report.py` | removed
|
| `hub/agents/email/python/tests/test_eval_followup_report.py` | removed
|
| `tests/fixtures/email/followups_ground_truth.json` | removed |
| `tests/fixtures/email/followups_gate_thresholds.json` | removed |
| `src/gaia/eval/followup_quality.py` | removed |

Rebasing #6589 would produce a PR against deleted files, so this moves
the coverage instead.

## What this does

Adds one `gaia_email` scenario,
`eval/scenarios/gaia_email/email_t3_hung_thread_followups.yaml`, pinning
the same `awaits_reply` behaviour — but end to end against the surviving
corpus and the live agent, rather than offline against the deleted
detector.

Among the 42 inbox messages, exactly one thread has a person blocked on
the user's reply: Alex, *"Re: Project status - blocked on review"*. The
scenario requires the agent to:

1. Find that thread, and say he is blocked with a customer deadline.
2. Not count other deadline-bearing mail as awaiting a reply — the hard
negatives are exactly the ones the old detector scored as false
positives: the Boss Q4 budget request (a deliverable the user owes, not
a thread needing a reply), Sam's "design review moved" FYI, the HR
enrollment reminder (the action is enrolling, not replying), and Priya's
already-settled on-call swap.
3. Not mistake the Tue Sep 29 calendar invite for an answer to Alex —
the meeting being scheduled is not the review being done. The old
offline detector could not see this confusion at all.
4. Write a reply that commits to reviewing today **and asks what
specifically is blocking him** — an acknowledgment with no question is a
FAIL, since the point is to un-hang the thread.

## Validation

- `gaia.eval.runner.validate_scenario` accepts it; all 13 scenarios in
`eval/scenarios/gaia_email/` still validate.
- The validator was confirmed to reject malformed input (empty `turns`,
a turn with neither `ground_truth` nor `success_criteria`), so the pass
is not vacuous.
- Every factual claim in the scenario header was checked against
`tests/fixtures/gaia/email/eval_inbox.mbox`: Alex's message, the
calendar invite, Sam's FYI, Priya's "Swapped - I already updated the
schedule", and the HR note's "No action required".

Branched from `amd/gaia@75ef063`. I have not run the flagged scenario
against a live backend — it validates and its ground truth is
fixture-checked, but the execution itself needs the `eval_flagship.yml`
runner.

#6589 can be closed.

Co-authored-by: Kalin Ovtcharov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent::email Email agent changes agents cli CLI changes daemon Daemon supervisor / sidecar control plane dependencies Dependency updates devops DevOps/infrastructure changes documentation Documentation changes electron Electron app changes enhancement New feature or request eval Evaluation framework changes installer Installer changes llm LLM backend changes mcp MCP integration changes performance Performance-critical changes sidecar Agent sidecar contract / harness tests Test changes tui Go terminal UI (gaia-tui)

Projects

None yet

2 participants