R035Long-horizon agents and durable executionAn agent that runs for weeks is a distributed system: a durable execution runtime (Temporal and Cloudflare Workflows built in full; Restate, Inngest, DBOS named) logs each external call's input and output before the next runs, so a crash replays recorded steps and runs the first unrecorded one for real; waits are logged timers that hold no compute. Worked example: a purchasing agent with one entity workflow per SKU starting a child workflow per replenishment (quotes, PO draft, manager approval wait, order, 7-day supplier wait). The runtime covers four generic failures (waits, failed calls, retries via idempotency key, concurrency); the harness owns five: outcomes the agent never saw (treat timeouts as unknown, compensate with cancel_order), stale facts (re-check price in code before commit), code changing under running work (pin rules_version, Parallel Change), unbounded history (continue_as_new, curated model memory), and untrusted text (tools gated by state; only the manager's signal approves). "Durable is not the same as correct." Caveats: Temporal and Cloudflare behaved differently on a mid-wait rule change; cold replay about 2 s vs under 0.1 s; one Python example; security out of scope.durable-executionagent-harnessagent-reliabilitydistributed-systemsagent-architecturehuman-oversight