Skip to content

refactor(agents): retire chat/doc/file as selectable agents - #4108

Closed
kovtcharov-amd wants to merge 11 commits into
mainfrom
kalin/retire-chat-selectable
Closed

kovtcharov-amd wants to merge 11 commits into
mainfrom
kalin/retire-chat-selectable

Conversation

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

The Agent UI still offered chat, doc, and file alongside the flagship, so
new users had to guess between four agents that the flagship already supersedes.
All three are gone from the picker and the Hub catalog. The gaia-agent-chat
package itself is untouched and fully supported
— GaiaAgent subclasses
ChatAgent, so it stays a hard dependency of gaia-agent, and every id still
resolves: stored sessions, the *-lite aliases, and the eval scenarios that
address doc by name keep working exactly as before.

This hides the ids rather than deleting them, because #4103 measured that
retiring chat outright costs 12-41s of extra TTFT per call — callers fall
through to the flagship's larger prompt (#254 measured it at ~1.4x the chat
profile). A hard delete is a separate PR once #4103 is resolved, and doing it
here would block #3923.

The second half is the seam: the non-streaming chat path imported ChatAgent
directly, bypassing the registry entirely. Hiding a registration means nothing
if dispatch never consults it, so that path now goes through the registry like
every other in-process agent, and a missing registration produces the
unavailable-agent error instead of a silent direct import.

Threads a reviewer should check independently

  • hidden=True on all three registrations — mirrors how BuilderAgent is
    already kept out of the picker. Hub browse now skips hidden registry-only
    agents too, or chat would vanish from the UI but linger in the catalog.
  • Stored selections get re-pointed — an existing user has 'chat' in
    localStorage; without this they'd open to a blank agent the backend no longer
    offers. An empty agent list means discovery is still in flight, so the
    selection is kept rather than reset.
  • release_agent_chat.yml deleted — the R2 Hub catalog lane for an agent
    that is no longer in the catalog. It had 0 runs. The PyPI wheel lane
    (publish_agents.yml) is untouched; the flagship depends on that wheel.
  • test_chat_agent.yml kept, not deleted — it is the only lane that runs
    tests/unit/agents/test_registry.py with the chat wheel installed, which is
    what makes the importorskip("gaia_agent_chat") cases in that file actually
    execute instead of skip ([Bug] Unable to install chat agent: gaia-agent-chat missing from registry and amd-gaia[agents] extra triggers downgrade #2240). It installs the wheel manually at line 92
    (uv pip install --system -e hub/agents/chat/python), not via an
    install-package: argument — the two eval lanes that do pass the chat wheel
    through install-package: (test_eval_rag.yml, the Gemma consolidation lane)
    run no unit tests at all. CUA: Voice Integration with Talk Mode #238 edits this workflow's paths:; nothing here
    touches that block.

Two deliberate gaps

  • The streaming dispatch branch still special-cases chat. It carries a
    library-doc pre-index step that calls rebuild_system_prompt(), which the
    shared registry branch does not have. Hoisting it changes the system prompt
    for every registered agent, making it LLM-affecting and eval-gated — ci(eval): every eval gate dies in preflight — the judge org is out of monthly spend #4080
    blocks the CI judge. The UI sends stream=true, so this is the path users
    actually hit; the seam fix is real but not yet complete, and the follow-up
    needs an eval run behind it.
  • gaia-agent.yaml kept despite being on the removal list. It is the
    min_gaia_version source for the chat wheel and
    tests/unit/test_agent_pypi_publish.py reads it for every package in
    AGENT_WHEEL_PACKAGES. Deleting it breaks the publish lane the flagship
    depends on.

Test plan

  • pytest tests/unit/agents/test_registry.py tests/unit/test_hub_catalog.py tests/unit/test_chat_agent_type_guard.py hub/agents/chat/python/tests/test_chat_agent.py — 118 passed
  • New test asserts both halves: chat/doc/file are absent from the
    selectable listing and registry.get(id) still returns a constructible
    registration. A test checking only the first half would also pass against a
    hard delete, which is the regression being guarded.
  • tests/unit/chat/ui/ failure set is byte-identical to main's (280
    pre-existing Windows-only failures — the socket guard in
    tests/unit/conftest.py vs. asyncio's local socketpair; green on Linux CI)
  • python util/lint.py --black --isort clean; npx tsc --noEmit clean
  • gaia chat --help and gaia -h exit 0
  • Reviewer: Agent UI picker shows the flagship without chat/doc/file,
    and an existing session stored against chat still opens and answers
  • Not run: gaia eval agent — no Lemonade on this machine and ci(eval): every eval gate dies in preflight — the judge org is out of monthly spend #4080 blocks
    the CI judge. The repoint is not LLM-affecting: the registry resolves the
    same model (SESSION_DEFAULT_MODEL == DEFAULT_MODEL_NAME) and sets the
    same namespaced_agent_id the old hardcoded path stamped by hand.

Picking an agent used to mean choosing between four overlapping options —
the flagship plus three chat profiles it already supersedes. The three
profiles are now hidden: absent from the Agent UI picker and the Hub
browse listing, but still resolvable by id, so stored sessions, the
*-lite aliases, and the eval scenarios keep working unchanged.

The gaia-agent-chat package itself is untouched. GaiaAgent subclasses
ChatAgent, so it remains a hard dependency of gaia-agent and a fully
supported library — only its existence as a separate product goes.

merge_with_registry now honours hidden in its registry-only pass, for
the same reason GET /api/agents does. A published hidden agent still
reads as installed in the catalog pass.

release_agent_chat.yml published the chat wheel to the R2 Agent Hub
catalog. It has never run (0 runs) and the catalog no longer lists
chat, so it goes. The PyPI wheel lane (publish_agents.yml, driven by
AGENT_WHEEL_PACKAGES in setup.py) is a different lane and is untouched
— the flagship installs gaia-agent-chat from PyPI.
…ering

A user who last chatted with the chat agent has 'chat' in localStorage.
Now that the id is hidden, the picker would highlight nothing and the
first message would go to whatever the backend defaults to. The store
falls back to the flagship (or the first available agent) whenever the
stored id is missing from the agent list.

An empty list means discovery is still in flight, so the selection is
left alone rather than reset on every reload.
Retiring the three profiles rests on one filter in GET /api/agents and
one in merge_with_registry. Both are now covered, along with the
registration flag itself, so re-exposing an agent takes a deliberate
test change rather than an accidental one.

Each test also asserts the id still resolves — the point is to remove
the choice, not the route.
…choice

Five docs still presented chat/doc/file as agents a user picks, which is
no longer true anywhere in the product. They now say what the package
actually is: the class GaiaAgent subclasses, hidden from selection but
resolvable by id.

The chat README also claimed `gaia chat` resolves the agent through the
registry. It imports ChatAgent directly — corrected, since the claim was
what made the registration look load-bearing for the CLI.

The Agent Hub worker README used chat as its R2 layout example and
linked a CHANGELOG.md that does not exist; both now use the flagship and
a generic <id> placeholder.
…ther

The non-streaming chat path imported ChatAgent directly, so the registry had
no say in whether `chat` was reachable — a hardcoded bypass that would have
kept answering even after the registration was gone. It now resolves through
the registry, which is what makes hiding the id a routing decision instead of
a cosmetic one.

`chat` also stops being exempt from the unknown-agent pre-check: a missing
registration is now a loud unavailable-agent error rather than a silent
direct import. Sidecar types keep their exemption — they are out-of-process
and legitimately absent from the registry.

The registry branch gained the `_register_agent_memory_ops` call the deleted
branch made, so the memory dashboard keeps working.

The streaming branch is deliberately untouched: it carries a library-doc
pre-index step that rebuilds the system prompt, so hoisting it into the
shared path is LLM-affecting and needs an eval run behind it.
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

This retires chat/doc/file as agents you can pick while keeping them resolvable by id, and re-points the UI default at the flagship. The direction is right and the tests pin both halves well — but three loose ends make it worth another pass before merge.

On a machine without the chat wheel, old sessions now give an unhelpful error. Anyone opening a pre-existing conversation used to get "the chat agent is not installed — install it like this." They now get "I couldn't load the agent 'chat'… pick another agent from the selector" — and chat is no longer in the selector. That's a dead end, and it's a common state because gaia init never installs that wheel today. The good install hint still exists in the code but is now unreachable.

Deleting the chat release workflow strands two setup profiles. gaia init --profile chat and --profile npu both still ask for the chat agent from the Agent Hub, and that workflow was the only thing that could ever publish it. With it gone, those two profiles can never complete their install — the NPU one especially matters. Either re-point them at the flagship (its binary already bundles ChatAgent) or drop chat from the list of agents init installs.

The "create chat through the registry like every other" refactor only landed on half the paths. The streaming path — the one the UI actually uses on every message — still constructs ChatAgent directly, and a few nearby comments and a hardcoded id list now describe the old behaviour. Worth finishing or explicitly scoping in the commit message.

Smaller: new sessions created outside the UI (API clients, scheduled tasks) still default to the retired chat agent, and the sidebar now labels historical sessions with a raw id instead of "Chat".

Real-world evidence

The evidence harness failed to run (evidence-bundle.md reports it errored before producing anything — auth/install/rate-limit). No surface was exercised, so this verdict rests on static review alone. That's a gap worth closing here: the change is user-visible in the agent picker, the sidebar, and the Hub browse list. I also could not run the unit tests — pytest is not installed in this reviewer environment — so the new assertions are read, not executed.

🔍 Technical details

🟡 Important

1. The actionable "chat agent is not installed" error is now unreachable (src/gaia/ui/_chat_helpers.py:130, :1869)

_agent_type_unknown no longer exempts chat, so when gaia_agent_chat isn't importable the streaming path returns _agent_unavailable_message() at line 1869 before reaching the elif agent_type == "chat" branch at line 1963 — whose ImportError handler raises the good agent_not_installed_message(..., "gaia-agent-chat"). That branch is now dead whenever the registry exists.

Why it fires in normal use: database.py:401 defaults sessions to agent_type = "chat", and every historical session already carries it. So a user on a box where the chat wheel isn't installed (the state _is_hub_agent_available("chat") exists to detect) opens any old session and gets:

I couldn't load the agent 'chat'. It may have failed to install or contains an error. Try re-creating it, or pick another agent from the selector.

…with chat absent from the selector. Per CLAUDE.md's actionable-error rule, this should still name the package and the fix. Simplest option: have _agent_unavailable_message special-case a known-but-uninstalled hub agent, or keep the install-hint check ahead of the guard.

2. release_agent_chat.yml deletion strands gaia init --profile chat / --profile npu

Both profiles declare "agent": "chat" (src/gaia/installer/init_command.py:111, :156) and chat is still in HUB_INSTALL_AGENTS (:62). _ensure_hub_agent_installed (:2191) treats "not in the live catalog" as a soft success — and its own docstring at :2200 notes chat isn't published yet. Removing the publish workflow makes that permanent, so those profiles will forever fall through to the source-install hint.

Since gaia-agent (the flagship) declares gaia-agent-chat>=0.1.0 and its frozen binary bundles ChatAgent from the same checkout (release_agent_gaia.yml:388-402), re-pointing chat/npu to "agent": "gaia" — or removing "chat" from HUB_INSTALL_AGENTS — would make the intent explicit rather than leaving a dangling catalog dependency.

3. The registry refactor is half-applied (src/gaia/ui/_chat_helpers.py:1963)

The non-streaming branch was converted; the streaming branch still imports and constructs ChatAgent directly. The frontend hardcodes stream=true, so the converted path is the one users don't hit. Consequences: the two paths diverge on identity stamping (registry wrapper vs. _stamp_chat_identity) and will drift. If the split is deliberate, the commit body should say so — right now the docstring at :126 ("Everything else — chat included — must resolve in the registry") reads as if both paths changed.

Stale comments left by the change:

  • :1866 — "chat + sidecar types are exempt — they never live in the registry"
  • src/gaia/ui/routers/sessions.py:113-116 — valid_ids unions {"chat"} unconditionally under the comment "Every id _agent_type_unknown accepts", which is no longer true; the 422 would advertise chat as valid on a box where creating a chat session 422s.

🟢 Minor

4. New sessions still default to the retired agent (src/gaia/ui/database.py:401)

        agent_type = agent_type or "gaia"

The UI passes agent_type explicitly (services/api.ts:559), but API clients and scheduler.py:1077 (every scheduled task) don't — so they all land on a hidden agent. Changing the default is a behaviour change for stored sessions' display, not routing, so it may warrant its own commit.

5. Historical sessions lose their label in the sidebar (src/gaia/apps/webui/src/utils/sessionGrouping.ts:17)

resolveAgentName/groupSessionsByAgent look the id up in the /api/agents list, which now excludes chat. Every pre-existing session groups under the raw string chat with a fallback icon instead of "Chat" + message-circle. A small hardcoded display map for the three retired ids would preserve it.

6. Vestigial chat exemption in model resolution (src/gaia/ui/_chat_helpers.py:1516, :1897)

if not custom_model and registry and agent_type != "chat" predates chat going through the registry. It's now a no-op (chat's registration has models=[], so resolve_model returns None anyway) — dropping it removes one more "chat is special" branch.

7. README overstates the --ui path (hub/agents/chat/python/README.md:23)

gaia chat and gaia chat --ui import ChatAgent directly rather than going through the registry

True for the CLI; for --ui the non-streaming path now goes through the registry (only streaming still imports directly). Worth narrowing so the doc doesn't contradict the code this PR just changed.

8. Stale references to the deleted workflow — util/verify_publish_pipeline.py:21 and :160 (the drives= field), .github/workflows/release_components.yml:9, .github/workflows/release_agent_gaia.yml:91. Cosmetic, but verify_publish_pipeline.py prints its drives string in the report table.

Also worth a look: hub/agents/chat/python/gaia-agent.yaml still carries full catalog metadata (category, tags, icon, tools_count) describing chat as a shippable product. With the release workflow gone it's vestigial; per CLAUDE.md's bundled-docs rule it's the one surface describing chat that this PR didn't touch.

Strengths

  • The hidden flag is verified end-to-end, not assumed. dataclasses.replace in _load_entry_point_registration preserves hidden=True from build_chat(), and the new tests pin both halves — hidden from GET /api/agents and from merge_with_registry, still resolvable via registry.get(). The "half 1 / half 2" comments in test_registry.py:145-153 make the invariant obvious to the next reader.
  • setAgents handles the in-flight case correctly (chatStore.ts:137) — the !agents.length guard prevents clobbering a valid stored selection while discovery is still running, which is the easy bug here.
  • merge_with_registry filters only registry-only entries, so a published hidden agent still merges as installed — the docstring calls this out explicitly rather than leaving it to be rediscovered.

kovtcharov added a commit to kovtcharov/gaia that referenced this pull request Sep 24, 2026
amd#4120)

Five open PRs (amd#4096, amd#4108, amd#3937, amd#3122, amd#3072) are showing a red
agent-eval lane for a scorecard that was never produced. The Anthropic
account is over its weekly spend cap, and the rejection text changed to
a wording the preflight classifier does not recognise, so instead of
"quota exhausted, this says nothing about your PR" the job dies in ~37
seconds with "could not be classified" and looks like a measured quality
regression. After this change the same outage is named as a quota outage
and points at billing rather than at the PR or the repository secrets.

The pattern matches on `weekly limit`, not on the reset date the message
quotes — that date moves every reset.

## Test plan

- [ ] `python -m pytest tests/unit/test_classify_claude_probe.py -q` —
30 passed
- [ ] `test_real_weekly_limit_rejection_is_a_quota_problem` feeds the
verbatim text from run 35681533582 (job 106629918099), BOM and U+00B7
included, and asserts `quota`; it fails on `main`
- [ ] `test_the_weekly_limit_pattern_does_not_depend_on_the_reset_date`
pins that a different reset date still classifies
- [ ] `python util/lint.py --black --isort --flake8` passes
- [ ] The classifier stays pure ASCII
(`test_the_classifier_module_is_pure_ascii`), which the PowerShell eval
step depends on

Co-authored-by: Kalin Ovtcharov <[email protected]>
kovtcharov-amd pushed a commit to kovtcharov/gaia that referenced this pull request Sep 25, 2026
…md#4328)

CLAUDE.md's agent table and CLI command list described EmailTriageAgent
as Gmail-only, but it triages Gmail or Outlook (personal or Microsoft
365) per its manifest (`hub/agents/email/python/gaia-agent.yaml`) and
README, and a Microsoft connector ships alongside the Google one. The
email tool mixin row on the same page already said "Gmail / Outlook" —
these were the only two stale lines.

Two-line wording fix, no behavior change.

Note: open issue amd#3329 plans to fold inbox triage into the flagship
agent and retire the email agent as a separate agent — this PR
intentionally doesn't touch anything beyond the two stale lines named in
amd#4251.

Checked amd#4176 and amd#4108 (both open PRs touching CLAUDE.md's agent table)
— neither modifies the EmailTriageAgent row, though amd#4108 edits the
adjacent ChatAgent row in the same hunk, so there's a small merge-order
risk worth flagging to a reviewer.

## Test plan
- [x] `grep -n "Email triage for Gmail" CLAUDE.md` — both lines now say
"Gmail or Outlook"
- [x] Verified against `hub/agents/email/python/gaia-agent.yaml` and
`hub/agents/email/npm/README.md`

Fixes amd#4251

Co-authored-by: Kalin Ovtcharov <[email protected]>
Opening any pre-existing conversation on a box without the chat wheel gave
a dead end: "I couldn't load the agent 'chat' ... pick another agent from
the selector" — and chat is no longer in the selector. `gaia init` never
installs that wheel, so this is the common state, not an edge case.

Hiding the chat ids meant `_agent_type_unknown` stopped exempting them, and
the unavailable-agent guard now fires before the branch that raised the good
"install gaia-agent-chat like this" error. The guard itself now recognises a
missing chat wheel and names the package and the command.

Also drops the `agent_type != "chat"` model-resolution exemption on both
dispatch paths — chat's registration carries no model preference, so it was
a no-op — and re-points the non-streaming test that still pinned the old
direct-import bypass.
`gaia init --profile chat` and `--profile npu` both asked the Agent Hub to
install `chat`, but chat is not a catalog agent and the workflow that would
have published it is gone — so that step could only ever wait on a publish
that will never land.

Both profiles drop out of the hub-install path. Their completion message is
unchanged: it still gates the "initialization complete" headline on the chat
wheel and still prints the source-install command, which is the path that
actually works (#2240). That gate moves to its own constant, since "an agent
init can fetch" and "an agent this profile's quick-start needs" stopped being
the same list.
…lled

Sessions created outside the Agent UI — API clients, every scheduled task —
landed on `chat`, an agent the picker no longer offers. They now open on the
flagship like the UI's own sessions do.

Historical `chat`/`doc`/`file` sessions also lost their sidebar label: the
names come from `GET /api/agents`, which excludes hidden ids, so years of
history rendered as a raw string with a fallback icon. A small display map
restores "Chat" / "Doc Agent" / "File Agent" and stops the sidebar flagging
them unknown — they still resolve by id and still answer.
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Skill audit

Skill Verdict Claimed tier Cleared tiers Findings Rules
hub/agents/email/npm ✅ ALLOW experimental experimental, community 2 medium, 1 info code.suppression, supply.undeclared_dependency
hub/skills/coding ✅ ALLOW community experimental, community 4 info permission.unused
hub/skills/transcribe-meeting ✅ ALLOW community experimental, community none —

✅ All audited skills cleared the tier they claim.

Per-finding detail is withheld here on purpose. Read it in the Security > Code scanning tab, or download the skill-audit-reports artifact from this run. Offending source text is withheld from CI everywhere — reproduce it locally with gaia skill audit <dir> --show-snippets.

session_to_response()'s fallback and SessionResponse's own field default
still read "chat" for a session with no stored agent_type, alongside the
database default already fixed. Since chat is no longer a selectable
agent, both now match: gaia. Updates the two eval-provenance tests that
pinned the old default.
@itomek

itomek commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

Folded into #4407 with #3721 and #4114, so the three can be tested as one story
instead of one PR at a time. Nothing here is dropped — every commit on this branch
is an ancestor of the combined branch (git rev-list --count <combo>..<this> is 0),
and the branch is left in place.

Closing rather than re-basing: GitHub refuses to repoint the base because there are
no new commits between the two, which is the same fact stated the other way round.

🔍 What changed on the way in

The three PRs each moved the flagship's tool count, which is pinned in six files, and
main had moved underneath all of them. Neither 81 → 89 nor main's 86 was right;
the merged registry is 94 (CORE 16 + 24 bundles), derived by running
packaging/capability_matrix.py rather than by arithmetic.

Several numbers were re-measured on the combined tree because the merge invalidated
them — fast mode registers 8 tools rather than 4, and its prefill is 2,860 against a
2,800 ceiling. Full conflict-by-conflict notes are in #4407's description, and the
evidence run (live Chromium, live Agent UI HTTP, unit differential against a real
main worktree) is in its first comment.

@itomek itomek closed this Sep 28, 2026
@itomek itomek self-assigned this Sep 28, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Sep 29, 2026
…ip's tool surface (#4407)

Three open PRs that change what the flagship agent offers a new user,
folded into one
branch so the story can be tested end-to-end instead of a PR at a time.
Separately,
each was unmergeable: the flagship's tool count is a single integer
pinned in six
files, and all three moved around it while `main` moved underneath them.
Together they
answer one question — **what is a new user offered, and how fast does it
answer** —
with the browser reaching pages that were invisible, the picker no
longer showing four
agents where one is the product, and a fast path so "hi" costs a fifth
of a repo search.

Supersedes #3721, #4108 and #4114. Closes #4103.

## What a reviewer should check

- **The agent can drive a real browser.** Eight tools open a real
Chromium, read it,
click and type, and sign in — the password goes to the human, never the
model, and
the session is stored encrypted. Acting inside a session you signed in
to asks
first. Optional `[browser]` extra; without it none of the eight
register.
- **`chat`, `doc` and `file` are no longer selectable.** Hidden, not
deleted — every
id still resolves, so stored sessions, `*-lite` aliases and eval
scenarios are
  unaffected, and `ChatAgent` remains the flagship's base class.
- **Fast mode.** `GAIA_FAST=1` drops the flagship to a plain
conversational surface
for a whole session: 2,860 tokens of fixed prompt instead of 17,652,
measured.

## The number that forced the grouping

`main` had moved the tool count to 86 and #3721 was still moving 81 →
89. Neither is
right: the merged registry is **94**. It is set here in all six places
that state it,
and `CAPABILITY_MATRIX.md` is regenerated from the code rather than
hand-edited.

<details>
<summary>🔍 Technical details — conflict resolutions and what was
re-measured</summary>

**Merge order** `main` → #3721 (184 commits stale) → #4108 (76) → #4114
(73), one merge
commit each, so all three branches are ancestors and the member PRs show
an empty diff.

**Tool count.** 94 = CORE 16 + 24 bundles, confirmed by executing
`hub/agents/gaia/python/packaging/capability_matrix.py` against the
merged tree, not by
arithmetic. Pinned in `gaia-agent.yaml`, `gaia_agent/__init__.py`,
`test_capability_matrix.py`, `CAPABILITY_MATRIX.md`, `npm/SKILL.md` and
`docs/guides/gaia.mdx`.

**`readiness.pull_model`** — both sides were right and neither was
complete. `main`'s
`is_cloud_model` early raise now runs first (a gateway model must never
reach payload
construction), then #3721's `user.`-prefix checkpoint/recipe branch.
`provision_progress`
also catches `RuntimeError`, which `main`'s guard raises and #3721's
widened `except`
did not cover — it would have escaped a generator that contracts to
yield a failure line.

**`chatStore.ts`** — kept `main`'s `readPref`/`writePref` helpers and
expressed #4108's
two semantic changes through them. Also consolidated
`FLAGSHIP_AGENT_ID`: `main` added
`utils/newTask.ts` exporting it after #4108's base, so the naive merge
left two exported
constants that must change in lockstep.

**Re-measured rather than merged.** Fast mode registers **8** tools, not
the 4 #4114
pinned — #3335 put the three `cli_setup` tools inside ChatAgent's
chat-profile early
return. `FAST_PREFILL_CEILING` 2800 → 3100 (measured 2,860; the
cli_setup schemas are
497 of it). The pin is now a subset plus a size bound, because
`search_documentation`
(needs `npx`) and `search_web` register conditionally and an exact list
flaps between
CI and a dev box.

**Three CI lanes the PRs left asymmetric.** `release_agent_gaia.yml`
froze the binary
without the `browser` extra while its test step claimed to use "the same
extras" — a
released artifact would have registered 86 tools against a manifest
claiming 94.
`test_unit.yml`'s Windows lane and `claude.yml`'s auto-fix lane both run
the full
`tests/unit/` suite but lacked `playwright`.

**`docs/guides/terminal-hub.mdx`** — dropped #3721's "Choosing where
inference runs"
section; `main` now ships `guides/ai-providers.mdx` covering the same
panel, so it would
have said it twice and frozen a second copy of the Lemonade-11.8.1
claim. Cross-reference
added instead.

**Known scope boundaries**, deliberately not fixed here:
- The streaming chat path still special-cases `chat` with a direct
`ChatAgent`
construction where the non-streaming path now goes through the registry
(`_chat_helpers.py`), and `agent_loop.py`'s autonomous tick keeps the
same carve-out.
Making them symmetric is a change to the UI's hot path that needs its
own live-stream
  evidence.
- `read_tool_output` is 69 chars over the tool-description budget. That
docstring is
byte-identical to `origin/main`'s (same SHA) and main's lint lane is
already red at
`6494a1ce` for it. It is a description the model reads, so changing it
is an
  LLM-affecting edit that needs its own eval run.

</details>

## Test plan

- [ ] `pytest hub/agents/gaia/python/tests/
hub/agents/chat/python/tests/` — the tool-count
gates (94 / CORE 16 / 24 bundles), fast-mode pins, and `hidden=True`
registration
- [ ] `pytest tests/unit` — full unit suite
- [ ] `python hub/agents/gaia/python/packaging/capability_matrix.py
--check` — the
      generated matrix matches the code
- [ ] `python util/lint.py --all`
- [ ] `pytest tests/integration/test_browser_use_live.py` — real
Chromium, newly wired
into the offline-integration lane rather than allowlisted out of CI
- [ ] Real-world: Agent UI shows only the flagship in the picker; a
session created
with no `agent_type` lands on `gaia`; a historical `chat` session still
reads
      "Chat" in the sidebar
- [ ] Real-world: `GAIA_FAST=1` answers a greeting, with
`query_documents` /
      `index_codebase` / `list_inbox` absent from the surface

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: Ovtcharov <[email protected]>
Co-authored-by: Kalin Ovtcharov <[email protected]>
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

agents devops DevOps/infrastructure changes documentation Documentation changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants