You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
USAspending API v2 Historical Award Adapter (discover usaspending):
Added keyless POST https://api.usaspending.gov/api/v2/search/spending_by_award/ discovery with strict HTTPS/host/NoRedirect/timeout/10 MB guards and typed historical_award evidence records (recipient, award amount, agency, assistance listing/CFDA, period) with proper state scoping.
Added POST https://api.simpler.grants.gov/v1/opportunities/search support using live pagination.sort_order schema when SIMPLER_GRANTS_API_KEY is configured, enforcing 60 req/min / 10,000 req/day pacing, HTTP 429 and 4xx invalid_request classification, upfront ASCII key validation with secret redaction, dual-ID storage (simpler_opportunity_id + legacy_opportunity_id), and a clean keyless fallback (status: "api_key_missing").
CommonGrants Outage Hardening & CLI Safety:
Hardened common-grants feeds to distinguish source_unavailable network/HTTP outages from empty result sets (status: "empty") and added public_url SSRF screening before feed fetches.
Added fail-closed adapter flag validation on discover, finite numeric JSON serialization (allow_nan=False), deterministic HTTPError stream cleanup, doctor --offline, machine-readable routes.json, and synced vendored cto-legends router pin (ff90a8bd2348).
Verification
Verified 283 pytest tests (285 unittest under -W error::ResourceWarning), scripts/check_release.py (0 issues), doctor --offline, and live read-only USAspending v2 / Grants.gov / CommonGrants / Simpler.Grants.gov fallback probes ($0 spend).
Standardized release assets (legends-grant-0.4.0-bundle.tar.gz, Python wheel, source distribution, and SHA256SUMS.txt).