wiki / concepts / releasable-patch-rate

Releasable Patch Rate

updated 2026-08-27 agentic-patterns · code-quality · workflow

Releasable Patch Rate

The Releasable Patch Rate is the north-star factory metric for autonomous and AI-assisted software engineering. It measures the fraction of generated changes that satisfy every necessary quality, security, architectural, and operational gate required for production release.

flowchart TD
    G[Candidate Patch] --> C1{Correctness}
    C1 -->|Pass| C2{Regression Safety}
    C1 -->|Fail| F[Rejected / Rework]
    C2 -->|Pass| C3{Security Baseline}
    C2 -->|Fail| F
    C3 -->|Pass| C4{Architecture Conformance}
    C3 -->|Fail| F
    C4 -->|Pass| C5{Scope Authorization}
    C4 -->|Fail| F
    C5 -->|Pass| R[Releasable Patch]

The Multiplicative Reliability Law

Quality is not a scalar average; it is a vector of orthogonal constraints that multiply at the release boundary:

$$\text{Releasable Patch Rate} = P(\text{Correctness} \land \text{Regression Safety} \land \text{Security} \land \text{Architecture} \land \text{Scope})$$

A patch that achieves 100% test coverage and passes linting but leaks an API credential or exceeds its authorized file allowlist is 0% releasable. Averaging metrics hides catastrophic tail risks.

High-Leverage Metrics vs. Vanity Proxies

DimensionReliable MetricDistrusted / Poison Proxy
Factory ThroughputReleasable patches per dollar / hourLines of Code (LOC) generated
Delivery SuccessEscaped defect rate & rollback frequencyMerge rate & PR count
Review EfficiencyActionable findings per reviewer minuteReview comment count
Verification StrengthMutation score & differential assertion passesRaw line coverage percentage
Scope DisciplineTouched paths within declared allowlist“Task Complete” self-report

Mitigating the Orchestration Tax

When raw code generation outpaces downstream human review and verification bandwidth, organizations experience the orchestration tax. Increasing agent concurrency without scaling independent oracles reduces overall software delivery throughput and stability.