Skip to content

Rewrite the README and document the design accurately - #6

Merged
aymanazeem merged 1 commit into
mainfrom
docs/accurate-readme
Nov 30, 2026
Merged

aymanazeem merged 1 commit into
mainfrom
docs/accurate-readme

Conversation

@aymanazeem

Copy link
Copy Markdown
Owner

Problem

The README described results the code no longer produces:

  • an example image and cost figures from earlier runs;
  • a claim that only projects that applied before October 2020 have study reports;
  • a cost method called "close to Berkeley Lab's", though the two had never been compared.

There was also no licence file. Four design choices were missing from docs/decisions.md, and three code comments were wrong.

What changes

  • README.md. Rewritten in plain, first-person British English for a reader with no energy or AI background. Every figure comes from one of these:

    • today's panel of 7,666 PJM projects;
    • one report read by hand: AC2-093, at about $413 of network upgrades per kW;
    • today's embedding dry run;
    • a cited source.

    The limitations say what isn't measured yet, including that extraction can't run because OpenAI shut down gpt-4.1-nano.

  • docs/decisions.md. Four new sections:

    • numbers from the panel, reasons from the reports;
    • a pinned copy of Berkeley Lab's data;
    • SQL that can't reach files;
    • keeping the extracted costs when the panel is rebuilt.
  • docs/future_work.md. The planned fixes, most urgent first.

  • LICENSE. The MIT licence for the code.

  • Code comments. Three corrected, in src/config.py, src/fetch_pdfs.py and src/ingest_pdfs.py. No behaviour changes.

  • assets/example.png. Removed, because no current run reproduces it.

Verification

  • make test: 152 passed locally. CI runs the same tests on Python 3.11 and 3.14.
  • make data, make panel and make fetch ran for real. make embed, make extract and make eval ran as dry runs. No paid calls.
  • A link and anchor check of README.md and docs/ found nothing broken.
  • A smoke test of the chat page passed.
  • An independent agent checked every number and claim against the panel, the code, the study reports and the cited sources. A separate agent reviewed the change for accuracy and readability.
  • I fixed every finding but one. A suggested rewording equated "physical interconnection" with attachment facilities. AF1-236's and AF2-353's reports show that physical interconnection includes more, so I kept the accurate wording.

The README described results and behaviour that no longer matched the code or any current run: an example image and cost figures from earlier runs, a claim that only pre-2020 projects have reports, and a cost method described as close to Berkeley Lab's without being compared. Several design choices were also missing from docs/decisions.md.

The README is now a plain-English, first-person guide for a reader with no energy or AI background. Every figure comes from today's panel, a report read by hand, or a cited source, and the limitations state what is unmeasured. docs/decisions.md records four more design choices, docs/future_work.md lists the planned fixes, and LICENSE adds the MIT licence. Three code comments are corrected; no behaviour changes.

Verified with make test (152 passed), the dry runs of each stage, a link and anchor check, a chat page smoke test, and two independent checks of every claim against the panel, the code, the reports and the sources.
@aymanazeem

Copy link
Copy Markdown
Owner Author

Evidence for 650be93

CI. The checks job passed on Python 3.11 and 3.14 (run 46453419714). The timing API reports 0 billable milliseconds on both jobs.

Tests and runs. All on 30 November 2026, at the default settings:

  • make test: 152 passed locally.
  • make data matched the pinned SHA-256.
  • make panel built 7,666 PJM projects.
  • make fetch found the 25 default reports already downloaded.
  • The make embed dry run counted 4,084 chunks and estimated 1,357,677 tokens, about $0.0272. It took 11 minutes.
  • The make extract and make eval dry runs made no API calls.
  • No paid calls were made. Extraction and the paid evaluation wait for the move to current models.

Checks on the figures.

  • Panel facts. I re-ran the README's counts against the panel: status, fuel, the default sample, report types and queue IDs shared across regions.
  • Figures read from reports. I checked AC2-093's cost summary against its report: $280,825,093 in total, $2,300,000 of attachment facilities, and about $413 per kW over 675 MW.
  • Research findings. Each quote matches its source: Berkeley Lab's Queued Up and its 2023 PJM brief, FERC Order No. 2023 paragraph 47, and the abstract of Gorman and others (2025).
  • Report addresses. None of the 14 AG2, AH1 and AH2 projects I tried has a report at the two addresses make fetch uses. AG1-462, dated 1 October 2020, does have one.

Review.

  • An independent agent checked every number and claim twice: the first draft, then the fixes.
  • A separate agent reviewed the change for accuracy, readability and the documentation rules, twice.
  • I fixed every finding but one, a suggested rewording that the reports show would be wrong (see the description).
  • Links and anchors resolve, and there is no attribution text.

@aymanazeem
aymanazeem merged commit dce6b8d into main Nov 30, 2026
2 checks passed
@aymanazeem
aymanazeem deleted the docs/accurate-readme branch November 30, 2026 15:44
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