Skip to content

docs: keep open routes out of UsageRail in Python, and cover reservations and the default plan in the agent skill - #2

Merged
supertj merged 3 commits into
mainfrom
feature/sdk-skill-followup
Nov 9, 2026
Merged

supertj merged 3 commits into
mainfrom
feature/sdk-skill-followup

Conversation

@supertj

@supertj supertj commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Updates skills/add-usagerail/SKILL.md, byte for byte the same as the upstream copy.

  • Python apps can now keep health checks and webhooks out of UsageRail: an ASGI wrapper for FastAPI/Starlette that keeps the shutdown flush, a second Flask app dispatched by path, and a Django middleware subclass. Flask answers CORS preflight before UsageRail. The old line saying FastAPI can't leave a route out is gone.
  • Routes that call track() should set "Reserve with track()" to their largest per-request cost, with a concurrent test near the limit.
  • Make default only applies to new customers; existing ones are moved by hand.

Each snippet was run as written against the SDK's test fixtures: open paths answer without a key, paid routes return 401 without one, and the buffered counts go out at shutdown.

@supertj
supertj merged commit 6852f6b into main Nov 9, 2026
3 checks passed
@supertj
supertj deleted the feature/sdk-skill-followup branch November 9, 2026 17:24
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