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

OperationPrecisionNotes
Price storage6 decimalsFixed-point in contracts
Cost tracking6 decimalsAccumulated during execution
Settlement6 decimalsBatched every 5 minutes
Display2 decimalsRounded for UI (e.g., $0.10)

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

ItemLimit
Credential or execution state1 MB
Workflow JSON1 MB (uncompressed)
File attachment1 MB per file
Webhook URL length512 characters

Rate Limits

OperationLimitWindow
Webhook triggers100/IP/hourRolling window
API calls10,000/user/hourRolling window
Credential updates100/user/hourRolling window

Error Handling

Retry Policy

Error TypeRetried?Details
Transient platform errorsYesUp to 3 attempts with exponential backoff
API timeout (external provider)Noβ€”
Circuit breakerNoβ€”
Out of budgetNoβ€”

Failed payment operations are logged and retried automatically only for transient errors. Persistent failures are flagged for review.

Log Retention

Log TypeRetention
Execution logs30 days
Error logs90 days
API logs30 days
Credential access audit365 days

Related