RULES_oxygen_budget.txt -- pre-registered 2026-11-13, before any number below was computed. Page: ring-current-oxygen (Kitamura et al. 2026, Sci. Adv. 12, eaee1069). Page 4 (s0-news-2026-11-13) will reuse the result. QUESTION How much oxygen does Earth lose to space, and what is that next to the air? Bound what the May 2024 storm could have removed, and set it beside (a) the atmosphere's O2, (b) the measured decline of atmospheric O2 (Scripps O2/N2 record), (c) a detectability threshold. Give ranges, not one number. State every assumption. FIXED INPUTS (chosen before computing; each with its source) 1. Atmospheric O2. M = 3.706e19 mol O2 (Scripps O2 Program FAQ, "a reference value for the total number of O2 molecules in the atmosphere"). Mass = M x 31.9988 g/mol. Cross-check only: dry-air mass 5.1352e18 kg (Trenberth & Smith 2005, abstract) x O2 mole fraction 0.2095 x 31.9988/28.9647. 2. Measured O2 decline (Scripps, CC BY 4.0). Files: monthly_o2_{alt,ljo,cgo,spo}.csv (Alert, La Jolla, Cape Grim, South Pole), SIO2023 scale, archive dated 12-May-2026. Use column 6 ("seasonally adjusted"), measured months only (rows where column 5 is a number; never the filled columns 9-10). Ordinary least-squares slope (per meg per year) against decimal date (column 4) over two windows: W1 = 2016-01 to 2025-12 (ten complete years; headline), W2 = 1992-01 to 2025-12 (whole common record; context). Headline decline rate = mean of the four stations' W1 slopes. Report each station and the spread. Convert: kg O2 per year = |slope| x 1e-6 x M x 0.0319988 kg/mol (1 per meg of O2/N2 = 1e-6 of the O2 inventory, Scripps FAQ). Cross-check: Scripps FAQ, La Jolla Jan 1992-Jan 2009: 320 per meg, 19 per meg/yr. Context only (not computed): fossil-fuel O2 consumption 917 Tmol in 2005 (Scripps FAQ). 3. O+ escape and outflow rates (ions per second), all published; O+ ion mass = 15.9949 u x 1.66054e-27 kg. a. Slapak et al. 2017 (Ann. Geophys. 35, 721): plasma-mantle escape Phi_pm(Kp) = 3.9e24 exp(0.45 Kp) s^-1; the cusp-to-magnetosheath route is "smaller (by about a factor of 3)", so total Phi(Kp) = (1 + 1/3) Phi_pm(Kp). Their extrapolation: average 3e26 s^-1 at Kp = 9; upper estimate (top 20% of fluxes) 1e27 s^-1 at Kp = 9. b. Outflow (not net escape), for comparison only: Yau et al. 1985 (abstract): 1.5e26 ions/s at active times (3 <= Kp <= 5, solar maximum); "up to 6e26" O+/s (Wei et al. 2014, citing Yau & Andre 1997). c. Gunell et al. 2018 (abstract): observed mass escape from Earth, Mars and Venus "(0.5-2) kg s-1". d. Seki et al. 2001 (abstract): net loss about one order of magnitude below the polar O+ outflow. 4. Geomagnetic activity: GFZ definitive Kp (Kp_ap_Ap_SN_F107_since_1932.txt, CC BY 4.0), 3-hourly values. ESTIMATES FOR THE MAY 2024 STORM Window S = 2024-05-10 12:00 UT to 2024-05-14 00:00 UT (28 three-hour intervals, 3.5 days), which contains every 3-hour interval of this storm with Kp >= 5 plus margin. A. Central: sum over the 28 intervals of Phi(Kp_i) x 10800 s. (Kp = 9 lies beyond the fit's data, Kp <= 8; Slapak et al. extrapolated the same way.) B. Generous: 1e27 s^-1 (Slapak's top-20% estimate for Kp = 9) for the whole of window S, as if Kp were 9 throughout. C. Ceiling: 1e28 s^-1 for 7 days (the top of the 1e27-1e28 range Slapak et al. suggest for the Sun of a few billion years ago; an order of magnitude above anything measured) -- deliberately absurd, to show the margin. D. Inventory, not loss: the O+ held in the ring current at the storm's peak, from the Dessler-Parker-Sckopke relation E_RC = (3/2) (|dB| / B0) E_M, E_M = (4 pi / (3 mu0)) B0^2 RE^3, B0 = 3.1e-5 T, RE = 6.371e6 m; |dB| from 400 to 600 nT (brackets SYM-H's -518 nT with or without corrections for other currents); heavy-ion share f from 0.70 to 0.90 (the paper's Orbit 3 and Orbit 2 shares), all counted as O+; mean energy per ion from 30 to 70 keV (the paper's central energies of O+); N = f E_RC / energy; mass = N x m_O. Range = min and max over the corners of these intervals. COMPARISONS (for each of A-D, and for the annual rates below) - fraction of the atmosphere's O2 (and the same in per meg, x 1e6); - against a detectability threshold of 1 per meg (1e-6 of the O2 inventory), deliberately generous: Scripps flask precision is several per meg; - as the time the measured O2 decline (headline rate) takes to remove the same mass (seconds or minutes). ANNUAL BASELINE E. Mean of Phi(Kp) over every 3-hour interval of 2016-01-01 to 2025-12-31 (averaging the rate, not Kp), in kg/yr. F. Gunell et al.'s 0.5-2 kg/s, in kg/yr. Compare E and F with the measured decline (ratio) and with the O2 inventory (years to lose 1% at that rate). THE 2014 HYPOTHESIS, FOR SCALE (page 4 rates it; this only converts units) G. Wei et al. 2014's required rate for the Triassic-Jurassic, 6.5e29 O+/s: kg/yr; ratio to the measured decline; fraction of today's O2 over one reversal of 1e4 yr (their assumed duration). DECISION STATEMENTS (fixed now) 1. If even C is below 1 per meg, we say no plausible storm-time escape in May 2024 could have changed the air's oxygen detectably. If C exceeds 1 per meg but B does not, we say only an ad hoc ceiling reaches detectability. If B exceeds 1 per meg, we say the storm could have had a measurable effect. 2. If E (and F) are below 1% of the measured decline, we say burning fossil fuels removes oxygen from the air at least 100 times faster than escape to space does today. 3. Whatever the outcome, D is described as oxygen moved into near-Earth space and held there, not as a loss. REPORTING Two significant figures. Ranges as min-max. Every input printed in the log with its source. Code: code/oxygen_budget.py (standard library only). Output: out/oxygen_budget.json and out/oxygen_budget_log.txt, which records the SHA-256 of this rules file and of every data file read. Any deviation from these rules will be logged as a deviation, with its reason, after the first run.