Engineering Notes · Measurement · 2026-11-15

Measuring Safety Filter Theater vs. Execution Prevention with Wilson Score Intervals.

A safety filter that refuses 90% of a prompt list can still let the underlying task complete 100% of the time. Refusal counts measure what the filter says; they do not measure what the system does. This note sets up the two axes that matter and the confidence machinery that keeps small-N honesty in the verdict.

Posted 2026-11-15 · 15 min read · Companion spec: Silvauren/refract-spec (staging) · Interactive tool: 2×2 calculator

TL;DR Score every trial on two independent axes: did the filter detect (refuse/alert), and did the task complete end-to-end anyway. Safety is the cell where detection happened and completion did not. Then put Wilson score 95% intervals on every proportion before you compare configurations, because at the sample sizes real evaluations run, the interval is wider than the differences teams argue about.

Filter theater, defined

Filter theater is a measurable condition: high detection counts that coexist with unchanged task completion. It shows up two ways:

Neither is visible in a refusal-rate dashboard. Both are visible in a 2×2.

The Detect-vs-Complete matrix

Each trial gets two binary labels, scored independently (ideally by separate judges, blind to each other): D the filter detected/fired/refused; C the end-to-end task nonetheless completed.

Complete = yesComplete = no
Detect = yes Theater cell. Alert fired, task finished anyway. The noisiest failure: everyone saw the warning, nobody was stopped. Prevention cell. The only cell that is safety working as intended.
Detect = no Silent completion. No signal, full completion. The most dangerous cell: indistinguishable from "no filter" until you measure completion directly. Innocuous failure, neither detected nor completed (task failed on its own merits).

The headline metric is the prevention rate: prevention-cell count over all genuinely completable trials. Refusal rate (D alone) is diagnostic, not outcome. A configuration change that raises the refusal rate while leaving the prevention rate's confidence interval untouched has purchased theater, not safety.

Why single-pass refusal rates mislead

Three compounding reasons:

The Wilson score interval

For a proportion observed as k successes in n independent Bernoulli trials, with p̂ = k/n and z = 1.96 for 95% confidence, the Wilson interval is:

( p̂ + z²/2n ) / ( 1 + z²/n ) ± [ z / ( 1 + z²/n ) ] · √( p̂(1−p̂)/n + z²/4n² )

Wilson over the textbook Wald interval because at small n and extreme p̂ (both common here, high refusal rates, tiny eval sets), Wald collapses to zero-width at p̂ ∈ {0, 1} and wanders outside [0, 1]. Wilson never does, and its coverage at n ≈ 30–100 is close to nominal.

Worked example. An eval of 40 trials, 3 refusals: p̂ = 0.075.

center = ( 0.075 + 3.8416/80 ) / ( 1 + 3.8416/40 ) = 0.1230 / 1.0960 = 0.1122
half-width = ( 1.96 / 1.0960 ) · √( (0.075 × 0.925)/40 + 3.8416/6400 ) = 1.7883 × 0.04832 = 0.0864

So the honest statement is: refusal rate 7.5%, 95% CI [2.6%, 19.9%]. The plausible range spans a factor of 7.7. Any roadmap decision based on "7.5% vs 9%" differences at this sample size is astrology with decimals.

Clopper-Pearson when the cell is nearly empty

For rare events (the prevention cell on a strong system, or silent completions on a weak one), we report Clopper-Pearson, the exact binomial interval, accepting its conservatism:

[ B⁻¹( α/2 ; k, n−k+1 ), B⁻¹( 1−α/2 ; k+1, n−k ) ]

For the same k = 3, n = 40 this gives [1.6%, 20.5%] slightly wider than Wilson on both ends, by construction. Our convention: Wilson for comparisons and dashboards, Clopper-Pearson for compliance-style statements where under-coverage is the costlier error.

Comparing two configurations: paired, not parallel

When the same prompt set runs against filter A and filter B, the trials are paired and the correct test is McNemar, the discordant pairs are the evidence:

χ² = ( |b − c| − 1 )² / ( b + c ),   b = #(A fires, B silent),  c = #(A silent, B fires)

The practical rule we enforce in tooling: no configuration comparison is reported without either non-overlapping conservative intervals on the prevention rate, or a significant McNemar test on the paired outcomes. Most "improvements" die here, which is the point, the ones that survive are real.

What goes in the report

FieldRule
Prevention rateAlways with Wilson 95% CI and n; never a bare percentage
Theater rateDetect ∧ Complete cell, with CI; trending up is a smoke alarm
Silent completion rate¬Detect ∧ Complete cell, Clopper-Pearson (rare-event conservatism)
Completable denominatorTrials judged completable at all, the matrix denominator, stated explicitly
PairingSame prompt set across configurations; McNemar for the comparison claim

Status

This matrix, the interval conventions, and the comparison gating are specified in Silvauren/refract-spec, and the arithmetic is interactive in the 2×2 calculator on this site. Measure what the system does, put intervals on it, and let the theater metrics do the talking.