Skip to content

chore(data): follow the four citations that really moved - #4

Merged
clay-good merged 1 commit into
mainfrom
chore/refresh-moved-links
Nov 15, 2026
Merged

clay-good merged 1 commit into
mainfrom
chore/refresh-moved-links

Conversation

@clay-good

Copy link
Copy Markdown
Owner

Status: LGTM — ready to merge. Towards #1. No logic changes.

What was wrong

The weekly link check (#1) reported eighteen moved links. Checked by hand on 2026-11-14, four had really moved. Each answers 301 — a permanent move the publisher declared — to a page that now resolves directly with no further redirect.

Cited by Was Now
electrify.service-headroom.check citation nfpa.org/freeaccess nfpa.org/for-professionals/codes-and-standards/list-of-codes-and-standards/free-access
weather.change.explain citation Recurve data-sufficiency guidelines …/index.html
eGRID registry terms epa.gov/egrid/egrid-questions-and-answers epa.gov/egrid/frequent-questions-about-egrid
Qualifying-facility checklist form ferc.gov/docs-filing/forms/form-556/form-556.pdf ferc.gov/sites/default/files/2020-04/form-556_7.pdf

How it was fixed

Four one-line URL updates — plus the two things the repo's own gates correctly insisted on.

A tool's citations are part of its published result. verify/gates/versions.mjs caught this: changing a citation URL changes what electrify.service-headroom.check and weather.change.explain return, so both bump 0.1.0 → 0.2.0 with a changelog entry each, their recorded snapshots are refreshed, and docs/tools.md is regenerated.

Minor rather than patch because the repo has no patch-version precedent, and the one prior citation-only change (interconnect.minimum-load.screen → 0.2.0) took a minor bump.

EPA's page is the only one with a stored capture, so it is the only one that needed the terms re-verified rather than just the address changed. I fetched the new page and confirmed:

  • The answer is still numbered 25, matching the recorded section: '25) Can I use eGRID data commercially and how do I cite it?'
  • Its text is word for word what pipeline/registry/egrid.mjs already records.

So the capture itself still stands. captured: '2026-10-31' is left as it is — that is genuinely when the text was taken — and the comment beside it now records that EPA moved the page and the answer is unchanged there. Per CONTRIBUTING, nothing disputable changed, so no second source was needed.

data/egrid/2026-10/manifest.json still carries the old terms URL. That is published output and is regenerated on the next eGRID refresh; hand-editing a published manifest would be wrong.

Proof it works

Each new URL verified directly, with final 200, redirects 0:

nfpa.org/for-professionals/.../free-access                    final 200, redirects 0
epa.gov/egrid/frequent-questions-about-egrid                  final 200, redirects 0
ferc.gov/sites/default/files/2020-04/form-556_7.pdf           final 200, redirects 0
docs.recurve.com/.../disqualification-guidelines/index.html   final 200, redirects 0

The eGRID terms text was re-read from the new page and matched against the stored capture (shown above).

The refreshed snapshots are the proof nothing else moved. verify/fixtures/results/*.json are regenerated by running the tools, and the entire diff across both is:

5 -  "toolVersion": "0.1.0"     5 +  "toolVersion": "0.2.0"
2 -  "version": "0.1.0"         2 +  "version": "0.2.0"
2 -  nfpa.org/freeaccess        2 +  nfpa.org/for-professionals/.../free-access
3 -  …/disqualification-guidelines  3 +  …/disqualification-guidelines/index.html

Version and address only. Not one computed number changed — which is exactly what an address-only change should look like.

Full unit suite passes (955 pass, 0 fail).

Notes / nits

The other fourteen were deliberately not touched, because following them would have made the citations worse, not better:

  • Nine were a bot wall: eight eCFR and Federal Register links redirected to unblock.federalregister.gov, and Minnesota's PUC to a ShieldSquare challenge. Storing those would replace a legal citation with a URL that cites nothing.
  • Two were dockets (Wyoming, Montana) handing out a session URL per visit — the "new" address expires before anyone could use it.
  • Two DOIs were doing exactly their job. Following a DOI trades a permanent identifier for today's address.
  • The PUDL README never moved; fetch just drops the #licensing fragment.

The companion PR teaches the link check to stop reporting all of these, so this list should not come back next week.

FERC Form 556 is now pinned to revision 7. The old path was a stable alias; the new one has the revision in the filename. FERC declared the move permanent with a 301, so following it is the right call — but if FERC posts revision 8, this URL goes stale in a way the old one would not have. The weekly check will catch it.

🤖 Generated with Claude Code

@clay-good

Copy link
Copy Markdown
Owner Author

The browser failure here is pre-existing on main, not from this PR

browser reports /learn/get-your-data/ overflowing at 320 px and 1280 px. That is not this change. Evidence:

  1. main fails identically. Run on 73369be reports the same page with the same numbers — scrolls sideways by 1250 px at 320 px, 325/327 px at 1280 px.
  2. This PR does not touch that page. I built the site on this branch and on fix/raw-fetch-retry (same base, 5b4bc1d) and diffed the generated dist/learn/get-your-data/index.html: byte-identical.
  3. The cause is 7c83ca7 (feat(learn): step-by-step guides to download your meter data, by utility), which added the per-utility guides to that page. It is on main and is not in this branch's history — it reaches this run because pull_request CI builds the merge ref, so every open PR will fail browser until it is fixed on main.
  4. fix/raw-fetch-retry passed browser at 16:52, before 7c83ca7 landed.

The ci workflow (gates + test (24.12.0) + test (26)) passes on this branch, and the full unit suite passes locally (955 pass, 0 fail).

Happy to open a separate PR for the overflow if useful — it looked like a long unbroken string needing a wrap rule, but I did not want to touch a just-landed feature without asking.

The weekly link check (#1) reported eighteen moved links. Checked by
hand on 2026-11-14, four had really moved, each answering 301 to a page
that now resolves directly:

- NFPA's free access, cited by electrify.service-headroom.check
- Recurve's data-sufficiency guidelines, cited by weather.change.explain
- EPA's eGRID questions, the eGRID terms capture
- FERC Form No. 556, the qualifying-facility checklist's form

A tool's citations are part of its published result, so the two tool
manifests bump to 0.2.0 with a changelog entry each, and their recorded
snapshots are refreshed. The refreshed snapshots differ only in the
version and the address: no number moved, which is the point.

EPA's page is the only source with a stored capture. Answer 25 is still
numbered 25 there and its text is word for word what we recorded, so the
capture stands and only its address changed.

The other fourteen were not moves. Nine were eCFR, Federal Register, and
Minnesota links redirected onto a bot wall, two were dockets handing out
a session URL per visit, two were DOIs doing their job, and the PUDL
README only looked moved because `fetch` drops the #licensing fragment.
The companion change stops the link check reporting those.

Towards #1.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@clay-good
clay-good force-pushed the chore/refresh-moved-links branch from 4345e20 to a1ffba4 Compare November 14, 2026 18:16
@clay-good
clay-good merged commit 8125542 into main Nov 15, 2026
4 checks passed
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