Skip to content

fix(skills): skip invalid catalog hits in GCP skill search - #6839

Closed
a2105z wants to merge 1 commit into
google:mainfrom
a2105z:fix/gcp-skill-search-skip-invalid-frontmatter
Closed

fix(skills): skip invalid catalog hits in GCP skill search#6839
a2105z wants to merge 1 commit into
google:mainfrom
a2105z:fix/gcp-skill-search-skip-invalid-frontmatter

Conversation

@a2105z

@a2105z a2105z commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • GCPSkillRegistry.search_skills() no longer dies on the first catalog entry whose name fails Frontmatter validation (for example first-party names with dots like cloud.google.com-agent-platform-eval-flywheel).
  • Invalid hits are skipped and logged; valid hits are still returned, matching get_skill() which already rejects those names.

Closes: #6838

Test plan

  • I have added or updated unit tests for my change.
  • All unit tests pass locally.

Unit Tests:

uv run python -m pytest tests/unittests/integrations/skill_registry/test_gcp_skill_registry.py -q
24 passed

Covers mixed valid/invalid catalogs and an all-invalid catalog returning [] instead of raising.

Checklist

  • I have read the CONTRIBUTING.md document.
  • I have performed a self-review of my own code.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

Made with Cursor

search_skills constructed Frontmatter for every Agent Registry hit, so
one dotted first-party name raised ValidationError and emptied
discovery. Skip entries that fail client-side validation and return
the remaining hits.

Fixes google#6838
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GCPSkillRegistry.search_skills crashes on the first catalog entry that fails Frontmatter validation

2 participants