RULES_reproduce.txt -- pre-registered 2026-11-07, before any of the note's numbers were recomputed ===================================================================================================== Scope. Recompute every headline number of S0 News research note 003 from its Drive CSVs with our own code, and rebuild both storm lists from GFZ's own Kp file. What was looked at before this file was written: the note's text, MANIFEST.md, the CSV headers, the note's own published result tables (PipelineA_*, PipelineB_* lag and TABLE1 files, read as published) and the coded columns of EE_events.csv (value counts only). No daily series, sum, test or model has been computed by us yet. Inputs (SHA-256 logged in analysis_log.md): EE_events.csv (both Drive copies, identical), daily_ee_kp.csv, PipelineA_storm_episodes_G3plus.csv, PipelineB_Kp6_storm_days.csv, the lag/TABLE1 CSVs, and GFZ's Kp_ap_Ap_SN_F107_since_1932.txt fetched 2026-11-07T16:38Z. R1. Rows and flags. Count rows of EE_events.csv; count pipelineA_mystery == 1, pipelineB_no_outside_trigger == 1, pipelineB_outside_trigger_named == 1, pipelineB_no_stated_cause == 1, pipelineB_mystery == 1, date_certainty == "Confirmed". Targets: 1677, 1630, 1552, 125, 1205, 1149, 677. Exact match required. R2. Daily series. Count rows per date_utc for 1999-01-01 .. 2026-11-03 (10,169 days), overall and per stratum, and compare with daily_ee_kp.csv's ee_* columns day by day (exact). Rebuild expected_all_pipelineA_365d = mean of ee_all over days i-182 .. i+182, clipped to the span (a centred 365-day window; the manifest says "needs >= 183 days") and expected_all_pipelineB_monthmean = mean of ee_all over the same calendar month of the same year (days in the span). Match = within 1e-4 on every day. If the edge rule differs, report what rule matches. R3. Storms from GFZ. Daily max Kp = max of the eight 3-hour Kp values of each UTC day in GFZ's file (values -1 = missing, ignored). Compare with daily_ee_kp.csv's kp_max on all 10,169 days (count of days that differ by more than 0.001, listed by date; differences after 2026-06-30 are expected to come from provisional values). (A) Episodes: maximal runs of consecutive UTC days with daily max Kp >= 6.667 (7-), tolerance 1e-3; t0 = the day of the run with the highest daily max (ties: the first such day; if the note's t0 list needs another tie rule, say so). Target 127 episodes; compare start, end, t0, peak, length one by one. (B) Storm days: daily max Kp >= 6.0 (tolerance 1e-3). Target 341; compare date by date. The same run/peak rule at 4.667, 5.0, 6.0, 7.0 and 7.667 gives the threshold table (storm days, episodes). R4. Pipeline A. For lags k = -10 .. +15: O_k = sum over the 127 episodes of ee_all[t0+k] (an overlapping day is counted once per episode, as the note's sums do), E_k = same sum of expected_all_pipelineA_365d. Days 1-3 pooled = k 1..3 summed. Targets: 77 vs 62.5 (1.232); per-day 25/24/28 vs 20.8; day 0 20; days -3..-1 50 vs 62.4; days 7-9 58 vs 62.5; mystery 76 vs 59.5 using the mystery counts and their own centred 365-day mean; confirmed 32 vs 23.7; mystery+confirmed 32 vs 22.4. Observed exact; expected within 0.05; ratio within 0.002. Exact one-sided Poisson p for each day: P(X >= O | mean E); compare with the CSV within 0.002. Permutation: 5,000 random storm sets, random.Random(20261107); for each year, the same number of t0 as the real list, drawn without replacement from the year's days d with d+3 <= 2026-11-03; statistic = pooled days 1-3 O/E (same sums as above). p = #(null >= observed)/5000 and (1 + #)/(5001). Reproduced if within 0.01 of the note's 0.045 (MC s.e. ~0.003). Same for days -3..-1 and 7-9, and for the mystery set (0.020). Crude RR: X_d = 1 on the distinct days that are 1-3 days after any t0 (target 378 days, 76 events) vs the other 9,791 days. Target 1.23. Poisson GLM: log mu_d = b0 + year + month + weekday + b*X_d (treatment coding), MLE by IRLS, Wald 95% CI and two-sided Wald p. Target 1.276 (1.009-1.615), p 0.0421. Negative binomial (NB2, Var = mu + a*mu^2, a by maximum likelihood, profile over a): target 1.274 (0.984-1.649), p 0.0666. Reproduced if the RR is within 0.01 and the CI ends within 0.02. The same models for the mystery set (1.33; NB 1.326) and the confirmed set (1.395; NB 1.383). Threshold table: the six thresholds of PipelineA_storm_threshold_table.csv, days 1-3 O and E as above. R5. Pipeline B. Storm days S (341). For lag k, D_k = {s + k : s in S} within the span (distinct days); O_k = sum ee over D_k, E_k = sum of the stratum's same-month-same-year mean over D_k, for k = -7..14. Pooled days 1-3 = the union of D_1, D_2, D_3 (target 809 days); the same union minus storm days (683); days -3..-1 = union of D_-3..D_-1. Targets (all): day 1 52 vs 50.8, day 2 54 vs 50.7, day 3 73 vs 50.7, days 1-3 138 vs 122.9, days -3..-1 110 vs 126.0, before->after ratio 1.286. No outside trigger: day 3 69 vs 44.9, days 1-3 129 vs 109.6. Outside cause named: days 1-3 9 vs 13.3. Mystery (1,149): day 3 49 vs 32.6. Observed exact; expected within 0.05. Circular shifts: every shift s = 60 .. N-60 (N = 10,169 days), applied to the storm-day calendar modulo N (all 10,050 shifts enumerated, so no seed is needed); also 10,000 shifts drawn with random.Random(20261107) as the note did. p = #(shifted statistic >= observed)/#shifts. Targets: day 3 0.0016; days 1-3 0.07; ratio 0.02; no-outside-trigger days 1-3 0.0255. Reproduced if within 0.01 (or 25% of the target for p < 0.01). Dose ladder: storm days at daily max >= 5.0, 6.0, 7.0; pooled days 1-3 O/E for all and for no outside trigger. Targets +5/+12/+18% and +6/+18/+28%. R6. Note's wording checks: "chance ~ 1 in 22" (= 1/0.045), "1 in 600" (= 1/0.0016), "about 1 in 70 after allowing for the extra day x threshold comparisons" (we will state which multiplicity factor gives 1/70); "47 explosions ... dropping" = 1677 - 1630. Every number is reported whether it matches or not; a mismatch is reported with both values.