Skip to content

Correct the Telegraph National Insurance citation date to 28 October 2024 - #1246

Open
MaxGhenis wants to merge 1 commit into
mainfrom
fix/telegraph-nic-citation-date
Open

MaxGhenis wants to merge 1 commit into
mainfrom
fix/telegraph-nic-citation-date

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Summary

The Telegraph's National Insurance story in app/src/data/citations.json was dated 2025-05-30. It was published on 2024-10-28, two days before the 30 October 2024 Budget. This PR changes that one field.

Evidence

  • Publisher metadata. The live page returns HTTP 402 to non-browser clients, so I read the Telegraph's own metadata from the Wayback Machine. The article's JSON-LD (NewsArticle) gives datePublished: 2024-10-28T09:55+0000 and dateModified: 2024-10-28T10:33+0000, and the visible <time class="e-published-date"> says the same. This holds in all three captures:
  • Right article. The byline is Fran Ivens, Senior Money Writer. The body cites "research modelled by the PolicyEngine think tank" on employer NIC pass-through and quotes Nikhil Woodruff.
  • Internal record. Nikhil shared this URL in #uk-comms on 28 October 2024 at 19:25 UK time, calling it the best UK media coverage so far. That matches the metadata.

Headline

No change. The JSON-LD headline, og:title, twitter:title and <title> all read "Workers face pay hit under Reeves’s National Insurance plans" in all three captures, which matches citations.json. The only difference is the Telegraph's curly apostrophe. The URL slug (workers-face-3000-pay-cut-…) doesn't match the headline. It may be a working title, but no capture shows one, so I left the headline as it is. I couldn't fetch the live headline because of the 402, so the latest verified headline is from the 8 December 2024 capture.

Ordering

citations.json isn't stored newest-first: featured entries come first, then a hand-curated order. CitationsClient.tsx keeps featured entries in JSON order and sorts "All citations" by date, newest first. The entry isn't featured, so it stays where it is, next to the related GB News NIC story. In the sorted list it now falls between Opportunity Arkansas (2024-10-31) and IEA (2024-10-28). Both entries are dated 2024-10-28, so Array.prototype.sort, which is stable, keeps them in JSON order.

Related

The same wrong date had been copied into the policyengine-slides introduction-2026 deck. It was corrected there on 9 October 2026 (PolicyEngine/policyengine-slides#77, commit 1c16f14).

Testing

  • bunx prettier --check app/src/data/citations.json: passes.
  • Website Vitest: 184 of 184 tests passed. Four files failed to load locally only because the local node_modules lacks fast-check. CI installs from the lockfile.
  • App Vitest: 4,118 passed and 10 skipped across 372 files. One integration file (reformRoutes.test.ts) failed to load locally only because the local node_modules lacks @electric-sql/pglite. CI installs from the lockfile.

No test reads citations.json directly; the build and type check compile the JSON import.

axiom: n/a: website data fix (citation date), no policy change.

🤖 Generated with Claude Code

The Telegraph story "Workers face pay hit under Reeves's National
Insurance plans" (Fran Ivens) was published on 28 October 2024, not
30 May 2025. Its JSON-LD in the Wayback Machine's first capture
(20241028105238) gives datePublished 2024-10-28T09:55+0000, and the
article body quotes PolicyEngine's employer NIC modelling. The headline
in citations.json already matches the article's headline, og:title and
twitter:title in all three captures, so only the date changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
policyengine-calculator-next Ready Ready Preview Oct 9, 2026 5:09pm UTC
policyengine-website Ready Ready Preview Oct 9, 2026 5:09pm UTC

Request Review

@MaxGhenis

Copy link
Copy Markdown
Contributor Author

The Telegraph date fix in this PR has landed on main through #1247 (merge 1e429bc), which audited all 72 citation dates and includes the identical change (2025-05-30 → 2024-10-28). This PR's diff against main is now empty, so it can be closed.

This branch was successfully deployed

2 active deployments
Preview – policyengine-calculator-next — cf07518d Deployed Oct 9, 2026 by vercel[bot]
Preview – policyengine-website — cf07518d Deployed Oct 9, 2026 by vercel[bot]
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