← Back to article

Equation 20 · Why Coding Agents Fail: Long-Horizon Reliability in OpenAI Codex

What does this equation mean?

pi∗=pi+(1−pi)diciri.p_i^*=p_i+(1-p_i)d_i c_i r_i.

Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.

Inputs and operationsp_i+(1-p_i)d_i c_i r_i
Result or conditionp_i^*
How to read the two sides of this formula. Follow the article passage for the meaning of each quantity.

This equation states an equality: the expressions on both sides have the same value under the article’s assumptions. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.

Read it piece by piece

pi∗p_i^*

Symbol p_i^*

the simplified effective stage reliability.

Understand this part →

pip_i

Symbol p_i

the direct success probability.

Understand this part →

did_i

Symbol d_i

did_i is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

cic_i

Symbol c_i

cic_i is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

rir_i

Symbol r_i

the probability repair succeeds without creating another material defect.

Understand this part →

=

=

The expressions on both sides represent the same quantity under the stated assumptions.

Understand this part →

See an illustrated explanation →
addition

addition

Add the term after the plus sign to the term or group before it.

Understand this part →

subscript

subscript

The lower label selects a particular version, component, or indexed member of the quantity. For example, x₀ and xₜ can be values at different positions.

Understand this part →

How to interpret it

Read it with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

An agent can recover only if the system generates a discriminating observation. Let stage i have direct success probability pip_i . If failure occurs, let did_i be the probability it is detected, cic_i the probability the cause is diagnosed correctly, and rir_i the probability repair succeeds without creating another material defect. A simplified effective stage reliability is pi∗=pi+(1−pi)dicirip_i^*=p_i+(1-p_i)d_i c_i r_i. The formula is intentionally conservative and incomplete. Multiple retries, repair costs, correlated defects, and false alarms require richer models. Its value is conceptual: “the agent can iterate” improves reliability only through detection, diagnosis, and repair.

Read the equation in its article →

Sources cited in the article section

These citations give research context. Read each source to check which claims it supports.

Return to Why Coding Agents Fail: Long-Horizon Reliability in OpenAI Codex

See this formula across 1 published context →

Browse the mathematical compendium →