fredgar-ai documentation
Every document in this repository, one line each — start with the root README, and see AGENTS.md for how to work here.
Backlog of record: GitHub Issues with the fleet labels (.github/sdlc.yml backlog.mode: issues).
Start with the root README for setup, Docker and tests, and AGENTS.md for commands and conventions. The route and command tables under reference/ are generated by python3 tools/gen_reference.py --write. Outside docs/, folder guides live beside their code: data/README.md (reference JSON and the commands that regenerate it), docker/README.md (container scripts), frontend/README.md (the UI) and tools/README.md (repo scripts).
Repository root
| Document |
What it covers |
AGENTS.md |
Fredgar AI's direction is to become the ultimate open home for all things financial: data, tools, resources and transparency, with queryable and auditable SEC EDGAR and FRED data, cited AI, and API-first access for everyone… |
CONTRIBUTING.md |
How to set up a local environment, run the same lint, test and migration checks as CI, and land a change in fredgar-ai. |
CHANGELOG.md |
Release history: the notable changes in each version, newest first. |
SECURITY.md |
Which versions of fredgar-ai get security fixes, how to report a vulnerability privately, how fast you will hear back, and what is in scope. |
PRD.md |
Product vision, scope and roadmap for Fredgar AI, with what is implemented today marked apart from what is planned. |
docs/
| Document |
What it covers |
docs/api-and-cli.md |
How the REST API and the manage.py commands fit together — base paths, auth, async jobs and caching flags — with links to the generated route and command reference. |
docs/architecture.md |
Django apps, data flow from SEC to the warehouse, and the DB-first JSON caching pattern — for backend developers and operators. |
docs/constitution.md |
The rules every change to this repo must satisfy, whoever makes it — a human or an AI agent. Agents read this before AGENTS.md conventions, the PRD, or the feature catalog. Ratified… |
docs/distributed-storage.md |
Proposed (not built) content-addressed EDGAR/FRED extract store: incremental pulls, a local compressed backup and Kaggle clean snapshots. |
docs/enrichment.md |
How the enrichment framework turns a list of organization names into an auditable customer/vendor master: providers propose claims, resolution disposes. |
docs/finance-formulas.md |
The 20 core valuation, profitability, liquidity and risk formulas: which run per filing period over XBRL facts as derived metrics, which are pure helpers, and what data each needs. |
docs/leadership-methodology.md |
How leadership is extracted from SEC Forms ¾/5 and how the transparent people-vs-profits index is computed, with its limits — read before relying on either. |
docs/releasing.md |
How a fredgar-ai release happens: release-please turns Conventional Commit PR titles into a release PR, and merging that PR tags and publishes it. |
docs/static-site.md |
The public static mirror on GitHub Pages: what is generated, the publish_static_site pipeline, deployment setup, and cross-links with the interactive app. |
docs/adr/ |
Index and format of fredgar-ai's Architecture Decision Records — the decisions that are hard to reverse. |
docs/amendments/ |
The append-only log of changes to the constitution, one numbered record per amendment. |
docs/notes/ |
Dated design essays on the enrichment framework, kept for the reasoning behind its rules rather than as reference. |
docs/reference/
| Document |
What it covers |
docs/reference/api-routes.md |
Every REST route the versioned API serves — method, path, view, access rule, parameters and summary — read from the DRF router and src/api/v1/urls.py. |
docs/reference/management-commands.md |
Every manage.py command the Django apps ship, grouped by app, with its help text and options — read from src/*/management/commands/*.py. |
docs/sec-reference/