Repository navigation
docs(claude): sync agent/tool tables with code; fix convention checker + add missing agent tests - #1340
Conversation
…taller/ The bash counterparts to the PowerShell scripts fixed in #1326 had the identical off-by-one bug: both climbed one parent directory too few from installer/scripts/, so $REPO_ROOT / $PROJECT_ROOT pointed at installer/ instead of the repo root. Downstream $WEBUI_DIR / $ELECTRON_DIR then resolved to the non-existent installer/src/gaia/apps/webui, breaking start-agent-ui.sh --frontend-only and build-ui-installer.sh on Linux/macOS. Both scripts live at installer/scripts/, so the correct traversal is $SCRIPT_DIR/../.. (two levels up to repo root).
…r false positives The Agent Implementations and KNOWN_TOOLS tables in CLAUDE.md had drifted from the code: seven agents (DocumentQA, Analyst, Browser, FileIO, EmailTriage, ConnectorsDemo) and four tool mixins (code_index, filesystem, scratchpad, browser) were undocumented, the summarize class was named wrong (SummarizerAgent), and browse/analyze/email CLI commands were missing. check_agent_conventions.py produced 12 false-positive warnings: it didn't recognize the modern _snapshot_tools() isolation pattern (treating snapshot- isolated agents as registry leaks) and discovered tests with a non-recursive glob (missing every test under tests/unit/, tests/integration/, tests/mcp/). Both are fixed, leaving only accurate warnings.
…AAgent, FileIOAgent These four agents shipped without any test coverage. Each suite verifies construction without a live Lemonade backend (skip_lemonade), the default config, the system prompt, and tool registration. AnalystAgent isolates its registry via clear()+_snapshot_tools() so its tool set is asserted exactly; the other three share the process-global registry, so their own tools are asserted as a subset.
|
A clean documentation-and-tooling PR with no blocking issues. The most impactful change is the Issues🟢 Minor —
|
…env key The eval guidance told contributors to check ANTHROPIC_API_KEY first and treat an empty value as 'no access', then ask the user to export a key. That's backwards: in a Claude Code session, Claude access comes from the subscription, and the env var is normally unset. Reframe the check order — confirm subscription auth first, treat ANTHROPIC_API_KEY as the eval-judge fallback (src/gaia/eval/claude.py reads it directly), and only ask for the key when an eval subprocess actually errors without it.
|
Clean maintenance PR — syncs CLAUDE.md to reality, fixes two real installer bugs, tightens the convention checker, and adds 20 unit tests for agents that previously had zero coverage. No blocking issues. SummaryThe installer path fix ( Issues Found🟢 Minor —
|
test_independent_jobs_run_concurrently asserted elapsed < 0.4s, but each 0.2s job carries ~0.2s of dispatch/thread-pool overhead, so concurrent wall time lands just over 0.4s on slower runners (the macOS smoke lane). The jobs were genuinely parallel (total ~0.4s vs ~0.8s sequential); only the threshold was wrong. Assert against the 0.6s midpoint instead.
|
Four well-scoped fixes land cleanly: the installer path bug, CLAUDE.md doc sync, convention-checker improvements, and unit-test gaps for four previously uncovered agents. The only issue worth flagging is a resource-cleanup inconsistency across three of the four new test files. SummaryThe diff does exactly what the PR description says: it fixes two genuine bugs (wrong installer repo-root path, non-recursive test glob in the convention checker), documents seven previously-undocumented agents and four tool mixins, and adds 20 real unit tests for AnalystAgent, DockerAgent, DocumentQAAgent, and FileIOAgent. The Issues Found🟢 Minor — Resource cleanup missing in three new test files
agent = self._make(tmp_dir)
try:
self.assertIsNotNone(agent)
finally:
agent.close()DockerAgent is an MCPAgent and DocumentQAAgent constructs a RAGSDK at init — both may hold non-trivial state. Python GC will collect them eventually, but explicit cleanup avoids sporadic test-order-dependent resource warnings. Apply the AnalystAgent pattern to each Example for Same pattern for 🟢 Minor —
|
# Conflicts: # CLAUDE.md
Resolve conflicts in CLAUDE.md and docs/reference/cli.mdx by taking main's versions: PRs #1337, #1340, #1364 already synced both files to the code more recently, and the PR's stale side reintroduced removed commands (mcp add/remove) and the broken /guides/summarize link that was failing the internal cross-reference CI check. Keep the PR's still-valid accuracy fixes (Gemma-4-E4B-it default in chat/llm/emr docs, agent-ui Lemonade port 13305 + #install anchor, code agent Python-gen still supported, telegram.mdx removal, #606 stale-note removal). Fix one contradiction the merge surfaced: main's CLAUDE.md and emr/cli.py listed the EMR VLM as Qwen3-VL-4B, but agent.py and all --vlm-model defaults are Gemma-4-E4B-it-GGUF. Aligned both with the code and emr.mdx.
19 PRs merged to main after the v0.20.0 notes were drafted; merge main into the release branch and update the notes to match. - Multi-Device: note #1338 wired the selector end-to-end (it was a no-op after #1252 alone) and added loud runtime validation for unavailable devices. - PowerPoint RAG: note #1366 unblocked .pptx in the Agent UI file picker (backend already accepted it; the frontend rejected it pre-upload). - Activations: note #1310 widened the "Active for" panel to MCP-consuming agents (e.g. the chat agent), not just static REQUIRED_CONNECTORS. - New bug fixes: RAG embedding reuse (#1306), overlapping-chat-turn 409 (#1304), Memory/Settings mutual exclusivity (#1368). - Tooling/CI: doc-vs-code realignment (#1298/#1337/#1340), gaia-testing skill (#1372), Claude CI + Codecov hardening. - Full Changelog regenerated: 44 -> 63 commits.
GAIA's onboarding doc had quietly drifted from the code: seven shipped agents (DocumentQA, Analyst, Browser, FileIO, EmailTriage, ConnectorsDemo) and four tool mixins were missing from the CLAUDE.md tables,
browse/analyze/emailweren't in the CLI list, and one agent class was named wrong — so anyone (human or AI) onboarding from CLAUDE.md got a stale map of the codebase. This syncs the tables to reality, fixes the agent-convention checker that was crying wolf, and closes the test-coverage holes that hid behind it.The convention checker (
check_agent_conventions.py) was emitting 12 false-positive warnings: it didn't recognize the modern_snapshot_tools()isolation pattern (so it flagged correctly-isolated agents as registry leaks) and discovered tests with a non-recursive glob (so it missed every test undertests/unit/,tests/integration/,tests/mcp/). With both fixed, the checker drops from 25 → 9 warnings, and the 9 that remain are accurate — genuine tool-registry leak debt in non-isolating agents.Four of those agents (Analyst, Docker, DocumentQA, FileIO) also had zero test coverage; this adds real unit suites for them (20 tests). The remaining 9 leak warnings are deliberately left for follow-up because fixing them changes each agent's tool schema and requires
gaia eval agentruns per the repo's eval policy.Test plan
python util/check_agent_conventions.py→0 error(s), 9 warning(s)(all genuine leak debt)python -m pytest tests/unit/agents/test_{analyst,docker,docqa,fileio}_agent.py -q→ 20 passedpython util/check_doc_code.pyandpython util/check_doc_versions.py→ passpython util/lint.py --black --isort→ pass