Spaces:
Running on Zero
Running on Zero
Commit History
-
Keep grants per nonce so queued and overlapping runs keep their grant
Bobby +1: Claude Opus 5.5Settled grants now live for an hour from settlement instead of expiring 180 s after the request, so a run that waited in the GPU queue still uses the grant the API already counted. Entries are keyed by nonce and settled by the nonce in the Space-signed receipt, so a second run in the same session no longer cancels the first. A granted entry that lapses before use is denied with a Space-signed refund, and every failed run in a session gets its own refund. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>7df6873 -
Enforce embed grants for a listed set of parent origins
Bobby +1: Claude Opus 5.5LABS_EMBED_GRANTS accepts 1 (every eligible embed) or a comma-separated list of parent origins, so production can require grants for localhost and dev parents before app.skyebrowse.com runs the grant-aware webapp. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014n5MPma6mGJT5Jyj8Y3ivAea9eede -
Run every grant natively first and refund failed generations
Paid and free grants both use the visitor quota first and reach the Pro fallback only on a ZeroGPU quota denial. A non-quota failure sends a Space-signed refund receipt to the parent so the free use is returned. Records the hard rule never to enable LABS_EMBED_GRANTS on production before the API and webapp handshake are live. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>574875b -
Gate generations behind webapp grants and a public free limit
Embedded generations ask the SkyeBrowse webapp for a signed grant before any GPU work when LABS_EMBED_GRANTS is set; shared grants defer straight to the Pro fallback with the grant nonce. Public browser visits get LABS_PUBLIC_FREE_LIMIT generations per visitor, then a sign-up link. Both are inert until their Space variables are set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1ac53f4