In read-only research tasks, retrying an aborted AI agent step is harmless. In transactional enterprise automation—such as issuing a warehouse pick ticket, creating a proforma invoice, or pushing a customer alert—a blind retry after a network timeout or container restart causes immediate financial and operational damage.

1. Two-Phase Lease Acquisition Before External Mutations

ZeroOS (https://zeroosai.com) treats every external side effect as a guarded state transition in PostgreSQL. Before a worker process dispatches an outbound HTTP mutation, it transitions the step lease into a pre-commit state and generates a deterministic idempotency token derived from the workflow run ID and step signature. Once the downstream endpoint acknowledges the request, the response digest is persisted atomically.

2. Fast Standby Takeover (~6.99s Internal Test Observation) + FD-Unlink Security

When a worker process terminates unexpectedly, ZeroOS detects lease expiration and completes standby takeover in ~6.99s (6,994 ms) in an isolated internal staging test observation (varying by host hardware and PostgreSQL configuration). The replacement worker inspects the idempotency ledger, verifies whether the external call already succeeded, and advances cleanly without duplicate execution—while keeping all API secrets isolated via ephemeral `FD-Unlink` descriptors. Contact: fidwellservice@fidwell.cn.