us-energy-consumption-by-source.codex
VERDICT: FAIL
- must-fix — Wood units: All 77 wood rows for 1949–2025 are 1,000× too large. The build passes divisor
1for Table 10.1’s trillion-Btu values. Example: 2025 contains 1911.786, but should contain 1.911786 quadrillion Btu. This contradicts README/schema units and distorts the chart. Divide by 1,000. - must-fix — Unsupported explanation: “2025's 452 million short tons … is more than 1905's, because today's coal is lower-grade” lacks a sourced 1905 tonnage and evidence for the explanation. Remove the comparison/explanation or supply both sources. The 2025 quantity alone matches EIA Table 6.1.
- should-fix — Wording: Replace “burned less coal” with “recorded lower coal consumption by energy content”; consumption includes noncombustion uses. Replace “each year” with “selected historical years and annually from 1949.” Qualify the electricity conversion statement as applying to electricity generation, rather than all geothermal/solar consumption. EIA definitions, conversion methodology.
- nit — Dating: “today’s coal” is undated; use “coal consumed in 2025” if substantiated. Other headline quantities are dated and the snapshot is explicitly frozen.
- Verification: The licence quotation matches EIA’s live terms;
US-PDis consistent. All four archive SHA256 hashes match. Executing the build with its write intercepted reproduced identical bytes, including the wood error.git status --shortremained empty; no files changed.
Repeated README/PACK numbers are consolidated below. PASS allows stated rounding. Source-only claims cannot be recomputed from consumption CSVs.
| Claim | Recomputed / independently checked | Result |
|---|---|---|
| 2025 total: 96.47 | 96.465716 | PASS |
| Coal 2025: 8.67; 1905: 10.00 | 8.670671; 10.001 | PASS |
| Peak: 2005, 22.80; 2025 share: 38% | 2005, 22.796543; 38.0350% | PASS |
| Annual minimum: 2024, 7.91 | 2024, 7.912213 | PASS |
| Last lower estimate: 1900, 6.84 | 1900, 6.841 | PASS |
| 1880 wood/coal: 2.85/2.05 | 2.851/2.054 | PASS |
| 1885 coal/wood: 2.84/2.68; 1880s crossover | 2.840/2.683; bracket confirmed | PASS |
| 1,137 rows; 119 years; one CSV | 1,137; 119; one | PASS |
| 1635–1845: 10-year spacing; fifth year, e.g. 1645 | CSV spacing; archive explains averaging | PASS |
| 1850–1945: 5-year spacing; 1949–2025 annual; absent 1946–1948 | Exact match | PASS |
| Coal starts 1850; nuclear 1949; geothermal 1960; solar/wind 1980s | 1850; 1949; 1960; 1984/1983 | PASS |
| 3 decimals historically; flag <0.5 trillion, only 1635 | Up to 3 decimals; archive threshold; flags only 1635 | PASS |
| 3,412 Btu/kWh; September 2023; roughly 3× | First two sourced; approximation not CSV-testable | PASS / unverified |
| 50 states; 12 colonies; Lower 48 by 1810 | EIA notes confirm | PASS |
| 452 million short tons | 452.375 million; absent from CSV | PASS, external |
| D1, 1.3, 10.1, 6.1; 1850–1975; 1630–1930; 1942 | Source identifiers/titles match | PASS |
| October 2026; snapshot 2026-11-22 | Archived publication date confirmed; retrieval date self-reported | PASS / unverified |
Exact verification commands:
python3 -B -c 'import csv,pathlib,re,hashlib;from decimal import Decimal as D;p=pathlib.Path;r=list(csv.DictReader(open("data/energy-consumption.csv")));v={(int(x["year"]),x["source"]):D(x["quadrillion_btu"]) for x in r if x["quadrillion_btu"]};print(len(r),len({x["year"] for x in r}));print(sorted(v.items()));print(100*v[2025,"coal"]/v[2005,"coal"]);print([(f,hashlib.sha256(p("archive",f).read_bytes()).hexdigest()==h) for f,h in re.findall(r"\| `([^`]+)` \| .*? \| `([a-f0-9]{64})`",p("archive/PROVENANCE.md").read_text())]);print([(x["YYYYMM"],v[int(x["YYYYMM"][:4]),"wood"],D(x["Value"])/1000) for x in csv.DictReader(open("archive/eia-mer-table-10-1.csv")) if x["MSN"]=="WDTCBUS" and x["YYYYMM"].endswith("13")])'
node --input-type=module -e 'import fs from "node:fs"; import {syncBuiltinESMExports} from "node:module"; fs.writeFileSync=(p,b)=>{if(!fs.readFileSync(p).equals(Buffer.from(b)))throw Error("DIFFERENT");console.log("BYTE_IDENTICAL",p)};syncBuiltinESMExports();await import("./scripts/build.mjs")'; git status --short
Signed: independent fact checker, Must rule 2.