fix(skills): name stale index entries instead of generic fetch failure - #106901
nikkoxgonzales wants to merge 1 commit into
Conversation
_resolve_source_meta_and_bundle already distinguishes index-hit-without- files from unknown identifiers, but do_install printed the same generic 'Could not fetch' for both, sending users off to re-check spellings for what is actually a stale skills.sh entry. Split the message, and add a staleness caveat to do_search results from skills.sh. Fixes NousResearch#3259. Supersedes NousResearch#3261 (stale since July — re-applied onto the current _print_fetch_failure helper).
SummaryNames stale skills.sh index entries explicitly at install time and adds a search-time caveat, instead of reporting a generic fetch failure. Small, focused UX fix with tests for both the stale and unknown-identifier paths. FindingsNon-blocking (nit) — sid = getattr(source, "source_id", None)
src_id = sid() if callable(sid) else (sid or "the registry")Non-blocking (nit) — TestsNew tests cover stale-entry messaging ( VerdictLooks good. The two nits above are optional hardening; nothing blocking. |
|
Merged via #108906 — your commit is on |
What does this PR do?
_resolve_source_meta_and_bundlealready distinguishes index-hit-without-files from unknown identifiers, butdo_installprinted the same generic 'Could not fetch' for both — sending users off to re-check spellings for what is actually a stale skills.sh entry. Split the message (stale branch names the index + suggests search), and add a staleness caveat todo_searchresults from skills.sh.Related Issue
Fixes #3259
Supersedes #3261 (stale since July — re-applied onto the current
_print_fetch_failurehelper, with credit to Mibayy)Type of Change
Changes Made
hermes_cli/skills_hub.py:_print_fetch_failuretakesmeta/sourceand branches stale vs unknown;do_installpasses them;do_searchfooter warns on skills.sh resultstests/hermes_cli/test_skills_hub.py: 3 tests (stale message, generic preserved, search caveat)How to Test
pytest tests/hermes_cli/test_skills_hub.py -q→ 11 passedChecklist
Code
ruff checkon both changed files passesDocumentation & Housekeeping