Preflight checks
Before a proxy request is sent to a provider, Kylon may check:- Whether the workspace has enough credits
- Whether the request is allowed by a script-level credit policy
- Whether the available credit grants permit a restricted capability, when an endpoint requires one
402 payment_required. A credit
grant that does not cover a restricted capability returns 402 with
error: "credit_capability_required". Suspended or deleting workspaces are
refused with 403. A matching agent skill is not a provider-route gate.
Script calls can also hit a call burst limit or a script credit limit. Both
return 429 with error: "script_credit_rate_limited". Where the call limiter
counts a request, the response includes these headers, including on streamed
responses and errors:
Follow the returned
guidance and Retry-After: script-policy refusals can
require user approval before work resumes. Do not assume an immediate retry
will resolve a credit or policy refusal.