Repository navigation
Releases
legends-grant v0.4.0
Highlights
- 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 typedhistorical_awardevidence records (recipient, award amount, agency, assistance listing/CFDA, period) with proper state scoping.
- Added keyless
- Simpler.Grants.gov REST v1 Adapter (
discover simpler-grants):- Added
POST https://api.simpler.grants.gov/v1/opportunities/searchsupport using livepagination.sort_orderschema whenSIMPLER_GRANTS_API_KEYis configured, enforcing60 req/min/10,000 req/daypacing, HTTP 429 and 4xxinvalid_requestclassification, 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").
- Added
- CommonGrants Outage Hardening & CLI Safety:
- Hardened
common-grantsfeeds to distinguishsource_unavailablenetwork/HTTP outages from empty result sets (status: "empty") and addedpublic_urlSSRF screening before feed fetches. - Added fail-closed adapter flag validation on
discover, finite numeric JSON serialization (allow_nan=False), deterministicHTTPErrorstream cleanup,doctor --offline, machine-readableroutes.json, and synced vendoredcto-legendsrouter pin (ff90a8bd2348).
- Hardened
Verification
- Verified
283pytest tests (285unittest under-W error::ResourceWarning),scripts/check_release.py(0issues),doctor --offline, and live read-only USAspending v2 / Grants.gov / CommonGrants / Simpler.Grants.gov fallback probes ($0spend). - Standardized release assets (
legends-grant-0.4.0-bundle.tar.gz, Python wheel, source distribution, andSHA256SUMS.txt).
legends-grant v0.3.5
legends-grant v0.3.5 (2026-11-22)
- Sync vendored
cto-legendsrouter skill pin (69ddc4f68faa) with LF normalization via.gitattributes. - Attach verified release package artifacts and
SHA256SUMS.txt.
v0.3.4
Release v0.3.4: Outlined Legends Font r1 SVG cards (assets/cards/r1/), evergreen two-chamber SQLite vs private review architecture README, and synchronized release checks.
legends-grant v0.3.3
v0.3.3 - 2026-11-10
- SSRF & DNS Rebinding Hardening (
grant_engine/documents.py): Added explicit NAT64 (64:ff9b::/96,64:ff9b:1::/48), 6to4 (2002::/16), Teredo (2001::/32), and IPv4-mapped IPv6 validation, enforcednot addr.is_global, and pinned validated DNS target IPs at socket connect time across redirects (_PinnedHTTPConnection/_PinnedHTTPSConnection) while preservingHostheaders and TLS SNI. - Symlink & Overwrite Guards (
grant_engine/__main__.py,grant_engine/documents.py,grant_engine/proposals.py): Enforced ancestor-chain symlink refusal (_reject_symlink_chainwith macOS/var//tmp//etcsystem symlink exemptions) across CLI inputs, outputs,--db,--registry, andbundle_dir, and added explicit--overwriteprotection. - Report Escaping & Bounded HTML Parsing (
grant_engine/core.py,grant_engine/proposals.py,grant_engine/documents.py): Added Markdown/pipe/control-character sanitization inStore.report()and HTML/Markdown escaping inrender_package(), plus a 500-link extraction cap in_HTMLText. - Packaging & Release Gate (
pyproject.toml,MANIFEST.in,scripts/check_release.py,docs/AGENT-RECIPE.md): Synced CLI flags indocs/AGENT-RECIPE.md, updatedREADME.mdversion badge andSECURITY.mdsupported versions, and expandedscripts/check_release.pyto verify.whland.tar.gzarchive contents.
legends-grant v0.3.2
v0.3.2 - 2026-11-05
- Added
AGENTS.md,docs/AGENT-RECIPE.md,THIRD_PARTY_NOTICES.md,assets/manifest.json, andscripts/check_release.pyGold Standard static release gate. - Documented explicit EDR and Security Guardrails across
AGENTS.md,docs/AGENT-RECIPE.md, anddocs/GRANT-RECIPE.md, and removed legacybin/lg-selftest.shwrapper. - Expanded
.github/workflows/runtime.ymland.github/workflows/contract.ymlto run across Ubuntu, Windows, and macOS with 40-character SHA action pins and explicitcontents: readpermissions.
v0.3.1 - Direct Module Entry Point for PDF Worker Subprocess
v0.3.1 - Direct Module Entry Point for PDF Worker Subprocess
- Replace inline
python -cand hidden-window subprocess flags ingrant_engine/documents.pyPDF extraction with a standard module entry point (python -m grant_engine.documents) and capturedstderr=PIPEwhile preserving the 15-second timeout and 200-page / 2-million-character parser bounds. - Add regression assertions in
tests/test_documents.pyverifying that PDF worker subprocess calls invoke-m grant_engine.documentswithoutcreationflags.
legends-grant v0.3.0
legends-grant v0.3.0
Adds proposal writing and review to the existing US grant discovery and evidence workflow.
- Draft actual narrative from the funder's questions, rubric, supplied applicant facts, budget and milestones.
- Scaffold, mechanically check and render private proposal packages with the offline
proposalCLI. - Check word limits, budget totals, evidence reference IDs, unresolved placeholders and attachment status.
- Review every material claim against quoted support, preserving historical facts, estimates and commitments.
- Include synthetic nonacademic examples and explicit upstream credits for AI for Grant Writing and Academic Humanizer. No upstream text or prompt pack is bundled.
The agent writes the narrative. The CLI does not generate prose, establish factual support, predict awards or submit applications. The independent drafting test caught invented details even with valid citation IDs; the corrected report preserves those failures and explains the required sentence-level review. No comparative writing-quality or award-success claim is made.
Discovery coverage is unchanged: 115 researched source routes and five automated feeds. A source directory is not exhaustive opportunity coverage.
Validation: 246 Windows tests completed, 244 passed and two platform-permission skips. Clean wheel installation, proposal check/render outside checkout, source archive contents and packaged attribution verified. Final CI and independent review are recorded in the verification report.
See README.md, docs/PROPOSAL-WRITING.md, docs/PROPOSAL-BATTLE-TEST.md and docs/VERIFICATION.md.
legends-grant v0.2.1
legends-grant v0.2.1
Documentation and packaging patch for v0.2.0. Discovery and qualification behavior is unchanged.
- Add prominent README attribution separating the public feeds we consume, projects consulted during design, original federal data, and the optional PDF dependency.
- Credit Agile Six and its CA/PA/WA/MD CommonGrants adapters, CommonGrants and HHS Simpler.Grants.gov, OpenProse grant-finder, cyanheads and GSA-TTS Grants.gov MCP projects, Grants.gov, and pypdf.
- Add repository, documentation, issue tracker and release links to Python package metadata.
- The wheel embeds the credited README in its metadata. The source archive includes the README, research provenance, recipes, license and source registry.
Verification: inspected both built artifacts for credits and required files; installed the wheel outside its source checkout and passed doctor. The module contract passed on the release commit. Runtime behavior and v0.2.0 coverage limits remain unchanged; verification report.
No grant-project implementation code was copied into this release. The public state feeds are operated by Agile Six and require official-notice verification; upstream data and documents retain their own terms. Credits do not imply endorsement.
Legends Grant v0.2.0
Legends Grant 0.2.0
Legends Grant now includes an executable discovery and evidence workflow, replacing the previous federal-first research playbook with applicant-led nationwide source planning.
- Plan research across 115 sources covering all 50 states, DC and five territories. Five feeds retrieve structured records; 110 routes guide further agent research.
- Collect bounded results from Grants.gov and four third-party CommonGrants state feeds.
- Preserve immutable evidence, inspect local keyword matches, compare snapshots and verify/replay records.
- Collect public HTML/text and optional PDF documents with hashes, attachment links and explicit failure receipts.
- Evaluate manually reviewed, cited requirements against separate applicant facts. Missing or conflicting evidence stays unresolved.
- Install an isolated Python runtime through the CTO Legends router, or install the attached wheel. Python 3.11+ required; the optional
pdfextra enables PDF extraction.
Verification
171 offline tests pass. CI passed on Windows and Linux with Python 3.11 and 3.13. Live testing exercised five feeds and six official documents, including a 22-page PDF. Independent implementation/battle-test workers and a separate Muse review found issues that were reproduced and corrected. An installed wheel was tested outside its checkout.
This release does not provide exhaustive nationwide coverage, autonomous complete-notice crawling, automatic eligibility-rule extraction, alerts or application submission. Reviewed qualification checks only the supplied rules; evidence completeness and interpretation still require review. No award-success or comparative grant-discovery advantage was established. No paid data provider or Alexandria dependency was added.
Source commit: b9b1d36.
Upstream credits
The public state feeds are provided by Agile Six and its CommonGrants adapters. CommonGrants/HHS Simpler.Grants.gov, OpenProse grant-finder, cyanheads Grants.gov MCP and GSA-TTS Grants.gov MCP informed the design. Grants.gov supplies federal data; pypdf is the optional PDF extraction dependency. No implementation code from the referenced grant-discovery projects is vendored.
Full credits and reuse boundaries. The v0.2.1 documentation patch puts these credits directly in the packaged README. The original v0.2.0 artifacts retain the detailed references in docs/SOURCE-RESEARCH.md.
legends-grant v0.1.0
Router-native reset generation (0.1.0).
Vendored router pin: cto-legends at 6975dcbf073e5eec7a30ce6a04a6975238c61158 (skills/cto-legends/SKILL.md, byte-exact).
De-skillified: root SKILL.md moved to docs/GRANT-RECIPE.md with skill frontmatter removed (note the recipe rename for the catalog: instructions now docs/GRANT-RECIPE.md plus lane files). Added authoritative VERSION 0.1.0, CHANGELOG, .legends-module, .legends-router-pin, the verbatim README agent block, and contract CI. Old v0.1.0 release and tag wiped per the reset; git history preserved.