Advanced Technical Details
Circuit breaker, precision, rate limits, storage limits, and error handling details
Written By pvdyck
Last updated 18 days 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 ceiling reached ($X.XX). Execution stopped to prevent overcharge. Current: $Y.YYYY, attempted: $Z.ZZZZLegacy workflows (pre-circuit-breaker) do not have maxExecutionPrice validation. Migration is recommended.
Monetary Precision
Precision Standard
All monetary values use 6-decimal precision to avoid rounding errors:
1 inUSD = 1,000,000 units (6-decimal precision, like cents to dollars)
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.