Repository navigation
fix(skills): tell the model to combine skills, add pairs_with companions - #5422
Conversation
The skill catalogue said "when the work matches a skill, call load_skill", which models read as one skill per task: a deck built from a folder of documents loaded only the deck skill, and a workbook request that three skills fit loaded none. - The catalogue header now says to load every skill whose description matches any part of the request (what it reads and what it produces), and to load each one before starting even when they overlap. - New optional metadata.gaia.pairs_with names companion skills. Pairing is mutual, rendered on the catalogue line within the description budget, and load_skill names installed companions that are not loaded yet. Uninstalled names are ignored with a debug log; a non-list is an error. - data-explore, document-brief, research-report and summarize pair with office-docs (inert until office-docs ships).
… companions report-from-sources pairs with office-docs and data-explore, meeting-actions with transcribe-meeting, so the catalogue and load_skill point to them together once pairs_with (amd#5422) lands; the key is ignored until then.
|
Verdict: Approve with suggestions This PR changes how the skill list tells the model to pick skills: it should now load every skill that fits any part of a request, not just one. It also adds an optional What to watch: the new wording ("load each one, even if they overlap") could make the model load too many skills, each of which adds to the prompt. The eval in the test plan is still unchecked. It's the only check that can tell whether this helps or hurts, so name the exact categories ( Real-world evidenceN/A: no evidence bundle was produced for this run. The change is prompt text plus skill metadata, and its real effect only shows up in 🔍 Technical detailsIssues 🟢 Module docstring now narrates history, and one line runs past 120 chars ( 🟢 Name the eval categories precisely in the test plan. "skills-task scenarios" should be 🟢 Strengths
|
Pairing is mutual, so a hub skill many others pair with (office-docs once amd#5417 and amd#5421 land) collected five companions, and because the "(pairs with: ...)" note shared the 480-char description budget its description was cut. The note now has its own budget: at most three names, the skill's own pairs_with first, then "+N more". load_skill still names every unloaded companion.
|
Fixed: when #5417 and #5421 land, office-docs gets five companions, and the pairs note was cutting its description short. The note now has its own budget: it shows at most three names, the skill's own Checked against a local merge of #5417 and #5421: all catalogue tests pass and every description renders in full. |
|
Holding this for v0.25.2. It changes which skills the model loads, and v0.25.1's release eval is already measuring several other prompt and agent-loop changes, so landing it now would leave a regression with no single cause to trace back to. It's first in line once v0.25.1 ships. |
|
Took the two remaining suggestions: the catalogue docstring no longer narrates history (7309bbf), and the test plan names |
## Why this matters v0.25.2 is a bug-fix release on top of v0.25.1: setup and install no longer stop at the first failed step, shell and file access handle Windows paths and text encodings, the Agent UI and desktop app stop showing misleading states, and document search, email and skills each lose a handful of rough edges. 55 commits since v0.25.1; notes are in `docs/releases/v0.25.2.mdx` and credit 15 outside contributors. ## Test plan - [x] `python util/validate_release_notes.py docs/releases/v0.25.2.mdx --tag v0.25.2` passes - [x] `mintlify validate` (from `docs/`) passes - [x] `python util/check_doc_links.py --internal-only`, `python util/check_doc_versions.py` and `node installer/version/bump-ui-version.mjs --check` pass - [x] `python util/check_component_core_api.py --release-version 0.25.2` passes - [x] `pytest tests/unit/test_docs_json_release.py tests/unit/test_check_component_core_api.py tests/unit/test_release_tag.py tests/unit/test_hub_core_version_gate.py`: 156 passed - [ ] CI green on the merge commit - [ ] `release_train_dryrun.yml` passes on that commit before the RC tag ## Evals to re-run on the RC tag LLM-affecting PRs merged without per-PR evals; run these on `v0.25.2-rc1`: - `gaia_shell` and shell/safety (amd#5794, amd#5751, amd#5768) - `gaia_honesty` (amd#5753) - `gaia_skills_tasks` and `gaia_skills_lifecycle` (amd#5422, amd#5755) - `rag_retrieval` and `rag_quality` (amd#5742, amd#5754, amd#5761, amd#5817, amd#5812) - email scenarios (amd#5767, amd#5811) - `tool_selection` and `error_recovery` (amd#5732) - Claude provider thinking replay (amd#5072) - memory categories (amd#5818 merged; amd#5756 has not) ## Release checklist - [ ] Freeze main, wait for green CI on the exact commit, pass `release_train_dryrun.yml`, then push `v0.25.2-rc1` - [ ] Extend the changelog if main gains commits before the tag
Small local models (Qwen3.6-35B-A3B and similar) skip the skills catalogue: asked for an action tracker from meeting notes they never load the notes skill, and asked for a deck from documents they load one of the two skills it needs. Now each turn the flagship names the installed, not-yet-loaded skills that clearly match the request — one line in the turn's context — and the model decides whether to load them. Builds on amd#5422, which has landed on main. - **Suggest, never load.** The lexical auto-loader removed in amd#3764 loaded the right skill on 0 of 24 tasks. A wrong suggestion costs one line the model can ignore. - **Measured, not guessed.** On 37 invented requests across all 16 hub skills (7 that no skill should match), the default embedder gets precision 1.00 and recall 0.94, and suggests nothing for any of the 7. - **Prompt cache safe.** The line goes in the user message, so the system prompt stays byte-identical across turns. My first version put it in the system prompt, and the prefix-stability test caught it. <details> <summary>🔍 Technical details</summary> - Matching: cosine of the message (first 4,000 chars) against `name: first line of description`, with the same embedder as skill-body selection. A skill is suggested at score ≥ 0.30 and within 0.05 of the best match (loaded skills count toward the best). At most 3, then each one's unloaded `pairs_with` companions. - Calibration data (embeddinggemma-300m): the best match for each positive scored 0.30–0.67, and no negative scored above 0.26. nomic-embed-text-v2 gives 0.71 / 0.78 at the same settings, so the threshold is embedder-specific; the spec says so. - Cost: descriptions are embedded once and cached by content; one query embedding per turn. - Embedder down: no suggestion, one warning, and a 60 s back-off. Memory off: no suggestion, a debug log. Never an error. - Off switches: `GAIA_SKILL_SUGGEST=0`, `GaiaAgentConfig(skill_suggestions=False)`, fast mode, or the catalogue off. - Fixture: `tests/fixtures/skills/skill_suggestion_cases.json`. Unit tests use a deterministic fake embedder. The real-embedder calibration is opt-in (`GAIA_SKILL_SUGGEST_CALIBRATE=1`, `real_model` marker). </details> ## Test plan - [x] `pytest tests/unit/test_skill_suggester.py hub/agents/gaia/python/tests` (3 failures in `test_full_tool_bundles` / `test_manifest_tools_count_matches_real_registry` also fail on the base branch: Playwright is not installed locally) - [x] Calibration against embeddinggemma-300m: precision 1.00, recall 0.94, 0/7 negatives - [x] `python util/lint.py --all` - [ ] `gaia eval agent` on a small local model: skill-combining tasks load both skills (next RC: `gaia_skills_tasks`, `gaia_skills_lifecycle`, `gaia_tool_selection`, `gaia_core`) --------- Co-authored-by: Kalin Ovtcharov <[email protected]>
Asked to build a deck from the documents in a folder, the agent loaded only the deck skill. Given a workbook request that three skills fit, it loaded none. The skill list told it "when the work matches a skill, load it", and models read that as one skill per task. Now the list tells the model to load every skill that matches any part of the request, both what it reads and what it produces. Skills can also name their usual companions, so loading one half of a pair points the model at the other.
🔍 Technical details
CATALOG_HEADER) is rewritten. It keeps the existing points: some skills unlock a CLI, load a skill when you realise partway through that it fits, and don't reload a skill that's already loaded. It's ~135 tokens, up from ~100.metadata.gaia.pairs_with: [skill, ...]. Pairing is mutual, so one side declaring it is enough.(pairs with: a, b). The note comes out of the 480-char description budget.load_skillreturnscompanion_skillsandcompanion_hintfor companions that are installed but not loaded.SkillValidationError, same astools_required.data-explore,document-brief,research-reportandsummarizedeclarepairs_with: [office-docs], with patch version bumps. These pairs do nothing until feat(skills): office-docs skill with its own verify_workbook tool #5417 lands.pairs_withname is a real skill.office-docsis allow-listed as pending.Test plan
pytest tests/unit/test_skill_catalog.py tests/unit/test_skills_format.pypytest hub/agents/gaia/python/tests: 728 pass. The 3 failures also fail on main (Playwright not installed).pytest tests/unit -k "skill or prompt or catalog or history or hub": same failure set as main.python util/lint.py --allgaia eval agent: this changes prompt text the model reads. Comparegaia_skills_tasksandgaia_skills_lifecycleto the flagship baseline, and check whether skills loaded per scenario goes up.