Skip to content

Build track 4 (PJM market tools) and track 5 (docket tracker) - #1

Merged
ASM-21 merged 1 commit into
mainfrom
claude/project-thread-amylr8
Dec 2, 2026
Merged

ASM-21 merged 1 commit into
mainfrom
claude/project-thread-amylr8

Conversation

@ASM-21

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

Copy link
Copy Markdown
Owner

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

  • Congestion is a median 81.1% of the locational part of day-ahead zonal LMP (20 zones, 2017-2021), and the median zone earns half its absolute congestion in 10.5% of hours. Zone rankings are stable year to year (Spearman 0.85 to 0.97).
  • A history-only forecast of the RTO capacity price missed 2025/26 by 9.33x; the last two auctions cleared at the FERC-approved cap. No forward forecast is published.
  • Both are framed as corroborating the IMM's State of the Market work and the VRR curve reviews, not as discoveries.

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

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>
@ASM-21
ASM-21 marked this pull request as ready for review December 2, 2026 03:23
@ASM-21
ASM-21 merged commit a1f8214 into main Dec 2, 2026
1 check passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 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-02T03:29:47.192183Z 84b04f9 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: 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)

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

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 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 👍 / 👎.

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.

1 participant