Skip to content

docs(skills): add gaia-testing real-world test harness skill - #1372

Merged
itomek merged 9 commits into
mainfrom
tmi/amazing-blackburn-70a847
Jun 3, 2026
Merged

itomek merged 9 commits into
mainfrom
tmi/amazing-blackburn-70a847

Conversation

@itomek

@itomek itomek commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

GAIA had no codified way to run the testing that actually catches release regressions: the v0.20.0 RC validation found a headline feature (.pptx RAG) that worked in the backend but was hard-blocked in the UI, and a release-note claim about the CLI that the source contradicted — neither visible to pytest. This adds a reusable gaia-testing skill that runs unit → integration → real-world (on-device) testing and collects screenshots, logs, traces, and timing as reviewable evidence, so "does it actually work on hardware?" becomes a repeatable, evidence-backed workflow. It's portable — the test machine comes from each contributor's declared config (else their local machine; no hardcoded hosts) — and was hardened by a six-agent adversarial review before landing.

Threads (two logical changes):

  • gaia-testing skill (.claude/skills/gaia-testing/SKILL.md) — auto-triggers on "test / validate / QA a feature or release" and scales down to unit-only; Opus plans + judges (reads screenshot pixels, cross-checks source against the tested ref), Sonnet executes. Includes a capability pre-flight so no-hardware runs degrade before the approval gate, credential / untrusted-ref safety rules, and concrete verification (GPU-actually-in-use, planted-fact retrieval proof, teardown checks). Why: makes on-hardware evidence testing repeatable instead of ad-hoc.
  • gaia eval agent --compare doc fix (CLAUDE.md) — the example combined --compare with --category, which skips the eval entirely and falls back to a saved baseline that usually doesn't exist → No saved baseline found. Now shows the run-then-compare two-step. Why: anyone following the doc hit a dead end instead of an eval + comparison.

Test plan

  • gaia-testing is discovered with valid frontmatter (appears in the available-skills list).
  • Triggering (validated 100% precision/recall in a 20-query blind 3-judge simulation): "test this feature on hardware with screenshots" / "validate the release end-to-end" consult gaia-testing; "run gaia eval agent on rag_quality", "is the app running?", and "write a unit test for X" do not.
  • Corrected --compare example matches src/gaia/cli.py: confirm via gaia eval agent --help that --compare takes BASELINE CURRENT (two scorecards) and runs no eval.
  • python util/lint.py passes (docs/skill-only change; no runtime code paths touched).

itomek added 2 commits June 2, 2026 18:33
Runs unit -> integration -> real-world (on-device) tiers and collects screenshots, logs, traces, and per-operation timing to the local machine for review without a remote login. The real-world target is read from declared config (a Dev/Test Machines list), else the local machine; tiers scale to the request. Opus plans and judges (reading screenshot pixels and cross-checking source); Sonnet executes. Hardened by a six-agent adversarial review: capability pre-flight before the approval gate, concrete verification commands, and credential/untrusted-ref safety rules.
--compare only diffs two scorecards (BASELINE CURRENT) and runs no eval; the previous example combined it with --category/--agent-type, which skips the eval entirely and falls back to a saved baseline that usually does not exist on a fresh checkout. Show the run-then-compare two-step instead.
@github-actions github-actions Bot added the devops DevOps/infrastructure changes label Jun 2, 2026
@itomek itomek self-assigned this Jun 2, 2026
@itomek
itomek marked this pull request as ready for review June 2, 2026 22:45
@itomek
itomek requested a review from kovtcharov-amd as a code owner June 2, 2026 22:45
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Two tightly scoped changes: a correct --compare doc fix and a new real-world test harness skill. Both are accurate, well-structured, and solve real problems. One minor nit on a shell one-liner in the skill; nothing blocks merge.


Summary

The CLAUDE.md fix is accurate — confirmed against cli.py:2167 and runner.py:1416: --compare takes BASELINE CURRENT and skips the eval when present, so the original combined form silently discarded the --category run and failed with "No saved baseline found". The new two-step form is correct. The gaia-testing skill is thorough and consistent with CLAUDE.md conventions: it references the right default port (localhost:4200, confirmed at runner.py:225), correctly serialises evals, and handles the no-GPU case by pre-flighting before the approval gate rather than silently degrading mid-run.


Issues Found

🟢 ls -t baseline discovery is unreliable on a fresh checkout (SKILL.md:78)

The Phase 4 hint suggests deriving the baseline path with:

ls -t tests/fixtures/eval_baselines/*/scorecard_<cat>.json | head -1

-t sorts by mtime. On a fresh git clone, every file in tests/fixtures/ gets the same mtime (the checkout timestamp), so ls -t | head -1 returns an arbitrary file — not the newest baseline. Verified on this repo: all three scorecard_rag_quality.json baselines show Jun 2 22:46.

Derive the baseline path by sorting directory names lexicographically (deterministic, model-first ordering) instead of by mtime, which is unreliable on fresh checkouts:
`ls tests/fixtures/eval_baselines/*/scorecard_<cat>.json | sort | tail -1`

For a skill file this is advisory, but an executor following it literally could silently compare against the wrong baseline.


Strengths

  • CLAUDE.md fix is surgically correct. The # NOTE: comment explains the --compare semantics clearly, the two-step sequence matches runner.py:1416's compare_scorecards(baseline_path, current_path) signature, and the BASELINE/CURRENT ordering aligns with the cli.py:2167 help string. Anyone who hit the "No saved baseline found" dead end will immediately see what changed.
  • Skill security rules are solid. Credential non-echo, mode-700 artifact dirs, untrusted-ref callout at the approval gate, and the planted-fact retrieval proof requirement are all present and non-negotiable rather than "best effort" recommendations.
  • No-hardware case degrades loudly and early. Excluding impossible tiers in Phase 0 and stating the reason — rather than silently dropping them mid-run — matches CLAUDE.md's "fail loudly" rule.

Verdict

Approve. The ls -t nit is purely advisory in a skill file and doesn't change the correctness of either the CLAUDE.md fix or the skill's logic. Safe to merge.

- Add a Hard rule: proof of a fix/implementation is a screenshot or a live browser (Chrome/Chromium) capture, never a prose claim; surface it to the user and attach it on a PR. Phase 5 now says to drive the UI live in a browser and screenshot each step.
- Phase 4: stop deriving the eval baseline with 'ls -t' — a fresh clone stamps every baseline with the checkout mtime so '-t' picks arbitrarily (per PR #1372 review). Select the baseline matching the model under test instead (dirs are <model>-<hash>).
@itomek

itomek commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks — valid catch on the ls -t baseline hint. Confirmed: on a fresh clone every baseline shares the checkout mtime, so ls -t | head -1 picks arbitrarily. Fixed in 2177e98a: the skill now selects the baseline matching the model under test (dirs are named <model>-<hash>) and explicitly warns off mtime sorting — rather than ls -t, or a lexicographic hash sort, which still would not reliably be the newest. The --compare doc fix and the rest of the skill are unchanged.

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Solid PR — the --compare doc fix is correct and the gaia-testing skill is well-designed; two minor nits worth tightening before the skill is used at scale.

Summary

The --compare correction in CLAUDE.md addresses a real footgun: the old combined --category --compare <one-path> form skips the eval entirely and compares the passed path against an auto-saved baseline that typically doesn't exist, returning No saved baseline found. The fix correctly splits it into a run-then-compare two-step. The gaia-testing skill is a substantive addition — the Opus-judges/Sonnet-executes role split, planted-fact retrieval proof, GPU-actually-in-use confirmation, and pre-flight tier exclusion are all well-thought-out and directly address the v0.20 RC failure modes described in the PR. No correctness bugs found.

Issues

🟢 Minor — Phase 4 eval step doesn't show the corrected two-step pattern (SKILL.md:79)

The skill tells the executor to "run gaia eval agent --category <cat> --agent-type <type> against the committed baseline" and then "verify the --compare invocation from --help" — but leaves the actual two-step pattern implicit. Someone following only the SKILL (not CLAUDE.md) could reconstruct the old broken form. Since this PR's other change exists specifically to fix that confusion, the SKILL should be consistent.

2. Run `gaia eval agent --category <cat> --agent-type <type>` and note the run directory it prints (`Output: eval/results/<run-id>/`). Then compare against the committed baseline — two explicit paths, BASELINE then CURRENT:
   ```bash
   gaia eval agent --compare \
     tests/fixtures/eval_baselines/<model-hash>/scorecard_<cat>.json \
     eval/results/<run-id>/scorecard.json

Do not sort by mtime (ls -t) — a fresh clone stamps every baseline with the checkout time, so -t picks arbitrarily. Pick the baseline matching the model under test (ls tests/fixtures/eval_baselines/*/scorecard_<cat>.json).


### 🟢 Nit — CLAUDE.md comment overpromises (`CLAUDE.md`, new line 3 of the hunk)

"it prints the path of the scorecard it wrote" — the eval actually prints the run *directory* (`Output: eval/results/<run-id>/`), not the scorecard file. The `<scorecard-the-eval-just-wrote>` placeholder then leaves the reader to guess the filename.

```suggestion
# NOTE: `--compare` only DIFFS scorecards (BASELINE CURRENT) — it does NOT run an eval.
#       Run the eval first; it prints the run dir — the scorecard is <run-dir>/scorecard.json.
gaia eval agent --category rag_quality --agent-type doc
# → prints: Output: eval/results/<run-id>/
gaia eval agent --compare \
  tests/fixtures/eval_baselines/gemma-4-e4b-d71cd914/scorecard_rag_quality.json \
  eval/results/<run-id>/scorecard.json

Strengths

  • The hard rules block (SKILL.md:32–42) is the right structure — invariants stated once, phases reference back rather than repeat. Particularly good: the untrusted-fork warning, the "sanitize before surfacing" credential rule, and "No Claude attribution in any artifact."
  • Phase 0's pre-flight tier exclusion before the approval gate (rather than mid-run silent degradation) matches GAIA's fail-loudly standard and avoids the approval bait-and-switch where a user says yes to a real-world run that then silently becomes unit-only.
  • The --compare CLI fix is verified against the actual argument parser (cli.py:2164–2167, cli.py:3750–3769) and the behaviour is exactly as described.

Verdict

Approve with suggestions. Neither nit is blocking — the SKILL is correct and safe to ship as-is — but the Phase 4 two-step pattern fix would prevent a repeat of the exact confusion the CLAUDE.md change resolves.

- SKILL.md Phase 4: show the explicit run-then-(--compare BASELINE CURRENT) commands so the skill is self-consistent and can't be read as the old broken combined form.
- CLAUDE.md: the eval prints the run *dir* (Output: eval/results/<run-id>/), not the scorecard path; say so and make the CURRENT path concrete (<run-id>/scorecard.json). Verified against runner.py:1706 (print) and :1339 (scorecard.json).
@itomek

itomek commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks — both nits addressed in 849be900:

  • Phase 4 two-step (SKILL.md): the skill now shows the explicit run → --compare BASELINE CURRENT commands inline, so it can no longer be reconstructed as the old combined form.
  • CLAUDE.md run-dir wording: corrected — the eval prints the run directory (Output: eval/results/<run-id>/), not the scorecard path; the CURRENT path is now concrete (eval/results/<run-id>/scorecard.json). Verified against runner.py:1706 (the Output: print) and :1339 (scorecard.json).

On the failed Test GAIA CLI on Linux (Full Integration) check: that's a transient Hugging Face 429 Too Many Requests while Lemonade pulled unsloth/Qwen3-0.6B-GGUF (huggingface_hub.errors.HfHubHTTPError → PullError), unrelated to this docs-only diff. The push above re-triggered the check; it should go green once HF isn't rate-limiting.

@itomek
itomek enabled auto-merge June 2, 2026 23:13
@itomek
itomek disabled auto-merge June 2, 2026 23:13
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Clean, well-scoped docs-only PR that fills a real operational gap: evidence-backed hardware testing was ad-hoc before, and the --compare example was broken for anyone following the doc. Both changes are accurate and consistent with each other.


Summary

Two independent fixes land together: the new gaia-testing skill codifies the multi-tier, evidence-first testing workflow that caught the .pptx RAG regression; the CLAUDE.md eval example is corrected to show the mandatory two-step (run then compare). The skill content is consistent with the CLAUDE.md fix — both document --compare BASELINE CURRENT as a diff-only operation. No runtime code is touched; no regression risk.


Issues Found

🟢 Minor — <run-id> placeholder leaks into a comment that describes its own output (CLAUDE.md:150)

The inline comment # → prints: Output: eval/results/<run-id>/ uses the same <run-id> token as the command that immediately follows it. A reader following the doc has to infer "copy the ID from the printed line and substitute it in the next command." The skill's Phase 4 makes this explicit with prose; CLAUDE.md doesn't. This is a cosmetic nit, not a blocker.

# → prints: Output: eval/results/<run-id>/   ← copy this ID; use it below

🟢 Minor — baseline-discovery footgun documented in the skill but not in CLAUDE.md

The skill's Phase 4 warns: "do not sort by mtime (ls -t): a fresh clone stamps every baseline with the checkout time, so -t picks arbitrarily." The same footgun applies to anyone following the CLAUDE.md example directly. The two docs are independently useful, so this isn't an inconsistency that blocks, but a one-liner in the CLAUDE.md example comment would close the gap for readers who never open the skill.


Strengths

  • Accuracy throughout. The two-step eval example in CLAUDE.md matches the skill's Phase 4 exactly; the argument order (BASELINE CURRENT) is called out in the comment and reflected in the command — no room for transposition errors.
  • Security-conscious skill design. mode 700 for the run dir, explicit credential redaction before surfacing artifacts, and the untrusted-ref hard rule before execution are all present and actionable, not just advisory.
  • Graceful degradation without silent fallback. Impossible tiers are excluded in Phase 0 with an explicit reason — the no-hardware path is a stated exclusion, not a silent pass — which follows the CLAUDE.md "fail loudly" rule.

Verdict

Approve. Both changes are correct, consistent, and address concrete gaps. The two nits above are cosmetic; neither touches correctness. Ready to merge.

@itomek
itomek enabled auto-merge June 2, 2026 23:13
CLAUDE.md eval example: flag that the printed run-id must be copied into the --compare command, and carry the skill's 'don't ls -t the baselines (fresh-clone mtime is uniform)' warning into the example so readers who never open the skill still get it.
@itomek

itomek commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator Author

Both nits were already addressed in 4d5967bb (pushed just before this review surfaced):

  • run-id copy hint — CLAUDE.md:292 now reads # → prints: Output: eval/results/<run-id>/ ← copy that run-id into the compare below.
  • mtime footgun — CLAUDE.md:293–294 now carries the skill's warning into the example: don't ls -t the baselines; a fresh clone stamps them all with the checkout time, so an mtime sort picks arbitrarily.

No thread to resolve here (this review posted as an issue-level comment, not line-anchored). Also confirming the Test GAIA CLI on Linux (Full Integration) check went green on 849be900 — the earlier red was a transient Hugging Face 429, unrelated to this docs-only diff.

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Two clean changes that fix a real user pain point and add a well-thought-out testing workflow. Both are ready to merge; one minor nit worth a quick look before the squash.

Summary

The --compare doc fix resolves a broken workflow — the old single-command example silently skipped the eval and fell back to a non-existent baseline, leaving anyone following the docs stuck. The gaia-testing skill is comprehensive: multi-tier, evidence-backed, with credential safety and untrusted-ref warnings that align with GAIA's fail-loudly philosophy. The two changes are internally consistent (the skill's Phase 4 eval commands already follow the corrected two-step pattern).

Issues Found

🟢 Nit — Output: path schematic shows relative form; actual output is absolute (CLAUDE.md:149, SKILL.md:83)

Both the CLAUDE.md update and the skill show:

# → prints: Output: eval/results/<run-id>/

The actual output from runner.py:1706 is f"Output: {run_dir}" where run_dir = REPO_ROOT / "eval" / "results" / run_id — an absolute path like /home/user/gaia/eval/results/eval-20250601-143022. A user who sees the full absolute path and compares it to the comment may be briefly confused.

The <run-id> placeholder is clearly a template, so the intent is unambiguous, but the schematic could be tightened:

# → prints: Output: /path/to/gaia/eval/results/<run-id>   ← copy that run-id into the compare below

(Same one-liner fix applies to SKILL.md:83.) No functional impact — this is cosmetic only.

Strengths

  • The ls -t warning is genuinely subtle and correct. A fresh git clone stamps every restored file with the checkout time, making mtime-sort useless for picking the right baseline. Worth calling out in both the CLAUDE.md and the skill.
  • The skill's "Roles" split (Opus judges + Sonnet executes) and the planted-facts requirement address the exact failure mode cited in the PR description — a headline feature that looked green in CI but was hard-blocked in the UI. Requiring pixel-level screenshot judgment and unguessable injected values closes that gap more rigorously than any unit test can.
  • The phased gate structure (impossible tiers excluded before the approval gate, not silently mid-run) directly follows GAIA's fail-loudly rule and makes the skill safe to run on machines that hold credentials.

Verdict

Approve with suggestion. The nit above is optional; the core of both changes is correct and ready to merge.

…e first

A dogfood run surfaced only the dGPU box and never mentioned the NPU box also declared in config. Phase 1 now: enumerate every declared machine + hardware class, list-and-ask when several fit, and treat hardware-specific tests (e.g. the NPU device path) as REQUIRING the matching box rather than silently falling back to a GPU/CPU box and reporting that path as tested.
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Two correct, well-crafted documentation changes. The CLAUDE.md fix resolves a concrete dead-end (combining --compare with --category/--agent-type caused --compare to short-circuit via sys.exit() at cli.py:3787 before the eval ever ran, so the evaluation never happened). The gaia-testing skill is comprehensive, follows GAIA conventions, and fills a real gap.

Issues Found

🟢 Minor — --compare one-path shorthand undocumented in SKILL.md (SKILL.md:82–88)

The CLI supports gaia eval agent --compare <single-path> (compares against eval/results/baseline.json), documented in the CLI help at cli.py:2073. SKILL.md and CLAUDE.md both show only the two-path form. That's the right call for the skill (the two-path form is unambiguous and explicit), but it may surprise contributors who see the one-path example in --help. No change needed here — just noting it's intentional.

Strengths

  • CLAUDE.md fix is precise and verified. The compare_scorecards(baseline_path, current_path) signature at runner.py:1416 confirms the argument order (baseline first, current second), the two-step split, and the --compare-exits-before-eval behavior at cli.py:3787 are all correctly reflected in the updated example. The ls -t / mtime warning is a non-obvious gotcha (fresh clone stamps every baseline with checkout time) that will save real confusion.

  • Skill design is well-scoped. The "When this fires" scaling table, the Phase 0 pre-flight exclusion, and the single approval gate before real-world spin-up together mean no-hardware contributors get unit/integration output without wasted prompting, while on-hardware runs get proper evidence. The planted-fact retrieval proof (violet-otter-92, desk 17C) is a crisp way to distinguish live retrieval from cached/hallucinated responses.

  • Safety rules are comprehensive and consistent with CLAUDE.md. Credential scrubbing before surfacing artifacts, mode 700 run directories, untrusted-ref acknowledgment gate, and the explicit "No Claude attribution" rule all match project conventions. The GPU-actually-in-use check (read the backend's own device line from its startup log, sysfs VRAM fallback for Vulkan backends where ROCm/NVIDIA tooling is absent) catches a class of false passes that a 200 OK health check would miss.

Verdict

Approve. Both changes are correct, the CLAUDE.md fix is verified against source, and the skill is production-ready. No blocking issues.

itomek added 2 commits June 2, 2026 20:26
…ase 5

Phase 5 referenced 'the browser tooling' generically. Now it recognizes the MCP browser servers available in the environment (Playwright MCP, Chrome DevTools MCP, Claude-in-Chrome) and the local-vs-remote selection rule: use the MCP when the UI is reachable from Claude's host (local or tunnelled); for a remote un-tunnelled target run headless Playwright on the box, since the MCP browser runs on Claude's host and can't see the box's localhost. Recognizes the tools without hard-depending on them.
…I MCP server

The skill now knows and uses its testing tools by name, up front: browser-automation MCPs (Playwright MCP, Chrome DevTools MCP, Claude-in-Chrome) with the local-vs-remote selection rule, and GAIA's own Agent UI MCP server — 'gaia mcp serve' wraps the :4200 backend and exposes its tools over MCP (:8766 / --stdio for Claude Code), a browser-free surface for tool-level assertions. Also names 'gaia mcp agent' and 'gaia eval agent'. Phase 5 now references the section instead of inlining the browser detail. Availability-aware, not hard dependencies.
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Two clean, independently useful changes — the CLAUDE.md fix is correct and verified against source, and the new skill fills a real documentation gap. Approve with one minor suggestion.


Summary

The --compare fix in CLAUDE.md repairs a real dead-end: the old one-path form triggered RESULTS_DIR / "baseline.json" lookup (cli.py:3756-3764), not the fixture path the example passed — so anyone following the doc hit "No saved baseline found" immediately. The new two-step (run, then explicit BASELINE CURRENT) is confirmed correct: cli.py:3769 calls compare_scorecards(compare_paths[0], compare_paths[1]) and runner.py:1706 prints Output: {run_dir} with the format the comments describe. Baseline path tests/fixtures/eval_baselines/gemma-4-e4b-d71cd914/scorecard_rag_quality.json exists in the repo. The gaia-testing SKILL.md is thorough, well-phased, and internally consistent with the CLAUDE.md changes.


Issues Found

🟢 Minor — <run-id> placeholder requires manual copy (SKILL.md:83, CLAUDE.md:152)

Both the skill and the CLAUDE.md example ask the reader to copy the <run-id> from the first command's output into the --compare invocation by hand. A shell variable avoids the transcription error:

run_id=$(gaia eval agent --category rag_quality --agent-type doc | grep "^Output:" | awk '{print $NF}' | xargs basename)
gaia eval agent --compare \
  tests/fixtures/eval_baselines/gemma-4-e4b-d71cd914/scorecard_rag_quality.json \
  eval/results/${run_id}/scorecard.json

The same pattern applies in SKILL.md Phase 4. One illustrative update in each file is enough — no need to rework every example.


Strengths

  • Doc fix is verifiable end-to-end. Every claim in the CLAUDE.md update — argument order, no-eval-on-compare, Output: format, baseline file path — checked out against live source. Nothing asserted from memory.
  • Hard rules in the skill address real failure modes. GPU-in-use verification, planted-fact retrieval proof, mode 700 artifact dirs, and credential redaction all close gaps that bite teams using less structured review processes.
  • Consistent across both files. SKILL.md Phase 4's eval block and CLAUDE.md both show the two-step (run → compare) with BASELINE before CURRENT, and both carry the ls -t warning — no drift between them.

Verdict

Approve — no blocking issues. The <run-id> shell-variable suggestion above improves usability but is not a merge blocker.

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

The gaia-testing skill fills a real gap — it codifies the "does it actually work on hardware" evidence loop that caught real regressions in the v0.20.0 RC — and the CLAUDE.md fix corrects a broken two-in-one --compare example that silently skipped the eval entirely. Both changes are technically accurate against the source they describe.

Issues

🟢 Minor — Output: comment slightly misleads about what to copy (CLAUDE.md, added block; SKILL.md:93)

Both the CLAUDE.md block and the skill's Phase 4 example instruct the user to "copy that run-id into the compare below", but AgentEvalRunner._print_summary (src/gaia/eval/runner.py:1706) prints an absolute path (Output: /path/to/gaia/eval/results/eval-20260603-123456), not the relative one shown in the example. The user would need to extract just the leaf segment to build the relative path — which isn't obvious. Simpler to tell them to use the path as printed and append /scorecard.json.

For CLAUDE.md, the added comment lines could read:

# → prints an absolute path, e.g. /…/eval/results/eval-YYYYMMDD-HHMMSS/
# Append /scorecard.json to that path in the --compare call below.

Apply the same adjustment to SKILL.md line 93 for consistency.


🟢 Minor — gaia mcp agent help string says "Test MCP orchestrator agent" (cli.py:2397) — not a bug in this PR, but the skill (SKILL.md:26) describes gaia mcp agent "<request>" as a first-class testing surface. Worth a brief parenthetical that the command runs against the MCP bridge (port 8765 default) rather than the Agent UI backend (4200), so a reader knows they need the bridge running, not just gaia mcp serve. No code change needed — a one-line clarification in the skill suffices.

Strengths

  • Technically accurate on every verifiable detail. gaia mcp serve defaults (port 8766, --backend 4200, streamable-http transport, --stdio flag) all verified against cli.py:2439-2444, 6694. --compare BASELINE CURRENT order verified against cli.py:3768-3769. Baseline filename pattern (scorecard_<cat>.json) matches the actual files in tests/fixtures/eval_baselines/.
  • The mtime/ls -t warning is genuinely useful. A fresh clone stamps every baseline file with the checkout time, making mtime sort pick arbitrarily — exactly the kind of non-obvious foot-gun that costs time in practice. Calling it out explicitly is the right call.
  • Hard rules are well-scoped. Mode 700 artifact directories, credential redaction, untrusted-ref disclosure at the approval gate, and the "not exercised ≠ passed" distinction are all things that would otherwise be re-learned per-run.

Verdict

Approve. The one nit about the Output: comment is cosmetic and doesn't affect correctness — a contributor following the example as written would still land on the right path after a moment's thought. Both changes are ready to merge.

… (PR #1372)

From the latest PR #1372 review nits + the team's lean pass:
- Output path: the eval prints an ABSOLUTE path (runner.py:1706), not a relative run-id. Fixed the wording in SKILL.md Phase 4 (prose + example) and the CLAUDE.md example to 'use the printed path, append /scorecard.json'.
- gaia mcp agent: note it targets the MCP bridge (:8765), not the :4200 Agent UI backend, so it needs the bridge running (not gaia mcp serve).
- a11y: Phase 5 now points at chrome-devtools-mcp:a11y-debugging for free accessibility coverage when a UI is up.
- Lemonade: Phase 5 references lemonade-client-patterns.md/CLAUDE.md for startup gotchas instead of re-deriving them. (Kept Phase 4's eval-backend block intact — it is the gaia.ui.server :4200 backend, not Lemonade-client, so the team's 'fold into lemonade-client-patterns' rec was a misread.)
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Documentation-only PR with no runtime code changes. The gaia-testing skill is well-structured and the CLAUDE.md fix corrects a real workflow breakage. Both changes are safe to ship.


Summary

The skill covers a genuine gap — the v0.20 RC found bugs that pytest couldn't catch, and this gives contributors a repeatable, evidence-backed path for on-hardware validation. The hard-rules section is rigorous (planted facts, credential hygiene, no-silent-fallbacks), the Opus-plans/Sonnet-executes split is the right model for cost-vs-quality, and the multi-phase structure maps cleanly onto CLAUDE.md's existing eval and testing guidance. The CLAUDE.md fix repairs a broken two-in-one --compare example that sent anyone following it to a dead end. Quality is high throughout.


Issues Found

🟢 Minor — <printed-output-path> placeholder will silently break if copy-pasted (CLAUDE.md:163, SKILL.md:94)

Both the CLAUDE.md snippet and the Phase 4 snippet use the literal string <printed-output-path>/scorecard.json. The surrounding comment explains what to substitute, but any reader who pastes the block verbatim will get a shell error rather than a clear message. Capturing the output path into a variable would be safer and no more complex:

In CLAUDE.md:

gaia eval agent --category rag_quality --agent-type doc 2>&1 | tee /tmp/eval_out.txt
# Output: line prints the absolute run dir; append /scorecard.json for --compare.
# Pick the BASELINE matching your model; don't `ls -t` to find it — a fresh clone stamps
# every baseline with the checkout time, so an mtime sort picks arbitrarily.
OUTPUT_DIR=$(grep "^Output:" /tmp/eval_out.txt | awk '{print $2}')
gaia eval agent --compare \
  tests/fixtures/eval_baselines/gemma-4-e4b-d71cd914/scorecard_rag_quality.json \
  "${OUTPUT_DIR}/scorecard.json"

Same pattern applies to the equivalent block in SKILL.md:92–95.


🟢 Minor — Phase 4 says "confirm it answers" but shows no readiness check (SKILL.md:87)

Start the eval backend first … and confirm it answers before running the eval.

The prose says to wait for the backend, but the bash block jumps straight to gaia eval agent. A reader who follows the snippet literally will race the server. One line suffices:

python -m gaia.ui.server --port 4200 --host 127.0.0.1 &
until curl -sf http://127.0.0.1:4200/health > /dev/null; do sleep 1; done
gaia eval agent --category <cat> --agent-type <type>

Strengths

  • Hard rules section is production-grade. Credential hygiene (treat them as write-only at parse time), untrusted-ref disclosure at the approval gate, per-run mode-700 artifact dirs, and planted-fact two-place verification (screenshot + raw trace) are all the right calls — and directly traceable to real past incidents cited in CLAUDE.md.
  • No-hardware degradation happens before the approval gate (Phase 0). Excluding impossible tiers up front rather than mid-run is exactly the "fail loudly" pattern CLAUDE.md requires; the skill makes this structural.
  • CLAUDE.md fix is a genuine bug fix. Passing --category alongside --compare skipped the eval and silently fell back to a baseline that usually doesn't exist — the new two-step makes the correct workflow unambiguous and machine-checkable.

Verdict

Approve. Both nits are copy-paste ergonomics, not correctness issues — the prose and comments explain the intent correctly. The skill adds real value and the CLAUDE.md repair unblocks a workflow that was silently broken. Safe to merge as-is; suggestions above are optional but would reduce friction for first-time users.

@itomek
itomek added this pull request to the merge queue Jun 3, 2026
Merged via the queue into main with commit 58ad3c9 Jun 3, 2026
22 checks passed
@itomek
itomek deleted the tmi/amazing-blackburn-70a847 branch June 3, 2026 01:03
kovtcharov-amd pushed a commit that referenced this pull request Jun 3, 2026
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.
pull Bot pushed a commit to bhardwajRahul/gaia that referenced this pull request Jun 3, 2026
amd#1375)

## Why this matters

The `gaia-testing` skill and the user-level generic `testing` skill
share 12 of 13 trigger phrases verbatim, so inside the GAIA repo there
was no reliable signal to pick the GAIA-specialized one — a "QA this
feature" request could land on the generic skill and miss GAIA's eval
baselines, ports, and CLI cross-checks. The description now claims
precedence and leads with GAIA-only key terms, closing the ambiguity.

It also teaches Phase 1 machine-discovery to follow the declared
`~/.claude/memory/dev-machines.md` pointer (so a developer's full
machine registry is discovered, not just the inline `## Dev Machines`
summary), and adds a **Real-World Testing with Claude Code** section to
`docs/reference/dev.mdx` so other developers can set this up. Smaller
polish: time-proofed the model-tier names, canonicalized "machine"
terminology, compressed three dense passages.

Follow-up to amd#1372 (which added the skill). No standalone issue —
surfaced while reviewing that skill against Anthropic's skill-authoring
guidance.

## Test plan
- [ ] `gaia-testing` frontmatter within limits — description well under
1024 chars; body 136/500 lines
- [ ] Skill registry shows the updated description with the precedence
clause ("in place of the generic `testing` skill")
- [ ] `docs/reference/dev.mdx` renders; new section uses placeholder
hostnames only
- [ ] `grep -nE "t-nx|180115|tomas@"` on both changed files returns
nothing (no internal hosts/credentials)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops DevOps/infrastructure changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants