side project
Leer en español29N
A neutral guide, in Spanish, to the Spanish general election of 29 November 2026. It showed the four parties leading the polls in random order, with every item linked to at least one source.
What it is
A neutral guide, in Spanish, to the Spanish general election of 29 November 2026. It covered the four parties with the highest estimates in every poll published from 5 October to 12 November 2026, so the choice came from the polls, not from me. Each party answers the same questions in the same layout, shown in random order.
Every item links to at least one source, and only what could be checked was published. The election is over, so the guide is finished.
How it's built
29N is a static Astro site in my monorepo, built with Tide Pool like this one and published by the same CI to its own Cloudflare Pages project. There is no backend: all the content is data in the repo, one file per party plus files for sources, searches and topic counts, and Astro renders every page from it at build time. The data comes from a separate tool repo, which is public, with the agent prompts, the written criteria and the validators.
highlights
The build enforces the publishing rules
Every rule in the methodology is also code. A validator checks each item of each party file: quotes under 15 words, a source link on every item, links to one article rather than a home page or a short link, and “verified” only with a primary source. If a rule breaks, the build fails and names the file and the item, so a rule can’t be skipped by mistake.
Equal treatment is checked across parties
A second validator compares the four parties instead of looking at one at a time. Shared facts such as polls and votes must be identical in every party file. Searches for hoaxes, court cases, critics and defenders use the same template for all four, and an empty search term for one party is rejected when the others have one. Every finding gets exactly one fate: published, held back, or dropped with a reason.
Random party order, with a no-JS fallback
No order of the parties should favour one. The cards, the navigation and the “other parties” list are shuffled in the browser on every visit, with Fisher–Yates and rejection sampling to avoid modulo bias. The navigation shuffle runs as a tiny inline script right after its markup, so it reorders before first paint. Without JavaScript the order is alphabetical and the home page says so, and nothing is stored between visits.
Charts drawn by D3, each with a table behind it
Every chart goes through one component. It renders the figure, caption, legend, source and period as plain HTML, plus a data table built from the same chart spec, so it works without JavaScript. D3 draws the chart only when it scrolls into view. Percentages use the largest-remainder method so each chart adds up to exactly 100%, and the build stops if a number breaks the rules.
Agents propose, code decides, I review
Claude agents searched each source and read each candidate article, and other agents judged each party’s file against one written criterion. Plain deterministic code merged and validated the result. The agents that classify and adjudicate have no tools: they get text from a script and answer in a fixed format that the script checks before writing anything. In the daily run, if any party’s adjudication failed, nothing was published that day, and every run ended as a draft pull request for me to read.
Rules for the raw material
The published methodology also sets rules for sources: interview audio is transcribed locally and deleted after use, quotes that don’t appear word for word in the saved source are dropped, and sites that block automated access in robots.txt are skipped, not bypassed. Full texts stay private; the site only publishes short quotes with a link. The tool repo publishes the prompts, criteria and schemas so anyone can audit how the data was made.
- Astro
- TypeScript
- D3
- Sass modules
- Vitest
- Cloudflare Pages
- Tide Pool