Pass 1 of 4 · intuition · about 45 min

Visual intuition

Nine pictures, no formulas. Predict first, then watch.

0 of 20 concepts in this pass seen

This pass builds on concepts you have not opened yet: The four primitives, Hashes and content addressing, Directed acyclic graphs, Truth tables and Boolean logic, Bernoulli trials and pass rates. Everything below is readable anyway.

A replay is a sealed past

S2S3S4E1E2

Here is a real-shaped episode. Opus works on a retry-backoff bug in session 1 and commits C1. A day later Neon picks it up in session 2, finds the real cause and commits the fix, C2.

Same Again stores each turn as a small node in index.sqlite, with a pointer to the raw transcript bytes it came from. The node's id is the hash of where those bytes live and what they are. The heavy text stays in the original JSONL until something asks for it.

You drag the cut one turn to the left, so the agent sees one turn less. What happens to the cut's id?
Your prediction
How sure are you?
Cut slicer: sealing the pastintuitionDrag the hindsight barrier. Turns to its right slide into the grader's vault. Watch the cut id roll as the barrier moves.

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 change one byte in node 7's payload. Which ids change?
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 = 3✕▲✕✕✕▲▲▲▲▲Policy A replays [toy]Policy B replays [toy]agent/workspacetree of baseno .git · checkpoints.first()
3
Role
Cut manifest and isolation report
cut_id79a08bb5aa60
cut node3 · 15c04f75f76a
prefix turns (agent sees)2
held-out witnesses10
node 7 id2f431d5cbd8aclean
node 8 idcdd7f614a428clean
workspace refcheckpoints.first() → basecut-time commit base
isolation_verifiedtrueshipped check: no .git, no held-out id hex
leaked filesnone
ancestor checkskippedproposal, not in same-again
Cut before node 3: 2 turns sealed into cut 79a08bb5aa60.
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 cut role says why you cut where you did. Prevention cuts just before the bad commit and asks: would policy B have avoided it? Detection and repair cuts at the start of session 2 and asks: would B have found the cause faster? Handover cuts at a session boundary and asks: did the handoff carry what the next agent needed?

Now tamper with node 7's payload. Node 7 gets a new id. So does every cut whose prefix contains node 7. Node 8 does not change.

[code]

Someone edits node 7's line in the JSONL transcript and Same Again re-imports it. Which ids change?

Answer options
How sure are you?
[code]

A cut is taken at cut_seq = 40. Which of these may reach the agent's side?

Answer options
How sure are you?

What a check is

E3S5E4

At the end of session 1, Opus wrote a handoff.json that says covers_current_state: true. It also edited two files after its last test run. The claim is stale.

Same Again's real check for this is called handover-no-stale-claim. It reads the handoff and the session's tool calls and answers one of three things: Pass, Fail or Unknown. Unknown is what it says when answer.md is missing or the grader timed out. It is not a polite Fail.

Two checks are joined with AND. One says Pass. The other never ran. What should the combined answer be?
Your prediction
How sure are you?
Kleene gates and the grader calibratorintuitionDrop Pass, Fail and Unknown tokens into the gates. The truth table fills in as you try cases. Then hand a grader the witness shelf.

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: always-pass
What it doesa command grader that always exits 0
Witnesses used2 bad, 2 good, 1 unknown
calibrate_allErr(BadWitnessNotRejected)
Mutation score0/20 (0%)
always-pass 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.

A grader must earn the right to score anything. Before Same Again lets it near a trial, it shows the grader a known-bad handoff (stale claim) and a known-good one (fresh verification). Reject the bad, accept the good, or no deal.

Here is the catch. A lazy grader that only checks whether answer.md exists can pass that test, if the bad witness happened to be missing its file. It rejected the bad handoff for the wrong reason.

[code]

A grader checks 'build passed AND the named test ran'. The build passed. The test log is missing. What does Same Again record?

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?

One run is not a rate

E8

Your agent fixes the flaky-test bug 60% of the time. Is that good? It depends on the question you are asking.

  • Can it ever do this? Give it k tries and keep the best. That chance climbs towards 1.
  • Does it do this every time? Run it k times unattended and need all k. That chance falls towards 0.
The 60% agent runs 8 times unattended. Bet: what is the chance all 8 succeed?
50 %
How sure are you?
pass@k against pass^kintuitionSlide k from 1 to 8. The gold curve asks 'can it ever?', the blue one 'does it every time?'. The wedge between them is the flakiness gap.

pass@k climbs, pass^k decays

[code]sa-core/src/stats.rs:395[code]sa-core/src/stats.rs:412
0%25%50%75%100%12345678k (runs)flakiness gappass@k 99.9%pass^k 1.7%
One sample of 8 runs:12345678

In this sample, the first 5 runs: at least one passed = yes, all passed = no.

60%
5
Per-run success p = 60%
pass@599.0%at least one of k passes
pass^57.8%all k pass
flakiness gap91.2%
At k = 5 the same agent is 99.0% capable (pass@k) and 7.8% reliable (pass^k).
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.

An agent passes a task 60% of the time. It will run unattended every night for a week. Which number tells you how often the whole week goes cleanly?

Answer options
How sure are you?

Compare on the same task

F4E7

Some tasks are hard for every policy. If A gets the hard tasks and B gets the easy ones, B looks better for reasons that have nothing to do with B.

The fix is old: run both policies on the same cut and compare them pair by pair. A hard task drags both scores down together, so its difficulty cancels in the difference. Statisticians call the shared wobble covariance.

But pairing has a mirror-image trap. Eight retries on one task share that task's quirks. They agree with each other more than eight different tasks would, so they carry less information than eight.

Paired variance and clustered retriesintuitionRaise the correlation between A and B and watch the spread of A − B shrink. Then push the retries-per-task slider and watch eight dots collapse into one.

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.

0.60
0.50
Gap 1 design
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
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.

You have budget for 8 runs of each policy. Which plan tells you most about the policies?

Answer options
How sure are you?

When may you stop?

F5E5S6

Flip two identical coins, A and B, and keep score of which wins. After every flip, run a standard 5% test. Stop the moment it says 'B is better'.

A standard test promises a 5% false-alarm rate if you look once, at a sample size you fixed in advance. Every extra look is another ticket in the lottery.

1,000 pairs of identical coins. Each is checked after every flip from flip 5 to flip 150. Bet: what share of them ever shouts 'B is better'?
5 %
How sure are you?
E-process against naive peekingintuitionPress play. Grey paths are null streams. A red one has been shipped by a peeker. A gold one crossed the e-process line.

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

[code]sa-core/src/stats.rs:350[code]sa-core/src/stats.rs:365[toy]
[toy]
Policies A and B are identical. You run a standard test after every pair for 150 pairs and ship the first time it says p < 0.05. Out of 1,000 such experiments, how often do you ship a change that does nothing?
Your prediction
How sure are you?
  • Naive peeking (z-test)0.0%
  • sa-core e-process0.0%

Bars run from 0% to 50%; the tick marks α = 5%.

pair 150 / 150
Streams
Pairs
seed 42
1,000 null streams, α = 0.05
Pairs observed0
Naive false positives so farveiled
E-process false positives so farveiled
Naive FPR at 150veiled
E-process FPR at 150veiled
Rejection thresholdE ≥ 20
Straight B-wins needed8E(7,0) = 16.00, E(8,0) = 28.44
Lock in a prediction to start the race.
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.

This is why sa diff can re-analyse after every pair and stop at the first clear verdict. Its evidence is a running bet against 'no difference' that, under the null, never grows on average. To say Better at α = 0.05 the bet must multiply your stake twenty-fold.

That same machinery gives sa diff four possible answers: Better, Worse, Equivalent, or Inconclusive. Inconclusive is the honest answer more often than you would like.

The runs that never finished

E6

Some replays time out. Some graders cannot find answer.md. Those trials come back Unknown. What should a comparison do with a pair where B is Unknown?

Same Again drops it from the evidence, as long as no more than 20% of either arm is Unknown. That is safe if the timeouts are random. Now suppose B times out exactly on the hard tasks, the ones it would have failed.

100 tasks. B times out on 15 hard ones that A passed. B wins 18 of the remaining pairs and A wins 4. Could B actually be worse than A?
Your prediction
How sure are you?
Manski bounds and the Unknown fogintuitionDrag 'resolve the fog' from best case to worst case. The tiles turn into outcomes and the estimate slides along its range.

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.

Policy B times out on 15 of 100 tasks, all of them hard ones that A passed. The diff drops those 15 pairs. What happens to B's apparent advantage?

Answer options
How sure are you?

Which change broke it?

S7E10

Your AGENTS.md has 16 revisions. Revision 0 passes the handoff check. Revision 15 fails it. Somewhere in between, a change broke it. sa bisect finds it by halving, like git bisect.

Halving works when every probe tells the truth. An agent is not a compiler. A good revision may pass only 90% of the time and a bad one 30%.

The very first midpoint is a good revision, but this once the agent fails it. Can bisect still find the true first-bad revision?
Your prediction
How sure are you?
Noisy bisect against classic bisectintuitionForce one unlucky flip at the first midpoint. The classic calipers snap shut on the wrong revision. The belief histogram dips and recovers.

One flaky probe, two searches

[code]sa-core/src/search.rs:233[inference]Gap 3[toy]
Deterministic bisect (sa-core)0123456789101112131415▲✕▲▲✕▲true regression at rev-11prints first_bad = rev-13 (wrong, no way back)Probabilistic bisection (proposal): posterior over the first bad revision▲▲▲✕✕▲✕▲✕▲▲▲✕97%
probebisect revverdictPBA revverdictPBA MAP
1rev-0Passrev-7Passrev-8
2rev-15Failrev-10Passrev-11
3rev-7Passrev-12Passrev-13
4rev-11Passrev-13Failrev-13
5rev-13Failrev-12Failrev-11 ↺
6rev-12Passrev-10Passrev-11 ↺
7rev-11Failrev-11 ↺
8rev-10Passrev-11 ↺
9rev-11Failrev-11 ↺
10rev-10Passrev-11 ↺
11rev-10Passrev-11 ↺
12rev-11Passrev-11 ↺
13rev-11Failrev-11 ↺
probe 13 / 13
10%
30%
16 revisions, true first bad rev-11; P(Pass | good) = 90%, P(Pass | bad) = 30%
Bisect bracket[12, 13]
Bisect resultFound { good_index: 12, first_bad_index: 13 }
PBA most likely first badrev-11 (96.6%)
PBA backtracks so far9
PBA resultFound rev-11 at 96.6% posterior
PBA assumesP(Pass | good) 90%, P(Pass | bad) 30%
Bisect correct (1,000 replays)33.4%confidently wrong 31.9%
PBA correct (1,000 replays)91.9%mean 14.9 probes
Probe 13: bisect bracket [12, 13]; probabilistic bisection puts 97% on rev-11.
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.

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?

Which rule matters?

S8E9

Take a bloated AGENTS.md with four sections: ## Git, ## Tools, ## Style, ## Testing. Suppose only Git and Testing actually help with this task. Try to find them by hand with the fewest runs. This is a hand-worked toy, not a real run.

  1. Run with all four. It passes, so there is something to shrink.
  2. Keep only the first half, Git and Tools. It fails: something needed is in the other half.
  3. Keep only Style and Testing. It fails too: the needed rules are split across both halves.
  4. Remove one quarter at a time. Without Tools: passes, so drop Tools. Without Style: passes, drop Style.
  5. Git and Testing remain, and removing either fails. That is 1-minimal: no single removal still passes.

That is Zeller's delta debugging, and sa shrink runs it over the units of your policy tree. It trusts every Pass. Now imagine step 4 passed by luck while Tools was actually needed.

ddmin and ProbDD policy shrinkerintuitionWatch the plates slide out as each probe runs. Then turn up the flake and see which plates get stamped dead weight by mistake.

Which rules in AGENTS.md actually matter?

[code]sa-core/src/search.rs:36[inference]Gap 3[toy]

ddmin (sa-core)

  1. 0AGENTS.md#GitACTIVE
  2. 1AGENTS.md#ToolsACTIVE
  3. 2AGENTS.md#StyleACTIVE
  4. 3AGENTS.md#TestingACTIVE
  5. 4AGENTS.md#PlansDEAD WEIGHT
  6. 5AGENTS.md#VoiceDEAD WEIGHT
  7. 6skill:rust-feedbackACTIVE
  8. 7skill:handoffACTIVE

Probe 24: kept {6} → Fail

  • Probes / budget24 / 24

ProbDD proposal, not in sa-core

  1. 0AGENTS.md#Git1.00
  2. 1AGENTS.md#Tools0.00
  3. 2AGENTS.md#Style0.00
  4. 3AGENTS.md#Testing1.00
  5. 4AGENTS.md#Plans0.00
  6. 5AGENTS.md#Voice0.00
  7. 6skill:rust-feedback1.00
  8. 7skill:handoff0.00

Probe 12: removed {3} → Fail

stepkept_indicesverdict
1{0, 1, 2, 3, 4, 5, 6, 7}Pass
2{}Fail
3{0, 1, 2, 3}Fail
4{4, 5, 6, 7}Fail
5{4, 5, 6, 7}Fail
6{0, 1, 2, 3}Fail
7{0, 1}Fail
8{2, 3}Fail
9{4, 5}Fail
10{6, 7}Fail
11{2, 3, 4, 5, 6, 7}Fail
12{0, 1, 4, 5, 6, 7}Fail
13{0, 1, 2, 3, 6, 7}Pass
14{0, 1}Fail
15{2, 3}Fail
16{6, 7}Fail
17{2, 3, 6, 7}Fail
18{0, 1, 6, 7}Fail
19{0, 1, 2, 3}Fail
20{0}Fail
21{1}Fail
22{2}Fail
23{3}Fail
24{6}Fail
probe 24 / 24
0%
ddmin budget
8 units, truly needed {0, 3, 6}; P(Pass | needed kept) = 100%, otherwise 0%
ddmin probes (this run)24 / 24budget_exhausted
ddmin probes for a full deterministic run48
ddmin result{0, 1, 2, 3, 6, 7}
ProbDD probes (this run)12
ProbDD result{0, 3, 6}
ddmin deleted a needed rule (200 runs)0.0%baseline aborted 0.0%
ProbDD deleted a needed rule (200 runs)0.0%exact set 100.0%
ddmin ran out of budget at 24 probes and kept {0, 1, 2, 3, 6, 7}; a full run needs 48.
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.

Shrink removes the Testing section and the agent passes once. With a flaky agent, which mistake is more dangerous here?

Answer options
How sure are you?

How often may you ask?

E11

You wrote a grader, ran a diff, got Inconclusive. You tweak the grader's threshold and run again. And again. On the twentieth tweak, Better.

Each run was a fair 5% test on its own. Together they were twenty tickets in the same lottery, drawn on the same cuts. The data you tuned on cannot also be the data you prove on.

The garden of forking predicatesintuitionGrow the tree of grader revisions under a true null. A gold Better leaf appears eventually. Then open the vault of fresh cuts 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

v0v1holdout vaultunopened
tweakb / apEverdict
v19 / 150.3070.51Inconclusive
1
1 tweak on 40 dev cuts, true null, α = 0.05
Bound 1 − (1 − α)^m5.00%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.

You tweak a grader 20 times and run a 5% diff after each tweak, on the same cuts, when nothing really changed. Under independence, what is the upper bound on the chance of at least one false Better?

Answer options
How sure are you?