Repository navigation
Rescope the SE counterexample and the battery "seven times" claim - #3
Conversation
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>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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): |
There was a problem hiding this comment.
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 👍 / 👎.
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
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.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