From 8a3998c52ef4c1c4ee97257dd6ce8bf245f72280 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 05:08:52 +0000 Subject: [PATCH 1/2] Rescope the SE counterexample and the battery "seven times" claim carbon-signal-atlas named SE as its one robust counterexample, but SE's marginal fit is not identified (R2 0.29, below the repo's own 0.5 gate), so its percentages are excluded from the headline range exactly as BPAT's are. Among the 11 identified regions the average signal backfires in 10; ES, the one identified exception, flips with the dispatcher. No identified region is a robust counterexample. The guard now quotes SE's R2 and the identified counts, and fails if any doc asserts a robust counterexample while no identified region helps under every dispatcher. tariff-explorer said a 10 kW battery cuts "seven times" more demand charge than the 96 kW array. That ratio (44.3% / 6.4%) compares battery plus array against the array alone. The battery's own contribution is 5.9 times the array's. Both ratios are now computed and guarded. Co-Authored-By: Claude Opus 5.5 --- carbon-signal-atlas/FINDINGS.md | 18 ++++++--- carbon-signal-atlas/LITERATURE.md | 8 ++-- carbon-signal-atlas/README.md | 4 +- carbon-signal-atlas/tools/check_claims.py | 45 ++++++++++++++++++++++- tariff-explorer/FINDINGS.md | 9 ++++- tariff-explorer/docs/METHODS.md | 5 ++- tariff-explorer/tools/check_claims.py | 12 ++++++ 7 files changed, 86 insertions(+), 15 deletions(-) diff --git a/carbon-signal-atlas/FINDINGS.md b/carbon-signal-atlas/FINDINGS.md index 3ce011e..c1a3cec 100644 --- a/carbon-signal-atlas/FINDINGS.md +++ b/carbon-signal-atlas/FINDINGS.md @@ -33,10 +33,17 @@ increase marginal emissions.** This is not this repo's finding. Jiang et al. 10.1145/3632775.3661953) established it. *Reproduce:* see LITERATURE.md. **Claim 2. It holds in 11 of 13 grid regions under the headline dispatcher, -and in 11 to 12 of 13 under every alternative tested. Only SE is a robust -counterexample.** *Rescoped in place: this claim previously named ES and SE as +and in 11 to 12 of 13 under every alternative tested. No identified region is +a robust counterexample.** *Rescoped in place: this claim previously named ES and SE as genuine counterexamples. An adversarial re-run (claim 7) showed ES is one only -under the simplified dispatcher.* SE helps under all four dispatch variants. +under the simplified dispatcher.* *Rescoped again: it then named SE as the one +robust counterexample. SE does help under all four dispatch variants, but its +marginal fit is not identified (R2 = 0.29, below this repo's own 0.5 gate), so +its percentages are excluded from the headline range exactly as BPAT's are, and +it cannot carry a counterexample claim in either direction. Among the 11 +identified regions, the average signal raises marginal emissions in 10 under +the headline dispatcher; ES, the one identified exception, flips with the +dispatcher.* SE helps under all four dispatch variants. ES helps by 2.9% when the scheduler may discharge before it charges, and is **harmed by 7.6%** once charging must come first. An earlier version of this analysis also covered only the 7 US regions and reported a universal @@ -48,7 +55,7 @@ README. *Rests on:* claim 1. *Reproduce:* `python tools/make_figures.py`, the signal picks actively wrong hours (9 of 13), and the round-trip loss floor, where it picks the right hours but the gain cannot pay for losses (NYISO, NL). Under the headline dispatcher only ES and SE clear both bars; per claim 2, ES -clears them only under that dispatcher. *Rests on:* claim 2. *Reproduce:* +clears them only under that dispatcher, and SE's marginal fit is not identified. *Rests on:* claim 2. *Reproduce:* `breakeven.py`. ![Two failure modes: wrong hours (inversion) versus right hours that cannot pay for round-trip losses](figures/04_failure_modes.png) @@ -91,7 +98,8 @@ that idles on days its own signal says cannot cover losses, and both together. - **Predictor:** r stays between **-0.83** and -0.91, while the clean-share correlation decays from -0.40 to **-0.11**. Survives, and its lead over grid cleanliness widens. -- **Counterexamples:** only SE is robust. ES flips (claim 2). Rescoped. +- **Counterexamples:** none among identified regions. ES flips, and SE, + which helps under every variant, is not identified (claim 2). Rescoped. - **Magnitude:** under the most realistic variant the median penalty falls from 15.1% to **9.4%**, and PJM from 28.2% to **12.7%**. An earlier constrained-MILP build measured 10.5% for PJM; that gap had been attributed to the dispatcher diff --git a/carbon-signal-atlas/LITERATURE.md b/carbon-signal-atlas/LITERATURE.md index 9d98839..d7dcf6b 100644 --- a/carbon-signal-atlas/LITERATURE.md +++ b/carbon-signal-atlas/LITERATURE.md @@ -61,7 +61,8 @@ A re-demonstration with one genuinely incremental piece: - **Empirical breadth.** 13 named grid regions of real hourly data, with the effect in 11 of 13 under the headline dispatcher, 11 to 12 under every - alternative tested, and **one robust counterexample (SE)**. Jiang et al. is an + alternative tested, and **no robust counterexample among identified regions** + (SE helps under every dispatcher, but its marginal fit is not identified). Jiang et al. is an equilibrium model; ACM e-Energy 2024 is workload scheduling. This is closest to the latter and is best positioned as corroboration and extension of it. - **A predictor, which appears to be new.** The damage is not explained by the @@ -88,8 +89,9 @@ consumers of the signal this repo criticizes. stands as new. - No prior formal proposal of the average-marginal correlation as *the* predictor was found. This is the claim most worth attacking. -- The mechanism behind the SE counterexample is not independently - corroborated. ES, previously listed alongside it, turned out to be a +- Whether SE is a real counterexample is open. It helps under every + dispatcher, but its marginal fit is not identified, so a better marginal + model for hydro-heavy grids would be needed to settle it. ES, previously listed alongside it, turned out to be a counterexample only under the simplified dispatcher (FINDINGS claim 7). Corrections welcome, particularly from the authors of the prior art above if diff --git a/carbon-signal-atlas/README.md b/carbon-signal-atlas/README.md index e4edf9b..451cb91 100644 --- a/carbon-signal-atlas/README.md +++ b/carbon-signal-atlas/README.md @@ -17,7 +17,7 @@ not new: | Already established | What this repo adds | |---|---| -| Average-signal load shifting can be counterproductive: Jiang et al. (arXiv:2504.07248, ACM e-Energy 2025); ACM e-Energy 2024 (DOI 10.1145/3632775.3661953) | An empirical measurement across 13 named grid regions on four continents (balancing authorities and bidding zones), and an adversarial re-run under four dispatch assumptions: the count holds (11 to 12 of 13) but only SE survives as a counterexample | +| Average-signal load shifting can be counterproductive: Jiang et al. (arXiv:2504.07248, ACM e-Energy 2025); ACM e-Energy 2024 (DOI 10.1145/3632775.3661953) | An empirical measurement across 13 named grid regions on four continents (balancing authorities and bidding zones), and an adversarial re-run under four dispatch assumptions: the count holds (11 to 12 of 13), and no identified region survives as a counterexample | | Average and marginal signals often fail to align (same sources) | **A predictor not found in the literature:** the damage tracks how the two hourly signals line up (r = -0.91), not how clean the grid is (r = -0.40), so a grid can be screened from two 24-hour profiles with no dispatch model | | Marginal-emissions regressions need a renewable-generation control (WattTime 2022; Beltrami et al. 2020) | A worked demonstration of how large the bias gets without it | @@ -51,7 +51,7 @@ python tools/check_claims.py # recomputes every number in this README |---|---| | Grid regions | 13: 7 NERC balancing authorities, 5 ENTSO-E bidding zones, 1 NEM region | | Average signal raises marginal CO2 in | 11 of 13 | -| Robust counterexamples | SE only (ES flips once charging must precede discharging) | +| Robust counterexamples | None among identified regions. ES flips once charging must precede discharging; SE helps under every dispatcher, but SE's marginal fit is not identified (R2 0.29, below the 0.5 gate) | | Damage vs grid clean share | r = -0.40 | | Damage vs hourly average-marginal correlation | r = -0.91 | diff --git a/carbon-signal-atlas/tools/check_claims.py b/carbon-signal-atlas/tools/check_claims.py index c1724b9..9be5bc5 100644 --- a/carbon-signal-atlas/tools/check_claims.py +++ b/carbon-signal-atlas/tools/check_claims.py @@ -31,7 +31,7 @@ from gridsignal.dispatch import Flexible # noqa: E402 from gridsignal.ingest import load_all # noqa: E402 from gridsignal.marginal import fit_marginal # noqa: E402 -from gridsignal.report import headline, summarize # noqa: E402 +from gridsignal.report import MIN_R2, headline, summarize # noqa: E402 README = ROOT / "README.md" @@ -77,7 +77,18 @@ def compute() -> dict[str, float | int | str]: "rob_pjm_both": float(pr.loc["PJM", "both"]), "rob_es_chrono": float(pr.loc["ES", "chronological"]), "rob_se_always_negative": int((pr.loc["SE"] < 0).all()), + # Identified regions that help under every dispatcher. Only these can + # be called robust counterexamples; an unidentified region's + # percentages are excluded from the headline, so they cannot carry one. + "robust_identified": ",".join(sorted( + c for c in pr.index + if c in set(ok.index) and (pr.loc[c] < 0).all())), } + fits = tables["fits"].set_index("region") + rob_vals["se_r2"] = float(fits.loc["SE", "r2"]) + rob_vals["min_r2"] = float(MIN_R2) + rob_vals["n_identified"] = int(s["n_identified"]) + rob_vals["n_worse_identified"] = int((ok["average_signal_pct"] > 0).sum()) return {**rob_vals, "n_regions": s["n_regions"], @@ -138,6 +149,8 @@ def compute() -> dict[str, float | int | str]: ("13.6% at", "loss_floor", 0.05, 100.0), ("2.3% |", "pl_block_spread", 0.05, 100.0), ("2.3%**", "pl_block_spread", 0.05, 100.0), + ("0.29, below the 0.5 gate", "se_r2", 0.005, 1.0), + ("below the 0.5 gate", "min_r2", 0.001, 1.0), ] @@ -165,6 +178,11 @@ def _fmt(v): ("**9.4%**", "rob_median_both", 0.05, 1.0), ("**12.7%**", "rob_pjm_both", 0.05, 1.0), ("**harmed by 7.6%**", "rob_es_chrono", 0.05, 1.0), + # claim 2, second rescope: SE is not identified + ("= 0.29, below", "se_r2", 0.005, 1.0), + ("own 0.5 gate", "min_r2", 0.001, 1.0), + ("Among the 11 identified", "n_identified", None, 1.0), + ("emissions in 10 under", "n_worse_identified", None, 1.0), ] @@ -273,6 +291,31 @@ def main() -> int: for code in vals["counterexamples"].split(","): if code not in text: failures.append(f"counterexample {code} is not mentioned in the README") + # A region whose marginal fit is not identified cannot be a robust + # counterexample. SE was named as one while failing the repo's own R2 gate; + # this check makes that impossible to write again. The phrase is allowed + # only in a negated form while no identified region helps under every + # dispatcher. + unid = set(vals["unidentified"].split(",")) + for code in vals["counterexamples"].split(","): + if code in unid and f"{code}'s marginal fit is not identified" not in " ".join(text.split()): + failures.append(f"counterexample {code} is unidentified; the README must say {code}'s marginal fit is not identified") + if not vals["robust_identified"]: + for path in (README, ROOT / "FINDINGS.md", ROOT / "LITERATURE.md"): + if not path.exists(): + continue + # Retractions and italic rescope notes may quote the old claim. + doc = "\n".join(ln for ln in path.read_text().splitlines() + if not ln.lstrip().startswith(">")) + doc = re.sub(r"\*Rescoped.*?\*", " ", doc, flags=re.S) + low = " ".join(doc.split()).lower() + for m in re.finditer(r"robust counterexample(?!s)", low): + # The clause before the phrase, back to the last sentence or + # table break, must negate it. + clause = re.split(r"[.;|]", low[:m.start()])[-1] + if not re.search(r"\b(no|not|none|cannot)\b", clause): + failures.append( + f"{path.name}: 'robust counterexample' asserted, but no identified region helps under every dispatcher: {low[max(0, m.start() - 40):m.end()]!r}") # The personal-capacity disclaimer is load-bearing, not decoration: this diff --git a/tariff-explorer/FINDINGS.md b/tariff-explorer/FINDINGS.md index c0c9698..4b213f5 100644 --- a/tariff-explorer/FINDINGS.md +++ b/tariff-explorer/FINDINGS.md @@ -81,8 +81,13 @@ under 2% of nameplate. *Rests on:* independent of claims 1-3. ![On the peak-import day the billed peak lands when the array produces almost nothing](figures/05_peak_day_shapes.png) -**Claim 5. A small battery does what a large array cannot.** A 10 kW battery -cuts seven times more demand charge than the entire 96 kW array. *Rests on:* +**Claim 5. A small battery does what a large array cannot.** Adding a 10 kW +battery to the 96 kW array takes the demand-charge cut to **44.3%**. The +battery's own contribution is **5.9 times** the array's, and battery plus array +cut 6.9 times what the array does alone. *Rescoped in place: this claim +previously said the battery cuts "seven times" more than the array; that +compared battery plus array against the array alone, not the battery +against the array.* *Rests on:* claim 4. *Prior art:* the Darghouth companion study reports 42% median for solar-plus-storage versus 7% for PV alone; consistent in direction. diff --git a/tariff-explorer/docs/METHODS.md b/tariff-explorer/docs/METHODS.md index 00b3a8d..35b33d1 100644 --- a/tariff-explorer/docs/METHODS.md +++ b/tariff-explorer/docs/METHODS.md @@ -62,8 +62,9 @@ same 96 kW array: | 20 kW / 80 kWh | $1,077 | 72.0% | | 50 kW / 200 kWh | $519 | 86.5% | -A 10 kW battery, roughly a tenth of the array's nameplate, cuts seven times -more demand charge than the entire 96 kW array does. For a demand-metered +A 10 kW battery, roughly a tenth of the array's nameplate, adds 5.9 times the +demand-charge cut that the entire 96 kW array delivers; together they cut 6.9 +times as much as the array alone. For a demand-metered customer the marginal dollar goes into storage, not more panels. **5. Utility revenue view.** For that commercial customer, revenue falls diff --git a/tariff-explorer/tools/check_claims.py b/tariff-explorer/tools/check_claims.py index 680d026..ad1f4e5 100644 --- a/tariff-explorer/tools/check_claims.py +++ b/tariff-explorer/tools/check_claims.py @@ -116,6 +116,12 @@ def compute() -> dict: "com_demand_cut_at_150": d150["demand_cut_pct"], "storage_10kw_cut": storage.loc[10.0, "demand_cut_pct"], "storage_50kw_cut": storage.loc[50.0, "demand_cut_pct"], + # The battery's own contribution against the array's, and battery plus + # array against the array alone. An earlier "seven times" quoted the + # second while describing the first. + "battery_vs_array": (storage.loc[10.0, "demand_cut_pct"] - d100["demand_cut_pct"]) + / d100["demand_cut_pct"], + "combo_vs_array": storage.loc[10.0, "demand_cut_pct"] / d100["demand_cut_pct"], "max_peak_pv_frac_pct": 100.0 * max(peak_pv_frac), "n_months_under_2pct": sum(1 for f in peak_pv_frac if f < 0.02), } @@ -150,6 +156,8 @@ def compute() -> dict: ("7.1%", "com_demand_cut_at_150", 0.1, 1.0), ("44.3%", "storage_10kw_cut", 0.1, 1.0), ("86.5%", "storage_50kw_cut", 0.1, 1.0), + ("adds 5.9 times the", "battery_vs_array", 0.05, 1.0), + ("together they cut 6.9", "combo_vs_array", 0.05, 1.0), ] @@ -177,6 +185,10 @@ def compute() -> dict: ("1.507", "lever_nv_closed_form", 0.001, 1.0), ("(ratio 0.976)", "lever_nv_flip", 0.001, 1.0), ("**9 of 10**", "lever_nv_wins", None, 1.0), + # claim 5, rescoped + ("cut to **44.3%**", "storage_10kw_cut", 0.1, 1.0), + ("**5.9 times** the array's", "battery_vs_array", 0.05, 1.0), + ("cut 6.9 times what", "combo_vs_array", 0.05, 1.0), ] From c896677269893cf1d669b5edb247e01c1a41ab10 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 05:17:21 +0000 Subject: [PATCH 2/2] Regenerate MANIFEST counts for the new claim guards Co-Authored-By: Claude Opus 5.5 --- MANIFEST.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MANIFEST.md b/MANIFEST.md index f98901c..880c188 100644 --- a/MANIFEST.md +++ b/MANIFEST.md @@ -12,9 +12,9 @@ is inspectable rather than squashed away. | study | package | tests | README claims | FINDINGS claims | |---|---|---|---|---| | hc-sweep | `hcsweep` | 211 | 58 | 132 | -| carbon-signal-atlas | `gridsignal` | 53 | 24 | 18 | -| tariff-explorer | `tarifflab` | 66 | 27 | 22 | -| **total** | | **330** | **109** | **172** | +| carbon-signal-atlas | `gridsignal` | 53 | 26 | 22 | +| tariff-explorer | `tarifflab` | 66 | 29 | 25 | +| **total** | | **330** | **113** | **179** | ## Verification