research(v5): inventory development paired SD without freezing power

Draft
TH
2mo ago
+3327-0

Intent

Development-only, model-free, non-authoritative nuisance inventory of the existing V5 S1 paired source-task metric-difference distributions. This stack builds on draft PR #322 (original R2, two repeats, frozen research margins); does not alter #320's scientific execution or #321's duplicate-input guard; does not touch main.

Reproducible computation

Adds scripts/v5_s1_development_paired_sd_inventory.py, a fail-closed exact-source adapter using the existing frozen repeatability _row_metrics for canonical accuracy/NLL/Brier and semantic JS. Anchors to the exact 16,384-row committed baseline and independently verified real R1; verifies all paired prompts, tasks, targets, splits, logit finiteness, run seed/intervention, and 3,840 source-task clusters in each DEV_EVAL/CAL_EVAL split. Processes all nine already qualified B1/C1/C2 runs (seeds 11/29/47), never cherry-picks by performance.

Output artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/development-paired-sd.json SHA-256 b1edf781b61d3f5ce227c08908ca43ad9864c0b398a7318c33895951af37bacd: 72 finite descriptive sample SD observations for intervention/seed/split/metric plus paired mean, min, max, input hashes. Independent one-off computation generated numerically identical all 72 records before the reusable script was authored.

Large heterogeneity exists: DEV canonical accuracy paired SD B1 seed 11 ~0.0510 vs seed 29 ~0.9981; C1 seed 11 ~0.1369 vs seed 29 ~0.8077; C2 seed 11 ~0.0995 vs seed 29 ~0.7479. NLL also changes markedly across methods/seeds. These are descriptive development findings, not clinical/effect evidence.

macOS exact-head qualification

  • PYTHONPATH=src python3 -m pytest -q tests/reliability_v5/ --disable-warnings --maxfail=1: 305 passed; 86 subtests.
  • Full repository pytest: 1,357 passed; 264 subtests.
  • Python compile PASS, frozen binding qualification exact 307 files PASS, git diff --check PASS.
  • Alibaba OpenCodeReview local zero-cost delegate preview and host review recorded; no independent external model verdict. Jev deferred under zero-cost policy. DCO sign-off on commit; cryptographic GitHub signature is not asserted.
  • NO GPU, model call, PHI, paid API/compute, confirmatory/reserve identity, replication, publication or merge authority.

The actual remaining power gate

This inventory is NOT a frozen final power input or a justification to choose the smallest observed variance. The exact primary non-target hypothesis family and multiplicity count must be prospectively declared, and a conservative variance model must account for training-seed uncertainty and correlated source/seed effects. Only after those separate decisions may the frozen alpha=0.05, Holm, power=0.90, n=4096 planning mechanics be applied, without endpoint selection based on observed outcomes. Existing frozen benchmark margins remain nonclinical.

DRAFT / REVIEW ONLY, stacked atop draft PR #322. Do not merge until signed-commit and independent-review gates qualify and the scientific/governance authority is explicit. Owner and repo remain TheHalfMoon/commandMed.


Summary by cubic

Adds development-only, fail-closed inventories of paired source-task standard deviations and calculator-level effect correlations across the nine qualified B1/C1/C2 runs (seeds 11, 29, 47), without freezing any power input or selecting endpoints.

  • The paired-SD script computes candidate-minus-baseline per-source-task SD (ddof=1) for the four frozen metrics across DEV/CAL splits, reusing the frozen _row_metrics; it validates all 16,384 rows, paired identities, finite logits, and 3,840 clusters per split.
  • The calculator-ICC script runs a one-way descriptive ANOVA over 64 calculators (60 source tasks each) per split and reports unclipped rho, illustrating within- vs between-calculator variance for the same nine runs.
  • Between-seed SD varies widely (DEV canonical accuracy: B1 seed 11 ≈0.051, B1 seed 29 ≈0.998), so a single favorable per-seed estimate must not be used for future power calculations.
  • Both outputs are marked exploratory, exclude training-seed uncertainty, and make no confirmatory-power, hypothesis-family, or merge claims; stacked on draft PR #322.