Conversation
cYoren
left a comment
There was a problem hiding this comment.
Verified the call contract against tools/skills_tool.py: _find_all_skills accepts skip_disabled only, so dropping include_editorial fixes the 500. Adding autospec=True makes the regression test enforce that signature instead of allowing invalid kwargs through.
Local focused verification on current origin/main checkout: scripts/run_tests.sh tests/gateway/test_api_server.py::TestSkillsEndpoint::test_skills_returns_list_envelope — 1 test passed. No GitHub CI checks are reported yet. GitHub does not grant my account explicit repository access for an approval review, so I am leaving this verification as a comment rather than claiming approval.
|
Closing this in favor of the earlier #108968. Both PRs remove the same unsupported The |
What does this PR do?
GET /v1/skillsreturned HTTP 500 becauseAPIServerAdapter._handle_skillspassedinclude_editorial=Trueto_find_all_skills, whose current public signature acceptsonly
skip_disabled. This change calls the discovery helper with its supported argumentso authenticated API clients receive the normal sorted skill-list envelope.
Related Issue
Fixes #120831
Type of Change
Changes Made
gateway/platforms/api_server.py— removed the obsoleteinclude_editorialkeyword from the skills discovery call.tests/gateway/test_api_server.py— made the endpoint mock signature-aware, so incompatible helper keywords make the HTTP contract test fail.How to Test
HERMES_PYTHON=/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 scripts/run_tests.sh tests/gateway/test_api_server.py -k test_skills_returns_list_envelope -q— 1 passed/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m ruff check gateway/platforms/api_server.py tests/gateway/test_api_server.py— All checks passedEvidence
500and the autospecced helper raisedTypeError: got an unexpected keyword argument 'include_editorial'.name,description, andcategoryfields.Checklist
Code
Documentation & Housekeeping
cli-config.yaml.example: N/ACONTRIBUTING.mdorAGENTS.md: N/A