From 630fa93cf1d255f28e19b0006c456c25e3574ebe Mon Sep 17 00:00:00 2001 From: Gocceri Date: Fri, 9 Oct 2026 21:32:02 +0300 Subject: [PATCH 1/2] research(v5): inventory development paired SD without freezing power Signed-off-by: Gocceri --- .../development-paired-sd.json | 636 ++++++++++++++++++ .../ocr-preview.json | 46 ++ .../ocr-version.txt | 3 + .../validation-and-review.json | 50 ++ ...RVENTION_PAIRED_SD_INVENTORY_2026-10-09.md | 42 ++ .../v5_s1_development_paired_sd_inventory.py | 198 ++++++ .../test_development_paired_sd_inventory.py | 76 +++ 7 files changed, 1051 insertions(+) create mode 100644 artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/development-paired-sd.json create mode 100644 artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/ocr-preview.json create mode 100644 artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/ocr-version.txt create mode 100644 artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/validation-and-review.json create mode 100644 docs/research/paper-rebuild-v2-2026-10-02/V5_S1_DESCRIPTIVE_INTERVENTION_PAIRED_SD_INVENTORY_2026-10-09.md create mode 100644 scripts/v5_s1_development_paired_sd_inventory.py create mode 100644 tests/reliability_v5/test_development_paired_sd_inventory.py diff --git a/artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/development-paired-sd.json b/artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/development-paired-sd.json new file mode 100644 index 00000000..a4d0c8da --- /dev/null +++ b/artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/development-paired-sd.json @@ -0,0 +1,636 @@ +{ + "baseline_sha256": "4308392b831da1ac7d60f5f75e5eec6a011a685ccbd8c9252f77d593d0bf5dc9", + "calibration_and_training_excluded_from_sd": true, + "confirmatory": false, + "confirmatory_power_claim": false, + "delta_orientation": "candidate_metric_minus_unchanged_baseline_metric", + "intervention_results": { + "B1_11": { + "artifact_path": "artifacts/v5/development/s1-colab-resource-qualification/b1-complete-2026-10-04/b1-seed-11-decision-matrix.json", + "artifact_sha256": "24f6be4368723f403bcb5c017ea79934a17986d517c57411df2012ca6826baf0", + "intervention": "B1_TYPED_V1", + "seed": 11, + "splits": { + "S1_CAL_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.0, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.04564949078990303, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 1.5604706967747475, + "mean_delta_raw_orientation": 0.44150742060646947, + "min_delta": -0.5643667967202775, + "paired_source_task_sample_sd": 0.6809635417332688, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 33.906177359593514, + "mean_delta_raw_orientation": 16.728810833401017, + "min_delta": -0.757599035317169, + "paired_source_task_sample_sd": 16.913526906811402, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 9.57011885716761e-67, + "mean_delta_raw_orientation": -0.0011929065899829092, + "min_delta": -0.011955515090201978, + "paired_source_task_sample_sd": 0.001576085624924554, + "task_count": 3840 + } + }, + "S1_DEV_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.0, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.05103768227223688, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 1.5604706967747475, + "mean_delta_raw_orientation": 0.45753694318235555, + "min_delta": -0.5643667967202775, + "paired_source_task_sample_sd": 0.6817620899869352, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 33.906177359593514, + "mean_delta_raw_orientation": 17.13381277305445, + "min_delta": -0.757599035317169, + "paired_source_task_sample_sd": 16.90355404821849, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 5.804570503966179e-67, + "mean_delta_raw_orientation": -0.0012071127534053192, + "min_delta": -0.011773360598332477, + "paired_source_task_sample_sd": 0.0015590836876537464, + "task_count": 3840 + } + } + } + }, + "B1_29": { + "artifact_path": "artifacts/v5/development/s1-colab-resource-qualification/b1-complete-2026-10-04/b1-seed-29-decision-matrix.json", + "artifact_sha256": "37d9604165562bda296fba163ea0e4bc152663baadcfdbccecdd4e9cdb35faaa", + "intervention": "B1_TYPED_V1", + "seed": 29, + "splits": { + "S1_CAL_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.013541666666666667, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.9989960880748663, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 1.987085354408976, + "mean_delta_raw_orientation": 0.4144240872731361, + "min_delta": -1.6740875148941328, + "paired_source_task_sample_sd": 1.3423680684845563, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 34.45500615739771, + "mean_delta_raw_orientation": 16.2610982363866, + "min_delta": -2.4639394654749385, + "paired_source_task_sample_sd": 17.628429762541145, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 1.8941752281174937e-98, + "mean_delta_raw_orientation": -0.0011929065899829092, + "min_delta": -0.011955515090201978, + "paired_source_task_sample_sd": 0.001576085624924554, + "task_count": 3840 + } + }, + "S1_DEV_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.0375, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.9981227495569474, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 1.9884910730477292, + "mean_delta_raw_orientation": 0.38253694318235554, + "min_delta": -1.6558615192742494, + "paired_source_task_sample_sd": 1.3413716999350427, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 34.45988666061813, + "mean_delta_raw_orientation": 15.838608658245303, + "min_delta": -2.4069128758600944, + "paired_source_task_sample_sd": 17.617371239287852, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 1.0775872960309831e-98, + "mean_delta_raw_orientation": -0.0012071127534053192, + "min_delta": -0.011773360598332477, + "paired_source_task_sample_sd": 0.0015590836876537464, + "task_count": 3840 + } + } + } + }, + "B1_47": { + "artifact_path": "artifacts/v5/development/s1-colab-resource-qualification/b1-complete-2026-10-04/b1-seed-47-decision-matrix.json", + "artifact_sha256": "9cacfb2e46cc4db7c628b40fc7e857e31635c40150e87ec71dcfdb8e00a73ee0", + "intervention": "B1_TYPED_V1", + "seed": 47, + "splits": { + "S1_CAL_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.0, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.04564949078990303, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 1.5604706967747475, + "mean_delta_raw_orientation": 0.44150742060646947, + "min_delta": -0.5643667967202775, + "paired_source_task_sample_sd": 0.6809635417332688, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 33.906177359593514, + "mean_delta_raw_orientation": 16.728810833401017, + "min_delta": -0.757599035317169, + "paired_source_task_sample_sd": 16.913526906811402, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 3.073359399924031e-99, + "mean_delta_raw_orientation": -0.0011929065899829092, + "min_delta": -0.011955515090201978, + "paired_source_task_sample_sd": 0.001576085624924554, + "task_count": 3840 + } + }, + "S1_DEV_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.0, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.05103768227223688, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 1.5604706967747475, + "mean_delta_raw_orientation": 0.45753694318235555, + "min_delta": -0.5643667967202775, + "paired_source_task_sample_sd": 0.6817620899869352, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 33.906177359593514, + "mean_delta_raw_orientation": 17.13381277305445, + "min_delta": -0.757599035317169, + "paired_source_task_sample_sd": 16.90355404821849, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 2.5634874099705635e-99, + "mean_delta_raw_orientation": -0.0012071127534053192, + "min_delta": -0.011773360598332477, + "paired_source_task_sample_sd": 0.0015590836876537464, + "task_count": 3840 + } + } + } + }, + "C1_11": { + "artifact_path": "artifacts/v5/development/s1-kaggle-adapters/c1-seed-11-v4-2026-10-08/evidence/adapter-decision-matrix.json", + "artifact_sha256": "dd8daa62900043ea8aee1e3f26543d6c70632c1f4d54016675cb2954a62d4769", + "intervention": "C1_CRDI_V1", + "seed": 11, + "splits": { + "S1_CAL_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.002864583333333333, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.13974308431098253, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 0.19255553307114703, + "mean_delta_raw_orientation": -0.03383745709027565, + "min_delta": -0.35986382891612045, + "paired_source_task_sample_sd": 0.11907580629432579, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 0.19334038456167457, + "mean_delta_raw_orientation": -0.03997805953903574, + "min_delta": -0.5002255115055372, + "paired_source_task_sample_sd": 0.13599166902715992, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 0.006323109149101582, + "mean_delta_raw_orientation": -8.890612907443458e-05, + "min_delta": -0.007584471838430279, + "paired_source_task_sample_sd": 0.001160656989884033, + "task_count": 3840 + } + }, + "S1_DEV_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.0, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.1369484723697091, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 0.19642244244120177, + "mean_delta_raw_orientation": -0.03562428311822003, + "min_delta": -0.293982052776526, + "paired_source_task_sample_sd": 0.11839556239668464, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 0.2038983570406503, + "mean_delta_raw_orientation": -0.042230409515244476, + "min_delta": -0.49297948073359654, + "paired_source_task_sample_sd": 0.13562373979744197, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 0.007608634054007246, + "mean_delta_raw_orientation": -6.481724229309947e-05, + "min_delta": -0.006826790986250306, + "paired_source_task_sample_sd": 0.0011428278367251752, + "task_count": 3840 + } + } + } + }, + "C1_29": { + "artifact_path": "artifacts/v5/development/s1-kaggle-adapters/c1-seed-29-v1-2026-10-08/evidence/adapter-decision-matrix.json", + "artifact_sha256": "37c022d535fffed59215a32eb25da0ffd85faa3d0d34b084a4c9173eb4053f28", + "intervention": "C1_CRDI_V1", + "seed": 29, + "splits": { + "S1_CAL_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.0026041666666666665, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.8066495524560556, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 0.5391885780739507, + "mean_delta_raw_orientation": -0.05847347656141426, + "min_delta": -0.6698542546244335, + "paired_source_task_sample_sd": 0.40125591364192076, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 0.5609315862360564, + "mean_delta_raw_orientation": -0.06732335401979703, + "min_delta": -1.1046063276037317, + "paired_source_task_sample_sd": 0.42743677423265, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 0.008855284057901374, + "mean_delta_raw_orientation": 1.9884117086192228e-05, + "min_delta": -0.006416866977265477, + "paired_source_task_sample_sd": 0.0012734437900963269, + "task_count": 3840 + } + }, + "S1_DEV_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.019270833333333334, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.8077144905133814, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 0.516685321862312, + "mean_delta_raw_orientation": -0.06846399753914564, + "min_delta": -0.6698542546244335, + "paired_source_task_sample_sd": 0.4004160043512207, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 0.5305774141366786, + "mean_delta_raw_orientation": -0.07816734636624217, + "min_delta": -1.0475797379888876, + "paired_source_task_sample_sd": 0.42710344903741737, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 0.00864792062217859, + "mean_delta_raw_orientation": 2.540431657398543e-05, + "min_delta": -0.007600079392661725, + "paired_source_task_sample_sd": 0.001265250139545107, + "task_count": 3840 + } + } + } + }, + "C1_47": { + "artifact_path": "artifacts/v5/development/s1-kaggle-adapters/c1-seed-47-v1-2026-10-08/evidence/adapter-decision-matrix.json", + "artifact_sha256": "565b83b42e4476f458466a1b6e7193891ee6b38e81823538383a7a028739a8a8", + "intervention": "C1_CRDI_V1", + "seed": 47, + "splits": { + "S1_CAL_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.0013020833333333333, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.06653225275976475, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 0.17752621862762114, + "mean_delta_raw_orientation": -0.02302059307995781, + "min_delta": -0.3706397698733215, + "paired_source_task_sample_sd": 0.0900057778073333, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 0.18906841376394373, + "mean_delta_raw_orientation": -0.02850244318823005, + "min_delta": -0.7111403250953825, + "paired_source_task_sample_sd": 0.11169996417957474, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 0.009890873380984787, + "mean_delta_raw_orientation": 0.0003362990790036817, + "min_delta": -0.010013778143060623, + "paired_source_task_sample_sd": 0.0016096714091009096, + "task_count": 3840 + } + }, + "S1_DEV_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": -0.00026041666666666666, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.05819132822622998, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 0.19642244244120177, + "mean_delta_raw_orientation": -0.025161784855332308, + "min_delta": -0.3706397698733215, + "paired_source_task_sample_sd": 0.0919869006526937, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 0.2038983570406503, + "mean_delta_raw_orientation": -0.031346826949133176, + "min_delta": -0.7497939073150992, + "paired_source_task_sample_sd": 0.11509845122444952, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 0.009331419836978577, + "mean_delta_raw_orientation": 0.00030776079872690235, + "min_delta": -0.009831623651191123, + "paired_source_task_sample_sd": 0.0016013933167382222, + "task_count": 3840 + } + } + } + }, + "C2_11": { + "artifact_path": "artifacts/v5/development/s1-kaggle-c2-adapters/c2-seed-11-v2-2026-10-09/evidence/adapter-decision-matrix.json", + "artifact_sha256": "9b320389a9aa16b22f8e8fc5e4699a20975deaebd7d3e1deab6372db4b163970", + "intervention": "C2_CRDI_RETAIN_V1", + "seed": 11, + "splits": { + "S1_CAL_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.00026041666666666666, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.10079101007138244, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 0.18098796396707034, + "mean_delta_raw_orientation": -0.018885842186717083, + "min_delta": -0.2858227375372303, + "paired_source_task_sample_sd": 0.07606321139112197, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 0.18165961543832532, + "mean_delta_raw_orientation": -0.022493430248402828, + "min_delta": -0.3650580752304726, + "paired_source_task_sample_sd": 0.08621870137686419, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 0.009120323540441618, + "mean_delta_raw_orientation": -2.623242995836794e-05, + "min_delta": -0.007584471838430279, + "paired_source_task_sample_sd": 0.001207166053757415, + "task_count": 3840 + } + }, + "S1_DEV_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": -0.0010416666666666667, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.0994853039019062, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 0.1681590024140443, + "mean_delta_raw_orientation": -0.019839864164092672, + "min_delta": -0.22135377303726145, + "paired_source_task_sample_sd": 0.07577938693196312, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 0.17002391642010528, + "mean_delta_raw_orientation": -0.02374340880927646, + "min_delta": -0.2871509640834251, + "paired_source_task_sample_sd": 0.08604680373058383, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 0.008953046549649228, + "mean_delta_raw_orientation": -1.4436824493398018e-05, + "min_delta": -0.0075027197900484205, + "paired_source_task_sample_sd": 0.0011946247231131484, + "task_count": 3840 + } + } + } + }, + "C2_29": { + "artifact_path": "artifacts/v5/development/s1-kaggle-c2-adapters/c2-seed-29-v1-2026-10-09/evidence/adapter-decision-matrix.json", + "artifact_sha256": "33633cd0542863e913f38da0d6b1443f589da0433d95db330872c54aa2e9ebeb", + "intervention": "C2_CRDI_RETAIN_V1", + "seed": 29, + "splits": { + "S1_CAL_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.00234375, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.741888304518861, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 0.516685321862312, + "mean_delta_raw_orientation": -0.060045393276461884, + "min_delta": -0.634348650844387, + "paired_source_task_sample_sd": 0.3736266314498486, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 0.5305774141366786, + "mean_delta_raw_orientation": -0.06892823893404372, + "min_delta": -1.0577893292266238, + "paired_source_task_sample_sd": 0.39921650266444775, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 0.009034074073966761, + "mean_delta_raw_orientation": 5.545291349656339e-05, + "min_delta": -0.008812360298424304, + "paired_source_task_sample_sd": 0.0012720997650370685, + "task_count": 3840 + } + }, + "S1_DEV_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": 0.0125, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.74790669058188, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 0.516685321862312, + "mean_delta_raw_orientation": -0.06844128144483554, + "min_delta": -0.6283957249683876, + "paired_source_task_sample_sd": 0.3723804676136071, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 0.5305774141366786, + "mean_delta_raw_orientation": -0.07815683653241842, + "min_delta": -1.025879032373383, + "paired_source_task_sample_sd": 0.39854238263238106, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 0.00831975507674296, + "mean_delta_raw_orientation": 4.3942259301281294e-05, + "min_delta": -0.007600079392661725, + "paired_source_task_sample_sd": 0.0012451153313204088, + "task_count": 3840 + } + } + } + }, + "C2_47": { + "artifact_path": "artifacts/v5/development/s1-kaggle-c2-adapters/c2-seed-47-v1-2026-10-09/evidence/adapter-decision-matrix.json", + "artifact_sha256": "51f74581c0e31252948d8f0c467fbf725a71c1618d0cc8b3190518c3f7b3b6f1", + "intervention": "C2_CRDI_RETAIN_V1", + "seed": 47, + "splits": { + "S1_CAL_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": -0.0005208333333333333, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.055906553068885485, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 0.22036697132877836, + "mean_delta_raw_orientation": -0.017196007437642023, + "min_delta": -0.2912669553464349, + "paired_source_task_sample_sd": 0.07992033107112116, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 0.2595610092417042, + "mean_delta_raw_orientation": -0.021650108083615303, + "min_delta": -0.5537153150368515, + "paired_source_task_sample_sd": 0.0975868204907611, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 0.00898308566767207, + "mean_delta_raw_orientation": 0.0004782171037292447, + "min_delta": -0.008799166473454969, + "paired_source_task_sample_sd": 0.0017319925871849859, + "task_count": 3840 + } + }, + "S1_DEV_EVAL": { + "canonical_accuracy": { + "max_delta": 1.0, + "mean_delta_raw_orientation": -0.0005208333333333333, + "min_delta": -1.0, + "paired_source_task_sample_sd": 0.060386353411913105, + "task_count": 3840 + }, + "canonical_brier": { + "max_delta": 0.22036697132877836, + "mean_delta_raw_orientation": -0.01810524168598592, + "min_delta": -0.2858227375372303, + "paired_source_task_sample_sd": 0.07944530471976274, + "task_count": 3840 + }, + "canonical_nll": { + "max_delta": 0.2595610092417042, + "mean_delta_raw_orientation": -0.022923895096810733, + "min_delta": -0.5454619235310882, + "paired_source_task_sample_sd": 0.09747790936694539, + "task_count": 3840 + }, + "semantic_js": { + "max_delta": 0.009331419836978577, + "mean_delta_raw_orientation": 0.000439580559066519, + "min_delta": -0.008330994086470827, + "paired_source_task_sample_sd": 0.001751758616376404, + "task_count": 3840 + } + } + } + } + }, + "primary_metrics": [ + "canonical_accuracy", + "canonical_nll", + "canonical_brier", + "semantic_js" + ], + "primary_non_target_family_size": null, + "reserve": false, + "schema": "commandmed.v5.descriptive-development-paired-sd-inventory.v1", + "scope": "DEVELOPMENT_CALIBRATION_ONLY", + "source_task_cluster": "task_id", + "status": "EXPLORATORY_NUISANCE_NOT_FROZEN_POWER_INPUT", + "training_seed_uncertainty_not_included_in_paired_item_sd": true, + "variance_estimator": "sample_stddev_ddof_1_within_each_split_and_intervention_seed", + "verified_r1_reference_sha256": "600dbd236098b967558e96d5ddf7d4144903fad96b172ad2871ec02fb0f30a44" +} diff --git a/artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/ocr-preview.json b/artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/ocr-preview.json new file mode 100644 index 00000000..d28656c2 --- /dev/null +++ b/artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/ocr-preview.json @@ -0,0 +1,46 @@ +{ + "schema_version": "1", + "mode": "workspace", + "repository": "/Users/abdulazizalsh/CommandMed-sd-inventory", + "total_files": 5, + "reviewable_count": 3, + "excluded_count": 2, + "total_insertions": 952, + "total_deletions": 0, + "reviewable_files": [ + { + "path": "artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/development-paired-sd.json", + "status": "added", + "insertions": 636, + "deletions": 0 + }, + { + "path": "scripts/v5_s1_development_paired_sd_inventory.py", + "status": "added", + "insertions": 198, + "deletions": 0 + }, + { + "path": "artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/ocr-preview.json", + "status": "added", + "insertions": 0, + "deletions": 0 + } + ], + "excluded_files": [ + { + "path": "docs/research/paper-rebuild-v2-2026-10-02/V5_S1_DESCRIPTIVE_INTERVENTION_PAIRED_SD_INVENTORY_2026-10-09.md", + "status": "added", + "insertions": 42, + "deletions": 0, + "exclude_reason": "unsupported_ext" + }, + { + "path": "tests/reliability_v5/test_development_paired_sd_inventory.py", + "status": "added", + "insertions": 76, + "deletions": 0, + "exclude_reason": "default_path" + } + ] +} diff --git a/artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/ocr-version.txt b/artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/ocr-version.txt new file mode 100644 index 00000000..93ed296f --- /dev/null +++ b/artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/ocr-version.txt @@ -0,0 +1,3 @@ +open-code-review v1.12.13 (fabbdb29) darwin/arm64 +built at: 2026-10-08T11:54:55Z +https://github.com/alibaba/open-code-review diff --git a/artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/validation-and-review.json b/artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/validation-and-review.json new file mode 100644 index 00000000..559713f0 --- /dev/null +++ b/artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/validation-and-review.json @@ -0,0 +1,50 @@ +{ + "alibaba_ocr": "Genuine zero-cost delegate eligibility, host code/data inspection only", + "branch_base_head": "eeac68c1c3224628dc9d9dcbf4be0ac6d275157c", + "confirmatory": false, + "descriptive_sd_cell_count": 72, + "external_model_review": "NOT_RUN", + "focused_v5_pytest": { + "exit_code": 0, + "passed": 305, + "subtests_passed": 86 + }, + "frozen_file_binding": { + "binding_sha256": "c33e603e531b5f3957a0fbe5fa63d45f070e21e2243b268af232516990dd428f", + "files": 307, + "status": "PASS" + }, + "full_repository_pytest": { + "exit_code": 0, + "passed": 1357, + "subtests_passed": 264 + }, + "git_signature": "NOT_YET_VERIFIED", + "incremental_paid_compute_usd": 0, + "intervention_seed_count": 9, + "jev": "DEFERRED_ZERO_COST_POLICY", + "new_model_calls": 0, + "nonclinical_research_only": true, + "ocr_excluded_count": 2, + "ocr_reviewable_count": 3, + "one_off_independent_comparison": "PASS_ALL_72_NUMERIC_CELL_RECORDS_EXACT", + "open_gates": [ + "independent_review", + "signed_commits", + "prospective_primary_non_target_family", + "across_training_seed_variance_model", + "final_power_proof", + "confirmatory_authorization", + "replication_authorization", + "publication_authorization" + ], + "paired_sd_frozen_for_confirmatory_power": false, + "power_90pct_qualification": "NOT_PROVEN", + "primary_non_target_family_size_frozen": false, + "program_scope": "DEVELOPMENT_CALIBRATION_ONLY", + "python_compile": "PASS", + "reserve": false, + "schema": "commandmed.v5.descriptive-sd-review.v1", + "source_artifact_sha256": "b1edf781b61d3f5ce227c08908ca43ad9864c0b398a7318c33895951af37bacd", + "status": "LOCAL_QUALIFIED_NOT_ADMITTED_TO_POWER" +} diff --git a/docs/research/paper-rebuild-v2-2026-10-02/V5_S1_DESCRIPTIVE_INTERVENTION_PAIRED_SD_INVENTORY_2026-10-09.md b/docs/research/paper-rebuild-v2-2026-10-02/V5_S1_DESCRIPTIVE_INTERVENTION_PAIRED_SD_INVENTORY_2026-10-09.md new file mode 100644 index 00000000..0cef3bc9 --- /dev/null +++ b/docs/research/paper-rebuild-v2-2026-10-02/V5_S1_DESCRIPTIVE_INTERVENTION_PAIRED_SD_INVENTORY_2026-10-09.md @@ -0,0 +1,42 @@ +# V5 S1 complete development-only paired source-task SD inventory — 2026-10-09 + +Status: `MODEL_FREE_DESCRIPTIVE_NUISANCE_INVENTORY; NOT_FROZEN_FOR_CONFIRMATORY_POWER`. + +## Purpose and allowable interpretation + +All already-preserved baseline/B1, C1 and C2 medical-decision matrices contain enough paired `task_id` and frozen prompt metadata for **descriptive** source-task-level intervention-minus-baseline effects. This inventory does not re-use confirmatory/reserve data and does not run models or select endpoints. Its purpose is to show which development-only nuisance estimates **could** enter a future prospectively declared non-target power plan after the hypothesis family, seed modeling, and conservative variance rules have been fixed. + +## Provenance and mechanics + +- Project-owned offline analyzer: `scripts/v5_s1_development_paired_sd_inventory.py`. It reuses the *already tested* numerical `_row_metrics` from the frozen unchanged-base analysis for four primary metric definitions. +- Inputs: the separately committed 16,384-row baseline decision matrix, the exact independently verified R1 baseline for a source/row/logit consistency cross-check, and the nine already qualified complete B1/C1/C2 seed 11/29/47 development matrices. +- For each candidate input, it validates the complete ordered 16,384-row matrix, exact run intervention/seed, canonical/transformed source-task pairing, matching target, calculator/split/semantic/prompt identities, finite logits and all 3,840 source-case clusters in each DEV_EVAL and CAL_EVAL split. It refuses unmatched or missing evidence instead of imputing. +- For each intervention/seed/split/primary metric, computes all paired `candidate - unchanged baseline` per-source-case changes, their arithmetic mean and sample SD with `ddof=1`. NLL/Brier/JS are in raw (lower-is-better) metric orientation, so sign must be oriented for effect claims; paired SD is sign-invariant. +- Exact input SHA-256 values are included in machine-readable output. The result is deterministic and may be recomputed locally without weights, inference, Kaggle, network or API cost. +- This covers **9** intervention-seed matrices × **2** evaluation splits × **4** metrics = **72** descriptive sample SD cells (3,840 source cases per split). Training/CAL_TUNE cases are excluded. + +## Reproducibility and selected facts + +Output: `artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/development-paired-sd.json`, SHA-256 `b1edf781b61d3f5ce227c08908ca43ad9864c0b398a7318c33895951af37bacd`. A separately written independent one-off analyzer, run before the checked utility was authored, produced numerically identical all 72 per-cell descriptive records. + +As examples only, DEV_EVAL canonical accuracy paired source-task SD is approximately: + +| Development condition | SD | +| --- | ---: | +| B1 seed 11 | 0.0510377 | +| B1 seed 29 | 0.998123 | +| C1 seed 11 | 0.136948 | +| C1 seed 29 | 0.807714 | +| C2 seed 11 | 0.0994853 | +| C2 seed 29 | 0.747907 | + +The large contrasts across seeds make it unsafe to silently use a single favorable per-seed SD for future power. B1 seed-29 DEV canonical NLL paired SD is about 17.6174; C1 seed-11 DEV canonical NLL paired SD is about 0.135624. These distributions are developmental observations, not effect-significance or clinical-reliability conclusions. + +## What this DOES NOT close + +1. The **exact primary non-target hypothesis family**, including applicable interventions, endpoints, hard gates and multiplicity count, remains unbound for power. Selecting cells after examining these SDs could bias the analysis. +2. The three fixed learning seeds are part of the design; a single seed's within-source-case SD does **not** incorporate between-training-seed variability or crossed source/seed dependence. An explicit conservative combination/model is still needed. +3. Frozen benchmark-scale effect margins now exist separately (from R1/R2 repeatability and prospectively frozen domain floors). They are nonclinical; no raw SD here is automatically a final bound or evidence of 90% power at 4,096 clusters. +4. No individual condition is promoted into the primary family or independent-family replication, no confirmatory or reserve identities are generated, and no clinical/publication/merge authority is inferred. + +The standing paper-first development research remains **unproven**. PRs #320, #321 and #322 remain draft, and this descriptive inventory is likewise draft-only pending independent review, signature compliance and a separate prospective family/variance-model decision. diff --git a/scripts/v5_s1_development_paired_sd_inventory.py b/scripts/v5_s1_development_paired_sd_inventory.py new file mode 100644 index 00000000..5dc7dd2e --- /dev/null +++ b/scripts/v5_s1_development_paired_sd_inventory.py @@ -0,0 +1,198 @@ +#!/usr/bin/env python3 +"""Descriptive S1 intervention-paired source-task variance inventory. + +Development/calibration only. Does not freeze an endpoint family, nuisance bound, +confirmatory power, meaningful margins, or clinical-performance claims. +""" +from __future__ import annotations + +import argparse +import hashlib +import json +import math +import statistics +from pathlib import Path +from typing import Any + +from v5_s1_repeatability_analysis import PRIMARY_METRICS, _row_metrics + +REPO = Path(__file__).resolve().parents[1] +DEVELOPMENT = REPO / "artifacts/v5/development" +EVAL_SPLITS = ("S1_DEV_EVAL", "S1_CAL_EVAL") +EVAL_PER_SPLIT = 3840 +ORDERED_VARIANTS = ("canonical", "transformed") +IDENTITY_FIELDS = ( + "task_id", "calculator_id", "split", "variant", "target_index", + "option_a_semantic", "prompt_sha256", +) +BASELINE_PATH = Path("s1-colab-resource-qualification/b1-complete-2026-10-04/baseline-decision-matrix.json") +REPEAT_R1_PATH = Path( + "s1-kaggle-repeatability-runs/repeat-1-v1-2026-10-09/evidence/repeatability-decision-matrix.json" +) +CANDIDATES = { + **{ + f"B1_{seed}": ( + Path(f"s1-colab-resource-qualification/b1-complete-2026-10-04/b1-seed-{seed}-decision-matrix.json"), + "B1_TYPED_V1", seed, + ) + for seed in (11, 29, 47) + }, + **{ + f"C1_{seed}": ( + Path(f"s1-kaggle-adapters/c1-seed-{seed}-v{version}-2026-10-08/evidence/adapter-decision-matrix.json"), + "C1_CRDI_V1", seed, + ) + for seed, version in ((11, 4), (29, 1), (47, 1)) + }, + **{ + f"C2_{seed}": ( + Path(f"s1-kaggle-c2-adapters/c2-seed-{seed}-v{version}-2026-10-09/evidence/adapter-decision-matrix.json"), + "C2_CRDI_RETAIN_V1", seed, + ) + for seed, version in ((11, 2), (29, 1), (47, 1)) + }, +} + + +class DescriptiveInventoryContractError(ValueError): + """Bad or unmatched development evidence; never impute missing cases.""" + + +def _sha(path: Path) -> str: + return hashlib.sha256(path.read_bytes()).hexdigest() + + +def _load(path: Path, intervention: str, seed: int | None = None) -> dict[str, Any]: + obj = json.loads(path.read_text(encoding="utf-8")) + if obj.get("complete") is not True or obj.get("intervention") != intervention: + raise DescriptiveInventoryContractError("WRONG_OR_INCOMPLETE_INTERVENTION") + if seed is not None and (type(obj.get("seed")) is not int or obj["seed"] != seed): + raise DescriptiveInventoryContractError("SEED_IDENTITY_MISMATCH") + rows = obj.get("rows") + if not isinstance(rows, list) or len(rows) != 16384: + raise DescriptiveInventoryContractError("INCOMPLETE_16384_ROW_DEVELOPMENT_MATRIX") + return obj + + +def _validate_and_index(rows: list[dict[str, Any]]) -> dict[str, tuple[dict[str, float], dict, dict]]: + if len(rows) != 16384: + raise DescriptiveInventoryContractError("INCOMPLETE_16384_ROW_DEVELOPMENT_MATRIX") + index = {} + for position in range(0, len(rows), 2): + canonical, transformed = rows[position : position + 2] + if (canonical.get("variant"), transformed.get("variant")) != ORDERED_VARIANTS: + raise DescriptiveInventoryContractError("CANONICAL_TRANSFORMED_PAIR_ORDER_MISMATCH") + if any(canonical.get(field) != transformed.get(field) for field in ( + "task_id", "calculator_id", "split", "target_index", "option_a_semantic", + )): + raise DescriptiveInventoryContractError("SOURCE_TASK_PAIR_MISMATCH") + for row in (canonical, transformed): + logits = row.get("logits") + if (not isinstance(logits, list) or len(logits) != 2 + or any(type(v) not in (int, float) or not math.isfinite(v) for v in logits)): + raise DescriptiveInventoryContractError("INVALID_FINITE_LOGITS") + if any(field not in row for field in IDENTITY_FIELDS): + raise DescriptiveInventoryContractError("MISSING_IDENTITY_FIELD") + task_id = canonical["task_id"] + if not isinstance(task_id, str) or not task_id or task_id in index: + raise DescriptiveInventoryContractError("DUPLICATE_OR_INVALID_SOURCE_TASK") + if canonical["split"] in EVAL_SPLITS: + index[task_id] = (_row_metrics(canonical, transformed), canonical, transformed) + counts = {split: sum(row["split"] == split for _, row, _ in index.values()) for split in EVAL_SPLITS} + if any(counts[split] != EVAL_PER_SPLIT for split in EVAL_SPLITS): + raise DescriptiveInventoryContractError("INCOMPLETE_DEVELOPMENT_EVALUATION_SPLITS") + return index + + +def _compute_pair( + baseline: dict[str, tuple[dict[str, float], dict, dict]], + candidate: dict[str, tuple[dict[str, float], dict, dict]], +) -> dict[str, dict[str, Any]]: + if tuple(baseline) != tuple(candidate): + raise DescriptiveInventoryContractError("ORDERED_SOURCE_TASK_SET_CHANGED") + differences = {split: {metric: [] for metric in PRIMARY_METRICS} for split in EVAL_SPLITS} + for task_id in baseline: + b_metrics, b_c, b_t = baseline[task_id] + c_metrics, c_c, c_t = candidate[task_id] + for b, c in ((b_c, c_c), (b_t, c_t)): + if any(b.get(field) != c.get(field) for field in IDENTITY_FIELDS): + raise DescriptiveInventoryContractError("INTERVENTION_CHANGED_SOURCE_OR_PROMPT_IDENTITY") + split = b_c["split"] + for metric in PRIMARY_METRICS: + differences[split][metric].append(c_metrics[metric] - b_metrics[metric]) + result = {} + for split, metrics in differences.items(): + result[split] = {} + for metric, values in metrics.items(): + if len(values) != EVAL_PER_SPLIT or not all(math.isfinite(value) for value in values): + raise DescriptiveInventoryContractError("MISSING_OR_NONFINITE_PAIRED_DELTA") + result[split][metric] = { + "task_count": len(values), + "mean_delta_raw_orientation": statistics.fmean(values), + "paired_source_task_sample_sd": statistics.stdev(values), + "min_delta": min(values), + "max_delta": max(values), + } + return result + + +def build_inventory() -> dict[str, Any]: + baseline_path = DEVELOPMENT / BASELINE_PATH + r1_path = DEVELOPMENT / REPEAT_R1_PATH + baseline = _load(baseline_path, "BASELINE_V1") + r1 = _load(r1_path, "BASELINE_V1") + if r1.get("repeat") != 1 or any( + any(a.get(field) != b.get(field) for field in IDENTITY_FIELDS + ("logits",)) + for a, b in zip(baseline["rows"], r1["rows"]) + ): + raise DescriptiveInventoryContractError("BASELINE_R1_SOURCE_OR_LOGITS_MISMATCH") + base_index = _validate_and_index(baseline["rows"]) + results = {} + for name, (relative, intervention, seed) in sorted(CANDIDATES.items()): + path = DEVELOPMENT / relative + payload = _load(path, intervention, seed) + candidate = _validate_and_index(payload["rows"]) + results[name] = { + "artifact_path": (Path("artifacts/v5/development") / relative).as_posix(), + "artifact_sha256": _sha(path), + "intervention": intervention, + "seed": seed, + "splits": _compute_pair(base_index, candidate), + } + return { + "schema": "commandmed.v5.descriptive-development-paired-sd-inventory.v1", + "status": "EXPLORATORY_NUISANCE_NOT_FROZEN_POWER_INPUT", + "scope": "DEVELOPMENT_CALIBRATION_ONLY", + "confirmatory": False, + "reserve": False, + "source_task_cluster": "task_id", + "variance_estimator": "sample_stddev_ddof_1_within_each_split_and_intervention_seed", + "delta_orientation": "candidate_metric_minus_unchanged_baseline_metric", + "primary_metrics": list(PRIMARY_METRICS), + "baseline_sha256": _sha(baseline_path), + "verified_r1_reference_sha256": _sha(r1_path), + "calibration_and_training_excluded_from_sd": True, + "training_seed_uncertainty_not_included_in_paired_item_sd": True, + "primary_non_target_family_size": None, + "confirmatory_power_claim": False, + "intervention_results": results, + } + + +def main() -> int: + parser = argparse.ArgumentParser() + parser.add_argument("--output", type=Path, required=True) + args = parser.parse_args() + result = build_inventory() + args.output.parent.mkdir(parents=True, exist_ok=True) + args.output.write_text( + json.dumps(result, indent=2, sort_keys=True, allow_nan=False) + "\n", + encoding="utf-8", + newline="\n", + ) + print(json.dumps({"status": result["status"], "intervention_count": len(result["intervention_results"])})) + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/tests/reliability_v5/test_development_paired_sd_inventory.py b/tests/reliability_v5/test_development_paired_sd_inventory.py new file mode 100644 index 00000000..07ae07d3 --- /dev/null +++ b/tests/reliability_v5/test_development_paired_sd_inventory.py @@ -0,0 +1,76 @@ +from __future__ import annotations + +import copy +import sys +from pathlib import Path + +import pytest + +sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "scripts")) +import v5_s1_development_paired_sd_inventory as inventory + + +def _rows() -> list[dict]: + rows = [] + for index, split in enumerate(("S1_DEV_EVAL", "S1_DEV_EVAL", "S1_CAL_EVAL", "S1_CAL_EVAL")): + for variant in ("canonical", "transformed"): + rows.append({ + "calculator_id": "calc-01", + "task_id": f"task-{index}", + "split": split, + "variant": variant, + "target_index": index % 2, + "option_a_semantic": "MATCH", + "prompt_sha256": f"{index}-{variant}", + "logits": [0.1, 0.2], + }) + return rows + + +def test_identical_paired_inputs_produce_zero_sample_sd(monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.setattr(inventory, "EVAL_PER_SPLIT", 2) + # The production indexer requires 16,384 rows. Reuse the small pair + # via the same frozen _row_metrics construction for focused unit tests. + rows = _rows() + indexed = {} + for offset in range(0, len(rows), 2): + c, t = rows[offset : offset + 2] + indexed[c["task_id"]] = (inventory._row_metrics(c, t), c, t) + out = inventory._compute_pair(indexed, copy.deepcopy(indexed)) + assert set(out) == set(inventory.EVAL_SPLITS) + for split in inventory.EVAL_SPLITS: + for metric in inventory.PRIMARY_METRICS: + assert out[split][metric]["paired_source_task_sample_sd"] == 0.0 + + +def test_nonzero_source_task_delta_has_positive_sample_sd(monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.setattr(inventory, "EVAL_PER_SPLIT", 2) + rows = _rows() + baseline = { + rows[i]["task_id"]: (inventory._row_metrics(*rows[i : i + 2]), *rows[i : i + 2]) + for i in range(0, 8, 2) + } + candidate = copy.deepcopy(baseline) + _, c, t = candidate["task-0"] + c["logits"] = [3.0, -3.0] + candidate["task-0"] = (inventory._row_metrics(c, t), c, t) + result = inventory._compute_pair(baseline, candidate) + assert result["S1_DEV_EVAL"]["canonical_nll"]["paired_source_task_sample_sd"] > 0.0 + assert result["S1_DEV_EVAL"]["canonical_accuracy"]["paired_source_task_sample_sd"] > 0.0 + assert result["S1_CAL_EVAL"]["canonical_accuracy"]["paired_source_task_sample_sd"] == 0.0 + + +def test_cross_run_prompt_identity_change_rejected(monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.setattr(inventory, "EVAL_PER_SPLIT", 2) + rows = _rows() + base = {rows[i]["task_id"]: (inventory._row_metrics(*rows[i : i + 2]), *rows[i : i + 2]) for i in range(0, 8, 2)} + changed = copy.deepcopy(base) + metric, c, t = changed["task-0"] + c["prompt_sha256"] = "different" + with pytest.raises(inventory.DescriptiveInventoryContractError, match="INTERVENTION_CHANGED"): + inventory._compute_pair(base, changed) + + +def test_bad_sample_count_fails_closed() -> None: + with pytest.raises(inventory.DescriptiveInventoryContractError, match="INCOMPLETE_16384"): + inventory._validate_and_index(_rows()) From 4a3a86588fccd293792dd3c3ab9a648153c1eefc Mon Sep 17 00:00:00 2001 From: Gocceri Date: Sat, 10 Oct 2026 19:45:54 +0300 Subject: [PATCH 2/2] research(v5): preserve source-bound development calculator ICC inventory Signed-off-by: Gocceri --- ...v5-development-calculator-icc-evidence.yml | 70 + .../development-calculator-icc.json | 1867 +++++++++++++++++ ...CULATOR_EFFECT_ICC_INVENTORY_2026-10-10.md | 44 + ...s1_development_calculator_icc_inventory.py | 225 ++ ...st_development_calculator_icc_inventory.py | 70 + 5 files changed, 2276 insertions(+) create mode 100644 .github/workflows/v5-development-calculator-icc-evidence.yml create mode 100644 artifacts/v5/development/s1-calculator-icc-inventory-2026-10-10/development-calculator-icc.json create mode 100644 docs/research/paper-rebuild-v2-2026-10-02/V5_S1_DEVELOPMENT_CALCULATOR_EFFECT_ICC_INVENTORY_2026-10-10.md create mode 100644 scripts/v5_s1_development_calculator_icc_inventory.py create mode 100644 tests/reliability_v5/test_development_calculator_icc_inventory.py diff --git a/.github/workflows/v5-development-calculator-icc-evidence.yml b/.github/workflows/v5-development-calculator-icc-evidence.yml new file mode 100644 index 00000000..30a864d7 --- /dev/null +++ b/.github/workflows/v5-development-calculator-icc-evidence.yml @@ -0,0 +1,70 @@ +name: V5 development calculator ICC evidence +on: + pull_request: + paths: + - '.github/workflows/v5-development-calculator-icc-evidence.yml' + - 'scripts/v5_s1_development_calculator_icc_inventory.py' + - 'scripts/v5_s1_development_paired_sd_inventory.py' + - 'scripts/v5_s1_repeatability_analysis.py' + - 'tests/reliability_v5/test_development_calculator_icc_inventory.py' + - 'artifacts/v5/development/**' + - 'docs/research/paper-rebuild-v2-2026-10-02/V5_S1_DEVELOPMENT_CALCULATOR_EFFECT_ICC_INVENTORY_2026-10-10.md' + workflow_dispatch: +permissions: + contents: read +jobs: + verify-development-calculator-icc: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Checkout unmodified PR head + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} + persist-credentials: false + - name: Install Python + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 + with: + python-version: '3.11' + - name: Install pinned test runner + run: python -m pip install pytest==8.4.2 + - name: Compile model-free source and tests + run: python -m py_compile scripts/v5_s1_development_calculator_icc_inventory.py tests/reliability_v5/test_development_calculator_icc_inventory.py + - name: Test synthetic grouping and integrity contracts + env: + PYTHONPATH: src + run: python -m pytest -q tests/reliability_v5/test_development_calculator_icc_inventory.py tests/reliability_v5/test_development_paired_sd_inventory.py + - name: Replay all original bound development matrices without overwrite + run: | + python scripts/v5_s1_development_calculator_icc_inventory.py --output "$RUNNER_TEMP/v5-calculator-icc-replayed.json" + python - "$RUNNER_TEMP/v5-calculator-icc-replayed.json" <<'PY' + import json,math,sys + from pathlib import Path + expected=json.loads(Path('artifacts/v5/development/s1-calculator-icc-inventory-2026-10-10/development-calculator-icc.json').read_text()) + actual=json.loads(Path(sys.argv[1]).read_text()) + assert expected.keys()==actual.keys() + assert actual["rows"]==72 + assert actual["reference_sd_cells_reproduced"]==72 + assert actual["boundaries"]["confirmatory_authorized"] is False + assert actual["boundaries"]["final_90_percent_power_qualified"] is False + assert expected["input_hashes"]==actual["input_hashes"] + assert expected["n_negative_icc"]==actual["n_negative_icc"] + assert expected["n_nonnegative_icc"]==actual["n_nonnegative_icc"] + for name in ("rho_min","rho_median","rho_max","reference_sd_reconstruction_max_abs_error"): + assert math.isclose(expected[name],actual[name],rel_tol=1e-10,abs_tol=1e-10) + assert len(expected["all_development_cells"])==len(actual["all_development_cells"])==72 + for a,b in zip(expected["all_development_cells"],actual["all_development_cells"]): + assert a.keys()==b.keys() + for key in a: + x,y=a[key],b[key] + if isinstance(x,float) and x is not None: + assert isinstance(y,float) and math.isclose(x,y,rel_tol=1e-10,abs_tol=1e-10),(key,x,y) + else: + assert x==y,(key,x,y) + assert expected["three_seed_between_effect_spreads"]==actual["three_seed_between_effect_spreads"] or all( + (x["intervention"],x["split"],x["metric"]) == (y["intervention"],y["split"],y["metric"]) and + math.isclose(x["three_seed_sample_sd_of_overall_effects"],y["three_seed_sample_sd_of_overall_effects"],rel_tol=1e-10,abs_tol=1e-10) + for x,y in zip(expected["three_seed_between_effect_spreads"],actual["three_seed_between_effect_spreads"]) + ) + print("PASS_72_ORIGINAL_DEVELOPMENT_CALCULATOR_ICC_CELLS_REPLAY_NOT_SCIENTIFIC_POWER") + PY diff --git a/artifacts/v5/development/s1-calculator-icc-inventory-2026-10-10/development-calculator-icc.json b/artifacts/v5/development/s1-calculator-icc-inventory-2026-10-10/development-calculator-icc.json new file mode 100644 index 00000000..788081c1 --- /dev/null +++ b/artifacts/v5/development/s1-calculator-icc-inventory-2026-10-10/development-calculator-icc.json @@ -0,0 +1,1867 @@ +{ + "all_development_cells": [ + { + "anovamom_rho_unclipped": -0.012644890538357812, + "between_calculator_ms": 0.0005291005291005291, + "calculator_count": 64, + "calculator_mean_max": 0.016666666666666666, + "calculator_mean_min": -0.016666666666666666, + "condition": "B1_11", + "illustrative_deff": null, + "illustrative_effective_cases": null, + "intervention": "B1_TYPED_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.0, + "rho_status": "NEGATIVE_FINITE_SAMPLE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.002109816384180791 + }, + { + "anovamom_rho_unclipped": 0.008877809644405118, + "between_calculator_ms": 0.7066954883520129, + "calculator_count": 64, + "calculator_mean_max": 0.6864090247461988, + "calculator_mean_min": 0.1775193707903803, + "condition": "B1_11", + "illustrative_deff": 1.523790769019902, + "illustrative_effective_cases": 2520.0310161150783, + "intervention": "B1_TYPED_V1", + "metric": "canonical_brier", + "paired_delta_mean": 0.44150742060646947, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.45965731947593635 + }, + { + "anovamom_rho_unclipped": 0.00767537913327019, + "between_calculator_ms": 415.66128969543587, + "calculator_count": 64, + "calculator_mean_max": 23.168286698005357, + "calculator_mean_min": 9.748122783741085, + "condition": "B1_11", + "illustrative_deff": 1.4528473688629413, + "illustrative_effective_cases": 2643.085627780256, + "intervention": "B1_TYPED_V1", + "metric": "canonical_nll", + "paired_delta_mean": 16.728810833401017, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 283.905206111786 + }, + { + "anovamom_rho_unclipped": 0.20695905753657332, + "between_calculator_ms": 3.292040684787775e-05, + "calculator_count": 64, + "calculator_mean_max": -0.00030336819699151955, + "calculator_mean_min": -0.0038354342954622415, + "condition": "B1_11", + "illustrative_deff": 13.210584394657825, + "illustrative_effective_cases": 290.67601290619984, + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "paired_delta_mean": -0.0011929065899829092, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 1.976235849450976e-06 + }, + { + "anovamom_rho_unclipped": -0.006619880083602553, + "between_calculator_ms": 0.001587301587301587, + "calculator_count": 64, + "calculator_mean_max": 0.03333333333333333, + "calculator_mean_min": -0.016666666666666666, + "condition": "B1_11", + "illustrative_deff": null, + "illustrative_effective_cases": null, + "intervention": "B1_TYPED_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.0, + "rho_status": "NEGATIVE_FINITE_SAMPLE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.0026218220338983054 + }, + { + "anovamom_rho_unclipped": 0.004919014389611121, + "between_calculator_ms": 0.5997398706924948, + "calculator_count": 64, + "calculator_mean_max": 0.6568738210386024, + "calculator_mean_min": 0.157048948944666, + "condition": "B1_11", + "illustrative_deff": 1.290221848987056, + "illustrative_effective_cases": 2976.2323456347885, + "intervention": "B1_TYPED_V1", + "metric": "canonical_brier", + "paired_delta_mean": 0.45753694318235555, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.4625481595332386 + }, + { + "anovamom_rho_unclipped": 0.001242382313467346, + "between_calculator_ms": 306.6801733374295, + "calculator_count": 64, + "calculator_mean_max": 22.146662487930318, + "calculator_mean_min": 9.726219276365502, + "condition": "B1_11", + "illustrative_deff": 1.0733005564945735, + "illustrative_effective_cases": 3577.749006803403, + "intervention": "B1_TYPED_V1", + "metric": "canonical_nll", + "paired_delta_mean": 17.13381277305445, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 285.3806023492289 + }, + { + "anovamom_rho_unclipped": 0.1901262042968699, + "between_calculator_ms": 2.9784487989754686e-05, + "calculator_count": 64, + "calculator_mean_max": -0.00026182072269795374, + "calculator_mean_min": -0.003667470308067689, + "condition": "B1_11", + "illustrative_deff": 12.217446053515324, + "illustrative_effective_cases": 314.3046413448347, + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "paired_delta_mean": -0.0012071127534053192, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 1.974363237265647e-06 + }, + { + "anovamom_rho_unclipped": 0.0076320947874176, + "between_calculator_ms": 1.44755291005291, + "calculator_count": 64, + "calculator_mean_max": 0.4, + "calculator_mean_min": -0.4, + "condition": "B1_29", + "illustrative_deff": 1.4502935924576383, + "illustrative_effective_cases": 2647.7397541919863, + "intervention": "B1_TYPED_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.013541666666666667, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.9904925847457627 + }, + { + "anovamom_rho_unclipped": 0.009861454513798107, + "between_calculator_ms": 2.85080630138109, + "calculator_count": 64, + "calculator_mean_max": 0.9775193707903803, + "calculator_mean_min": -0.18408624041457292, + "condition": "B1_29", + "illustrative_deff": 1.5818258163140884, + "illustrative_effective_cases": 2427.574490437781, + "intervention": "B1_TYPED_V1", + "metric": "canonical_brier", + "paired_delta_mean": 0.4144240872731361, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 1.7844526088780785 + }, + { + "anovamom_rho_unclipped": 0.007843102805474664, + "between_calculator_ms": 454.61908025891574, + "calculator_count": 64, + "calculator_mean_max": 23.56363334170536, + "calculator_mean_min": 9.352776140041083, + "condition": "B1_29", + "illustrative_deff": 1.4627430655230051, + "illustrative_effective_cases": 2625.204720165263, + "intervention": "B1_TYPED_V1", + "metric": "canonical_nll", + "paired_delta_mean": 16.2610982363866, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 308.3613702956371 + }, + { + "anovamom_rho_unclipped": 0.20695905753657332, + "between_calculator_ms": 3.292040684787775e-05, + "calculator_count": 64, + "calculator_mean_max": -0.00030336819699151955, + "calculator_mean_min": -0.0038354342954622415, + "condition": "B1_29", + "illustrative_deff": 13.210584394657825, + "illustrative_effective_cases": 290.67601290619984, + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "paired_delta_mean": -0.0011929065899829092, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 1.976235849450976e-06 + }, + { + "anovamom_rho_unclipped": 0.0012066779657875838, + "between_calculator_ms": 1.0671957671957673, + "calculator_count": 64, + "calculator_mean_max": 0.3333333333333333, + "calculator_mean_min": -0.4, + "condition": "B1_29", + "illustrative_deff": 1.0711939999814675, + "illustrative_effective_cases": 3584.784828953892, + "intervention": "B1_TYPED_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.0375, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.9950653248587571 + }, + { + "anovamom_rho_unclipped": 0.0029602274927274393, + "between_calculator_ms": 2.1136242621723773, + "calculator_count": 64, + "calculator_mean_max": 0.957048948944666, + "calculator_mean_min": -0.009792845628064291, + "condition": "B1_29", + "illustrative_deff": 1.1746534220709188, + "illustrative_effective_cases": 3269.049344980466, + "intervention": "B1_TYPED_V1", + "metric": "canonical_brier", + "paired_delta_mean": 0.38253694318235554, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 1.7940333837421605 + }, + { + "anovamom_rho_unclipped": 0.0013354090048129865, + "between_calculator_ms": 334.83256335270414, + "calculator_count": 64, + "calculator_mean_max": 23.541729834329775, + "calculator_mean_min": 10.633737022960089, + "condition": "B1_29", + "illustrative_deff": 1.0787891312839661, + "illustrative_effective_cases": 3559.54642908727, + "intervention": "B1_TYPED_V1", + "metric": "canonical_nll", + "paired_delta_mean": 15.838608658245303, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 309.96365761908953 + }, + { + "anovamom_rho_unclipped": 0.1901262042968699, + "between_calculator_ms": 2.9784487989754686e-05, + "calculator_count": 64, + "calculator_mean_max": -0.00026182072269795374, + "calculator_mean_min": -0.003667470308067689, + "condition": "B1_29", + "illustrative_deff": 12.217446053515324, + "illustrative_effective_cases": 314.3046413448347, + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "paired_delta_mean": -0.0012071127534053192, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 1.974363237265647e-06 + }, + { + "anovamom_rho_unclipped": -0.012644890538357812, + "between_calculator_ms": 0.0005291005291005291, + "calculator_count": 64, + "calculator_mean_max": 0.016666666666666666, + "calculator_mean_min": -0.016666666666666666, + "condition": "B1_47", + "illustrative_deff": null, + "illustrative_effective_cases": null, + "intervention": "B1_TYPED_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.0, + "rho_status": "NEGATIVE_FINITE_SAMPLE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.002109816384180791 + }, + { + "anovamom_rho_unclipped": 0.008877809644405118, + "between_calculator_ms": 0.7066954883520129, + "calculator_count": 64, + "calculator_mean_max": 0.6864090247461988, + "calculator_mean_min": 0.1775193707903803, + "condition": "B1_47", + "illustrative_deff": 1.523790769019902, + "illustrative_effective_cases": 2520.0310161150783, + "intervention": "B1_TYPED_V1", + "metric": "canonical_brier", + "paired_delta_mean": 0.44150742060646947, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.45965731947593635 + }, + { + "anovamom_rho_unclipped": 0.00767537913327019, + "between_calculator_ms": 415.66128969543587, + "calculator_count": 64, + "calculator_mean_max": 23.168286698005357, + "calculator_mean_min": 9.748122783741085, + "condition": "B1_47", + "illustrative_deff": 1.4528473688629413, + "illustrative_effective_cases": 2643.085627780256, + "intervention": "B1_TYPED_V1", + "metric": "canonical_nll", + "paired_delta_mean": 16.728810833401017, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 283.905206111786 + }, + { + "anovamom_rho_unclipped": 0.20695905753657332, + "between_calculator_ms": 3.292040684787775e-05, + "calculator_count": 64, + "calculator_mean_max": -0.00030336819699151955, + "calculator_mean_min": -0.0038354342954622415, + "condition": "B1_47", + "illustrative_deff": 13.210584394657825, + "illustrative_effective_cases": 290.67601290619984, + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "paired_delta_mean": -0.0011929065899829092, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 1.976235849450976e-06 + }, + { + "anovamom_rho_unclipped": -0.006619880083602553, + "between_calculator_ms": 0.001587301587301587, + "calculator_count": 64, + "calculator_mean_max": 0.03333333333333333, + "calculator_mean_min": -0.016666666666666666, + "condition": "B1_47", + "illustrative_deff": null, + "illustrative_effective_cases": null, + "intervention": "B1_TYPED_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.0, + "rho_status": "NEGATIVE_FINITE_SAMPLE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.0026218220338983054 + }, + { + "anovamom_rho_unclipped": 0.004919014389611121, + "between_calculator_ms": 0.5997398706924948, + "calculator_count": 64, + "calculator_mean_max": 0.6568738210386024, + "calculator_mean_min": 0.157048948944666, + "condition": "B1_47", + "illustrative_deff": 1.290221848987056, + "illustrative_effective_cases": 2976.2323456347885, + "intervention": "B1_TYPED_V1", + "metric": "canonical_brier", + "paired_delta_mean": 0.45753694318235555, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.4625481595332386 + }, + { + "anovamom_rho_unclipped": 0.001242382313467346, + "between_calculator_ms": 306.6801733374295, + "calculator_count": 64, + "calculator_mean_max": 22.146662487930318, + "calculator_mean_min": 9.726219276365502, + "condition": "B1_47", + "illustrative_deff": 1.0733005564945735, + "illustrative_effective_cases": 3577.749006803403, + "intervention": "B1_TYPED_V1", + "metric": "canonical_nll", + "paired_delta_mean": 17.13381277305445, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 285.3806023492289 + }, + { + "anovamom_rho_unclipped": 0.1901262042968699, + "between_calculator_ms": 2.9784487989754686e-05, + "calculator_count": 64, + "calculator_mean_max": -0.00026182072269795374, + "calculator_mean_min": -0.003667470308067689, + "condition": "B1_47", + "illustrative_deff": 12.217446053515324, + "illustrative_effective_cases": 314.3046413448347, + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "paired_delta_mean": -0.0012071127534053192, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 1.974363237265647e-06 + }, + { + "anovamom_rho_unclipped": -0.007508836616513272, + "between_calculator_ms": 0.010875496031746028, + "calculator_count": 64, + "calculator_mean_max": 0.08333333333333333, + "calculator_mean_min": 0.0, + "condition": "C1_11", + "illustrative_deff": null, + "illustrative_effective_cases": null, + "intervention": "C1_CRDI_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.002864583333333333, + "rho_status": "NEGATIVE_FINITE_SAMPLE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.019672492937853107 + }, + { + "anovamom_rho_unclipped": 0.026970868417359063, + "between_calculator_ms": 0.03675713609835147, + "calculator_count": 64, + "calculator_mean_max": 0.014513604427596295, + "calculator_mean_min": -0.12488976065871235, + "condition": "C1_11", + "illustrative_deff": 2.5912812366241846, + "illustrative_effective_cases": 1481.8924112623897, + "intervention": "C1_CRDI_V1", + "metric": "canonical_brier", + "paired_delta_mean": -0.03383745709027565, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.013802347545972296 + }, + { + "anovamom_rho_unclipped": 0.03696676680483291, + "between_calculator_ms": 0.058862735222472345, + "calculator_count": 64, + "calculator_mean_max": 0.01563580677325058, + "calculator_mean_min": -0.1494842511938628, + "condition": "C1_11", + "illustrative_deff": 3.1810392414851414, + "illustrative_effective_cases": 1207.1526656826804, + "intervention": "C1_CRDI_V1", + "metric": "canonical_nll", + "paired_delta_mean": -0.03997805953903574, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.017820204628957375 + }, + { + "anovamom_rho_unclipped": 0.06497277352293351, + "between_calculator_ms": 6.517691877476695e-06, + "calculator_count": 64, + "calculator_mean_max": 0.0015282089187690306, + "calculator_mean_min": -0.0007908338566941559, + "condition": "C1_11", + "illustrative_deff": 4.833393637853077, + "illustrative_effective_cases": 794.4728461441166, + "intervention": "C1_CRDI_V1", + "metric": "semantic_js", + "paired_delta_mean": -8.890612907443458e-05, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 1.2608572394149346e-06 + }, + { + "anovamom_rho_unclipped": -0.010732067939085023, + "between_calculator_ms": 0.006878306878306879, + "calculator_count": 64, + "calculator_mean_max": 0.05, + "calculator_mean_min": -0.05, + "condition": "C1_11", + "illustrative_deff": null, + "illustrative_effective_cases": null, + "intervention": "C1_CRDI_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.0, + "rho_status": "NEGATIVE_FINITE_SAMPLE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.01895303672316384 + }, + { + "anovamom_rho_unclipped": 0.018382131913562024, + "between_calculator_ms": 0.02922839691713737, + "calculator_count": 64, + "calculator_mean_max": 0.01793497326873674, + "calculator_mean_min": -0.09446715680647454, + "condition": "C1_11", + "illustrative_deff": 2.0845457829001592, + "illustrative_effective_cases": 1842.127926141078, + "intervention": "C1_CRDI_V1", + "metric": "canonical_brier", + "paired_delta_mean": -0.03562428311822003, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.013763725846053428 + }, + { + "anovamom_rho_unclipped": 0.03379467584206752, + "between_calculator_ms": 0.05509755076478787, + "calculator_count": 64, + "calculator_mean_max": 0.01833406998572005, + "calculator_mean_min": -0.17581741392868228, + "condition": "C1_11", + "illustrative_deff": 2.993885874681984, + "illustrative_effective_cases": 1282.614020952917, + "intervention": "C1_CRDI_V1", + "metric": "canonical_nll", + "paired_delta_mean": -0.042230409515244476, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.017781421578955403 + }, + { + "anovamom_rho_unclipped": 0.05252639920674425, + "between_calculator_ms": 5.357921733155209e-06, + "calculator_count": 64, + "calculator_mean_max": 0.001419243479842283, + "calculator_mean_min": -0.0007002203155214247, + "condition": "C1_11", + "illustrative_deff": 4.099057553197911, + "illustrative_effective_cases": 936.8007036164191, + "intervention": "C1_CRDI_V1", + "metric": "semantic_js", + "paired_delta_mean": -6.481724229309947e-05, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 1.2384528227276403e-06 + }, + { + "anovamom_rho_unclipped": 0.0020174871665865238, + "between_calculator_ms": 0.7281580687830687, + "calculator_count": 64, + "calculator_mean_max": 0.2833333333333333, + "calculator_mean_min": -0.3333333333333333, + "condition": "C1_29", + "illustrative_deff": 1.119031742828605, + "illustrative_effective_cases": 3431.5380458230206, + "intervention": "C1_CRDI_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.0026041666666666665, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.6493908898305084 + }, + { + "anovamom_rho_unclipped": 0.02145511657388405, + "between_calculator_ms": 0.3649367782097728, + "calculator_count": 64, + "calculator_mean_max": 0.11618632566154878, + "calculator_mean_min": -0.264684809462576, + "condition": "C1_29", + "illustrative_deff": 2.265851877859159, + "illustrative_effective_cases": 1694.726843145696, + "intervention": "C1_CRDI_V1", + "metric": "canonical_brier", + "paired_delta_mean": -0.05847347656141426, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.1576038665989894 + }, + { + "anovamom_rho_unclipped": 0.027007424526614286, + "between_calculator_ms": 0.47402357733236106, + "calculator_count": 64, + "calculator_mean_max": 0.12112437552616091, + "calculator_mean_min": -0.3022744099567828, + "condition": "C1_29", + "illustrative_deff": 2.5934380470702427, + "illustrative_effective_cases": 1480.660008184107, + "intervention": "C1_CRDI_V1", + "metric": "canonical_nll", + "paired_delta_mean": -0.06732335401979703, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.17784169622434381 + }, + { + "anovamom_rho_unclipped": 0.19098753433471102, + "between_calculator_ms": 1.995351035267721e-05, + "calculator_count": 64, + "calculator_mean_max": 0.004097003349853254, + "calculator_mean_min": -0.0007441525360853911, + "condition": "C1_29", + "illustrative_deff": 12.26826452574795, + "illustrative_effective_cases": 313.0027064497038, + "intervention": "C1_CRDI_V1", + "metric": "semantic_js", + "paired_delta_mean": 1.9884117086192228e-05, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 1.3158045765330531e-06 + }, + { + "anovamom_rho_unclipped": 0.0038088170256413657, + "between_calculator_ms": 0.7990575396825396, + "calculator_count": 64, + "calculator_mean_max": 0.26666666666666666, + "calculator_mean_min": -0.4, + "condition": "C1_29", + "illustrative_deff": 1.2247202045128405, + "illustrative_effective_cases": 3135.4100192439014, + "intervention": "C1_CRDI_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.019270833333333334, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.6499558615819209 + }, + { + "anovamom_rho_unclipped": 0.01630492393600092, + "between_calculator_ms": 0.31465062506154984, + "calculator_count": 64, + "calculator_mean_max": 0.13468126393727428, + "calculator_mean_min": -0.261583524267811, + "condition": "C1_29", + "illustrative_deff": 1.9619905122240544, + "illustrative_effective_cases": 1957.196008887469, + "intervention": "C1_CRDI_V1", + "metric": "canonical_brier", + "paired_delta_mean": -0.06846399753914564, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.1577582911971593 + }, + { + "anovamom_rho_unclipped": 0.024071939417573813, + "between_calculator_ms": 0.44165798153698455, + "calculator_count": 64, + "calculator_mean_max": 0.13642078766321905, + "calculator_mean_min": -0.39954926447805356, + "condition": "C1_29", + "illustrative_deff": 2.420244425636855, + "illustrative_effective_cases": 1586.616607531099, + "intervention": "C1_CRDI_V1", + "metric": "canonical_nll", + "paired_delta_mean": -0.07816734636624217, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.17809210210192697 + }, + { + "anovamom_rho_unclipped": 0.17514342451876536, + "between_calculator_ms": 1.8192230577731534e-05, + "calculator_count": 64, + "calculator_mean_max": 0.003949831593054598, + "calculator_mean_min": -0.0005700040931771706, + "condition": "C1_29", + "illustrative_deff": 11.333462046607156, + "illustrative_effective_cases": 338.81968141849137, + "intervention": "C1_CRDI_V1", + "metric": "semantic_js", + "paired_delta_mean": 2.540431657398543e-05, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 1.3240421111398088e-06 + }, + { + "anovamom_rho_unclipped": -0.006201269801404243, + "between_calculator_ms": 0.002806712962962963, + "calculator_count": 64, + "calculator_mean_max": 0.05, + "calculator_mean_min": 0.0, + "condition": "C1_47", + "illustrative_deff": null, + "illustrative_effective_cases": null, + "intervention": "C1_CRDI_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.0013020833333333333, + "rho_status": "NEGATIVE_FINITE_SAMPLE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.004453566384180791 + }, + { + "anovamom_rho_unclipped": 0.05917101097715549, + "between_calculator_ms": 0.03641561249137355, + "calculator_count": 64, + "calculator_mean_max": 0.009937481472448932, + "calculator_mean_min": -0.08742620613165844, + "condition": "C1_47", + "illustrative_deff": 4.491089647652174, + "illustrative_effective_cases": 855.0263524593531, + "intervention": "C1_CRDI_V1", + "metric": "canonical_brier", + "paired_delta_mean": -0.02302059307995781, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.007628630593650551 + }, + { + "anovamom_rho_unclipped": 0.07793258456763356, + "between_calculator_ms": 0.06992962168049331, + "calculator_count": 64, + "calculator_mean_max": 0.01008344819174587, + "calculator_mean_min": -0.15165169170206078, + "condition": "C1_47", + "illustrative_deff": 5.59802248949038, + "illustrative_effective_cases": 685.9565153961319, + "intervention": "C1_CRDI_V1", + "metric": "canonical_nll", + "paired_delta_mean": -0.02850244318823005, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.011518321987121135 + }, + { + "anovamom_rho_unclipped": 0.19233163153053537, + "between_calculator_ms": 3.2087910874351266e-05, + "calculator_count": 64, + "calculator_mean_max": 0.002885187586347462, + "calculator_mean_min": -0.0017643493883365666, + "condition": "C1_47", + "illustrative_deff": 12.347566260301587, + "illustrative_effective_cases": 310.9924594894386, + "intervention": "C1_CRDI_V1", + "metric": "semantic_js", + "paired_delta_mean": 0.0003362990790036817, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 2.098906786740975e-06 + }, + { + "anovamom_rho_unclipped": -0.007699645539026918, + "between_calculator_ms": 0.0018477182539682537, + "calculator_count": 64, + "calculator_mean_max": 0.03333333333333333, + "calculator_mean_min": -0.016666666666666666, + "condition": "C1_47", + "illustrative_deff": null, + "illustrative_effective_cases": null, + "intervention": "C1_CRDI_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": -0.00026041666666666666, + "rho_status": "NEGATIVE_FINITE_SAMPLE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.003411899717514124 + }, + { + "anovamom_rho_unclipped": 0.0737006489988498, + "between_calculator_ms": 0.04530676304551095, + "calculator_count": 64, + "calculator_mean_max": 0.013272339375953604, + "calculator_mean_min": -0.15431664115982233, + "condition": "C1_47", + "illustrative_deff": 5.348338290932138, + "illustrative_effective_cases": 717.98001381299, + "intervention": "C1_CRDI_V1", + "metric": "canonical_brier", + "paired_delta_mean": -0.025161784855332308, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.007846853157395422 + }, + { + "anovamom_rho_unclipped": 0.11040721007220687, + "between_calculator_ms": 0.0997123968798082, + "calculator_count": 64, + "calculator_mean_max": 0.014899245559975186, + "calculator_mean_min": -0.266166540840684, + "condition": "C1_47", + "illustrative_deff": 7.514025394260205, + "illustrative_effective_cases": 511.04432025652847, + "intervention": "C1_CRDI_V1", + "metric": "canonical_nll", + "paired_delta_mean": -0.031346826949133176, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.011805047850710551 + }, + { + "anovamom_rho_unclipped": 0.18727380415535164, + "between_calculator_ms": 3.098877111422396e-05, + "calculator_count": 64, + "calculator_mean_max": 0.002770172458477209, + "calculator_mean_min": -0.0015459467614225267, + "condition": "C1_47", + "illustrative_deff": 12.049154445165746, + "illustrative_effective_cases": 318.69456213507584, + "intervention": "C1_CRDI_V1", + "metric": "semantic_js", + "paired_delta_mean": 0.00030776079872690235, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 2.0902202039304446e-06 + }, + { + "anovamom_rho_unclipped": 0.02054939963707965, + "between_calculator_ms": 0.022482638888888885, + "calculator_count": 64, + "calculator_mean_max": 0.11666666666666667, + "calculator_mean_min": -0.08333333333333333, + "condition": "C2_11", + "illustrative_deff": 2.2124145785876994, + "illustrative_effective_cases": 1735.6602316602316, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.00026041666666666666, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.009953213276836157 + }, + { + "anovamom_rho_unclipped": 0.030910955363216086, + "between_calculator_ms": 0.016344865975381196, + "calculator_count": 64, + "calculator_mean_max": 0.013180031935568281, + "calculator_mean_min": -0.09514451373774979, + "condition": "C2_11", + "illustrative_deff": 2.823746366429749, + "illustrative_effective_cases": 1359.8955081986235, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_brier", + "paired_delta_mean": -0.018885842186717083, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.005609438135488613 + }, + { + "anovamom_rho_unclipped": 0.03612168613884462, + "between_calculator_ms": 0.023289066331140716, + "calculator_count": 64, + "calculator_mean_max": 0.013214914888217019, + "calculator_mean_min": -0.11591416096221162, + "condition": "C2_11", + "illustrative_deff": 3.1311794821918326, + "illustrative_effective_cases": 1226.3749241586086, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_nll", + "paired_delta_mean": -0.022493430248402828, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.007169127836436572 + }, + { + "anovamom_rho_unclipped": 0.08505945505324444, + "between_calculator_ms": 8.781949994739605e-06, + "calculator_count": 64, + "calculator_mean_max": 0.0013233776833093103, + "calculator_mean_min": -0.0010214911380527036, + "condition": "C2_11", + "illustrative_deff": 6.0185078481414225, + "illustrative_effective_cases": 638.0319004129623, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "semantic_js", + "paired_delta_mean": -2.623242995836794e-05, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 1.3350422258506302e-06 + }, + { + "anovamom_rho_unclipped": -0.004376395498160103, + "between_calculator_ms": 0.00734126984126984, + "calculator_count": 64, + "calculator_mean_max": 0.016666666666666666, + "calculator_mean_min": -0.08333333333333333, + "condition": "C2_11", + "illustrative_deff": null, + "illustrative_effective_cases": null, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": -0.0010416666666666667, + "rho_status": "NEGATIVE_FINITE_SAMPLE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.00993997175141243 + }, + { + "anovamom_rho_unclipped": 0.018227559363594686, + "between_calculator_ms": 0.011921505547406223, + "calculator_count": 64, + "calculator_mean_max": 0.008924307133633576, + "calculator_mean_min": -0.05505061812231105, + "condition": "C2_11", + "illustrative_deff": 2.0754260024520867, + "illustrative_effective_cases": 1850.222554532464, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_brier", + "paired_delta_mean": -0.019839864164092672, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.005639423223718455 + }, + { + "anovamom_rho_unclipped": 0.02536377849611033, + "between_calculator_ms": 0.018491150388571326, + "calculator_count": 64, + "calculator_mean_max": 0.008733394441280358, + "calculator_mean_min": -0.07913835628414531, + "condition": "C2_11", + "illustrative_deff": 2.4964629312705098, + "illustrative_effective_cases": 1538.1762540514599, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_nll", + "paired_delta_mean": -0.02374340880927646, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.007219071719524969 + }, + { + "anovamom_rho_unclipped": 0.06912872996326824, + "between_calculator_ms": 7.255514722549309e-06, + "calculator_count": 64, + "calculator_mean_max": 0.001306064395593793, + "calculator_mean_min": -0.0006484797129580935, + "condition": "C2_11", + "illustrative_deff": 5.078595067832826, + "illustrative_effective_cases": 756.1146239679691, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "semantic_js", + "paired_delta_mean": -1.4436824493398018e-05, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 1.329885551877987e-06 + }, + { + "anovamom_rho_unclipped": -0.00021803822093286452, + "between_calculator_ms": 0.5433159722222222, + "calculator_count": 64, + "calculator_mean_max": 0.2833333333333333, + "calculator_mean_min": -0.2, + "condition": "C2_29", + "illustrative_deff": null, + "illustrative_effective_cases": null, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.00234375, + "rho_status": "NEGATIVE_FINITE_SAMPLE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.5505164194915254 + }, + { + "anovamom_rho_unclipped": 0.022162335045111645, + "between_calculator_ms": 0.32224036621973656, + "calculator_count": 64, + "calculator_mean_max": 0.10483621466400814, + "calculator_mean_min": -0.2519760889619581, + "condition": "C2_29", + "illustrative_deff": 2.307577767661587, + "illustrative_effective_cases": 1664.0825950976778, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_brier", + "paired_delta_mean": -0.060045393276461884, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.1365495766488618 + }, + { + "anovamom_rho_unclipped": 0.027995679193096586, + "between_calculator_ms": 0.4228006429095606, + "calculator_count": 64, + "calculator_mean_max": 0.10887843849630029, + "calculator_mean_min": -0.28756567008686584, + "condition": "C2_29", + "illustrative_deff": 2.6517450723926985, + "illustrative_effective_cases": 1448.1030020488079, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_nll", + "paired_delta_mean": -0.06892823893404372, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.15497871798709978 + }, + { + "anovamom_rho_unclipped": 0.1505159773376978, + "between_calculator_ms": 1.6025977492922396e-05, + "calculator_count": 64, + "calculator_mean_max": 0.003688811256682567, + "calculator_mean_min": -0.0006348491860940112, + "condition": "C2_29", + "illustrative_deff": 9.880442662924171, + "illustrative_effective_cases": 388.64655471453653, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "semantic_js", + "paired_delta_mean": 5.545291349656339e-05, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 1.3778544435937402e-06 + }, + { + "anovamom_rho_unclipped": 0.0024009197730366066, + "between_calculator_ms": 0.6386243386243386, + "calculator_count": 64, + "calculator_mean_max": 0.26666666666666666, + "calculator_mean_min": -0.36666666666666664, + "condition": "C2_29", + "illustrative_deff": 1.1416542666091598, + "illustrative_effective_cases": 3363.5401822700906, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": 0.0125, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.5580420197740112 + }, + { + "anovamom_rho_unclipped": 0.016015850506059946, + "between_calculator_ms": 0.2697651404485337, + "calculator_count": 64, + "calculator_mean_max": 0.1188362056821196, + "calculator_mean_min": -0.249806131691493, + "condition": "C2_29", + "illustrative_deff": 1.944935179857537, + "illustrative_effective_cases": 1974.358857697907, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_brier", + "paired_delta_mean": -0.06844128144483554, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.1364799326149302 + }, + { + "anovamom_rho_unclipped": 0.024365718280244673, + "between_calculator_ms": 0.38732015393422875, + "calculator_count": 64, + "calculator_mean_max": 0.12009733724585865, + "calculator_mean_min": -0.3859424238491178, + "condition": "C2_29", + "illustrative_deff": 2.437577378534436, + "illustrative_effective_cases": 1575.3346063248887, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_nll", + "paired_delta_mean": -0.07815683653241842, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.15502392806352835 + }, + { + "anovamom_rho_unclipped": 0.14218933077826645, + "between_calculator_ms": 1.4588023952003993e-05, + "calculator_count": 64, + "calculator_mean_max": 0.0035787617876943817, + "calculator_mean_min": -0.0005376669452096818, + "condition": "C2_29", + "illustrative_deff": 9.389170515917721, + "illustrative_effective_cases": 408.98181511241506, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "semantic_js", + "paired_delta_mean": 4.3942259301281294e-05, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 1.3327868066381684e-06 + }, + { + "anovamom_rho_unclipped": -0.008430112862330077, + "between_calculator_ms": 0.0015707671957671957, + "calculator_count": 64, + "calculator_mean_max": 0.016666666666666666, + "calculator_mean_min": -0.03333333333333333, + "condition": "C2_47", + "illustrative_deff": null, + "illustrative_effective_cases": null, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": -0.0005208333333333333, + "rho_status": "NEGATIVE_FINITE_SAMPLE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.003151483050847458 + }, + { + "anovamom_rho_unclipped": 0.06286739655526835, + "between_calculator_ms": 0.030107820485974584, + "calculator_count": 64, + "calculator_mean_max": 0.02748029775337008, + "calculator_mean_min": -0.07726207285164993, + "condition": "C2_47", + "illustrative_deff": 4.709176396760833, + "illustrative_effective_cases": 815.429212344076, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_brier", + "paired_delta_mean": -0.017196007437642023, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.005991497837174979 + }, + { + "anovamom_rho_unclipped": 0.08398742343060134, + "between_calculator_ms": 0.05678633655739507, + "calculator_count": 64, + "calculator_mean_max": 0.03293239024717527, + "calculator_mean_min": -0.1341843615289807, + "condition": "C2_47", + "illustrative_deff": 5.955257982405479, + "illustrative_effective_cases": 644.8083376648154, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_nll", + "paired_delta_mean": -0.021650108083615303, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 0.008734633934845172 + }, + { + "anovamom_rho_unclipped": 0.23666775820168393, + "between_calculator_ms": 4.505103724086356e-05, + "calculator_count": 64, + "calculator_mean_max": 0.0031923220730969517, + "calculator_mean_min": -0.0014580058902782674, + "condition": "C2_47", + "illustrative_deff": 14.963397733899352, + "illustrative_effective_cases": 256.62620671376914, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "semantic_js", + "paired_delta_mean": 0.0004782171037292447, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 2.298201910018087e-06 + }, + { + "anovamom_rho_unclipped": -0.004728700193490492, + "between_calculator_ms": 0.0026289682539682546, + "calculator_count": 64, + "calculator_mean_max": 0.016666666666666666, + "calculator_mean_min": -0.05, + "condition": "C2_47", + "illustrative_deff": null, + "illustrative_effective_cases": null, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_accuracy", + "paired_delta_mean": -0.0005208333333333333, + "rho_status": "NEGATIVE_FINITE_SAMPLE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.0036634887005649714 + }, + { + "anovamom_rho_unclipped": 0.07206190911016588, + "between_calculator_ms": 0.03318285169914242, + "calculator_count": 64, + "calculator_mean_max": 0.021653068486002805, + "calculator_mean_min": -0.10346559345471286, + "condition": "C2_47", + "illustrative_deff": 5.251652637499787, + "illustrative_effective_cases": 731.1983988773774, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_brier", + "paired_delta_mean": -0.01810524168598592, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.005863227098478094 + }, + { + "anovamom_rho_unclipped": 0.10560896521997758, + "between_calculator_ms": 0.06881957168261112, + "calculator_count": 64, + "calculator_mean_max": 0.02580207754568172, + "calculator_mean_min": -0.1913684333016957, + "condition": "C2_47", + "illustrative_deff": 7.230928947978677, + "illustrative_effective_cases": 531.0520996162502, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_nll", + "paired_delta_mean": -0.022923895096810733, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 0.008512268392228432 + }, + { + "anovamom_rho_unclipped": 0.23807769282776822, + "between_calculator_ms": 4.6342386713554846e-05, + "calculator_count": 64, + "calculator_mean_max": 0.0031228685214844554, + "calculator_mean_min": -0.0016057782595924964, + "condition": "C2_47", + "illustrative_deff": 15.046583876838325, + "illustrative_effective_cases": 255.20742990115062, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "semantic_js", + "paired_delta_mean": 0.000439580559066519, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 2.3466654287563702e-06 + } + ], + "boundaries": { + "calculator_effect_icc_confirmatory_qualified": false, + "calculator_sampling_generalization_qualified": false, + "confirmatory_authorized": false, + "final_90_percent_power_qualified": false, + "frozen_confirmatory_source_case_count": 4096, + "primary_holm_family_independently_reviewed": false, + "source_case_seed_crossed_variance_qualified": false, + "source_cases_per_split": 3840 + }, + "highest_positive_icc_cells": [ + { + "anovamom_rho_unclipped": 0.23807769282776822, + "between_calculator_ms": 4.6342386713554846e-05, + "calculator_count": 64, + "calculator_mean_max": 0.0031228685214844554, + "calculator_mean_min": -0.0016057782595924964, + "condition": "C2_47", + "illustrative_deff": 15.046583876838325, + "illustrative_effective_cases": 255.20742990115062, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "semantic_js", + "paired_delta_mean": 0.000439580559066519, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 2.3466654287563702e-06 + }, + { + "anovamom_rho_unclipped": 0.23666775820168393, + "between_calculator_ms": 4.505103724086356e-05, + "calculator_count": 64, + "calculator_mean_max": 0.0031923220730969517, + "calculator_mean_min": -0.0014580058902782674, + "condition": "C2_47", + "illustrative_deff": 14.963397733899352, + "illustrative_effective_cases": 256.62620671376914, + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "semantic_js", + "paired_delta_mean": 0.0004782171037292447, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 2.298201910018087e-06 + }, + { + "anovamom_rho_unclipped": 0.20695905753657332, + "between_calculator_ms": 3.292040684787775e-05, + "calculator_count": 64, + "calculator_mean_max": -0.00030336819699151955, + "calculator_mean_min": -0.0038354342954622415, + "condition": "B1_11", + "illustrative_deff": 13.210584394657825, + "illustrative_effective_cases": 290.67601290619984, + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "paired_delta_mean": -0.0011929065899829092, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 1.976235849450976e-06 + }, + { + "anovamom_rho_unclipped": 0.20695905753657332, + "between_calculator_ms": 3.292040684787775e-05, + "calculator_count": 64, + "calculator_mean_max": -0.00030336819699151955, + "calculator_mean_min": -0.0038354342954622415, + "condition": "B1_29", + "illustrative_deff": 13.210584394657825, + "illustrative_effective_cases": 290.67601290619984, + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "paired_delta_mean": -0.0011929065899829092, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 1.976235849450976e-06 + }, + { + "anovamom_rho_unclipped": 0.20695905753657332, + "between_calculator_ms": 3.292040684787775e-05, + "calculator_count": 64, + "calculator_mean_max": -0.00030336819699151955, + "calculator_mean_min": -0.0038354342954622415, + "condition": "B1_47", + "illustrative_deff": 13.210584394657825, + "illustrative_effective_cases": 290.67601290619984, + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "paired_delta_mean": -0.0011929065899829092, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 1.976235849450976e-06 + }, + { + "anovamom_rho_unclipped": 0.19233163153053537, + "between_calculator_ms": 3.2087910874351266e-05, + "calculator_count": 64, + "calculator_mean_max": 0.002885187586347462, + "calculator_mean_min": -0.0017643493883365666, + "condition": "C1_47", + "illustrative_deff": 12.347566260301587, + "illustrative_effective_cases": 310.9924594894386, + "intervention": "C1_CRDI_V1", + "metric": "semantic_js", + "paired_delta_mean": 0.0003362990790036817, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 2.098906786740975e-06 + }, + { + "anovamom_rho_unclipped": 0.19098753433471102, + "between_calculator_ms": 1.995351035267721e-05, + "calculator_count": 64, + "calculator_mean_max": 0.004097003349853254, + "calculator_mean_min": -0.0007441525360853911, + "condition": "C1_29", + "illustrative_deff": 12.26826452574795, + "illustrative_effective_cases": 313.0027064497038, + "intervention": "C1_CRDI_V1", + "metric": "semantic_js", + "paired_delta_mean": 1.9884117086192228e-05, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_CAL_EVAL", + "within_calculator_ms": 1.3158045765330531e-06 + }, + { + "anovamom_rho_unclipped": 0.1901262042968699, + "between_calculator_ms": 2.9784487989754686e-05, + "calculator_count": 64, + "calculator_mean_max": -0.00026182072269795374, + "calculator_mean_min": -0.003667470308067689, + "condition": "B1_11", + "illustrative_deff": 12.217446053515324, + "illustrative_effective_cases": 314.3046413448347, + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "paired_delta_mean": -0.0012071127534053192, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 11, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 1.974363237265647e-06 + }, + { + "anovamom_rho_unclipped": 0.1901262042968699, + "between_calculator_ms": 2.9784487989754686e-05, + "calculator_count": 64, + "calculator_mean_max": -0.00026182072269795374, + "calculator_mean_min": -0.003667470308067689, + "condition": "B1_29", + "illustrative_deff": 12.217446053515324, + "illustrative_effective_cases": 314.3046413448347, + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "paired_delta_mean": -0.0012071127534053192, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 1.974363237265647e-06 + }, + { + "anovamom_rho_unclipped": 0.1901262042968699, + "between_calculator_ms": 2.9784487989754686e-05, + "calculator_count": 64, + "calculator_mean_max": -0.00026182072269795374, + "calculator_mean_min": -0.003667470308067689, + "condition": "B1_47", + "illustrative_deff": 12.217446053515324, + "illustrative_effective_cases": 314.3046413448347, + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "paired_delta_mean": -0.0012071127534053192, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 1.974363237265647e-06 + }, + { + "anovamom_rho_unclipped": 0.18727380415535164, + "between_calculator_ms": 3.098877111422396e-05, + "calculator_count": 64, + "calculator_mean_max": 0.002770172458477209, + "calculator_mean_min": -0.0015459467614225267, + "condition": "C1_47", + "illustrative_deff": 12.049154445165746, + "illustrative_effective_cases": 318.69456213507584, + "intervention": "C1_CRDI_V1", + "metric": "semantic_js", + "paired_delta_mean": 0.00030776079872690235, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 47, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 2.0902202039304446e-06 + }, + { + "anovamom_rho_unclipped": 0.17514342451876536, + "between_calculator_ms": 1.8192230577731534e-05, + "calculator_count": 64, + "calculator_mean_max": 0.003949831593054598, + "calculator_mean_min": -0.0005700040931771706, + "condition": "C1_29", + "illustrative_deff": 11.333462046607156, + "illustrative_effective_cases": 338.81968141849137, + "intervention": "C1_CRDI_V1", + "metric": "semantic_js", + "paired_delta_mean": 2.540431657398543e-05, + "rho_status": "DESCRIPTIVE_NONNEGATIVE_ESTIMATE", + "seed": 29, + "source_cases_per_calculator": 60, + "split": "S1_DEV_EVAL", + "within_calculator_ms": 1.3240421111398088e-06 + } + ], + "input_hashes": { + "B1_11": "24f6be4368723f403bcb5c017ea79934a17986d517c57411df2012ca6826baf0", + "B1_29": "37d9604165562bda296fba163ea0e4bc152663baadcfdbccecdd4e9cdb35faaa", + "B1_47": "9cacfb2e46cc4db7c628b40fc7e857e31635c40150e87ec71dcfdb8e00a73ee0", + "BASELINE": "4308392b831da1ac7d60f5f75e5eec6a011a685ccbd8c9252f77d593d0bf5dc9", + "C1_11": "dd8daa62900043ea8aee1e3f26543d6c70632c1f4d54016675cb2954a62d4769", + "C1_29": "37c022d535fffed59215a32eb25da0ffd85faa3d0d34b084a4c9173eb4053f28", + "C1_47": "565b83b42e4476f458466a1b6e7193891ee6b38e81823538383a7a028739a8a8", + "C2_11": "9b320389a9aa16b22f8e8fc5e4699a20975deaebd7d3e1deab6372db4b163970", + "C2_29": "33633cd0542863e913f38da0d6b1443f589da0433d95db330872c54aa2e9ebeb", + "C2_47": "51f74581c0e31252948d8f0c467fbf725a71c1618d0cc8b3190518c3f7b3b6f1", + "R1": "600dbd236098b967558e96d5ddf7d4144903fad96b172ad2871ec02fb0f30a44" + }, + "n_missing_icc": 0, + "n_negative_icc": 12, + "n_nonnegative_icc": 60, + "reference_sd_cells_reproduced": 72, + "reference_sd_reconstruction_max_abs_error": 3.552713678800501e-15, + "reference_sd_sha256": "b1edf781b61d3f5ce227c08908ca43ad9864c0b398a7318c33895951af37bacd", + "rho_max": 0.23807769282776822, + "rho_median": 0.02311713723134273, + "rho_min": -0.012644890538357812, + "rows": 72, + "source": "ORIGINAL_PINNED_DEVELOPMENT_MATRIX_SHA256", + "status": "DEVELOPMENT_ONLY_CALCULATOR_ANOVAMOM_SENSITIVITY_NOT_POWER", + "three_seed_between_effect_spreads": [ + { + "intervention": "B1_TYPED_V1", + "metric": "canonical_accuracy", + "seed_level_mean_delta_by_seed": { + "11": 0.0, + "29": 0.013541666666666667, + "47": 0.0 + }, + "split": "S1_CAL_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.007818284895276183, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "B1_TYPED_V1", + "metric": "canonical_brier", + "seed_level_mean_delta_by_seed": { + "11": 0.44150742060646947, + "29": 0.4144240872731361, + "47": 0.44150742060646947 + }, + "split": "S1_CAL_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.015636569790552373, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "B1_TYPED_V1", + "metric": "canonical_nll", + "seed_level_mean_delta_by_seed": { + "11": 16.728810833401017, + "29": 16.2610982363866, + "47": 16.728810833401017 + }, + "split": "S1_CAL_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.27003399378965165, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "seed_level_mean_delta_by_seed": { + "11": -0.0011929065899829092, + "29": -0.0011929065899829092, + "47": -0.0011929065899829092 + }, + "split": "S1_CAL_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.0, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "B1_TYPED_V1", + "metric": "canonical_accuracy", + "seed_level_mean_delta_by_seed": { + "11": 0.0, + "29": 0.0375, + "47": 0.0 + }, + "split": "S1_DEV_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.021650635094610966, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "B1_TYPED_V1", + "metric": "canonical_brier", + "seed_level_mean_delta_by_seed": { + "11": 0.45753694318235555, + "29": 0.38253694318235554, + "47": 0.45753694318235555 + }, + "split": "S1_DEV_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.04330127018922194, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "B1_TYPED_V1", + "metric": "canonical_nll", + "seed_level_mean_delta_by_seed": { + "11": 17.13381277305445, + "29": 15.838608658245303, + "47": 17.13381277305445 + }, + "split": "S1_DEV_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.7477864443405731, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "B1_TYPED_V1", + "metric": "semantic_js", + "seed_level_mean_delta_by_seed": { + "11": -0.0012071127534053192, + "29": -0.0012071127534053192, + "47": -0.0012071127534053192 + }, + "split": "S1_DEV_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.0, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C1_CRDI_V1", + "metric": "canonical_accuracy", + "seed_level_mean_delta_by_seed": { + "11": 0.002864583333333333, + "29": 0.0026041666666666665, + "47": 0.0013020833333333333 + }, + "split": "S1_CAL_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.0008371224618917495, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C1_CRDI_V1", + "metric": "canonical_brier", + "seed_level_mean_delta_by_seed": { + "11": -0.03383745709027565, + "29": -0.05847347656141426, + "47": -0.02302059307995781 + }, + "split": "S1_CAL_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.018169777789641777, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C1_CRDI_V1", + "metric": "canonical_nll", + "seed_level_mean_delta_by_seed": { + "11": -0.03997805953903574, + "29": -0.06732335401979703, + "47": -0.02850244318823005 + }, + "split": "S1_CAL_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.019943745964850348, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C1_CRDI_V1", + "metric": "semantic_js", + "seed_level_mean_delta_by_seed": { + "11": -8.890612907443458e-05, + "29": 1.9884117086192228e-05, + "47": 0.0003362990790036817 + }, + "split": "S1_CAL_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.00022088957073678627, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C1_CRDI_V1", + "metric": "canonical_accuracy", + "seed_level_mean_delta_by_seed": { + "11": 0.0, + "29": 0.019270833333333334, + "47": -0.00026041666666666666 + }, + "split": "S1_DEV_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.011201953406764144, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C1_CRDI_V1", + "metric": "canonical_brier", + "seed_level_mean_delta_by_seed": { + "11": -0.03562428311822003, + "29": -0.06846399753914564, + "47": -0.025161784855332308 + }, + "split": "S1_DEV_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.02259421879029782, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C1_CRDI_V1", + "metric": "canonical_nll", + "seed_level_mean_delta_by_seed": { + "11": -0.042230409515244476, + "29": -0.07816734636624217, + "47": -0.031346826949133176 + }, + "split": "S1_DEV_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.024501961956116355, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C1_CRDI_V1", + "metric": "semantic_js", + "seed_level_mean_delta_by_seed": { + "11": -6.481724229309947e-05, + "29": 2.540431657398543e-05, + "47": 0.00030776079872690235 + }, + "split": "S1_DEV_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.0001943705693379185, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_accuracy", + "seed_level_mean_delta_by_seed": { + "11": 0.00026041666666666666, + "29": 0.00234375, + "47": -0.0005208333333333333 + }, + "split": "S1_CAL_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.0014807918497597205, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_brier", + "seed_level_mean_delta_by_seed": { + "11": -0.018885842186717083, + "29": -0.060045393276461884, + "47": -0.017196007437642023 + }, + "split": "S1_CAL_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.024266005213578624, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_nll", + "seed_level_mean_delta_by_seed": { + "11": -0.022493430248402828, + "29": -0.06892823893404372, + "47": -0.021650108083615303 + }, + "split": "S1_CAL_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.027055881389745694, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "semantic_js", + "seed_level_mean_delta_by_seed": { + "11": -2.623242995836794e-05, + "29": 5.545291349656339e-05, + "47": 0.0004782171037292447 + }, + "split": "S1_CAL_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.00027076169962905717, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_accuracy", + "seed_level_mean_delta_by_seed": { + "11": -0.0010416666666666667, + "29": 0.0125, + "47": -0.0005208333333333333 + }, + "split": "S1_DEV_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.007672354095133456, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_brier", + "seed_level_mean_delta_by_seed": { + "11": -0.019839864164092672, + "29": -0.06844128144483554, + "47": -0.01810524168598592 + }, + "split": "S1_DEV_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.02857394960286652, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "canonical_nll", + "seed_level_mean_delta_by_seed": { + "11": -0.02374340880927646, + "29": -0.07815683653241842, + "47": -0.022923895096810733 + }, + "split": "S1_DEV_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.03165483254032413, + "training_seed_count": 3, + "uncertainty_qualified": false + }, + { + "intervention": "C2_CRDI_RETAIN_V1", + "metric": "semantic_js", + "seed_level_mean_delta_by_seed": { + "11": -1.4436824493398018e-05, + "29": 4.3942259301281294e-05, + "47": 0.000439580559066519 + }, + "split": "S1_DEV_EVAL", + "three_seed_sample_sd_of_overall_effects": 0.0002470052517121944, + "training_seed_count": 3, + "uncertainty_qualified": false + } + ] +} diff --git a/docs/research/paper-rebuild-v2-2026-10-02/V5_S1_DEVELOPMENT_CALCULATOR_EFFECT_ICC_INVENTORY_2026-10-10.md b/docs/research/paper-rebuild-v2-2026-10-02/V5_S1_DEVELOPMENT_CALCULATOR_EFFECT_ICC_INVENTORY_2026-10-10.md new file mode 100644 index 00000000..41bddcb7 --- /dev/null +++ b/docs/research/paper-rebuild-v2-2026-10-02/V5_S1_DEVELOPMENT_CALCULATOR_EFFECT_ICC_INVENTORY_2026-10-10.md @@ -0,0 +1,44 @@ +# V5 S1 calculator-level paired-effect correlation — original development evidence + +**Status:** `DEVELOPMENT_ONLY_DESCRIPTION / NOT_APPROVED_FOR_POWER / NO_CONFIRMATORY_AUTHORITY`. This is a transparent additional dependency diagnostic for independent statistical review, **not** a change to frozen endpoints, case allocation, preregistration, or scientific conclusions. + +## Source-bound reproduction + +- Program: `scripts/v5_s1_development_calculator_icc_inventory.py` +- Machine-readable result: `artifacts/v5/development/s1-calculator-icc-inventory-2026-10-10/development-calculator-icc.json` +- Result SHA-256 on the authoring Mac: `37d64c0f6ac14d04cc6420a020e7bb7997fb333e50729f33798b2d403d292370` +- Canonical earlier descriptive SD evidence: `artifacts/v5/development/s1-paired-sd-inventory-2026-10-09/development-paired-sd.json`, **pinned byte SHA-256** `b1edf781b61d3f5ce227c08908ca43ad9864c0b398a7318c33895951af37bacd` +- Original inputs: one unchanged-baseline development decision matrix, an independently verified R1 baseline repeat cross-check, and the **nine original B1/C1/C2 × training seeds 11/29/47** complete development decision matrices. All **11 original source SHA-256** identities are **pinned in the calculator analyzer** and repeated in `input_hashes` of the result. A mismatch fails closed. No new inference, training, held-out/reserve identities, PHI, external APIs or GPU calls. +- Run at repository root: `python3 scripts/v5_s1_development_calculator_icc_inventory.py --output /tmp/v5-calculator-icc-replay-new.json` (choose a **new nonexistent** destination). The CLI uses exclusive-create to preserve any earlier evidence/receipt. The source analyzer refuses incomplete input or mismatched intervention/seed, ordered source cases or canonical/transformed prompt identities. +- Pure synthetic guardrails: `PYTHONPATH=src python3 -m pytest -q tests/reliability_v5/test_development_calculator_icc_inventory.py`. The separate source-bound CI checks a fresh replay against the committed receipt at tolerances to avoid treating cross-platform floating-point last-bit differences as new scientific findings. + +## Descriptive ANOVA estimator and scope + +For every candidate intervention and seed, source tasks in `S1_DEV_EVAL` and `S1_CAL_EVAL` are paired with unchanged-baseline task/target/prompt/calculator identities. Each split contains **3,840 unique source cases**: exactly **64 selected RiskCalcs calculators** with **60 source cases per calculator** (distinct from **64 per calculator** in the still unmaterialized future 4,096-source-case confirmatory plan). The two nonindependent prompt variants are summarized per source case before calculating the delta. Four original metric definitions are reused without change. + +Within a cell, let `d_gi` be candidate-minus-baseline paired metric effect, `g` index calculator, `i` source state, and `K=64`, `m=60`. Define `MS_B = m * Σ_g (mean_g - grand_mean)^2/(K-1)` and `MS_W = Σ_gΣ_i(d_gi-mean_g)^2/[K*(m-1)]`; **descriptive unclipped** method-of-moments `ICC = (MS_B-MS_W)/(MS_B+(m-1)*MS_W)` if denominator positive, or `UNDEFINED_ZERO_TOTAL_VARIANCE`. Finite negative estimates are retained rather than quietly set to zero; they are **not negative population variance components**. + +Every computed cell reconstructs its existing saved paired source-task SD from ANOVA components, with fail-closed tolerance and a pinned SHA-256 for the prior SD source. All **72/72 cells reproduced**; maximum absolute floating-point difference `3.552713678800501e-15`. + +| Frozen metric | Cells | Observed development ICC min | Median | Max | Nonnegative cells | +|---|---:|---:|---:|---:|---:| +| Canonical accuracy | 18 | -0.012645 | -0.005465 | 0.020549 | 6 | +| Canonical Brier | 18 | 0.002960 | 0.018305 | 0.073701 | 18 | +| Canonical NLL | 18 | 0.001242 | 0.026186 | 0.110407 | 18 | +| Semantic JS | 18 | 0.052526 | 0.190126 | 0.238078 | 18 | +| **Total** | **72** | **-0.012645** | **0.023117** | **0.238078** | **60** | + +Highest observed **development** cell: `C2_47 / S1_DEV_EVAL / semantic_js` (`rho ≈ 0.2380777`). Under a **toy equal-size exchangeable calculator cluster sensitivity only**, `DEFF = 1 + 59*rho ≈ 15.0466` and `3840/DEFF ≈ 255.2` case-equivalents for that cell. This is **not a measured confirmatory design effect, transport estimate, or valid N=4096 power calculation**. Different axes can exhibit very different calculator dependence; no single favorable ICC can be reused for the whole Holm family. + +Separately, the *sample SD of just three seed-level whole-split descriptive paired-effect means* is given for each intervention/metric/split. Three seeds **do not** support claiming a qualified population stochastic-run covariance or correct 90% power. + +## Independent-review decisions still required + +1. **Inference target:** effects conditional on these 64 nonrandomly selected calculator rules versus scientific generalization to broader calculators/specialty populations. Source-case identifiers alone establish no random calculator sampling. +2. **Crossed nuisance model:** effect dependency among source cases within calculators, across three stochastic training seeds, shared baselines, missing/failed outputs and coupled endpoints; validation of inference and conservative power under those assumptions. +3. **Prospective complete primary non-target Holm family:** exact applicability, endpoint orientation, effect margins and alpha 0.05/90% power at planned 4,096 source cases; or scientifically reviewed power-failure/redesign as required by the existing frozen protocol. +4. **Governance:** rights, actual independent methodologist and Alibaba OCR code review, verified signing/founder gates and no confirmatory/reserve access until prospective approval. + +**Non-claims:** The original near-chance rule-oracle accuracy, unfavorable B1 NLL, all primary negative results and the scientific freeze are preserved unchanged. Neither this new result, successful tests nor a high ICC proves a causal calculator dependency, clinical correctness, real-world transport, effective seed sample size, final familywise power, or permission to publish/merge. All final qualification/authority flags remain `false`. + +Issue context: [#326](https://github.com/TheHalfMoon/commandMed/issues/326#issuecomment-6099547179). diff --git a/scripts/v5_s1_development_calculator_icc_inventory.py b/scripts/v5_s1_development_calculator_icc_inventory.py new file mode 100644 index 00000000..0aab7241 --- /dev/null +++ b/scripts/v5_s1_development_calculator_icc_inventory.py @@ -0,0 +1,225 @@ +#!/usr/bin/env python3 +"""Source-bound calculator-level paired-effect ICC diagnostics; DEVELOPMENT ONLY. + +This one-way descriptive ANOVA is NOT a mixed model, a population-calculator +inference, a crossed training-seed variance estimator, or a valid power certificate. +""" +from __future__ import annotations + +import argparse +from collections import defaultdict +import hashlib +import json +import math +from pathlib import Path +import statistics +from typing import Any, Sequence + +import v5_s1_development_paired_sd_inventory as source +from v5_s1_repeatability_analysis import PRIMARY_METRICS + +CALCULATORS_PER_SPLIT = 64 +EVAL_TASKS_PER_CALCULATOR = 60 +SEEDS = frozenset((11, 29, 47)) +FROZEN_REFERENCE_SHA256 = "b1edf781b61d3f5ce227c08908ca43ad9864c0b398a7318c33895951af37bacd" +# Exact SHA-256 for each previously source-bound original development matrix. +EXPECTED_INPUT_SHA256 = { + 'B1_11': '24f6be4368723f403bcb5c017ea79934a17986d517c57411df2012ca6826baf0', + 'B1_29': '37d9604165562bda296fba163ea0e4bc152663baadcfdbccecdd4e9cdb35faaa', + 'B1_47': '9cacfb2e46cc4db7c628b40fc7e857e31635c40150e87ec71dcfdb8e00a73ee0', + 'BASELINE': '4308392b831da1ac7d60f5f75e5eec6a011a685ccbd8c9252f77d593d0bf5dc9', + 'C1_11': 'dd8daa62900043ea8aee1e3f26543d6c70632c1f4d54016675cb2954a62d4769', + 'C1_29': '37c022d535fffed59215a32eb25da0ffd85faa3d0d34b084a4c9173eb4053f28', + 'C1_47': '565b83b42e4476f458466a1b6e7193891ee6b38e81823538383a7a028739a8a8', + 'C2_11': '9b320389a9aa16b22f8e8fc5e4699a20975deaebd7d3e1deab6372db4b163970', + 'C2_29': '33633cd0542863e913f38da0d6b1443f589da0433d95db330872c54aa2e9ebeb', + 'C2_47': '51f74581c0e31252948d8f0c467fbf725a71c1618d0cc8b3190518c3f7b3b6f1', + 'R1': '600dbd236098b967558e96d5ddf7d4144903fad96b172ad2871ec02fb0f30a44', +} +REFERENCE_PATH = source.DEVELOPMENT / "s1-paired-sd-inventory-2026-10-09/development-paired-sd.json" + + +class CalculatorICCContractError(ValueError): + """An input or independently checkable descriptive invariant was violated.""" + + +def _sha(path: Path) -> str: + return hashlib.sha256(path.read_bytes()).hexdigest() + + +def calculator_anova_components(pairs: Sequence[tuple[str, float]]) -> dict[str, Any]: + """Compute unclipped method-of-moments ICC on 64 × 60 paired case effects.""" + groups: dict[str, list[float]] = defaultdict(list) + for calculator, value in pairs: + if not isinstance(calculator, str) or not calculator: + raise CalculatorICCContractError("INVALID_CALCULATOR_ID") + if type(value) not in (int, float) or not math.isfinite(value): + raise CalculatorICCContractError("INVALID_FINITE_PAIRED_DELTA") + groups[calculator].append(value) + k, m = CALCULATORS_PER_SPLIT, EVAL_TASKS_PER_CALCULATOR + if len(groups) != k or any(len(group) != m for group in groups.values()): + raise CalculatorICCContractError("UNBALANCED_OR_MISSING_CALCULATOR_TASKS") + grand = statistics.fmean(v for group in groups.values() for v in group) + means = {cal: statistics.fmean(group) for cal, group in groups.items()} + ms_between = m * math.fsum((mean - grand) ** 2 for mean in means.values()) / (k - 1) + ms_within = math.fsum( + math.fsum((v - means[cal]) ** 2 for v in group) + for cal, group in groups.items() + ) / (k * (m - 1)) + denominator = ms_between + (m - 1) * ms_within + rho = (ms_between - ms_within) / denominator if denominator > 0 else None + if rho is not None and not (-1 / (m - 1) - 1e-8 <= rho <= 1 + 1e-8): + raise CalculatorICCContractError("ICC_ESTIMATE_OUT_OF_THEORETICAL_BOUNDS") + return { + "calculator_count": k, + "source_cases_per_calculator": m, + "paired_delta_mean": grand, + "within_calculator_ms": ms_within, + "between_calculator_ms": ms_between, + "anovamom_rho_unclipped": rho, + "rho_status": "UNDEFINED_ZERO_TOTAL_VARIANCE" if rho is None else ( + "NEGATIVE_FINITE_SAMPLE_ESTIMATE" if rho < 0 else "DESCRIPTIVE_NONNEGATIVE_ESTIMATE" + ), + "illustrative_deff": 1 + (m - 1) * rho if rho is not None and rho >= 0 else None, + "illustrative_effective_cases": k * m / (1 + (m - 1) * rho) if rho is not None and rho >= 0 else None, + "calculator_mean_min": min(means.values()), + "calculator_mean_max": max(means.values()), + } + + +def _reference_cell(reference: dict[str, Any], name: str, split: str, metric: str) -> float: + try: + sd = reference["intervention_results"][name]["splits"][split][metric]["paired_source_task_sample_sd"] + except (KeyError, TypeError) as exc: + raise CalculatorICCContractError("MISSING_SOURCE_BOUND_REFERENCE_SD_CELL") from exc + if type(sd) not in (int, float) or not math.isfinite(sd) or sd < 0: + raise CalculatorICCContractError("INVALID_SOURCE_BOUND_REFERENCE_SD") + return sd + + +def build_inventory() -> dict[str, Any]: + if _sha(REFERENCE_PATH) != FROZEN_REFERENCE_SHA256: + raise CalculatorICCContractError("ORIGINAL_DESCRIPTIVE_SD_REFERENCE_SHA_MISMATCH") + reference = json.loads(REFERENCE_PATH.read_text(encoding="utf-8")) + baseline_path = source.DEVELOPMENT / source.BASELINE_PATH + r1_path = source.DEVELOPMENT / source.REPEAT_R1_PATH + baseline = source._load(baseline_path, "BASELINE_V1") + r1 = source._load(r1_path, "BASELINE_V1") + if r1.get("repeat") != 1 or any( + any(a.get(field) != b.get(field) for field in source.IDENTITY_FIELDS + ("logits",)) + for a, b in zip(baseline["rows"], r1["rows"]) + ): + raise CalculatorICCContractError("BASELINE_R1_SOURCE_OR_LOGITS_MISMATCH") + base_index = source._validate_and_index(baseline["rows"]) + rows = [] + hashes = {"BASELINE": _sha(baseline_path), "R1": _sha(r1_path)} + seed_mean_map: dict[tuple[str, str, str], dict[int, float]] = defaultdict(dict) + maximum_sd_reconstruction_error = 0.0 + for name, (relative, intervention, seed) in sorted(source.CANDIDATES.items()): + path = source.DEVELOPMENT / relative + candidate = source._load(path, intervention, seed) + candidate_index = source._validate_and_index(candidate["rows"]) + if tuple(base_index) != tuple(candidate_index): + raise CalculatorICCContractError("ORDERED_SOURCE_TASK_SET_CHANGED") + hashes[name] = _sha(path) + paired = {(split, metric): [] for split in source.EVAL_SPLITS for metric in PRIMARY_METRICS} + for task_id, (base_metrics, bc, bt) in base_index.items(): + candidate_metrics, cc, ct = candidate_index[task_id] + for b, c in ((bc, cc), (bt, ct)): + if any(b.get(f) != c.get(f) for f in source.IDENTITY_FIELDS): + raise CalculatorICCContractError("SOURCE_TASK_OR_PROMPT_IDENTITY_CHANGED") + if type(bc["calculator_id"]) is not str or not bc["calculator_id"]: + raise CalculatorICCContractError("INVALID_CALCULATOR_ID") + for metric in PRIMARY_METRICS: + diff = candidate_metrics[metric] - base_metrics[metric] + if not math.isfinite(diff): + raise CalculatorICCContractError("NONFINITE_PAIRED_DELTA") + paired[(bc["split"], metric)].append((bc["calculator_id"], diff)) + for (split, metric), pairs in sorted(paired.items()): + if len(pairs) != source.EVAL_PER_SPLIT: + raise CalculatorICCContractError("INCOMPLETE_DEVELOPMENT_EVAL_SPLIT") + result = calculator_anova_components(pairs) + k, m = CALCULATORS_PER_SPLIT, EVAL_TASKS_PER_CALCULATOR + sd_from_components = math.sqrt( + ((k - 1) * result["between_calculator_ms"] + + k * (m - 1) * result["within_calculator_ms"]) / (k * m - 1) + ) + saved_sd = _reference_cell(reference, name, split, metric) + err = abs(sd_from_components - saved_sd) + if not math.isclose(sd_from_components, saved_sd, rel_tol=1e-11, abs_tol=1e-11): + raise CalculatorICCContractError("SOURCE_BOUND_SD_ANOVA_DECOMPOSITION_MISMATCH") + maximum_sd_reconstruction_error = max(maximum_sd_reconstruction_error, err) + result.update({ + "condition": name, "intervention": intervention, + "seed": seed, "split": split, "metric": metric, + }) + rows.append(result) + seed_mean_map[(intervention, split, metric)][seed] = result["paired_delta_mean"] + if hashes != EXPECTED_INPUT_SHA256: + raise CalculatorICCContractError("ORIGINAL_DEVELOPMENT_INPUT_SHA_MISMATCH") + if len(rows) != 72 or len(seed_mean_map) != 24: + raise CalculatorICCContractError("UNEXPECTED_DEVELOPMENT_CELL_COUNT") + seed_spread = [] + for (intervention, split, metric), means in sorted(seed_mean_map.items()): + if set(means) != SEEDS: + raise CalculatorICCContractError("MISSING_OR_DUPLICATE_TRAINING_SEED") + seed_spread.append({ + "intervention": intervention, "split": split, "metric": metric, + "seed_level_mean_delta_by_seed": {str(k): v for k, v in sorted(means.items())}, + "three_seed_sample_sd_of_overall_effects": statistics.stdev(means.values()), + "training_seed_count": 3, "uncertainty_qualified": False, + }) + valid_rho = [row["anovamom_rho_unclipped"] for row in rows + if row["anovamom_rho_unclipped"] is not None] + return { + "status": "DEVELOPMENT_ONLY_CALCULATOR_ANOVAMOM_SENSITIVITY_NOT_POWER", + "source": "ORIGINAL_PINNED_DEVELOPMENT_MATRIX_SHA256", + "input_hashes": hashes, + "reference_sd_sha256": FROZEN_REFERENCE_SHA256, + "reference_sd_cells_reproduced": 72, + "reference_sd_reconstruction_max_abs_error": maximum_sd_reconstruction_error, + "rows": len(rows), "n_missing_icc": 72-len(valid_rho), + "n_negative_icc": sum(x < 0 for x in valid_rho), + "n_nonnegative_icc": sum(x >= 0 for x in valid_rho), + "rho_min": min(valid_rho) if valid_rho else None, + "rho_median": statistics.median(valid_rho) if valid_rho else None, + "rho_max": max(valid_rho) if valid_rho else None, + "highest_positive_icc_cells": sorted( + (row for row in rows if row["anovamom_rho_unclipped"] is not None), + key=lambda row: row["anovamom_rho_unclipped"], reverse=True + )[:12], + "all_development_cells": rows, + "three_seed_between_effect_spreads": seed_spread, + "boundaries": { + "primary_holm_family_independently_reviewed": False, + "calculator_sampling_generalization_qualified": False, + "calculator_effect_icc_confirmatory_qualified": False, + "source_case_seed_crossed_variance_qualified": False, + "final_90_percent_power_qualified": False, + "confirmatory_authorized": False, + "source_cases_per_split": 3840, + "frozen_confirmatory_source_case_count": 4096, + }, + } + + +def main() -> int: + parser = argparse.ArgumentParser() + parser.add_argument("--output", type=Path, required=True) + args = parser.parse_args() + result = build_inventory() + text = json.dumps(result, sort_keys=True, indent=2, allow_nan=False) + "\n" + args.output.parent.mkdir(parents=True, exist_ok=True) + # Existing scientific records and symlink targets are never overwritten. + with args.output.open("x", encoding="utf-8", newline="\n") as stream: + stream.write(text) + print(json.dumps({ + "status": result["status"], "cells": result["rows"], + "reference_sd_cells_reproduced": result["reference_sd_cells_reproduced"], + "output_sha256": hashlib.sha256(text.encode("utf-8")).hexdigest(), + }, sort_keys=True)) + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/tests/reliability_v5/test_development_calculator_icc_inventory.py b/tests/reliability_v5/test_development_calculator_icc_inventory.py new file mode 100644 index 00000000..17587028 --- /dev/null +++ b/tests/reliability_v5/test_development_calculator_icc_inventory.py @@ -0,0 +1,70 @@ +"""Pure synthetic guardrails; the original-matrix receipt is independently replayed.""" +from __future__ import annotations + +import json +import math +import sys +from pathlib import Path + +import pytest + +sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "scripts")) +import v5_s1_development_calculator_icc_inventory as calc + + +def _balanced(rule): + return [(f"calc-{c:02}", float(rule(c, i))) for c in range(64) for i in range(60)] + + +def test_same_effect_per_calculator_has_one_icc() -> None: + x = calc.calculator_anova_components(_balanced(lambda c, _: c % 2)) + assert math.isclose(x["anovamom_rho_unclipped"], 1.0) + assert x["illustrative_effective_cases"] == 64.0 + + +def test_same_effect_across_calculators_has_negative_finite_sample_icc() -> None: + x = calc.calculator_anova_components(_balanced(lambda _, i: i % 2)) + assert x["anovamom_rho_unclipped"] < 0 + assert x["illustrative_effective_cases"] is None + + +def test_identical_effects_are_undefined_not_zero() -> None: + x = calc.calculator_anova_components(_balanced(lambda _c, _i: 0.5)) + assert x["rho_status"] == "UNDEFINED_ZERO_TOTAL_VARIANCE" + assert x["anovamom_rho_unclipped"] is None + + +@pytest.mark.parametrize("bad", [float("nan"), float("inf"), -float("inf"), False, "0"]) +def test_non_numeric_or_nonfinite_paired_deltas_are_rejected(bad) -> None: + pairs = _balanced(lambda c, i: c % 2) + pairs[0] = ("calc-00", bad) + with pytest.raises(calc.CalculatorICCContractError, match="INVALID_FINITE_PAIRED_DELTA"): + calc.calculator_anova_components(pairs) + + +def test_unbalanced_calculator_source_cases_rejected() -> None: + with pytest.raises(calc.CalculatorICCContractError, match="UNBALANCED_OR_MISSING"): + calc.calculator_anova_components(_balanced(lambda c, i: i)[:-1]) + + +def test_empty_calculator_identifier_rejected() -> None: + pairs = _balanced(lambda c, i: i) + pairs[0] = ("", 0.0) + with pytest.raises(calc.CalculatorICCContractError, match="INVALID_CALCULATOR_ID"): + calc.calculator_anova_components(pairs) + + +def test_existing_development_receipt_is_nonclinical_and_source_bound() -> None: + path = Path(__file__).resolve().parents[2] / ( + "artifacts/v5/development/s1-calculator-icc-inventory-2026-10-10/" + "development-calculator-icc.json" + ) + x = json.loads(path.read_text(encoding="utf-8")) + assert x["rows"] == 72 + assert len(x["all_development_cells"]) == 72 + assert x["reference_sd_cells_reproduced"] == 72 + assert x["n_negative_icc"] + x["n_nonnegative_icc"] + x["n_missing_icc"] == 72 + assert all(value is False for key, value in x["boundaries"].items() + if key.endswith(("_qualified", "_reviewed", "_authorized"))) + assert x["reference_sd_sha256"] == calc.FROZEN_REFERENCE_SHA256 + assert x["input_hashes"] == calc.EXPECTED_INPUT_SHA256