# Execution Pairs

An **execution pair** consists of:

1. **Main Actor** $$A\_{m,i}$$
   * Executes the assigned task $$T\_i$$.
   * Monitors the state of the fallback actor $$A\_{f,i}$$.
2. **Fallback Actor** $$A\_{f,i}$$
   * Monitors the main actor $$A\_{m,i}$$.
   * Takes over if the main actor fails $$S(A\_{m,i}) = \text{failed}$$.
   * Notifies the orchestration layer to assign a new fallback actor.

The state of an actor $$S(A)$$ can either be:

* **Active**: The actor is performing its assigned task.
* **Failed**: The actor is unable to complete the task.

The state of an execution pair $$P\_i$$ is considered **operational** if at least one actor in the pair is active:\
$$\[ S(P\_i) = \text{operational} \iff S(A\_{m,i}) = \text{active} \vee S(A\_{f,i}) = \text{active}. ]$$\
If both actors in the pair fail, the orchestration layer reassigns both roles.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fairmath.xyz/fhe-computer/fair-math-actors/execution-pairs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
