Skip to content

research(v5): preserve verified R2 and frozen paired margins - #322

Draft
TheHalfMoon wants to merge 1 commit into
fix/v5-repeatability-distinct-repeat-guardfrom
research/v5-r2-durable-evidence
Draft

TheHalfMoon wants to merge 1 commit into
fix/v5-repeatability-distinct-repeat-guardfrom
research/v5-r2-durable-evidence

Conversation

@TheHalfMoon

@TheHalfMoon TheHalfMoon commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

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 head 819cf1dda443937eec0360e6051a89062b545cb9; tree 4ee326864bb3c13aa6a34630aec629c358c1c582. 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 repeatability95 estimates = 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-256 361ad34e0c2deb0ca7646cfb9dd9346bb63471296a003e9ef12a858743f6917f.
  • 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; corrected v5_s1_kaggle_preflight.verify_frozen_bindings(): PASS; staged git 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, and git 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.

Written for commit eeac68c. Summary will update on new commits.

View guided diff Turn on auto-fix

Signed-off-by: Gocceri <azialshehri@gmail.com>
@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Owner Author

Exact-head post-push R2 and paired-analysis verification — 2026-10-09, macOS only

The stacked evidence branch is remotely pinned at eeac68c1c3224628dc9d9dcbf4be0ac6d275157c. The original scientific branch is still 819cf1dda443937eec0360e6051a89062b545cb9; main is unchanged.

On a clean Mac worktree at exact pushed HEAD, independently reran the source-aware scripts/v5_s1_verify_repeatability_export.py against the committed original R2 ZIP, original runtime/hardware records and freshly pinned public RiskCalcs source: PASS_MODEL_FREE_REPEATABILITY_EXPORT_VERIFICATION, all 16,384 rows and ZIP SHA-256 73f24c06f2d54e34cc20f2137f06b0728f02cccfc0d96c346f619d73184e4216.

Recomputed the paired R1/R2 analysis using the actual two committed full decision matrices through the strict run-label guard and frozen estimator. Status: PASS_REPEATABILITY_ANALYSIS; byte-for-byte comparison with the committed output PASS, SHA-256 f6ace697d61de05c470c1260dafc7b54f13524b0dd2960e45c268c46bb7e64be. All 7 quantities have repeatability95=0 because the two truly separately executed same-seed base runs yielded equal logits on all 16,384 ordered rows; no claim of broader robustness or clinical validity.

Previous local exact-head qualification: 301 focused V5 passed plus 86 subtests, 1,353 full repository tests passed plus 264 subtests, Python compile PASS, frozen binding verification PASS and staged whitespace check PASS. A failed manual exploratory import due to a mistyped module name was independently corrected; genuine tests and scientific verifier did not fail.

Unmet governance: GitHub REST verification for exact commit eeac68c reports verified=false, reason=unsigned, notwithstanding DCO sign-off. Alibaba OCR delegate preview is a genuine zero-cost eligibility inspection plus host review, not independent model review. Jev remains deferred under zero-cost policy. No bypass or merge is allowed.

Unmet statistical gate: justified intervention-paired source-cluster SDs and a prospectively frozen exact primary non-target family size are required before the 90% power/4096-cluster evaluation is eligible. The frozen benchmark-scale margins do not automatically supply these nuisance and family inputs. Confirmatory/reserve, independent backbone replication, publication and clinical claims remain unauthorized. Keep PR #322 DRAFT / UNMERGED.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants