-
released this
2026-11-13 13:49:49 +00:00 | 5 commits to main since this release🤖 Claude: M2: Fast daily refresh. Review and retro: #50.
A daily
bun run pipelinenow takes about a minute, end to end.What's in it
- Incremental SEC refresh (#12): refresh reads SEC's daily form index and re-downloads only companies that filed a 10-K, in about 2 s instead of the ~138 s bulk zip. It falls back to the bulk zip on the first run, with
--full, or after a gap of more than 30 days. A 10-K not yet in SEC's API is retried for up to 30 days. SEC requests are paced to 5 per second. - Batched Yahoo quotes (#13): prices and market caps come from batches of 100 symbols. Enrich takes about 17 s instead of ~28 min.
- Sector cache (#14): sector profiles are cached by CIK and refreshed after 90 days, so enrich looks one up only on a cache miss.
- Jobs and resume (#15): every step run is recorded in
jobswith status and progress, and only one run of a step can be active at a time. An interrupted refresh or enrich resumes, including the bulk zip at the byte it reached;--restartor "Start over" starts it from the beginning. The CLI menu shows each step's last run. - Workflow: product questions raised during a story become
questionissues before review (#59).
Known limits
- A failed run starts over; only interrupted runs resume (#56).
- A resumed enrich can mix prices from different days; enrich will start over instead (#57).
- The interactive menu, the resume prompt and Ctrl-C have no automated tests (#58).
- From M1, still open: possible debt double-count (#43), and stale tickers and prices on rows enrichment skips (#44).
🤖 Generated with Claude Code
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Incremental SEC refresh (#12): refresh reads SEC's daily form index and re-downloads only companies that filed a 10-K, in about 2 s instead of the ~138 s bulk zip. It falls back to the bulk zip on the first run, with
-
released this
2026-11-11 19:56:48 +00:00 | 11 commits to main since this release🤖 Claude: M1: Rankings I can trust. Review and retro: #23.
bun cli.tsranks US companies by Greenblatt's Magic Formula. Every metric comes from the latest 10-K fiscal year.What's in it
- CLI (#11):
bun cli.tsasks which steps to run.bun cli.ts refresh analyze enrich rank(orbun run pipeline) runs them directly and writesmagic_formula_ranked.csv. - Metrics from the latest 10-K (#1, #8, #41): no stale XBRL values from older filings.
- Greenblatt definitions (#4, #9): ROTC = EBIT ÷ (net working capital floored at 0 + net PP&E). Earnings yield = EBIT ÷ enterprise value. Finance leases count as debt. Debt is also read from notes, loans, credit lines and convertibles (#32).
- One eligibility rule (#10), used everywhere:
- Common stock tickers (#37): not notes or preferreds.
- Foundation: git, fixtures from known-bad filers (#6, #7), and CI running
bun test,bun checkandbun fmton every PR (#30).
Known limits
- The export shows every eligible row, including extreme ROTC from near-zero tangible capital. Filtering belongs in the web UI (#36).
- Possible debt double-count when a filer reports total
LongTermDebtwithout a current-portion tag (#43). - Rows skipped by enrichment keep stale tickers and prices; they aren't ranked (#44).
🤖 Generated with Claude Code
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- CLI (#11):