Skip to content

Make the live skills-registry test resilient to catalog renames - #129

Merged
aterga merged 1 commit into
mainfrom
fix/skills-registry-live-test
Aug 12, 2026
Merged

aterga merged 1 commit into
mainfrom
fix/skills-registry-live-test

Conversation

@aterga

@aterga aterga commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Problem

skills::tests::fetches_real_registry_and_a_skill hard-codes the skill name motoko. The live registry (skills.internetcomputer.org) reorganized its catalog and split motoko into writing-motoko, migrating-motoko-actors, and troubleshooting-motoko-migrations — so the bare motoko name is gone.

The registry itself is healthy (27 skills, valid JSON), but the hard-coded assertion and the get("motoko") fetch both fail against it, turning CI red on main and every branch cut from it. This is a false failure — nothing in the product is broken.

Fix

Stop pinning one churny name. The test now:

  • asserts the catalog parses and is non-empty;
  • requires at least one of a few core skills (internet-identity, icp-cli, cycles-management) to be present — resilient to any single future rename;
  • fetches that skill's SKILL.md to keep the markdown-URL coverage.

Verified against the live registry:

test skills::tests::fetches_real_registry_and_a_skill ... ok

No behavior change — test-only.

`fetches_real_registry_and_a_skill` hard-coded the skill name `motoko`,
which the live registry reorganized into `writing-motoko` /
`migrating-motoko-actors` / `troubleshooting-motoko-migrations`. The
assertion (and the `get("motoko")` fetch) then fail against a perfectly
healthy registry, turning CI red on every branch.

Stop pinning one churny name: assert the catalog parses and is
non-empty, require at least one of a few CORE skills to be present
(tolerating any single rename), and fetch that one to check the
markdown path. Keeps the live coverage without the standing
false-failure.

Co-Authored-By: Claude Opus 5 <[email protected]>
@aterga
aterga requested review from a team and a balanced review from Copilot August 12, 2026 08:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the live skills-registry test to tolerate catalog renames while preserving registry parsing and markdown-fetch validation.

Changes:

  • Verifies the live catalog is non-empty.
  • Selects any available core skill and fetches its non-empty markdown.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@aterga
aterga merged commit bcb3e3c into main Aug 12, 2026
8 checks passed
aterga pushed a commit that referenced this pull request Aug 12, 2026
#129 landed the same repair on main from the other direction, so the two
versions of `fetches_real_registry_and_a_skill` collided. Resolved wholly in
main's favour — its test is now byte-identical here. Both dropped the pinned
`motoko` name; main's requires one of a core set
(`internet-identity`/`icp-cli`/`cycles-management`) to be present rather than
fetching whichever entry sorts first, which checks something a little stronger.
No reason to relitigate a design that is already reviewed and merged.

What this branch still carries is the half #129 did not touch: the stale
`motoko` references that are visible to MODELS and users, and that make
`icp_get_skill("motoko")` fail against the live registry —

  * `icp_get_skill`, `icp_create_canister`, `icp_install_code` tool
    descriptions, and the server instructions;
  * the two schema doc comments in `src/skills.rs`;
  * the README tool table.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01ELxH7B4rYsEmrLf8tW4Uog
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.

3 participants