5-codex-prepublish
BLOCK — the current upload package still exposes SIPRI data. The central calculation passes; the remaining editorial fixes are bounded.
Paths below are relative to projects/story-formats/pilot-1/us-aid-vs-military-2025/.
-
High — SIPRI values bypass the ignore rule through
statistics.json.package/.datahubignore:5excludes only the CSV.package/us-aid-vs-military-2025-src/statistics.json:452–510still contains SIPRI’s 2025 value and eight years of military totals.calculate.mjs:92–109includes them whenever the local CSV exists;dh publishuploads the existing JSON without rerunning that script. SIPRI explicitly restricts commercial use, including promotion of services. SIPRI terms. Fix: make the publication build omitcross_checks.sipri_oecdregardless of local file presence, regeneratestatistics.json, and verify the upload set contains no SIPRI observations. Keep historical cross-checks outside the package. -
High — the link card omits the qualification that makes its claim true.
package/us-aid-vs-military-2025-card-link.svg:1visibly says “US foreign aid,” without “economic” anywhere on the image; the PNG matches. Its alt text correctly says economic aid, but that cannot repair the visible standalone claim. The broader comparison is approximately 19:1, not 24:1. Fix: change the shared title atpackage/us-aid-vs-military-2025-make-charts.mjs:19to “$24 on defense for every $1 of US economic aid,” then regenerate all outputs. -
Medium — “every US foreign-assistance program” overstates the sensitivity denominator.
package/README.md:43andPROMOTION.md:41describe 151 + 152 as all assistance, althoughNOTES.md:27explicitly leaves DoD-run assistance inside defense. Fix: say “Broaden aid to development, humanitarian and international security assistance (868bn): 19 to 1, also the widest since 2018.” This accurately describes the tested alternative without demanding an exhaustive new investigation. -
Medium — the figures ambiguously exclude military aid from both sides. The deck and source strings at
package/us-aid-vs-military-2025-make-charts.mjs:20,28, rendered in both blog SVGs at line 1, say “military aid excluded.” Defense includes DoD-run assistance, aspackage/README.md:32correctly explains. Fix: use “Aid excludes military assistance.” State it once on each figure; repeating the qualification adds caution without information. -
Medium — raw third-party downloads remain in the upload set.
package/.datahubignore:1–5leaves the OMB workbook, both Treasury raw JSON responses andoecd-dac1-raw-download.csveligible. These are identified as downloaded/raw files atPROVENANCE.md:29–35. This fails the requested no-raw-data check, though raw does not automatically mean unlicensed: the government sources are public domain, and OECD permits attributed redistribution. OECD data terms. Fix: exclude these four raw downloads, retaining the necessary extracts and source URLs/hashes. Remove unused OECD cross-check dependencies if excluding its processed extract too. -
Low — provenance still describes a deleted comparison.
PROVENANCE.md:20–22says the post contains an OECD/DAC comparison;NOTES.md:32says the README labels its mixed periods. The current post contains neither. Fix: identify these as historical cross-checks, not published claims.
Verification: all 121 OMB extract cells match the workbook; seven recorded file hashes match; executing the calculation with its write intercepted reproduces statistics.json exactly. Independent headline recomputation gives 24.4348:1, 14.9377 days, defense +4.8787%, aid −19.9050%, and ratio +30.9429%. The published rounding, historical range, promotional numbers and alt-text numbers check out. All five SVG area encodings are within 0.2% of the underlying ratio; the three PNG cards visually match their SVG claims.
The bounded sensitivity check passes: the broader OMB pairing gives 19.0737:1, versus 13.8018 in 2024 and a previous maximum of 17.4331. The widening survives; no fixed threshold or forced replacement of the scoped 24:1 headline is warranted. Online OMB account tables confirm ESF’s classification under 152 and approximately $7.480bn net outlays. OMB account table. Treasury’s API was inaccessible during this check, so I could not independently refetch the exact ESF cents or the missing ForeignAssistance.gov raw download.
Summary
The finding survives; fix the upload leak and scope labels before publication. No files were changed or published.