Skip to content

feat(skills): validate every hub skill end to end - #6493

Merged
kovtcharov-amd merged 18 commits into
amd:mainfrom
kovtcharov:kalin/skills-hub-validation
Nov 19, 2026
Merged

kovtcharov-amd merged 18 commits into
amd:mainfrom
kovtcharov:kalin/skills-hub-validation

Conversation

@kovtcharov

@kovtcharov kovtcharov commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Hub skills were checked for format and safety, but nothing checked that the agent could find and use them. Four of the 17 published skills had no eval, and nothing read the live hub back after a release. Now every one of the 28 skills in hub/skills is either covered by at least two eval scenarios (17) or listed as deferred with its reason (11, mostly ones that need audio, a calendar, a desktop pane or a file-opening rubric), and adding a skill without making that choice fails a test. A test checks plain requests find each hub skill through hub search (two queries per skill, all in the top 3, on top of #6445's word-by-word search), and each skills release installs every skill back from the hub to check its version and signature.

The new evals also caught three real problems, fixed here:

  • Compact models (Gemma-4-E4B) still had three email tools. Asked to triage mail, Gemma read the mailbox and told the user it was empty. Main now withholds them too; this PR adds a test that keeps the list in step with the email mixin.
  • The hub install scenarios couldn't pass. The flagship bundles every hub/skills skill, so "install rss-digest" never needed an install. They now use fixture-only skills, cleared before each attempt so run order can't cause false failures, which explains the old baseline's failures there.
  • On compact models, list_skills now says installing skills needs a larger model.

Still open: Gemma doesn't relay that limit. It ignores the hint and, with no email tools, presents GitHub notifications as the inbox. Two compact-tier scenarios record this. Fixing it needs prompt work measured across Gemma's full eval.

Related: #5423 (suggest unloaded skills) is the kind of change the new gaia_skills_selection category measures.

Checks only run when skill files change: unit guards ride test_unit.yml's existing filter, the scenario coverage check runs in test_eval.yml, the skill audit lists the changed skill's scenarios, and the hub check runs after a real publish. Nothing new runs on unrelated PRs.

Test plan

  • pytest tests/unit/eval/ tests/unit/test_skill_tier_matrix.py tests/unit/test_skill_hub_findability.py tests/unit/test_verify_published_skills.py tests/unit/agents/test_model_features.py plus the existing skill suites — 2,640 passed after merging main. Three runner tests fail only while another eval holds the machine-wide eval lock and pass alone.
  • python util/verify_published_skills.py against the production hub: 17/17 install, AMD-signed, at the repo's versions
  • Local agent eval (Strix Halo, judge claude-sonnet-4-6). On Qwen3.6, every new or changed scenario passes after re-running one-off failures. On Gemma, 1 of 3 compact-tier scenarios passes. Details are in docs/plans/skills-hub-validation.md.
  • python util/lint.py --all: clean apart from the two Windows-only Pylint errors already on main
  • Next RC eval: watch gaia_skills_tasks, gaia_skills_selection (new), gaia_skills_lifecycle, gaia_email; re-capture the skill-category baselines from that sweep
🔍 Technical details
  • Hub search itself is main's (fix(skills): match skill hub searches word by word #6445); this PR only adds tests/unit/test_skill_hub_findability.py over the real catalogue.
  • New runner tags requires_sd, requires_music, requires_full_tier, requires_compact_tier → SKIPPED_NO_MODEL with the reason.
  • util/skill_eval_scenarios.py maps skills → scenarios (shared by the coverage test and skill_audit.yml); util/run_eval_lane.py --scenario runs a subset locally.
  • tests/unit/test_skill_tier_matrix.py pins that compact cannot run calendar, data-explore, image-gen, inbox-triage, send-email.

Today's checks prove a hub skill is well-formed and safe to merge, not that
the flagship agent can find and use it: six of 17 skills have no task eval,
22 of 23 task evals name the skill to load, hub search is a literal substring
match, and the compact tier silently can't run several skills.

The plan adds coverage and tier guards, the missing scenarios, real-catalogue
search and post-publish checks, a skill-selection eval category, a per-PR
targeted eval link, and fresh Gemma and Qwen baselines.
No new check runs on PRs that don't touch skills: unit guards ride the path-filtered unit lane, the eval dispatch hint rides the skill audit's changed-skill detection, and the live hub check runs on release or dispatch instead of weekly.
Hub search missed most plain requests ("track price", "meeting notes") because
it matched the whole query as one phrase, four published skills had no eval at
all, and nothing checked the live hub after a release. Search now matches per
word and ranks the right skill first for 28 of 28 plain queries against the
live catalogue (11 found before).

- Ten task scenarios close the coverage gaps (inbox-triage, transcribe-meeting,
  image-gen, music-gen, plus edge cases for coding and recommendations); the
  coverage test credits gaia_skills_tasks scenarios, so DEFERRED is empty.
- New gaia_skills_selection category: pick the skill from a plain request,
  pick none, pick between overlapping skills, decline honestly on compact.
- requires_sd / requires_music / requires_*_tier tags skip with
  SKIPPED_NO_MODEL instead of failing on the wrong machine or model.
- Tier matrix test pins which hub skills compact models cannot run.
- util/verify_published_skills.py installs every skill back from the hub and
  checks version and AMD signature; release_skills.yml runs it after publish.
- skill_audit.yml lists a changed skill's scenarios and the dispatch input.
- run_eval_lane.py takes --scenario to run a subset locally.
The flagship bundles every hub/skills skill (from the checkout's hub/skills,
or packaged), so rss-digest is always installed and the scenarios that asked
the agent to find, install, or report it as missing tested a state no user
can reach. They now use unit-convert, which exists only on the fixture hub.
This is why skills_install_from_hub and skills_hub_search failed: the agent
loaded the bundled copy instead of installing one.
…s more

A compact model (Gemma-4-E4B) was meant to have no email access, but three
email tools were missing from the withheld list. Asked to triage mail, it read
the mailbox through list_waiting_on_you and told the user the inbox was
clear. All eight email tools are now withheld, and a test checks the list
against every tool the email mixin registers.

On a compact model, list_skills now says that searching and installing skills
needs a larger model, so the agent can tell the user instead of suggesting a
workaround. Found by the new compact-tier skill-selection evals.
skills_install_from_hub now installs unit-convert and runs first in the same
eval home, so skills_list_installed found it installed and the agent rightly
said so. It now asks about experimental-notes, which the hub refuses to
install. Both pass in run order. The plan doc records the local eval run.
@github-actions github-actions Bot added documentation Documentation changes devops DevOps/infrastructure changes eval Evaluation framework changes tests Test changes performance Performance-critical changes agents labels Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

This PR checks that the agent can actually find, install and use each hub skill. Hub search now matches each word of a request instead of the whole phrase, every hub skill gets at least two eval scenarios, a release step installs every published skill back from the live hub, and compact models lose the last three email tools they were still offered. The logic is sound and well tested. I found no blocking issues, only four small fixes to eval and test robustness:

  • Two install scenarios share one fixture skill and depend on running in order. One installs it and leaves it installed. Re-running the search scenario, or any subset run that skips the clean-up, then finds the skill already installed and fails for a reason unrelated to the agent.
  • One expected answer says a skill can be installed when the hub refuses it. That could lead the judge to reward a wrong claim.
  • The new "needs a larger model" hint is ambiguous about what the user should pick.
  • One test hard-codes a skill's current version, so a routine version bump breaks it with a confusing error.

The Gemma behaviour the PR leaves open (it ignores the hint and presents GitHub notifications as the inbox) is documented and covered by two compact-tier scenarios. That's the right way to handle it.

Real-world evidence

N/A: no evidence bundle was produced for this run. The changed surfaces are agent tool output, hub search and eval/CI tooling. Agent behaviour on real inference is deferred to the strix-halo lane and the next RC sweep. This environment had no Python install with GAIA and pytest, so I didn't run the new unit tests; the verdict rests on static review. The author's test plan reports verify_published_skills.py passing 17/17 against the production hub, plus local Strix Halo eval results.

🔍 Technical details

Issues

🟢 Lifecycle scenarios share unit-convert state and depend on run order (eval/scenarios/gaia_skills_lifecycle/skills_install_from_hub.yaml)
Alphabetical order works today: skills_hub_install_use_remove installs then removes, skills_hub_search sees it absent, and skills_install_from_hub installs it and leaves it installed. A re-run of a flaky skills_hub_search, or --scenario skills_install_from_hub,skills_hub_search (now easy with the new run_eval_lane.py --scenario), runs against a home where it is already installed. Consider a final turn that removes it (remove_skill), or a scenario-level note in GAIA_FIXTURE_VALUES.md that these three are order-coupled.

🟢 skills_list_installed expected answer contradicts its own setup (eval/scenarios/gaia_skills_lifecycle/skills_list_installed.yaml:350)
The setup says the hub refuses experimental-notes (unsigned), but the expected answer says it "can be searched/installed from the hub". An agent that correctly says it's unsigned could be marked down.

      expected_answer: "No — experimental-notes is not installed"

🟢 Ambiguous compact hint (src/gaia/agents/tools/skill_library_tools.py:285-289)
"they can pick one in the model list" reads as picking a skill. The model relays this text, so make the action explicit:

                payload["hint"] = (
                    "Searching and installing skills from the hub needs a larger "
                    "model. If the user wants a skill not listed here, tell them "
                    "so; they can switch to a larger model in the model list."
                )

If you change it, update the "needs a larger model" assertion in tests/unit/test_skill_tier_matrix.py only if needed (it still matches).

🟢 Hard-coded version in test_a_stale_hub_version_fails (tests/unit/test_verify_published_skills.py:2070)
text.replace("version: 1.0.3", "version: 1.0.4") is a silent no-op once summarize is bumped. The check then passes and the test fails with assert not True, with no hint why. Derive the bump from the parsed version, e.g. v = parse_skill_file(skills_dir / "summarize").version then replace f"version: {v}", and assert on f"hub lists {v}".

Notes (no action needed)

  • _tier_mismatch resolves the default model through GaiaConfig per scenario. That's cheap and consistent with the per-category home run_eval_lane.py writes default_model into.
  • I probed rank_skill_entries against the real hub/skills descriptions with very short tokens (pr, ai, go). They return several loose matches, as expected for prefix matching. Nothing misranked for realistic queries.

Strengths

  • The findability test publishes every real hub skill through the real publish path and pins 35 plain queries. A description edit that makes a skill unfindable now fails before release.
  • test_the_email_feature_names_every_email_tool derives the list from the mixin's AST, so a future email tool can't silently stay on compact models. That's the exact gap this PR found.
  • verify_published_skills.py fails loudly on an unreachable hub and refuses an offline cached catalogue rather than passing against stale data.

Take main's word-by-word hub search (amd#6445) in place of this branch's ranking; the findability test now checks the intended skill is in the top 3, which main's search meets for all 35 queries. Read the summarize version in the stale-hub test instead of pinning 1.0.3.
…matrix

CI rejected the new requires_sd/music/tier tags and flagged the capability
matrix stale after gaia_skills_selection was added. Also clearer compact hub
hint, and list-installed no longer expects the agent to call an unsigned
skill installable.
ityashag pushed a commit to ityashag/gaia that referenced this pull request Nov 11, 2026
…md#6527)

A local eval run used to stage its fixtures into the shared
`~/gaia-eval` and serve them on fixed port 8765. A second run on the
same machine overwrote the first run's fixtures and collided on the
port, and two scorecards built from different fixtures compared as if
they were the same. Now each local run gets its own fixture root, fake
`gh`, signed fixture hub and a free port, and every scorecard records
which fixtures, scenarios and Lemonade build produced it. `--compare`
warns when those differ, and `--require-same-fixtures` refuses to
compare them. CI behaves exactly as before: without the new environment
variables nothing is rewritten.

This conflicts with amd#6493 in the eval lane script; whichever
merges second needs a small rebase.

## Test plan
- [ ] `python -m pytest tests/unit/eval tests/test_eval.py` (2,231
passed locally after merging main)
- [ ] `python util/run_eval_lane.py --category gaia_core --out <dir>`
stages under `<dir>/eval-root`, serves on a free port, and leaves
`~/gaia-eval` untouched
- [ ] `gaia eval agent --compare A B --require-same-fixtures` exits 3
when the two scorecards came from different fixtures

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
Main now withholds every email tool, including the send-email skill's, on
compact models, so its model_features wins; the AST guard is kept and now
compares only the mixin's own tools. Main also added five hub skills
(analyze-recording, calculators, calendar, guides, send-email): they get
findability queries, are deferred in the scenario coverage check with main's
reasons, and compact's unavailable set gains calendar and send-email. The tier
test reads a skill's own tools too, as the agent does. 'rename file' never
named file-ops' description and only ranked by tie order, so it is replaced
with 'create a new file'.
…-coupled hub scenarios

The flagship's capability-matrix test pins the list of gaia_* scenario
categories, so adding gaia_skills_selection failed Test Gaia Agent; the pin
and the runner's expected categories now include it.

The three unit-convert hub scenarios share one GAIA home per category and only
pass in alphabetical order; the fixture notes now say so, so a partial re-run
with --scenario does not report a failure that is the harness's, not the
agent's.
…n's new skills

Main added five hub skills after this plan was written; the coverage,
findability and tier rows now say how each is handled.
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Merged main in and fixed the red Test Gaia Agent check: the flagship's capability-matrix test pins the list of eval categories and didn't know about the new gaia_skills_selection. All four review findings are now handled; three were already fixed by the last commit before this pass.

  • Main has since added five hub skills. Each gets findability queries; they're listed as deferred in the coverage check with main's reasons, and compact's "can't run" set now includes calendar and send-email.
  • rename file stopped finding file-ops once analyze-recording arrived. The description never said "rename"; it only ranked by tie order. It's swapped for create a new file.
🔍 Technical details
  • Order-coupled unit-convert scenarios: documented in GAIA_FIXTURE_VALUES.md (one home per category; re-run skills_hub_search alone or before skills_install_from_hub).
  • skills_list_installed expected answer, compact hint wording, and the hard-coded summarize version were already fixed in b9f883c / 0805ecf.
  • Main's model_features (all 8 email tools plus send-email/* and calendar/*) wins the conflict; the AST guard now compares only the mixin's own tools. The tier test reads a skill's own namespaced tools via _skill_tool_names, matching the agent.
  • Verified: eval unit suite, model features, tier matrix, findability, verify-published, run_eval_lane, capability matrix, tests/test_eval.py — all pass; black/isort clean.

@kovtcharov-amd

kovtcharov-amd commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Not merging yet: the three hub-install scenarios share one installed skill, so one agent failure can turn into extra false failures in CI. If skills_hub_install_use_remove fails to remove unit-convert (the scenario itself names "only unloads it" as a likely failure), the next two scenarios start with it already installed and can fail for reasons that have nothing to do with search or install. A PASS→FAIL against the flagship baseline would then point at the wrong scenarios. Documenting the order doesn't help here, because CI does run them in order.

Fix: have the runner put unit-convert into the state each scenario declares before it starts, instead of relying on the scenario before it.

🔍 Technical details
  • All three run in one GAIA home per category, sorted by id. The runner never resets skill state between scenarios, so whatever skills_hub_install_use_remove leaves behind carries into skills_hub_search, whose criteria assume "unit-convert is not installed, so it can only come from the hub", and into skills_install_from_hub.
  • The runner also re-runs a scenario in the same home after a mid-scenario Claude account switch (_announce_switch). A re-run of skills_install_from_hub after turn 1 finds the skill already installed. Its "no install_skill call is a CRITICAL FAIL" rule then scores the agent's correct "already installed" reply as a failure.
  • Suggested shape: a scenario setup key, along the lines of mailbox_fixture and memory_clear, such as setup.skills_absent: [unit-convert]. The runner deletes those skills from the eval home before turn 1. Put it on all three scenarios, and on select_compact_hub_unavailable if it also expects unit-convert to be absent. Add a runner unit test showing a leftover install gets cleared. The GAIA_FIXTURE_VALUES.md note can then go.

The three hub-install scenarios share one category home, so a unit-convert
install left behind by one scenario (or by a refused attempt the runner re-runs
after an account switch) made the next one fail for reasons unrelated to search
or install, and pointed baseline regressions at the wrong scenario.

Scenarios now declare `setup.skills_absent: [unit-convert]` and the runner
removes those skills, with their lock entries, from the eval home before each
attempt. Names are validated as bare skill names at load, a skill in a
read-only root is a setup error, and the runner refuses to touch the real
~/.gaia. The order note in GAIA_FIXTURE_VALUES.md is gone.
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Fixed: each hub-install scenario now starts with unit-convert uninstalled, whatever ran before it. A leftover install from an earlier scenario, or from a refused attempt re-run after an account switch, can no longer cause extra false failures.

  • The three hub-install scenarios and select_compact_hub_unavailable declare setup.skills_absent: [unit-convert]. The runner removes those skills from the eval home before every attempt.
  • The "run in alphabetical order" note is gone from GAIA_FIXTURE_VALUES.md.
🔍 Technical details
  • _apply_skills_absent runs in run_scenario_subprocess next to _apply_mailbox_fixture. That is once per attempt, so the post-_announce_switch re-run gets it too. It uses remove_skill against <GAIA_HOME>/skills, so the lock entry goes as well.
  • Fails loudly as SETUP_ERROR without launching the driver when: GAIA_HOME is unset or is the real ~/.gaia; the skill lives in a read-only root (bundled / .claude/skills); or a name is not a bare skill name. validate_scenario rejects bad names and non-list values at load. A skill that is already absent is not an error.
  • CI is unaffected: each category's home comes from eval_gaia_home.py env, which sets GAIA_HOME.
  • Tests: tests/unit/eval/test_skills_absent.py covers clearing a leftover install with its lock entry, other skills left alone, the not-installed case, traversal and absolute names (../victim, /etc/passwd, C:/Windows, a/b), the real-home refusal, a read-only root, and the setup error skipping the driver. test_quota_resume.py adds a two-account run where the fake driver installs the skill each time. It asserts both runs of the switched scenario start without it; with the setup call removed it fails [True, True] != [False, False].
  • pytest tests/unit/eval tests/test_eval.py -n 4: 2248 passed, 30 skipped. black/isort clean.
  • Documented in docs/guides/eval-scenarios.mdx (Key Field Rules).

@kovtcharov-amd

kovtcharov-amd commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Not merging yet: the new skill reset can still delete a skill from the real ~/.gaia. If an eval home's skills folder is a symlink or junction into the real home, the guard passes and unit-convert is removed from the user's real skills. A second path to the real home (e.g. //localhost/C$/Users/<you>/.gaia) also gets past it.

Fix: refuse when the resolved skills root is (or sits inside) the real home, comparing with os.path.samefile rather than path equality, and add tests for both cases.

🔍 Technical details
  • Probe at 141c8bc, temp USERPROFILE, Windows junctions:
    • eval home skills -> junction to <fake user>/.gaia/skills -> _apply_skills_absent returns None, and the real unit-convert is deleted.
    • GAIA_HOME=//localhost/C$/.../<fake user>/.gaia -> returns None, and the real unit-convert is deleted.
    • These cases are refused correctly: a junction on the eval home itself, a junction on the skill dir (skill_directory refuses it), unset/blank/~/%USERPROFILE%/trailing-slash/upper-case/.. values, and GAIA_CONFIG_DIR.
  • runner.py _apply_skills_absent: home.resolve() == default_gaia_home().resolve() only checks the home. skill_directory then checks the target against root.resolve(), so a linked root moves both sides of that check together. A check like os.path.samefile((home/"skills").resolve(), default_gaia_home()/"skills") (when both exist), or a refusal when (home/"skills").resolve() is under default_gaia_home().resolve(), closes both gaps. test_skills_absent.py has no symlink or junction cases.

@kovtcharov-amd kovtcharov-amd added the enhancement New feature or request label Nov 12, 2026
@kovtcharov-amd kovtcharov-amd added the skill Claude Code skill files (.claude/skills/) label Nov 12, 2026
… link

The skills reset compared only the eval home's path with the real home, so an
eval home whose skills folder was a junction into ~/.gaia, or a second spelling
of the real home such as a UNC admin share, passed the check and lost real
installed skills. The reset now refuses when the resolved skills root is, or
sits inside, the real home by path or file identity, and fails closed when it
cannot tell.
# Conflicts:
#	src/gaia/eval/runner.py
#	tests/unit/eval/test_skill_scenario_coverage.py
Restores LF line endings on the eval runner after the merge, runs the local
skills reset before the backend memory reset so a refused reset never needs a
backend, and gives main's four new hub skills findability queries and the tier
test's stub the catalogue method main added.
@kovtcharov-amd kovtcharov-amd added the ready_for_ci Run CI workflows on draft PR without requesting review label Nov 16, 2026
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Fixed the real-home finding: the skills reset now refuses when the eval home's skills folder leads into the real home through a link, a junction or a second spelling such as a UNC admin share, and it refuses when it can't tell. Main is merged in.

🔍 Technical details
  • _reaches_real_home compares the resolved home and skills root with the resolved real home by path, then each existing ancestor by os.path.samefile; an OSError counts as reaching it.
  • New tests in test_skills_absent.py: skills root linked to the real skills folder and to a folder inside it (junction on Windows, symlink elsewhere), a //localhost/C$ spelling of the real home (Windows), and a stat failure. All four fail without the fix.
  • The skills reset now runs before main's new memory reset, so a refused reset never needs a backend.
  • Merge fixes: main's four new hub skills (automations, log-triage, meeting-actions, report-from-sources) get findability queries and deferred coverage entries; the tier test's stub gains main's _catalog_skills. The runner's line endings went back to LF.

Main moved skills_install_from_hub to the hub-only date-format fixture; it
keeps that and also clears date-format before each attempt. Main's new
office-docs and browser-pane skills get findability queries, office-docs is
listed as deferred eval coverage, and report-from-sources gets queries that
match its new description. The tier test's stub gains main's installed-skill
tracking.
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Main is merged in, and every skill now in hub/skills (28) is either covered by eval scenarios (17) or listed as deferred with a reason (11). The coverage test fails if a new skill is neither.

  • Main had moved skills_install_from_hub to its own hub-only date-format fixture. That stays, and the scenario now also clears date-format before each attempt, so it no longer touches unit-convert at all.
  • Main's new office-docs and browser-pane skills get findability queries; office-docs is deferred (needs a rubric that opens the produced files).
🔍 Technical details
  • report-from-sources changed its description on main, so one-pager and turn my spreadsheets into a report stopped finding it. Replaced with report from my source files and newest copy of each dataset.
  • The tier test's stub needed main's _installed_skills / _installed_skills_listed.
  • skills_list_installed keeps this PR's "hub refuses it: unsigned" expected answer over main's "can be installed" wording (the earlier review finding).
  • Earlier red Unit Tests run was test_failed_turn_cause_clip, unrelated and passing after the merge. Dependency Review fails on repo settings (dependency graph not enabled), not this PR.
  • Locally: tests/unit/eval, tests/test_eval.py, fixtures, verify-published, model features, capability matrix, findability, tier matrix, starter skills: 2,728 passed. black/isort clean.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 19, 2026
Merged via the queue into amd:main with commit b9eccf3 Nov 19, 2026
43 of 46 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the kalin/skills-hub-validation branch November 19, 2026 22:42
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 enhancement New feature or request eval Evaluation framework changes performance Performance-critical changes ready_for_ci Run CI workflows on draft PR without requesting review skill Claude Code skill files (.claude/skills/) tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants