Repository navigation
Release v0.19.0 - #1201
Merged
Merged
Release v0.19.0#1201
Conversation
kovtcharov
previously approved these changes
May 21, 2026
6 tasks done
itomek-amd
approved these changes
May 21, 2026
antmikinka
pushed a commit
to antmikinka/gaia
that referenced
this pull request
May 21, 2026
Selecting **Browser Agent** or **Analyst Agent** in the Agent UI and sending any message failed instantly with `AttributeError: '<Agent>' object has no attribute '_mcp_manager'`. After this change, both agents run their tool loops normally — Browser fetches pages, Analyst creates and queries scratchpad tables — exactly as users expect after the [amd#1070](amd#1070) split landed. This unblocks release [amd#1201](amd#1201): without the fix, anyone selecting the two new agents in the UI sees "SOMETHING WENT WRONG" before any work happens. CLI paths never hit the bug, which is why it shipped — the only auto-invoked dereference is `agent.get_mcp_status_report()` in `src/gaia/ui/_chat_helpers.py:1644`, which fires on every `/api/chat/send`. ## Test plan - [x] `python util/lint.py --black --isort --imports` clean - [x] `pytest tests/unit/test_agents_split.py -xvs` — 6/6 pass, including new `test_get_mcp_status_report_does_not_raise` covering Browser, Analyst, DocumentQA, FileIO, ChatAgentLite - [x] `pytest tests/integration/test_chat_ui_integration.py::TestSplitAgentsMcpStatusReport -xvs` — 2/2 pass (web and data agent_types via real `/api/chat/send`) - [x] `gaia browse --no-lemonade-check --list-tools` and `gaia analyze --no-lemonade-check --list-tools` register tools correctly - [x] Hands-on UI smoke: opened http://localhost:4200 in Chrome, selected Browser Agent → "List your tools" returned a clean response in 19.7s; selected Analyst Agent → same in 16.3s; Analyst created `scratch_q1` and ran SQL aggregates with results matching the input CSV exactly (Gadget = $18,000 winner, verified in SQLite) - [x] `code-reviewer` agent: "safe to merge, no critical issues, no silent-fallback regressions, no security concerns" ## Why two layers A class-level `_mcp_manager: Optional[MCPClientManager] = None` on `MCPClientMixin` protects every current and future agent that inherits the mixin without pre-setting the attribute. The explicit `self._mcp_manager = None` in each of the five affected agents documents intent at the point of use (matches the fallback shape already in `ChatAgent.__init__`). The combination means the bug can't regress without a test catching it: removing one layer still leaves the other. The proper architectural fix — making `Agent.__init__` call `super().__init__()` so the cooperative-MI chain actually reaches `MCPClientMixin.__init__` — is deferred. It would require every mixin in every agent's MRO to also cooperate via `super()`, which is too wide a refactor for a release-blocker patch.
2 of 3 tasks
antmikinka
pushed a commit
to antmikinka/gaia
that referenced
this pull request
May 21, 2026
…ariant (amd#1203) Build Installers on the merged [v0.19.0 release commit](amd@6f8bba0) fails on both `ubuntu-latest` and `windows-latest` legs of the **Custom agent MCP harness** matrix because [`tests/installer/test_custom_agent_mcp_harness.py:199`](https://github.com/amd/gaia/blob/main/tests/installer/test_custom_agent_mcp_harness.py#L199) still encodes the pre-amd#718 error wording. PR [amd#718](amd#718) deliberately replaced `"Tool '<name>' not found"` with the generic `"Unknown tool name. Use only tools listed in your AVAILABLE TOOLS section."` to prevent small models from interpreting the echoed bad name as self-confirmation and looping on it — that's the "no-echo invariant on the candidate-list message" called out in v0.19.0's release notes. The test from [amd#1069](amd#1069) missed the migration. This is a one-line test update to the second assertion in `test_custom_agent_with_mcp_reports_diagnosable_connection_failure`. The test's "diagnosable connection failure" intent is preserved by the **first** assertion in the same function, which still verifies `get_mcp_status_report()` surfaces the transport-level error (`"MCP server process died (exit code: 17)"`) — that's the actual user-facing diagnostic for a dead MCP server. This unblocks the v0.19.0 release ([amd#1201](amd#1201)) — pre-tag verification requires a green Build Installers run on the merged commit, which currently fails because of this single assertion. ## Test plan - [x] `python -m pytest tests/installer/test_custom_agent_mcp_harness.py -xvs` — 3/3 pass locally - [x] Lint: change is a string-literal update; no formatter impact - [ ] Build Installers run on this branch goes green
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GAIA v0.19.0 Release Notes
GAIA v0.19.0 tightens the agent loop against silent-failure regressions and continues the focused-agent split. A new
gaia eval agentreliability harness exercises tool selection end-to-end against the local Agent UI MCP backend and surfaced four agent-loop bugs that previously produced silently-wrong "Task completed" answers — all four are fixed in this release. DedicatedBrowserAgentandAnalystAgentreplace the ChatAgent-backed web and data profiles. Agents can now declare aREQUIRED_HARDWAREcapability tier that is validated at startup against the running Lemonade server. GAIA can connect to a remote Lemonade Server protected by an API key. And a new CI job auto-implements PRs for bulletproof bug issues in parallel with the existing triage path.Why upgrade:
gaia eval agentruns a user-simulator + judge against the local MCP backend; the harness uncovered and fixed silent loop-break lies, a ~85-token JSON-envelope leak in tool-calling-model prompts, a missed native-path failure check, and an over-broad eval rubric.BrowserAgentandAnalystAgentship as dedicated implementations behind thegaia browseandgaia analyzeCLIs, replacing the monolithic ChatAgent-backed profiles.REQUIRED_HARDWAREand fail fast at startup when the host's device tier (CPU/iGPU/dGPU/NPU/hybrid) does not satisfy it, instead of silently degrading.LEMONADE_API_KEYthreadsAuthorization: Bearer <key>through every Lemonade-bound HTTP path; wrong/missing key surfaces an actionable error naming the variable.What's New
MCP Tool-Calling Reliability Framework
A new end-to-end eval harness lands at
src/gaia/eval/runner.py(PR #718) and is invoked viagaia eval agent. The runner spawns a subprocess that acts as user-simulator + LLM judge against the live Agent UI MCP backend, exercises 10 generic scenarios (no-param, single-param, multi-step, conditional, error-handling, "no tool needed"), and produces per-tool failure rollups viaanalyze_failures.py. The judge rubric injudge_turn.mdgrades on tool selection alone forverbatim-tagged scenarios — it explicitly does not penalize the agent for underlying-service failures, which had been conflating pipeline correctness with hardware availability.Running the harness against the agent loop immediately exposed four framework regressions, all fixed in this release:
mcp_foo_mcp) instead of the full registered tool name, the agent retried four times and then hard-coded"Task completed with mcp_foo_mcp. No further action needed"as the final answer despite zero successful tool calls. Server-name sanitisation now strips redundantmcptokens before namespacing, and a newAgent._build_loop_break_summaryhelper branches on whether the last result was an error so the user sees the actual error wording. A new AST guard intests/unit/agents/test_agent_source_invariants.pyprevents the lie-on-loop literal from reappearing.{"tool": ..., "tool_args": ...}template was supposed to be suppressed for models that support nativetools=[]calling, butself.model_idwas assigned after_register_tools()ran, so the suppression check always returned False and ~85 redundant tokens shipped in every prompt. Moving themodel_id = model_idassignment ahead of registration closes the gap; a regression test asserts the==== RESPONSE FORMAT ====block does not appear in a tool-calling agent's system prompt.step_results[-1]to detect a failure streak, but the native-tool-call path appends toprevious_outputsinstead (wrapper dicts). On native callers the helper saw an empty list, missed every failure, and returned"Task completed". The fix unwrapsprevious_outputsat the call site; the regression test exercises the helper with a sequence of error results.status: successenvelope with the failure buried indata.content[*].text. On dev hardware where vendor-side features don't all work, the judge graded the agent as failing even when it picked the right tool. The new STEP 0 injudge_turn.mdoverrides the rubric forverbatim-tagged scenarios —correctness = 10if the right tool was invoked,0if the wrong tool was, regardless of underlying op success.Eight new unit-test files cover the sanitiser matrix, loop-break helper, candidate-list invariant, scenario validation, and
--iterationsflag.Dedicated Browser and Analyst Agents
The Agent UI's web and data entries previously routed to
ChatAgentprofiles, which meant they carried the full monolithic agent surface instead of the focused tool sets the use cases actually need. PR #1070 adds dedicatedBrowserAgentandAnalystAgentimplementations and wires the built-in web/data registrations (plus theirlitevariants) to them. Two new CLI subcommands ship alongside:gaia browsefor the browser flow andgaia analyzefor the analyst flow. Both compose the relevant tool mixins explicitly rather than inheriting everything from the ChatAgent shim.Hardware-Requirement Validation for Agents
Agents can now declare a hardware capability tier via
REQUIRED_HARDWARE = HardwareRequirement(min_device=...)(PR #1057). At agent startup,LemonadeManager.ensure_ready(required_min_device=...)queries the running Lemonade server throughLemonadeClient.get_system_info()and raisesHardwareRequirementErrorif the host's reported device tier does not satisfy the declaration. NPU-only or dGPU-only agents fail fast at construction time instead of silently degrading at first inference.This is Phase 1 — validation only. The resolved
recipeis computed and logged for debugging but is not applied to the Lemonade server startup path; a follow-up will wire the resolved recipe through if the project chooses to.LEMONADE_API_KEYfor Authenticated Remote LemonadeBefore this release, GAIA could not connect to a remote Lemonade Server protected by an API key — every request returned
401regardless of the user's configuration. PR #1149 (closes #1139) threadsLEMONADE_API_KEY(from.envor the shell environment) asAuthorization: Bearer <key>through every Lemonade-bound HTTP path in GAIA: the centralLemonadeClient._send_request, the fourrequests-bypass sites, both OpenAI-SDK constructor sites,LemonadeProvider,VLMClient, the Agent UI router (system.py), Agent UI chat helpers, the server startup probes, and the baseAgenthealth probe.Behaviour is fully additive — when the env var is unset, every call path behaves identically to v0.18.1. A wrong or missing key produces a fixed-string error naming
LEMONADE_API_KEY(the response body is intentionally not echoed back, to avoid leaking reflectedAuthorizationheaders from misconfigured proxies).CI Auto-Fix for Bulletproof Bug Issues
PR #1159 adds a Claude-powered auto-fix job to
.github/workflows/claude.ymlthat runs in parallel with the existingissue-handlertriage. When a new issue lands with thebuglabel, Claude reads the report, and if the fix passes a strict "bulletproof" bar — 1–2 files touched, fewer than 50 lines changed, 100% confidence, no hardware-dependent verification needed — it implements the change, validates withpython util/lint.pyand the relevant unit tests, opens a PR, and posts the PR link plus step-by-step verification instructions back on the originating issue. Bug reports that don't meet the bar still get the standard triage comment fromissue-handler; the auto-fixer exits silently for the rest.Bug Fixes
AttributeError: '<Agent>' object has no attribute '_mcp_manager'. The MCP client mixin's optional attribute was never initialised on the split agents, andget_mcp_status_report()— invoked on every/api/chat/send— hit the undefined dereference. The two-layer fix adds a class-level_mcp_manager: Optional[MCPClientManager] = NoneonMCPClientMixin(covering every future agent that inherits it) plus explicit per-agent initialisation in the five affected agents (documenting intent at the point of use). CLI paths were unaffected — only the Agent UI's/api/chat/sendtriggered the bug.LEMONADE_BASE_URLenv var normalisation (PR #1160) — SettingLEMONADE_BASE_URLto a value without the trailing/api/v1suffix produced 404s deep in the request pipeline. The variable is now normalised on load so bothhttp://host:8000andhttp://host:8000/api/v1resolve to the same canonical form.~/.gaia/agents/registrations were not surfacing to the Agent UI's agent list because the registry discovery pass skipped the disk source on cold start. The fix lists custom-directory agents alongside the built-ins on every request.pr-reviewCI re-enabled and credit-resilient (PR #1163) — The Claude-basedpr-reviewjob had been disabled after an Anthropic credit window; all Claude-backed jobs now treat 429 quota errors as non-fatal warnings so CI keeps moving when the project hits its quota.test_sdk.pyremoved (PR #1190) — Tests that depended on an environment fixture were silentlypytest.skip()-ing instead of being explicitly conditional. The skips are now gated on the actual fixture and surface asXFAILwhen intentionally inapplicable. Closes the first slice of #877.refresh-context7fails loudly on unexpected status (PR #1073) — The terminal job of the publish workflow previously masked non-cooldown HTTP responses as "OK". It now distinguishes the known HTTP 400 cooldown window from any other status code, so a regression that breaks the Context7 refresh is no longer indistinguishable from the documented cooldown.Tooling & Docs
gaia <subcommand>and every console script declared insetup.pyis now exercised with--helpin CI, catching import-time regressions and shadowed entry points before they ship.GovernedAgentMixinandCheckpointBridge(PR #1161) — Adds unit tests for the error/abort branches of the governance layer that were previously only exercised on the happy path.Full Changelog
17 commits since v0.18.1:
6c6e4c34— fix(agents): unbreak BrowserAgent/AnalystAgent in Agent UI (fix(agents): unbreak BrowserAgent/AnalystAgent in Agent UI #1202)6379e183— feat(agent-hub): discover installed agent entry points (feat(agent-hub): discover installed agent entry points #1187)a79acc88— test(cli): smoke-test every subcommand and console script with --help (test(cli): smoke-test every subcommand and console script with --help #1193)f7a75902— ci(dependabot): revive PRs, add agent-ui entry, ship patch auto-merge (ci(dependabot): revive PRs, add agent-ui entry, ship patch auto-merge #1191)70d75b70— fix(tests): remove silent skips in test_sdk.py (Pytest infrastructure: fix silent skips, add xdist + reruns, conftest hygiene #877 Part A) (fix(tests): remove silent skips in test_sdk.py (#877 Part A) #1190)f8b2c1ab— feat: MCP tool calling reliability test framework (feat: MCP tool calling reliability test framework #718)f4270687— feat(agent-hub): Agent Hub UI + platform plan + hub skeleton (feat(agent-hub): Agent Hub UI + platform plan + hub skeleton #1103)6ef1feee— fix(llm): normalize LEMONADE_BASE_URL env var to include /api/v1 suffix (fix(llm): normalize LEMONADE_BASE_URL env var to include /api/v1 suffix #1160)72b77167— fix(ci): re-enable pr-review and make all Claude jobs credit-resilient (fix(ci): re-enable pr-review and make all Claude jobs credit-resilient #1163)b46bf654— fix(agent-ui): list custom agents from disk (fix(agent-ui): list custom agents from disk #1138)63aedb47— test: add fail-path coverage for GovernedAgentMixin and CheckpointBridge (test: add fail-path coverage for GovernedAgentMixin and CheckpointBridge #1161)7b8f22c0— feat(llm): support LEMONADE_API_KEY for authenticated remote Lemonade (feat(llm): support LEMONADE_API_KEY for authenticated remote Lemonade #1149)b22fa73d— feat(ci): auto-fix job for bulletproof bug issues (feat(ci): auto-fix job for bulletproof bug issues #1159)6b7b9e7d— fix(ci): make refresh-context7 fail loudly on unexpected status (fix(ci): make refresh-context7 fail loudly on unexpected status #1073)e2d4e2d7— feat(sdk): hardware requirement validation for agents (feat(sdk): hardware requirement validation for agents #1057)1a73dcc5— feat(agents): add browser and analyst agents (feat(agents): add browser and analyst agents #1070)2554424b— test(installer): add custom agent MCP harness (test(installer): add custom agent MCP harness #1069)Full Changelog: v0.18.1...v0.19.0
Release checklist
util/validate_release_notes.py docs/releases/v0.19.0.mdxpassessrc/gaia/version.py→0.19.0src/gaia/apps/webui/package.json→0.19.0docs/docs.json→v0.19.0 · Lemonade 10.2.0