Repository navigation
Build track 4 (PJM market tools) and track 5 (docket tracker) - #1
Conversation
Track 4 analyzes measured PJM day-ahead zonal LMP (2017-2021, 20 zones) and ten RPM Base Residual Auctions: where congestion lives in time, how stable zone rankings are, and how far a history-only capacity price forecast gets. Data comes from public GitHub redistributions pinned by commit (COVID-EMDA, Switchbox) because pjm.com was unreachable. Track 5 is a polite docket monitor (robots.txt, rate limit, extractive summaries, SQLite dedup, weekly digest) tested on a labeled synthetic fixture. The PA PUC adapter refuses to run until it is validated against the real site. Adds FINDINGS 8 and 9, NOTICE items 4-7, 36 tests, and claim-guard coverage for every quoted figure (245 checks). 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: 84b04f9e4b
ℹ️ 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".
| args = ap.parse_args() | ||
|
|
||
| cfg = TrackerConfig.load(args.config) | ||
| store = Store(args.db) |
There was a problem hiding this comment.
Use the configured database when no CLI override is supplied
When a user sets database in the JSON config and runs with --config but without --db, this still opens :memory: instead of cfg.database. Each scheduled run then starts with an empty store, so cross-run deduplication and persistent tracking do not work unless users also pass --db explicitly.
Useful? React with 👍 / 👎.
| return UNAVAILABLE | ||
| chosen = [] | ||
| for s in sentences(filing.text): | ||
| if any(re.search(r"\b" + re.escape(t) + r"\b", s, re.IGNORECASE) for t in terms |
There was a problem hiding this comment.
Preserve case sensitivity for acronym summaries
When a filing matches a case-sensitive acronym such as DER in its title, this search can select a body sentence containing lowercase der, even though the matcher intentionally does not treat that as the acronym. The digest can therefore present an unrelated sentence as the summary; preserve acronym case sensitivity when selecting sentences.
Useful? React with 👍 / 👎.
Before: tracks 4 (PJM market tools) and 5 (PA PUC docket tracker) were stubs marked "Not built", blocked on pjm.com and puc.pa.gov being unreachable.
After: track 4 is a complete study on measured PJM data, and track 5 is a working, tested tool that runs on a labeled synthetic fixture and refuses to touch the real PA PUC site until someone validates it there.
Track 4 results (all recomputed by
tools/check_claims.py):How. LMP comes from PJM Data Miner exports redistributed unmodified in COVID-EMDA (MIT), and capacity prices from Switchbox's transcription of PJM's auction workbooks (MIT), both pinned by commit in NOTICE. The docket tracker obeys robots.txt, spaces requests 10 s apart, dedups on docket + date + title in SQLite, and quotes summaries verbatim instead of generating them. Adds FINDINGS 8 and 9, 36 tests (191 total), and 245 claim-guard checks; the private-data scan passes and the disclaimer is unchanged.
Not merging: draft for review.
Generated by Claude Code