Skip to content

UNIVERSAL_LOG v7.9.0 — P3 Canonical Values Invariance, Physical-Axis OLS + Quadratic Guard, Unfiltered 40-Perm PDAC, and 9th Two-Commit Blind Holdout

Choose a tag to compare

@FindPrint FindPrint released this 29 Nov 18:32
· 8 commits to main since this release

Summary of Changes (vs v7.8.1, commit 2af5947)

Addresses the methodological findings from the archived external audit (docs/audits/2026-11-29_audit_v7.8.0_d02275d.md), verified stage-by-stage across 910 paired trajectories, 90 audit regression trials, 40 unfiltered PDAC patient-level permutations, and a two-commit SHA-256 pre-committed 9th blind holdout.

1. Strict P3 Column-Rename & Input-Format Invariance (values_hash_sha256 + B=100 Nulls)

  • Null random streams now seed from a canonical IEEE-754 little-endian values_hash_sha256 over numeric (control, target) values (normalized -0.0 -> +0.0), independent of column names, CSV headers, or DataFrame input (float_precision="round_trip" enabled for pandas < 3.1, tested in CI on Python 3.10, 3.11, 3.12 and pinned pandas==3.0.0).
  • Replaced noisy single-draw (B=1) white-noise and shuffled-target nulls with vectorized B=100 draws.
  • 910-trajectory before/after impact (results/v790_ablation/v790_before_after_report.md):
    • Univariate null FPR: 3/210 (1.4%) unchanged across all 7 noise families.
    • Univariate signal Grade A/B recovery: 112/220 -> 129/220 (+17 net true detections: 18 C->A gains, 1 A->C on the header-sensitive audit seed 130388).
    • Multi-regime (6/160 null, 77/80 exact-$k$) and multivariate (6/180 null, 60/60 signal) results unchanged.

2. Physical-Axis OLS slope_break & Smooth Quadratic Curvature Guard ($H_{0,\text{quad}}$)

  • slope_break now fits exact $O(n)$ prefix-sum OLS directly on the physical control axis x (stat_kind = "slope_per_control_unit", reporting axis_regularity, dt_cv, dt_max_min_ratio, and slope_units) and tests every candidate hinge against a competing smooth quadratic curve null $H_{0,\text{quad}}$ ($\Delta\text{BIC}{\text{hinge vs quad}}$ + intersection-union $p{\text{raw}} = \max(p_{\text{block-perm}}, p_{\text{quad}})$).
  • 90 audit regression trials (seeds 9000..9029):
    • 4x cadence-jump constant-slope line: 30/30 -> 0/30 false Grade B.
    • Smooth parabola: 10/30 -> 0/30 false Grade B.
    • Regular constant line: 0/30; power_slope_break signal recovery preserved at 20/20 (100%).

3. Corrected PDAC 4-Cohort Study (results/pdac_immune_replication/pdac_immune_report.md)

  • Replaced the 3 invalid microenv_LOFO _nul_s1.csv controls (which only permuted step) with 40 pre-committed patient-level CD8A permutations (10 fixed seeds 7901..7910 x 4 cohorts), retaining 100% of permutations with zero |rho| filtering ($\rho \in [-0.313, +0.271]$, including all 4 draws with $|\rho| \ge 0.20$): 0/40 false Grade A/B (40/40 Grade D).
  • Real cohorts confirm a monotone association across 4 cohorts ($\rho \in [+0.254, +0.799]$) without a discrete Grade A/B threshold under this protocol (0/24 A/B, predict_universal() properly logs 18 explicit refusal reasons).

4. Two-Commit 9th Blind Holdout (2abec87 -> 6c532ea, 25/25 SHA-256 Intact)

  • Negative controls (n=6): 0/6 false Grade A/B across unseen regular/irregular lines, 5x cadence jump, random exponential spacing, smooth exponential & irregular cubic curves, and 3-channel AR(1) (cumulative 0/29 across 8 post-v7.3.1 holdout cohorts; one-sided 95% Wilson upper bound 31.1% on $n=6$).
  • Core positives (n=4): 2/2 true irregular-cadence slope breaks detected as Grade B (slope_break, errors 0.5 and 1.9 physical units) + 2/2 seasonal and irregular-NaN steps as Grade A.
  • P3 Rename Pair: bit-for-bit identical across t,y vs obs_time,obs_val.
  • Weak-SNR boundary probe (SNR=1.4, kept transparently without post-hoc tuning): exact cut 100.0, conservatively Grade C (12/13 pre-registered criteria passed).

5. Deduplicated L6 Prediction, Propagated min_length, Manifest CI & Documented Scope

  • predict_universal() now strictly refuses duplicate objects, identical values_hash_sha256, duplicate replication_id, or missing hashes.
  • min_length warnings propagate to results.json, report.txt, report.html, and thresholds.csv even in --quiet mode.
  • MANIFEST.sha256 uses canonical LF hashes verified 75/75 against Git blobs and checked in CI via python tools/make_manifest.py --check and sha256sum -c MANIFEST.sha256.
  • Explicitly documented scope (scheduled for v7.9.1): (1) walk_forward() evaluates the temporal persistence of the detector chosen on the full series (detector_selection_scope = "full_series" — per-split preprocessing/threshold refit on the past only, detector & window selection on the full series); (2) L7 complementary motifs remain exploratory (validation_status = "exploratory" — training scores exclude the last segment, while candidate pairs are still chosen from peaks over all segments).

Installation & Verification

pip install universal-log-ts==7.9.0
universal-log --demo step --mode fast
  • CI (7/7 jobs green, Python 3.10–3.12 + pandas==3.0.0): 55/55 pytest, 28/28 --self-test, 75/75 manifest SHA-256 check, check_docs_links.py, flake8, build + twine check.

Reproduction Complement (Tag v7.9.0 & DOI 10.5281/zenodo.24659825 Unchanged)

  • A .gitignore wildcard excluded datasets_holdout_v790/holdout_v790_metadata.json from the v7.9.0 git tree (all 25 SHA-256 hashes in HOLDOUT_MANIFEST_v790.sha256 remain intact).
  • Attached asset UNIVERSAL_LOG_v7.9.0_complement_reproduction.zip (SHA-256 ecbce69ddc8a9e079ebac6aa2cea16f3ab19f0079cd87de93cbeed2d16b60088) provides the byte-identical holdout_v790_metadata.json (8da7985f2039c133...) and REPRODUIRE.md to replay python tests/run_holdout_v790.py --evaluate directly on a clean checkout of tag v7.9.0 or the Zenodo archive.