research(v5): preserve verified R2 and frozen paired margins
Scope — durable frozen V5 R2 evidence and development-only margin results
This stacked DRAFT PR targets fix/v5-repeatability-distinct-repeat-guard (draft PR #321) and does not touch the frozen scientific R2 execution branch research/commandmed-paper-first-principles (draft PR #320) or main. Official repository identity remains TheHalfMoon/commandMed.
Kaggle exact scientific execution (already completed)
- Private kernel
abdulazizshehri/commandmed-v5-base-repeatability-r2, v1, COMPLETE. Frozen scientific head819cf1dda443937eec0360e6051a89062b545cb9; tree4ee326864bb3c13aa6a34630aec629c358c1c582. Full 16,384 ordered prompts and 8,192 source cases; no training, optimizer, resume, PHI, confirmatory/reserve or paid compute. - Genuine original R2 export ZIP SHA-256
73f24c06f2d54e34cc20f2137f06b0728f02cccfc0d96c346f619d73184e4216. Atomic runtime exit 0, export true, development-only complete. - Re-acquired frozen public RiskCalcs source at exact SHA-256
00a7a0089afffb66f2f32903bad94a5a2ea842841defb2d78e0686b0a5eb9ab9; independent original-artifact verifier:PASS_MODEL_FREE_REPEATABILITY_EXPORT_VERIFICATION, 16,384 ordered rows and replayed analysis. Original ZIP, 14 internal evidence files, runtime, hardware, verification and live-source identity receipts preserved. - R1 separately verified original ZIP SHA-256
dfb35b0216369bbb87bcec75c5715df974bb9f736c0db0af98148cea91d99dac.
Prospectively frozen paired statistics
- Both 16,384-row decision matrices are byte-equivalent at the row level; the top-level repeat labels differ (1 versus 2), and each has a distinct separately verified private Kaggle execution/provenance. Identical logits imply all primary and secondary development-only
repeatability95estimates = 0. This is same-seed/same-config numerical repeatability, not model accuracy/robustness beyond the measured configuration. - Applying the already frozen before R1 outputs nonclinical benchmark-scale domain floors and
m_j=max(floor_j,2*repeatability95_j)gives primary native-unit margins: accuracy 0.01, NLL 0.009950330853168092, Brier 0.02, semantic JS 0.006931471805599453. No margin was adjusted after R2 output. - Paired estimator SHA-256
f6ace697d61de05c470c1260dafc7b54f13524b0dd2960e45c268c46bb7e64be; final margin output SHA-256361ad34e0c2deb0ca7646cfb9dd9346bb63471296a003e9ef12a858743f6917f. - Near-chance rule-conformance accuracy persists: DEV canonical 0.48125, CAL canonical 0.49322916666666666. No clinical safety or model performance benefit is inferred.
Mac qualification
PYTHONPATH=src python3 -m pytest -q tests/reliability_v5/ --disable-warnings --maxfail=1: 301 passed, 86 subtests.- Full repository pytest: 1,353 passed, 264 subtests.
compileall: PASS; correctedv5_s1_kaggle_preflight.verify_frozen_bindings(): PASS; stagedgit diff --check: PASS.- Real Alibaba OCR zero-cost delegate preview and host/static review completed. Provider-mediated independent model review not run. Jev DEFERRED_ZERO_COST_POLICY.
- A manual exploratory import with an incorrect module name failed and was corrected; scientific export verifier and pytest did not fail. Recorded openly in
validation-and-review.json. - Commit includes DCO sign-off. Cryptographic GitHub signature has not been verified; do not merge if a signed-commit rule applies.
Exact remaining blockers
Power analysis cannot be certified without a prospectively bound primary non-target family size and development-only intervention-paired source-cluster SDs. No final family-wise power or 90% adequacy assertion. No confirmatory/reserve generation, independent-backbone replication, release, publication or merge authority.
DRAFT / REVIEW-ONLY until all governance and scientific gates qualify. Preserve both prior draft PRs and the frozen scientific execution.
Summary by cubic
Preserves the verified R2 Kaggle export and the frozen paired development margins from the unchanged-base repeatability run, without touching the frozen scientific branch or main.
The two 16,384-row decision matrices are byte-identical, so all repeatability95 estimates are 0 and the final research-scale margins equal the previously frozen domain floors. No model quality, clinical safety, or publication claims are made.
Evidence and qualification
- Adds the repeat-2 export ZIP, 14 internal evidence files, verification receipts, and provenance hashes, plus the paired estimator and final margins files.
- macOS qualification passed: 1,353 repository tests, 301 focused V5 tests,
compileall, frozen-binding verification, andgit diff --check.
Remaining gates
- Power analysis stays pending paired intervention source-cluster SDs and a frozen primary non-target family size.
- Cryptographic commit signature is not yet verified and no independent review ran; keep this draft/review-only.