Module execution

Module execution 

Source
Expand description

Execution boundary constants (inspired by OpenAI Codex agent loop patterns) Reference: https://openai.com/index/unrolling-the-codex-agent-loop/

Constants§

DEFAULT_TIMEOUT_SECS
Default timeout for agent loop execution (10 minutes) Used when no timeout is specified or when 0 is passed
MAX_TIMEOUT_SECS
Maximum allowed timeout (1 hour) Any user-specified timeout above this is capped
MIN_TIMEOUT_SECS
Minimum timeout (10 seconds) Prevents unreasonably short timeouts that would cause failures

Functions§

resolve_timeout
Resolve timeout with deterministic bounds (never returns 0 or unbounded) This pattern ensures execution always has a bounded duration.