Skip to content

Rescope the SE counterexample and the battery "seven times" claim - #3

Merged
ASM-21 merged 2 commits into
mainfrom
claude/rescope-se-and-battery-claims
Dec 5, 2026
Merged

ASM-21 merged 2 commits into
mainfrom
claude/rescope-se-and-battery-claims

Conversation

@ASM-21

@ASM-21 ASM-21 commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Before: carbon-signal-atlas named SE as its "one robust counterexample", and tariff-explorer said a 10 kW battery cuts "seven times" more demand charge than the 96 kW array.

After: no identified region is called a robust counterexample, and the battery claim reads 5.9 times (its own contribution against the array's), with 6.9 times stated separately as battery plus array against the array alone.

Both statements were wrong in a way the guards could not see, so each fix also adds a guard.

How

  • SE: SE helps under all four dispatchers, but its marginal fit is not identified (R2 0.29, below the repo's own MIN_R2 = 0.5), so its percentages are already excluded from the headline range, exactly like BPAT's. Among the 11 identified regions the average signal backfires in 10; ES, the one identified exception, flips with the dispatcher. README, FINDINGS (claims 2, 3, 7) and LITERATURE are rescoped in place, with a note saying what changed.
  • Atlas guard: quotes SE's R2, the gate, and the identified counts; requires the README to say an unidentified counterexample is not identified; and fails if any doc asserts a robust counterexample while no identified region helps under every dispatcher. Checked by reinserting the old README wording: the guard fails.
  • Battery: 44.3% / 6.4% = 6.9 compares battery plus array against the array alone. The battery's own contribution, (44.3 − 6.4) / 6.4, is 5.9. FINDINGS claim 5 and METHODS now say both, and the tariff guard computes both ratios. Checked by changing 5.9 to 7.0: the guard fails.

Local run: atlas guard (26 README, 22 FINDINGS claims) and tariff guard (29, 25) pass; atlas tests 53 passed, tariff tests 66 passed. hc-sweep is untouched.

These are the two corrections carried in the companion DER-value preprint draft.


Generated by Claude Code

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 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ASM-21
ASM-21 marked this pull request as ready for review December 5, 2026 16:29
@ASM-21
ASM-21 merged commit 351ba23 into main Dec 5, 2026
1 check passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T16:34:44.142875Z c896677 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c896677269

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Check plural counterexample assertions

If someone changes the README result row back to SE only but leaves the new caveat elsewhere, this guard still passes: the row’s Robust counterexamples heading is plural and (?!s) excludes it, while the separate unidentified check is satisfied by the unrelated SE caveat. The stale result this guard is meant to prevent can therefore return unnoticed; scan plural assertions too and tie named regions to robust_identified.

Useful? React with 👍 / 👎.

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