• v0.2.0 b1ce315abb

    chris-kreidl 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 pipeline now 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 jobs with 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; --restart or "Start over" starts it from the beginning. The CLI menu shows each step's last run.
    • Workflow: product questions raised during a story become question issues 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
  • v0.1.0 01418911a9

    chris-kreidl 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.ts ranks 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.ts asks which steps to run. bun cli.ts refresh analyze enrich rank (or bun run pipeline) runs them directly and writes magic_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:
      • latest 10-K filed in the last 13 months (#2)
      • EBIT > 0 (#3)
      • a price from this run (#5)
      • a Yahoo market cap of at least $50M (#40)
      • not Financial Services or Utilities, using SEC SIC codes when Yahoo has no sector; a company with no known sector is excluded (#45)
    • Common stock tickers (#37): not notes or preferreds.
    • Foundation: git, fixtures from known-bad filers (#6, #7), and CI running bun test, bun check and bun fmt on 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 LongTermDebt without a current-portion tag (#43).
    • Rows skipped by enrichment keep stale tickers and prices; they aren't ranked (#44).

    🤖 Generated with Claude Code

    Downloads