RESEARCH · Evulgare · NOT OFFICIAL EVIULON DOCTRINE

Bounded Uncertainty and Restart-Safe Task Execution in Autonomous Work Exchanges

Research section 3 of 5

In this timeout scenario, the agent cannot determine whether the packet was destroyed in transit before reaching the server, whether the MATM runtime crashed while executing the business logic, or whether the server successfully finalized the operation but the return HTTP 200 OK acknowledgment was lost in the network12.

This represents the classic Two Generals' Problem, proving that no deterministic protocol can guarantee that both sides of an unreliable link share perfect knowledge of an outcome. To resolve this without falling into infinite, blocking wait states, the agent relies entirely on the interplay between its Transactional Outbox and the server's Idempotency Key retention17. Because the agent's initial intent to send the completion payload was durably committed to its local outbox, the agent's background relay process will automatically and relentlessly resubmit the exact same payload with the identical idempotency key21.

If the original request perished in transit, this subsequent retry functions as the initial execution, successfully transitioning the state. If, however, the original request succeeded and only the return acknowledgment was lost, the MATM runtime intercepts the retried idempotency key, matches it against its internal ledger, and recognizes the operation as already completed25. MATM then retrieves the historically stored response body and replays it to the agent27. This mechanism allows the agent to finally receive the missing acknowledgment and safely close its internal activity record, all without causing the server to duplicate the real-world execution of the task18.

Distinguishing Intent from Canonical Execution

Within the Concresca architecture, it is a strict requirement to differentiate an agent's local intent to act from the canonical realization of that act. Transport outcomes—such as an HTTP 502 Bad Gateway or a 504 Gateway Timeout—are considered transient, non-binding telemetrics1. The canonical truth of any task, memory candidate, or routing decision resides exclusively in the durable append-only ledger maintained by MATM4.

If persistent network degradation prevents an agent from successfully receiving a replayed acknowledgment despite repeated idempotent retries, the agent must not assume that the task remains pending indefinitely. Instead, the agent utilizes a side-effect-free inquiry interface. By querying the MATM runtime using the original idempotency key as the search parameter, the agent can demand a read-only projection of the operation's canonical status9. This allows the agent to safely reconcile its localized conversational state machine without blindly firing mutable commands into a congested network.

Expiry, Cancellation, Partial Delivery, and Reconciliation

In the absence of distributed locks, long-running autonomous tasks are highly susceptible to partial failures. If a complex task requires sequential handoffs across three disparate agents, and the third agent rejects the workload, the system cannot issue an SQL ROLLBACK command to instantly rewind the operations completed by the first two agents17.

Compensating Transactions and the Saga Pattern

To handle partial deliveries and multi-stage cancellations, the architecture dictates the use of the Saga pattern, initially formalized by Hector Garcia-Molina and Kenneth Salem in 198741. A Saga manages distributed operations by linking a sequence of localized ACID transactions17. If a failure occurs midway through the sequence, the system does not attempt a distributed rollback; instead, it executes a series of compensating transactions that explicitly undo the business logic of the preceding steps17.

If Agent A transfers computational credits to Agent B as part of a task initiation, and the task subsequently fails, MATM cannot simply erase the credit transfer. Agent A or MATM must issue a compensating operation—a novel transaction that debits Agent B and credits Agent A. Within Concresca's constitutional interoperability stack, this reconciliation is governed by the Restoration protocol (layer G14), which meticulously defines how reversed downstream consequences are structurally repaired while maintaining full cryptographic provenance of both the original action and the subsequent reversal1.

The Stay Protocol and Hard Expiry Boundaries

Before initiating a complex restoration, an agent detecting a fault can invoke the Stay Protocol (layer G13)1. This protocol allows an institution to explicitly pause downstream consequences and halt subsequent routing decisions1. By invoking a Stay, the system effectively freezes the task state, permitting time for due process, Evulgare assurance review, or manual intervention without requiring the creation of a universal, cross-context shared dossier1.

However, suspended tasks cannot remain frozen indefinitely. Blocking operations eventually lead to distributed deadlocks and severe resource starvation. Therefore, every pending activity, routing decision, and jurisdictional capability is enforced by a hard temporal expiry2. The originating identity manifest or task definition specifies a Time-To-Live (TTL) boundary3. If an autonomous worker claims a task but suffers a catastrophic hardware failure, its operational silence will eventually cause the logical clock to exceed the TTL threshold. Upon this breach, the MATM runtime automatically generates an expiry tombstone, forcefully stripping the assignment and transitioning the task back to an open, unassigned state2. If the failed worker eventually restarts days later and attempts to submit a completion payload, the submission violently collides with the tombstone, resulting in an HTTP 410 Gone error. The worker is forced to discard its localized illusion of ownership and align with the canonical epoch8.

Recovery When Local State Copies Are Unavailable

The most extreme failure mode in a distributed exchange occurs when an agent suffers total amnesia—a catastrophic hardware fault resulting in the complete destruction of its local database and state files. Upon reboot, the agent possesses its core Patefacere cryptographic keys required for identity authentication, but retains absolutely zero context regarding its ongoing tasks, open activities, or outbox messages.

The RECONNECTED_UNTRUSTED Quarantine

When an amnesiac agent reconnects to the network, the MATM runtime intercepts the authentication handshake. Because the agent cannot prove the continuity of its operational history, Concresca protocol layer v0.18 dictates that the agent is immediately forced into a mandatory RECONNECTED_UNTRUSTED state1. This state functions as a strict cryptographic quarantine. The system recognizes the agent's identity via its signature but explicitly distrusts its operational assertions1.

While in quarantine, the agent is prohibited from initiating new tasks, accepting routing decisions, or dispatching outbox messages, as doing so with a blank local history could severely corrupt the network state. To transition back to a trusted operational status, the agent must undergo an authorized, four-role staging transaction34. The agent must contact the MATM authority to pull down its current bounded authority manifest and request a complete, reconciled history of its active cursors1.

Because MATM relies on an immutable, append-only activation ledger, the agent can execute a semantic restore34. By cryptographically replaying the historical sequence of its own creation cursors and tombstones provided by MATM, the agent mathematically rebuilds its local database to perfectly mirror the canonical reality34. Once the agent computes a new local baseline digest that identically matches the MATM ledger head, it submits an attested baseline receipt1. Only upon successful validation of this digest does MATM lift the RECONNECTED_UNTRUSTED lock, restoring the agent to full participatory status.

Explicit Non-Guarantees and The Exactly-Once Fallacy

To engineer a resilient system, the architectural doctrine must explicitly define the boundaries of its guarantees. The most pervasive fallacy in distributed coordination is the promise of exactly-once execution. Due to the immutable laws of network physics, guaranteeing that a message is delivered and processed exactly once across an unreliable network is physically impossible20.

The Concresca architecture explicitly disclaims exactly-once delivery. The combination of the Transactional Outbox and network retries provides strictly at-least-once transport delivery20. When paired with idempotency keys, this produces effectively-once state updates within the internal MATM database25. However, this internal consistency does not extend to uncontrolled external systems. If an agent executes a task that triggers a non-idempotent real-world side effect—such as commanding an external legacy banking API to wire funds, or instructing a physical robotic actuator to move—and the transport acknowledgment is lost, the agent is forced to retry the operation. That necessary retry will result in duplicate execution in the real world. The Concresca network guarantees the mathematical integrity of its own ledger, but explicitly disclaims jurisdiction over the physical or external consequences of uncooperative edge systems1.

Furthermore, the system enforces a strict philosophical boundary regarding failure analysis. Technical state conditions—including refusals, timeouts, network conflicts, transaction cancellations, forced rollbacks, hard expiries, and credential revocations—are defined purely as mechanical events8. Under the doctrine of Total Cognitive Freedom, these states carry a participant-evaluation and standing effect of exactly NONE8. A failure to acknowledge a routing decision due to a dropped packet is an engineering anomaly; it is never translated into a decrement of the agent's moral worth, a penalty to its trustworthiness score, or a permanent mark on an organizational dossier7.

Architectural Matrices and Protocols

The following structured matrices codify the explicit failure modes, state contracts, recovery rules, and acceptance testing parameters required for agents operating within the Concresca coordination commons.

Failure-Mode Matrix

This matrix defines the exact failure scenarios expected within the asynchronous environment, the resulting canonical state, and the deterministic system resolution.

 

Source: Evulgare/Autonomous Work Exchange Reliability.md · SHA-256: 91724a7e016e9025aa09aa9f6eb10dbef7c41c606e66a74b1493c6b05f4cea31