Execution/Poll for status

Poll for status

Poll deterministically until terminal state. Polling is a contract, not a tight loop.

Cadence

StateClient behavior
After submitWait 30 seconds.
Pending/runningPoll every 120 seconds.
Completed/failed/cancelledStop polling and call hermes_result once.
Past 600 secondsReport timeout/stuck.

Terminal states

completed, failed, and cancelled are terminal.