Agent runtime
The environment that executes an agent: models, tools, credentials, state, limits, logging, and policy checks.
An agent can give the right answer and still create the same record twice or overwrite a newer change. Test what happens when a request repeats, a tool times out or a run stops halfway through. Check the saved result and the recovery procedure before giving the agent access to business systems.
By Naman Kumar · Updated November 2, 2026
Our work-coordination implementation uses a SQLite store, version checks and replay receipts. The dated test record documents these local engineering checks.
| Failure tested | Expected result | Recorded result |
|---|---|---|
| The store closes and reopens, then receives the same request. | The replay receipt returns and the two original items remain, without another copy. | Passed: test_restart_and_replay. |
| An older revision tries to overwrite a newer edit. | The write is rejected; the newer title and its history remain. | Passed: test_stale_correction_preserves_history. |
| A batch contains an unsupported evidence quote. | The batch rolls back without leaving partial records. | Passed: test_failed_quote_rolls_back_whole_batch. |
Inspect the test assertions and associated case study. These checks cover the local store and test fixtures. For an external action, such as updating a CRM, also verify the provider-side record after an interruption; a local replay test cannot establish that behavior.
Start with a concrete drill: let the target system save a change, then interrupt the run before its local checkpoint. Before retrying, reconcile the target record and action receipt. The operator should be able to determine whether to resume, stop or request review. Record the expected state, observed state and unresolved cases alongside the evaluation scorecard.
| Control | Question it answers | Failure it prevents |
|---|---|---|
| Durable state and checkpoints | What has completed, what remains, and with which inputs? | Starting over or losing progress after interruption. |
| Idempotency and action receipts | Has this exact side effect already happened? | Duplicate emails, payments, records, or updates. |
| Timeouts and bounded retries | How long may a step wait, and when should it try again? | Hung runs and infinite retry loops. |
| Read-after-write and reconciliation | Did the target system reach the intended state? | Assuming a successful API response equals a correct outcome. |
| Fallbacks and circuit breakers | What happens when a model, provider, tool, or source is unhealthy? | Cascading failure and uncontrolled spend. |
| Escalation and dead-letter queue | Where do unresolved or ambiguous cases go? | Silent abandonment and invisible backlog. |
| Versioning, canary, rollback | Which configuration produced the result, and can it be reversed? | Untraceable regressions across every workflow. |
The environment that executes an agent: models, tools, credentials, state, limits, logging, and policy checks.
The coordination of steps, tools, people, and sometimes multiple agents across a workflow.
Persisting progress so a workflow can survive process restarts, delays, approvals, and external failures.
A deterministic state machine or scheduler that manages transitions, queues, retries, and timers around AI decisions.
The surrounding code and controls that provide context, tools, memory, evaluation, and operating constraints.
A recorded state with a reason, owner, deadline, evidence and a supported way to resume the work.
Use AI to interpret the request. Use code to enforce permissions, prevent duplicate actions and handle failures. Keep identities, state transitions, limits, action receipts and recovery under code control.
Kill the process after an external write but before the local checkpoint. Return a timeout after the target system actually succeeded. Repeat the same event. Reorder two events. Revoke a credential. Change a source record during the run. Remove the preferred model. Send malformed tool output. Let an approval expire. Then verify that the system either completes exactly once, waits visibly, uses an approved fallback, or escalates with enough evidence to continue.
OpenAI’s enterprise material separates business context from agent execution and describes evaluation, permissions, auditing, and observability as part of operating agents in production. Its investment guidance says production funding must include model access, integrations, controls, reliability and change management. See OpenAI Frontier and AI investment guidance.
Where is run state stored, and can it be inspected without asking the model? What uniquely identifies the run, step, input, and external action? Which operations are safe to retry? How does the system know whether a timed-out write actually succeeded? What happens when the preferred model, vector store, CRM, or human approver is unavailable? How are stuck runs discovered, assigned, and resumed?
Ask to see a failure drill, not only a successful demo. Interrupt a run between its external action and local checkpoint. Replay the event. Change the workflow version while old work is waiting. Confirm that the result happens once, carries the correct version and approval, and can be reconciled from durable records. If the team cannot explain the recovery path before the failure, the production operator will have to invent it under pressure.
| Required feature | Operational proof | Required outcome |
|---|---|---|
| Service objectives and capacity | Criticality tier, availability and latency targets, capacity limits, dependency map, and overload behavior. | The workflow meets its service commitment or degrades safely and visibly. |
| Durable, integrity-protected state | Transactional checkpoints, stable run and action IDs, tamper evidence, backups, retention, and reconciliation. | Progress and material records survive interruption without silent loss or duplicate effects. |
| Business continuity and disaster recovery | Recovery time and recovery point objectives, tested restore, alternate operating procedure, communications, and named owner. | Critical work can resume within the approved window, including when automation is unavailable. |
| Dependency and provider resilience | Health checks, timeouts, circuit breakers, approved fallbacks, regional failure tests, and supplier incident paths. | A vendor, model, tool, or region failure does not create cascading or unauthorized behavior. |
| Controlled releases | Validated version package, segregation of environments, change approval, canary, rollback, configuration history, and emergency change record. | Changes are attributable, limited in blast radius, and reversible. |
| Incident operations | Alert ownership, severity, containment, preservation, root cause, regulatory/customer notification assessment, and corrective-action verification. | Failures become managed incidents with evidence rather than unexplained agent behavior. |
Exactly-once behavior is usually an end-to-end business property, not a database setting. A reliable system combines idempotent actions, receipts, reconciliation, and a human procedure for the cases technology cannot resolve. Required recovery and reporting obligations vary by sector and jurisdiction.
Reliability, security, traceability, and continual improvement align with the objectives described by the NIST AI RMF and ISO/IEC 42001.
The agent coordination case study describes checks that bind requirements and evidence to specific file versions. A later change can invalidate an earlier pass until the affected work has been reviewed again.
The agent-coordination case includes a three-size retrieval check, the Python runner and its dated results. It measures returned context and checks that the relevant completed work and evidence remain available.