Advanced Technical Details
Circuit breaker, precision, rate limits, storage limits, and error handling details
Written By pvdyck
Last updated About 3 hours ago
Advanced Technical Details
This page covers details for advanced Builders and Producers who want a deeper understanding of platform behavior.
Circuit Breaker
The circuit breaker stops execution if costs exceed the user-defined maximum (maxExecutionPrice). A small tolerance is applied to avoid false positives from floating-point rounding.
When the circuit breaker triggers, you see:
Cost exceeded maximum. Authorized: ${maxExecutionPrice}, Actual: ${actualCost}Legacy workflows (pre-circuit-breaker) do not have maxExecutionPrice validation. Migration is recommended.
Monetary Precision
Microtoken Standard
All monetary values use 6-decimal microtoken precision to avoid rounding errors:
1 inUSD = 1,000,000 microtokens
Rounding Strategy
- Toward zero for refunds (favors user)
- Ceiling for charges (prevents undercharging)
- Banker's rounding for ties (.5 rounds to nearest even)
Storage Limits
Rate Limits
Error Handling
Retry Policy
Failed payment operations are logged and retried automatically only for transient errors. Persistent failures are flagged for review.