Skip to content

Recognize the anonymous_daily_cap error slug#32

Merged
rhiever merged 1 commit into
mainfrom
randy/anonymous-daily-cap-error
Jun 14, 2026
Merged

Recognize the anonymous_daily_cap error slug#32
rhiever merged 1 commit into
mainfrom
randy/anonymous-daily-cap-error

Conversation

@rhiever

@rhiever rhiever commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

What

Maps the server's 402 anonymous_daily_cap response to a typed AnonymousDailyCapReached error in the CLI error contract, so anonymous callers (for example, anonymous template search or running a published template's verifier without signing in) get the server's message rendered cleanly instead of a generic server error.

Details

  • New AnonymousDailyCapReached class and anonymous_daily_cap slug-map entry in errors.py.
  • Mapping test.

Graceful degradation: older CLIs that lack the slug simply show the server message as a generic error, so this is a normal fast-follow, not a break.

Verification

pre-commit (ruff plus pyright) and the full test suite (634 tests) pass.

🤖 Generated with Claude Code

Map the server's 402 anonymous_daily_cap response to a typed AnonymousDailyCapReached error so the CLI renders the server message cleanly instead of falling back to a generic server error. Older CLIs degrade gracefully by showing the server message as a generic error.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rhiever rhiever merged commit 33fe99d into main Jun 14, 2026
1 check passed
@rhiever rhiever deleted the randy/anonymous-daily-cap-error branch June 14, 2026 20:55
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