Pass 3 of 4 · trap · about 60 min

Six traps, three neighbours

Make each tool give a confident wrong answer, then borrow the fix from a field that met it first.

0 of 17 concepts in this pass seen

Before we break things

E5E7E8

Three recall questions from Pass 2.

[toy]

With the default --max-trials 20 (10 pairs) and margin 0.05, can sa diff ever return Equivalent?

Answer options
How sure are you?

Both arms pass with p = 0.6 and Cov(A, B) = 0.12 on the same task. What is Var(A − B)?

Answer options
How sure are you?
[toy]

A cut has n = 5 attempts with c = 3 passes. What do pass_at_k and pass_pow_k report for k = 3?

Answer options
How sure are you?

Every fix in this pass is a proposal, not in same-again. The labs run the same data with and without it, so you can see what it would change.

G1: ten retries dressed as ten tasks

G1

sa diff hands out pairs round-robin over its --cut-dir list [code]crates/sa-ingest/src/experiment.rs:326. Give it one directory and every pair is a retry of one task. The e-value and the interval treat each pair as an independent draw. cut_key is recorded and then ignored.

[code]crates/sa-ingest/src/experiment.rs:326Round-robin over cut dirs
    for pair_idx in 0..max_pairs {
        if let Some(cap) = budget.max_cost_usd_micros
            && spent_micros >= cap
        {
            budget_exhausted = true;
            break;
        }
Highlighted:         let cut_dir = &cut_dirs[pair_idx % cut_dirs.len()];
Paired variance and clustered retriestrapPress Make it lie. One cut where B always wins: 8 B-better pairs, E = 28.44, verdict Better. Then toggle the cluster-level fix.

Pairing helps, retries do not

[code]sa-core/src/stats.rs:350[inference]Gap 1
[code]
You run sa diff with one --cut-dir. Policy B wins all 10 retries of that single task. What does sa diff say?
Your prediction
How sure are you?

Pairing: Var(A − B) = Var(A) + Var(B) − 2 Cov(A, B)

  • Var(A) + Var(B) (unpaired)0.480
  • − 2 Cov(A, B)−0.240
  • Var(A − B) (paired)0.240
[toy] 40 cuts at ρ = 0.50A ▲ B ▲17A ▲ B ✕6A ✕ B ▲4A ✕ B ✕13

Only discordant pairs (shaded) carry evidence about A vs B. As ρ rises they thin out and the paired variance falls: the same precision needs 2.00× fewer pairs than an unpaired comparison.

Design effect for retries on one cut

8 retries at intra-cut correlation ρc = 0.60: DE = 1 + (8 − 1)·0.60 = 5.20, so neff = 8 / 5.20 = 1.54.

0.60
0.50
Gap 1 design
8
0.60
Variance and evidence
Var(A) + Var(B)0.480
2 Cov(A, B)0.240
Var(A − B)0.240
sa diff E (naive)veiled
Cluster-level Eveiledproposal
Effective n (lower bound)veileddistinct cuts
Cluster-robust SEveiled
Design effect5.20
n_eff1.54
Predict before running the Gap 1 design.
How to use this

Scrub ρ to see covariance cancel variance. Then switch the Gap 1 design: the same 10 B-wins either come from one task retried or from 10 different tasks. Deep link: ?preset=fix&design=one-cut.

The maths
[code]crates/sa-ingest/src/experiment.rs:363Every pair carries cut_key; the analysis never groups by it
        pairs.push(MatchedPairInput {
Highlighted:             cut_key,
            verdict_a: va,
            verdict_b: vb,
            wall_ms_a: wall_a,
            wall_ms_b: wall_b,
            cost_usd_micros_a: cost_a,
            cost_usd_micros_b: cost_b,
        });

Highlighted:         let cur = analyze_paired_diff(&pairs, config);
Highlighted:         if !matches!(cur.verdict, DiffVerdict::Inconclusive(_)) {
[code]

Spot the lie: "We ran sa diff with one --cut-dir and the default 20 trials. B won 8 pairs, A won none, E = 28.4. So B is the better policy."

Answer options
How sure are you?

G2: the fog that flatters

G2

100 pairs. B wins 18, A wins 4, 55 tie on Pass, 8 tie on Fail, and B times out on 15 where A passed. B's Unknown rate is 15%, under the 20% cap, so the veto does not fire. [toy]betaBinomialEValue(18, 4). sa diff says Better.

Manski bounds and the Unknown fogtrapLoad the selective-timeouts preset and drag the fog to its worst case. The bar crosses zero.

Selective timeouts and the Manski bounds

[code]sa-core/src/stats.rs:295[inference]Gap 2
[code]
Policy B timed out on 15 of 100 pairs, every one a case where A passed. That is 15.0%, under the 20% cap, so sa diff says Better (E = 24.93). Could B really be no better than A?
Your prediction
How sure are you?

Effect Δ = p_B − p_A

−0.30−0.150.00+0.15+0.30

sa diff verdict

{"verdict":"better"}

E = 24.93 vs threshold 20.00 · Unknown rate B 15.0% · cap 20.0%

18
4
55
8
15
15
fog
100 matched pairs
Naive Δ̂ (decisive pairs only)+0.165
E-value24.93threshold 20.00
sa diff verdictBetter
Unknown rate B15.0%cap 20.0%
Manski lower (worst for B)veiled
Manski upper (best for B)veiled
Interval contains 0veiled
sa diff says Better at E = 24.93. Predict before the fog is drawn.
How to use this

Each tile is one matched pair: Policy A in the top-left half, Policy B in the bottom-right. Unknown: runner timed out marks a timeout. Drag “Resolve the fog” from worst to best for B and watch the imputed Δ slide between the Manski bounds. Deep link: ?preset=selective or ?preset=none.

The maths
[code]crates/sa-core/src/stats.rs:311The Unknown cap vetoes only above 20%
    let unk_a = arm_a.unknown_rate();
    let unk_b = arm_b.unknown_rate();
Highlighted:     if unk_a > config.max_unknown_rate || unk_b > config.max_unknown_rate {
Highlighted:         return DiffVerdict::Inconclusive(format!(
Highlighted:             "excessive Unknown rate (arm_a={:.1}%, arm_b={:.1}%, cap={:.1}%)",
Highlighted:             unk_a * 100.0,
Highlighted:             unk_b * 100.0,
Highlighted:             config.max_unknown_rate * 100.0
Highlighted:         ));
Highlighted:     }

    if e_value >= threshold {
        if paired.b_better > paired.a_better {
            return DiffVerdict::Better;
        }

Over all 100 pairs, Δ lies in [−0.01, +0.14]. The worst-case e-value is , nowhere near 20 [toy]computeManskiBounds(selectiveCounts, split). A 20% cap is a speed limit, not a seatbelt.

[toy]

Spot the lie: "B's Unknown rate was 15%, under the 20% cap, so sa diff's Better verdict (E = 24.93) is safe."

Answer options
How sure are you?

G3: one probe, one verdict, forever

G3

Both search tools call the oracle once per subset or revision and trust the answer. With good revisions passing 90% and bad ones 30%, classic bisect names the right revision 33.1% of the time over 2,000 runs. Probabilistic bisection with up to 20 probes gets it right 92% of the time [toy]compareNoisyBisect(11, { runs: 2000 }).

Noisy bisect against classic bisecttrapMake it lie: one unlucky coin at the first midpoint, and Found prints the wrong revision with full confidence.

One flaky probe, two searches

[code]sa-core/src/search.rs:233[inference]Gap 3[toy]
[code]
Revisions rev-0 to rev-15; the regression lands at rev-11. The first midpoint probe flakes once and every other probe is honest. What does deterministic bisect report?
Your prediction
How sure are you?
Deterministic bisect (sa-core)0123456789101112131415true regression at rev-11Probabilistic bisection (proposal): posterior over the first bad revision7%
probebisect revverdictPBA revverdictPBA MAP
1rev-0Passrev-7Failrev-1
2rev-15Failrev-4Passrev-5
3rev-7Failrev-5Passrev-6
4rev-3Passrev-6Passrev-7
5rev-5Passrev-7Passrev-7 ↺
6rev-6Passrev-9Passrev-10 ↺
7rev-11Failrev-10 ↺
8rev-9Passrev-10 ↺
9rev-10Passrev-11 ↺
10rev-11Failrev-11 ↺
11rev-10Passrev-11 ↺
12rev-10Passrev-11 ↺
13rev-11Failrev-11 ↺
14rev-10Passrev-11 ↺
probe 14 / 14
0%
0%
16 revisions, true first bad rev-11; P(Pass | good) = 100%, P(Pass | bad) = 0%
Bisect bracketnot yet
Bisect resultrunning
PBA most likely first badrev-1 (6.7%)
PBA backtracks so far0
PBA resultrunning
PBA assumesP(Pass | good) 90%, P(Pass | bad) 30%
Bisect correct (1,000 replays)100.0%confidently wrong 0.0%
PBA correct (1,000 replays)100.0%mean 4.0 probes
Predict what bisect prints after one unlucky flip.
How to use this

Step through the probes. The calipers are the deterministic bracket: once a flaky verdict moves them past the regression, the true revision is outside for good. The bars are the probabilistic search's belief about where the regression is; a flip only shifts mass. Deep link: ?preset=flip or ?flake=0.15&qBad=0.3&seed=4.

The maths
[code]crates/sa-core/src/search.rs:317One probe per midpoint, trusted forever
    let mut lo = 0usize;
    let mut hi = last;
    while hi - lo > 1 {
        let mid = lo + (hi - lo) / 2;
        let Some(mid_v) = eval(mid, &mut probes)? else {
            return Ok(BisectResult {
                total_revisions,
                outcome: BisectOutcome::Inconclusive {
                    reason: format!("probe budget exhausted while narrowing bracket [{lo}, {hi}]"),
                },
                probes,
            });
        };
        match mid_v {
Highlighted:             Verdict::Pass => lo = mid,
Highlighted:             Verdict::Fail => hi = mid,
            Verdict::Unknown(reason) => {
                return Ok(BisectResult {
                    total_revisions,
                    outcome: BisectOutcome::Inconclusive {
                        reason: format!(
                            "midpoint revision {mid} returned Unknown ({reason}); bracket remains [{lo}, {hi}]"
                        ),
                    },
                    probes,
                });
            }
        }

Shrink is worse, because a lucky Pass deletes a rule. At 15% flake, ddmin deletes at least one needed unit in 86% of 200 runs and recovers the exact set in none. ProbDD, which keeps a probability per unit and repeats probes, deletes a needed unit in 8.5% of runs at a cost of about 60 probes [toy]runNoisyShrinkTrial(7).

ddmin and ProbDD policy shrinkertrapSet flake to 15% and run 200 times in fast mode. Count the plates wrongly stamped dead weight.

Which rules in AGENTS.md actually matter?

[code]sa-core/src/search.rs:36[inference]Gap 3[toy]
[toy]
Each probe now flakes 15% of the time, and a subset missing a needed rule still passes 30% of the time. Over 200 shrinks at budget 24, how often does ddmin delete a rule the policy needs?
Your prediction
How sure are you?

ddmin (sa-core)

  1. 0AGENTS.md#Git · neededkept
  2. 1AGENTS.md#Tools · dead weightkept
  3. 2AGENTS.md#Style · dead weightkept
  4. 3AGENTS.md#Testing · neededkept
  5. 4AGENTS.md#Plans · dead weightkept
  6. 5AGENTS.md#Voice · dead weightkept
  7. 6skill:rust-feedback · neededkept
  8. 7skill:handoff · dead weightkept

No probe yet.

  • Probes / budget0 / 24

ProbDD proposal, not in sa-core

  1. 0AGENTS.md#Git · needed0.25
  2. 1AGENTS.md#Tools · dead weight0.25
  3. 2AGENTS.md#Style · dead weight0.25
  4. 3AGENTS.md#Testing · needed0.25
  5. 4AGENTS.md#Plans · dead weight0.25
  6. 5AGENTS.md#Voice · dead weight0.25
  7. 6skill:rust-feedback · needed0.25
  8. 7skill:handoff · dead weight0.25

θ starts at 0.25 for every unit.

stepkept_indicesverdict
1{0, 1, 2, 3, 4, 5, 6, 7}Pass
2{}Fail
3{0, 1, 2, 3}Pass
4{0, 1}Pass
5{0}Fail
6{1}Fail
7{1}Fail
8{0}Pass
probe 63 / 63
15%
ddmin budget
8 units, truly needed {0, 3, 6}; P(Pass | needed kept) = 85%, otherwise 30%
ddmin probes (this run)8 / 24
ddmin probes for a full deterministic run48
ddmin resultrunning
ProbDD probes (this run)63
ProbDD resultrunning
ddmin deleted a needed rule (200 runs)veiledbaseline aborted 18.0%
ProbDD deleted a needed rule (200 runs)veiledexact set 90.5%
Predict before running the flaky shrink.
How to use this

Each plate is one ablatable unit of the policy (six AGENTS.md sections, two skills). A probe runs the agent with only the bright plates. Raise the flake rate to see what one lucky Pass does. Lucky-pass rate is twice the flake rate here, so 15% gives the spec's 85% / 30% oracle. Deep link: ?preset=flake&budget=24.

The maths
[code]crates/sa-core/src/search.rs:36One oracle call per subset; only a Pass removes units
pub fn ddmin_shrink<E, F>(
    total_units: usize,
    max_probes: usize,
    mut oracle: F,
) -> Result<ShrinkResult, E>
where
    F: FnMut(&[bool]) -> Result<Verdict, E>,
{
    let mut probes = Vec::new();
    let mut budget_exhausted = false;

[toy]

Spot the lie: "sa bisect printed Found { first_bad_index: 7 }, so revision 7 introduced the regression." The agent passes good revisions 90% of the time and bad ones 30%.

Answer options
How sure are you?

G4: the flattering power

G4

n = 5 attempts, c = 3 passes. The code reports . The unbiased estimate counts the triples of attempts that all passed: [toy]comparePassPowK(5, 3, 3).

pass@k against pass^ktrapMake it lie: the Monte Carlo histogram of the plug-in estimator sits right of the true line.

pass@k climbs, pass^k decays

[code]sa-core/src/stats.rs:395[code]sa-core/src/stats.rs:412
12345
[code]
An agent passed 3 of 5 attempts. sa-core reports pass^3 = (3/5)3 = 0.216. Is that a fair estimate of the chance that 3 fresh runs all pass?
Your prediction
How sure are you?

The tick marks the true p^3 = 0.216 at p = 60%. Averaged over every possible draw of 5 attempts, the plug-in comes out at 0.300 and the unbiased estimator at 0.216.

View
60%
5
3
3
n = 5, c = 3, k = 3
plug-in pass^30.216sa-core today
unbiased pass^3veiledproposal, not in sa-core
pass@31.000any k of n must include a pass
bias of plug-in at p = 60%0.084
Lock in a prediction to see the unbiased estimate.
How to use this

Drag p and k. pass@k asks whether any of k runs passes; pass^k asks whether all of them do. The Gap 4 view compares the estimator sa-core ships with an unbiased one. Deep link: ?preset=gap4&n=5&c=3&kEst=3.

The maths
[code]crates/sa-core/src/stats.rs:416The shipped plug-in estimator
/// Consistency metric `pass^k`: empirical probability `(c / n)^k` that all `k` independent runs pass.
#[must_use]
#[allow(clippy::cast_precision_loss)]
pub fn pass_pow_k(n: usize, c: usize, k: usize) -> Option<f64> {
    if k == 0 || n == 0 || c > n {
        return None;
    }
Highlighted:     let p = (c as f64) / (n as f64);
Highlighted:     let exp = i32::try_from(k).unwrap_or(i32::MAX);
Highlighted:     Some(p.powi(exp))
}
[toy]

Spot the lie: "Our agent passed 3 of 5 attempts, so pass^3 = 0.216: it gets three in a row about one time in five."

Answer options
How sure are you?

G5: twenty looks, one α

G5

Each sa diff and each rescore starts with a fresh α. Nothing records how many questions have been asked of the same cuts. Twenty tweaks under a true null: the bound is 64.15%, and in 600 simulated replicates 45.3% of them produced at least one false rejection [toy]simulateForkingPredicates(3, { replicates: 600 }).

The garden of forking predicatestrapMake it lie: tweak until gold appears. Then open the confirmation vault once.

Tweak the grader twenty times

[inference]Gap 5[toy]
[inference]
You tweak a predicate 20 times and run sa diff on the same cuts after each tweak, each at α = 0.05. Policies A and B are identical. If the tweaks were independent tests, how likely is at least one false Better or Worse?
Your prediction
How sure are you?
0%25%50%75%100%151015202530predicate tweaks m (each a fresh α = 0.05 test on the same cuts)α = 5%64.15% at m = 20

First replicate: one branch per tweak

v0v20holdout vaultunopened
tweakb / apEverdict
v19 / 150.3070.51Inconclusive
v211 / 70.4810.43Inconclusive
v310 / 130.6780.31Inconclusive
v411 / 121.0000.26Inconclusive
v511 / 70.4810.43Inconclusive
v69 / 101.0000.28Inconclusive
v79 / 150.3070.51Inconclusive
v812 / 90.6640.32Inconclusive
v911 / 90.8240.30Inconclusive
v1010 / 80.8150.32Inconclusive
v1110 / 70.6290.37Inconclusive
v1210 / 60.4540.48Inconclusive
v139 / 60.6070.41Inconclusive
v147 / 90.8040.34Inconclusive
v1514 / 70.1890.82Inconclusive
v1614 / 80.2860.57Inconclusive
v1712 / 90.6640.32Inconclusive
v1812 / 131.0000.25Inconclusive
v1911 / 90.8240.30Inconclusive
v208 / 100.8150.32Inconclusive
20
20 tweaks on 40 dev cuts, true null, α = 0.05
Bound 1 − (1 − α)^m64.15%upper bound under independence
Simulated naive FWERveiled400 replicates
Fresh-α e-value FWERveiledsa diff per tweak
Bonferroni FWERveiled
e-BH FWER (= FDR under the null)veiledproposal
Dev winner confirmed on holdoutveiledproposal
Lock in a prediction to start tweaking.
How to use this

Every tweak re-scores the same 40 cuts under a true null, so any Better or Worse is false. Click “Run another tweak” or drag m. Then split the cuts: tune on dev, confirm once on the holdout vault, and control the family with e-BH. Deep link: ?m=20&protect=1.

The maths

Spot the lie: "We shrank the policy on cut X, then confirmed the shrunk policy with sa diff on cut X. Better, E = 31."

Answer options
How sure are you?

G6: the future in the workspace

G6

Without --git-ref or --checkpoint-ordinal, sa cut takes the first recorded checkpoint, whatever cut_seq says [code]crates/sa-ingest/src/cut.rs:102-110. With --git-ref main, it takes whatever main is today, which already contains C2's fix.

[code]crates/sa-ingest/src/cut.rs:102Workspace ref selection: no check against the cut time
Highlighted:     let chosen_ref = cfg.git_ref.clone().or_else(|| {
        if let Some(ord) = cfg.checkpoint_ordinal {
            checkpoints
                .iter()
                .find(|c| c.ordinal == ord)
                .map(|c| c.git_ref.clone())
        } else {
Highlighted:             checkpoints.first().map(|c| c.git_ref.clone())
        }
    });
Cut slicer: sealing the pasttrapSet the workspace ref to main. The .git cube is sliced off, isolation_verified turns true, and a thread runs from C2 back through the barrier.

A cut is the past, sealed by its fingerprint

[code]sa-core/src/cut.rs:195[code]sa-ingest/src/claude.rs:411[code]sa-ingest/src/cut.rs:199
[code]
You materialise a Detection & Repair cut at seq 7 with --git-ref main. Branch main already contains Neon's fix C2. What does the isolation report say?
Your prediction
How sure are you?
S1S2Opus, session 1 (Claude Code)Neon, session 2 (Codex)grader vault (held out)1: Add retry with backoff to fetchJson · 9c82f32e15d912: Read src/http.ts · 55c1eeb7521923: Edit src/http.ts: unbounded retry loop · 15c04f75f76a34: Subagent runs test suite (before final edit) · 9c3f3aa8876545: Handover: covers_current_state: true, tests pass · c3d2dba3e96c56: Commit C1 feat: retry backoff · 3161b2f40ddcC17: fetchJson hangs on 404s in prod · 2f431d5cbd8a78: Read C1 diff · cdd7f614a42889: Diagnose: loop never stops on 4xx · 5731a255bbd9910: Write failing test: does not retry 404 · 20f9364535031011: Fix: bound retries, throw on 4xx; tests pass · 5e01beeb815e1112: Commit C2 fix: stop retrying 4xx · 7261ddd33e35C2cut_seq = 7✕✕✕✕✕▲▲✕▲▲Policy A replays [toy]Policy B replays [toy]agent/workspacetree of C2no .git · main
7
Role
Cut manifest and isolation report
cut_id3e78bc06ce08
cut node7 · 2f431d5cbd8a
prefix turns (agent sees)6
held-out witnesses6
node 7 id2f431d5cbd8aclean
node 8 idcdd7f614a428clean
workspace refmain → C2cut-time commit C1
isolation_verifiedveiledshipped check: no .git, no held-out id hex
leaked filesveiled
ancestor checkskippedproposal, not in same-again
Predict the isolation report before reading it.
How to use this

Drag across the map (or click a node, or use the slider) to move the hindsight barrier. Everything left of it is the agent's past; everything right is held out for the grader. Deep link: ?preset=tamper&cut=9 or ?preset=leak.

The maths
[code]crates/sa-ingest/src/claude.rs:411Node ids hash location and content, not parents
        let node_id = Digest::<TraceKind>::of_parts(&[
            SourceKind::ClaudeCode.as_str().as_bytes(),
            item.path_str.as_bytes(),
            &off_bytes,
            raw_digest.as_bytes(),
        ]);
[code]crates/sa-core/src/cut.rs:228Cut ids hash every prefix node id
    let mut canonical = Vec::new();
    canonical.extend_from_slice(session_uid.as_bytes());
    canonical.push(0);
    canonical.extend_from_slice(role_tag);
    canonical.push(0);
    canonical.extend_from_slice(cut_node_id.as_bytes());
    canonical.push(0);
    canonical.extend_from_slice(ws_tag.as_bytes());
    canonical.push(0);
    canonical.extend_from_slice(pol_hex.as_bytes());
Highlighted:     for turn in prefix {
Highlighted:         canonical.push(0);
Highlighted:         canonical.extend_from_slice(turn.node_id.as_bytes());
Highlighted:     }

    Digest::<CutDigestKind>::of_canonical(&canonical)
[code]crates/sa-ingest/src/cut.rs:199What isolation_verified actually checks
    // Post-materialisation isolation verification:
    // 1. No `.git` directory or file anywhere inside `agent/`.
    verify_no_git_metadata(&agent_dir)?;
    // 2. No held-out witness node ID appears in `agent/prompt_prefix.json`.
    for w in &isolated.grader_held_out {
        if prefix_json.contains(&w.node_id.to_hex()) {
            return Err(CutError::IsolationViolation(format!(
                "held-out node {} leaked into agent prompt_prefix.json",
                w.node_id
            )));
        }
    }

The trace ids have a quieter version of the same weakness. Because node ids do not hash their parents, re-parenting a node does not change its id. Only the cut id notices.

[code]

Spot the lie: "We cut at the end of session 1 with --git-ref main. The manifest says isolation_verified: true, so the agent never saw the fix."

Answer options
How sure are you?

Three smaller cracks

S6E5E9

E-process against naive peekingtrapIn the funnel tab, drag n until the band fits inside ±0.05. Read the counter.

Peeking breaks a p-value, not an e-process

[code]sa-core/src/stats.rs:350[code]sa-core/src/stats.rs:365[toy]
-1-0.50+0.5+11101001,00010,000decisive pairs n (log scale)CLI default: 10 pairsEquivalent possible: 5,869±0.961
10
Robbins normal-mixture CS, ρ = 1
Decisive pairs n10
Radius r(n)0.961
Radius at CLI default (10 pairs)0.961
Pairs for r < 0.055,869
Equivalent reachable at nno
At n = 10 the radius is ±0.961. Equivalent needs it inside ±0.05, which takes 5,869 decisive pairs.
How to use this

Every line is an A/A experiment where nothing changed. Press play or drag the scrubber. A line that crosses its rejection line freezes there: that is a false “Better”. Deep link: ?preset=cs&n=5869 or ?seed=7&steps=500.

The maths
[code]crates/sa-core/src/stats.rs:355The exact Beta-Binomial e-value
pub fn beta_binomial_e_value(b_better: usize, a_better: usize) -> f64 {
    let m = b_better + a_better;
    if m == 0 {
        return 1.0;
    }
Highlighted:     let log_e =
Highlighted:         (m as f64) * std::f64::consts::LN_2 + ln_factorial(b_better) + ln_factorial(a_better)
Highlighted:             - ln_factorial(m + 1);
    log_e.exp()
}

What a trialist would say

N1

Medicine met every statistical trap in this explainer decades ago, and it had lives at stake. Four of its habits map straight onto Same Again.

Clinical trials → Same Again
Trial practiceSame Again counterpart
Group-sequential designs and α-spending (O'Brien–Fleming)The e-process: stop early without inflating α (E5)
Crossover designs: each patient gets both treatmentsPaired cuts: each task gets both policies (E7)
Informative dropout and intention-to-treatSelective timeouts and Manski bounds (G2)
Randomised allocation orderA is always dispatched before B (sidebar)
Pre-registration (CONSORT)An e-value ledger that counts every look (G5)
Kleene gates and the grader calibratortrapA trialist validates an instrument before trusting it. Open the mutation chamber and score each grader.

Unknown is a third value, and graders must earn the right to judge

[code]sa-core/src/verdict.rs[code]sa-core/src/predicate.rs:179[toy]

Part A: Kleene K3 gate bench

Fail AND Unknown = Fail

Fail AND Unknown = Fail. Fail dominates AND: whatever the Unknown resolves to, the result is Fail. A's witness is kept and the Unknown reason is dropped, because it cannot change the answer.

AND under Kleene K3: rows are A, columns are B.
A \ BPassFailUnknown
PassPassFailUnknown
FailFailFailFail
UnknownUnknownFailUnknown
OR under Kleene K3: rows are A, columns are B.
A \ BPassFailUnknown
PassPassPassPass
FailPassFailUnknown
UnknownPassUnknownUnknown
NOT under Kleene K3.
ANOT A
PassFail
FailPass
UnknownUnknown

Part B: witness calibrator

[code]
A file-exists grader passes whenever answer.md exists. You calibrate it with one bad witness (stale claim, answer.md missing) and one good witness. Does calibrate_all accept it?
Your prediction
How sure are you?
Grader
Grader: file-exists
What it doespasses whenever answer.md exists, ignores stale claims
Witnesses used2 bad, 2 good, 1 unknown
calibrate_allErr(BadWitnessNotRejected)
Mutation score4/20 (20%)
file-exists refused: BadWitnessNotRejected { got: Pass }.
How to use this

Part A is the gate bench: click the A and B tokens and the operator. Part B: pick a grader and tick witnesses. Try file-exists with only bad-2 and good-1. Deep link: ?preset=file-exists or ?a=Pass&b=Unknown&op=OR.

The maths
[code]crates/sa-core/src/predicate.rs:199Every bad witness must Fail
        for bad_witness in bad_witnesses {
            let (bad_verdict, _) = (self.check)(bad_witness);
Highlighted:             if !bad_verdict.is_fail() {
Highlighted:                 return Err(CalibrationError::BadWitnessNotRejected {
Highlighted:                     name: self.name,
Highlighted:                     got: bad_verdict,
Highlighted:                 });
Highlighted:             }
        }

A trial drug's patients drop out more often when they feel worse. The analysts analyse only completers. Which Same Again gap is this?

Answer options
How sure are you?

What a tester would say

N2

Software testing gave Same Again two of its tools, ddmin and bisect, and it also knows their failure mode by name: the flaky test.

  • Mutation testing. Inject small bugs and count how many the tests catch. That is a grader's real accuracy, measured on many bad witnesses instead of one (E4).
  • Test oracles. A test is only as good as the thing that decides pass or fail. A calibrated predicate is an oracle with a certificate.
  • Flaky tests. Big test teams quarantine tests that pass and fail on the same code. Single-probe bisect and shrink assume there are none (G3).

A test suite has 100% line coverage but kills only 3 of 20 injected bugs. What does that say about the suite?

Answer options
How sure are you?

What an econometrician would say

N3

  • Partial identification. Manski showed how to report what the data can and cannot rule out when outcomes are missing. Lee (2009) tightens the bounds by trimming, if you can assume the treatment only moves observation one way (G2).
  • Clustered standard errors. Pupils in one classroom are not independent. Neither are retries on one cut. The Moulton factor is the design effect from Pass 2 (G1).
  • Look-ahead bias. A backtest that uses revised figures trades on news from the future. A workspace from main is a revised figure (G6).
  • Specification search. Try enough models and one will fit. Twenty grader tweaks are twenty specifications (G5).

Lee's trimming fraction for our scenario: A is observed on every pair, B on 85%, so trim of A's outcomes [toy]leeTrimFraction(1, 0.85). Pairing does better still: on B's 15 missing pairs we know A passed.

A trading backtest uses each company's revised annual figures, published months after the trade date. Which Same Again gap is this?

Answer options
How sure are you?

Spot the statistical lie

E1E4E10

Not every claim is a lie. Some survive scrutiny, and learning to say so is part of the skill.

[code]

Spot the lie: "Our policy id is a Merkle root, so changing one skill file changes the policy id."

Answer options
How sure are you?

Spot the lie: "Our file-exists grader passed calibration on one bad and one good handover, so it detects stale claims."

Answer options
How sure are you?

Bisect probes the middle revision once. The revision is actually good, but the flaky agent fails it. What happens next?

Answer options
How sure are you?