Skip to content

fix(python): harden discovery provider matching#30

Merged
devteapot merged 1 commit intomainfrom
fix/python-discovery-matching
Apr 7, 2026
Merged

fix(python): harden discovery provider matching#30
devteapot merged 1 commit intomainfrom
fix/python-discovery-matching

Conversation

@devteapot
Copy link
Copy Markdown
Owner

Summary

  • harden Python discovery matching so empty app names do not silently match the wrong provider and ambiguous fuzzy matches fail cleanly instead of guessing
  • normalize provider name matching so unique variants like whitespace-free names still resolve predictably across descriptors and connected providers
  • make discovery access tracking safe outside an active event loop and add focused tests for empty, ambiguous, and normalized matching cases

Testing

  • PYTHONPATH="/Users/carlid/dev/slop-python-core/packages/python/slop-ai/src" "/Users/carlid/dev/slop-slop-slop/packages/python/.venv/bin/python" -m pytest "/Users/carlid/dev/slop-python-core/packages/python/slop-ai/tests/test_discovery.py"

This prevents empty or ambiguous app names from silently matching the wrong provider and keeps access tracking safe when discovery is called outside an active event loop. It adds targeted discovery tests for empty, ambiguous, and normalized name resolution.
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
slop-demo Ready Ready Preview, Comment Apr 7, 2026 4:40pm
slop-docs Ready Ready Preview, Comment Apr 7, 2026 4:40pm
slop-landing Ready Ready Preview, Comment Apr 7, 2026 4:40pm
slop-playground Ready Ready Preview, Comment Apr 7, 2026 4:40pm

Request Review

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.

1 participant