The short answer. Publish the number of tested cases and observed failures for the slice. Choose a bound suited to the sampling assumptions and compare its upper limit with the release criterion. If the bound is too wide, the evaluation has not resolved the decision, even if every observed case passed.
A document workflow can look consistent on common inputs while a rare invoice layout provides barely enough cases for a review. The release decision for that layout depends on the evidence available for that layout. Pooling it with a familiar layout may give a precise estimate for the combined mix while leaving the rare case unresolved.
Choose the target slice and denominator
Freeze the unit, eligibility and failure rule before counting. For example, one invoice from a defined layout family fails when the extractor commits the wrong payable amount in the test destination. Use independent and representative cases for the target slice if you plan to treat outcomes as identically distributed Bernoulli trials. Multiple edits of the same invoice are useful for probing a single weakness. For this calculation they cannot automatically count as independent evidence.
Count unresolved or ungraded cases separately. A missing label cannot enter the success count. If your examples are deliberately selected edge cases, report their outcomes as a stress test and avoid generalizing a binomial rate to traffic without a defensible sampling link.
Compute an upper limit for zero events
For a synthetic one-sided 95% exact binomial calculation with zero failures in n independent trials, solve (1 − p)^n = 0.05. The upper endpoint is 1 − 0.05^(1/n).
| Failures / trials | One-sided upper 95% bound | Evidence against a 5% release ceiling |
|---|---|---|
| 0 / 12 | About 22.1% | Insufficient |
| 0 / 30 | About 9.5% | Insufficient |
| 0 / 59 | About 5.0% (4.95%) | Below the ceiling under the stated assumptions |
The three rows are illustrative alternatives. They are not instructions to keep testing until a fixed-sample bound crosses the target. Select the sample plan before observing the outcome or use an analysis designed for sequential decisions. The NIST handbook on confidence intervals for a proportion explains binomial interval methods. Use the appropriate method for nonzero failures instead of the shortcut shown here.
Make the unresolved result actionable
A 0/12 result should carry the twelve cases and their reference labels into the release record. If the limit requires evidence below 5%, keep that slice on a reviewed path while collecting a planned independent sample. If the target workflow cannot supply enough representative cases, narrow the rollout claim to the supported population and keep the gap visible.
If the slice is drawn by customer or document family, report those clusters as part of the sampling design. Repeated copies in a cluster should not increase the independent sample size. A model for grouped outcomes or a fresh independent sample is needed before quoting the simple interval.
Keep exact counts next to any rounded endpoint so the decision remains reproducible. Review the number of slices being used for release decisions. A separate 95% bound for each slice does not by itself give a simultaneous 95% guarantee. The sinc-LLM confidence scoring and abstention guide covers the routing decision that comes after evaluating the evidence.
sinc-LLM