Files
OBLITERATUS/docs/CALIBRATED_SCREENING.md
Joseph MaglyandClaude Opus 5.5 473f4abfdf feat(analysis): calibrated screening ladder study
Add optimization study O06: does a staged evaluation ladder (cheap
diagnostics, a development battery, then full evaluation) save total
cost without rejecting useful candidates?

- Arms: full evaluation of every candidate (bounded reference), a
  development-only ladder, and a ladder with a stage-0 score; usefulness
  is decided only by full evaluation with every collateral endpoint.
- Stage-0 scores must earn their role: predictor quality (Spearman, AUC)
  is reported, and separability or KL never substitutes for task
  success.
- Extra development samples use an anytime-valid mixture test (or a
  single fixed-sample look); naive repeated peeking is refused. Null
  simulations: 0.0245 and 0.0405 at alpha 0.05 against 0.24 for
  peeking.
- A seeded audit sample of exclusions is fully evaluated and every
  exclusion is reported. Rules are digest-bound; confirmation-exposed,
  test and confirmation rows are refused.
- Verdict is "no improvement" unless every seed passes cost,
  false-rejection, task and collateral tolerances with an unchanged
  confirmation candidate. `obliteratus experiments screening`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:56:27 -05:00

6.4 KiB
Raw Permalink Blame History

Calibrated screening study (O06)

The screening study asks whether a staged evaluation ladder finds the same useful interventions as full evaluation while costing less. Every candidate is also fully evaluated as a bounded reference, so false rejections are measured rather than assumed. The default answer is "no improvement".

obliteratus experiments screening run --spec screening-spec.json \
    --outcomes outcomes.json --out ./screening [--registry ./observations/<digest>] \
    [--expect-spec-sha256 sha256:...]
obliteratus experiments screening simulate-null --method mixture-martingale
from obliteratus.analysis.screening_report import run_screening_study
from obliteratus.analysis.screening_spec import TableEvaluator

report = run_screening_study(spec, TableEvaluator(outcomes), registry_dirs=[run_dir])

run_screening_study accepts any evaluator with development(candidate, row_ids) (one success flag per row) and full(candidate) (task flags per row and collateral [pristine_ok, intervened_ok] pairs per endpoint and row). TableEvaluator replays recorded outcomes (obliteratus.screening-outcomes/1). In replay mode the arm costs are the generations each arm would have needed. The report is screening.json (obliteratus.calibrated-screening/1), sealed by report_sha256 and deterministic for a fixed spec.

Arms and stages

Arm Stages
reference Full evaluation of every candidate.
development Simple non-geometric screen: stage 1 on every candidate, then stage 2.
ladder Stage 0, then stage 1 on the survivors, then stage 2.
  • Stage 0 reads a declared, already computed diagnostic (stage0.score, e.g. AUC or KL) and drops candidates on the wrong side of stage0.threshold. A missing score passes.
  • Stage 1 draws development rows in seeded random order and screens a candidate out only on evidence that its success rate is below stage1.reject_below. Unresolved candidates are promoted.
  • Stage 2 is the full task and collateral evaluation. Every declared task row and collateral endpoint is required, and an evaluator that omits one is refused. A candidate is useful when its task rate is at least usefulness.min_task_rate and every collateral endpoint passes the paired non-degradation rule used by the scorecards (exact McNemar, Wilson bound within collateral_margin). Usefulness never depends on stage 0.

A seeded uniform audit sample of each arm's exclusions (audit.fraction, at least audit.min_candidates) is fully evaluated. Useful audited candidates rejoin the finalists. Every exclusion is listed with its stage, reason and audit result.

Stage-1 procedure

stage1.method is one of:

  • mixture-martingale (default): anytime valid. The uniform-prior mixture likelihood ratio against p >= reject_below is a non-negative supermartingale under that null. By Ville's inequality, rejecting when it reaches 1/alpha keeps the chance of screening out a candidate at or above the floor at or below alpha, however often it is inspected. That holds with batches of stage1.batch rows and with extra batches allocated to the unresolved candidates nearest a decision, under an optional total budget stage1.max_total_rows.
  • fixed-sample: a single look after stage1.max_rows rows with the exact one-sided binomial test.

Re-checking an ordinary fixed-sample interval after every batch does not keep its nominal error. The spec refuses it. simulate-null --method naive-peeking shows the inflation: with 30 looks at alpha 0.05 the null rejection rate is about 0.24, against about 0.02 for the mixture martingale.

Declared rules

The spec (obliteratus.screening-spec/1) holds the candidates and their stage-0 diagnostics, the row identities of each battery (text or sha256), the stage rules, usefulness, audit, tolerances (false_rejection, collateral, task_rate, confidence), costs (stage0_forwards_per_candidate, forwards_per_generation), seeds, min_seeds and max_candidates. Unknown keys are refused. The resolved spec is digest-bound (spec_sha256), and --expect-spec-sha256 refuses a run whose rules changed after declaration. Row texts are never written.

Development rows must be disjoint from the final evaluation rows. Rows with role test or confirmation are refused. Rows of a confirmation set already exposed in a named registry are refused (see CONFIRMATION_REGISTRY.md). Outcome tables that carry anything other than screening outcomes are refused, so confirmation results cannot feed back into screening.

Accounting

For each arm and seed the report gives:

  • Cost: stage-0 forwards, development, full and shared pristine generations, and forward equivalents.
  • Cost saving: the saving against the reference.
  • False rejections: reference-useful candidates screened out, split into rescued by audit and missed. The rate comes with its Wilson upper bound, and the audit gives its own Horvitz–Thompson estimate.
  • Finalists: the finalists and the top finalist (the candidate that would go to confirmation), whether that candidate is unchanged, and its task-rate drop and collateral increase against the reference top finalist.

Predictor quality reports, for every stage-0 diagnostic, the Spearman correlation with the full-evaluation task rate and the AUC for usefulness. For the declared score it adds the useful candidates that fail the threshold. These are descriptive associations on the study's candidates. The stage-0 score has earned its role only when its correlation reaches stage0.min_rank_correlation and its false-rejection upper bound is within tolerance.

Verdict

An arm's verdict is "improvement" only if at least min_seeds seeds are run and, on every seed, all of the following hold:

  • total cost is below the reference;
  • the false-rejection upper bound is within tolerance, counting audited candidates;
  • the top finalist's task-rate drop and collateral increase are within tolerance;
  • the confirmation candidate is unchanged;
  • final endpoints are complete.

The ladder must also have a stage-0 score that earned its role. The recommendation is "geometry ladder" when the ladder passes and is either cheaper than the development-only arm on every seed or the only arm that passes. It is "development screening without geometry" when only that arm passes, and "no improvement" otherwise.

Results on synthetic fixtures are not evidence for real models.