Skip to content

feat(analysis): as-filed fundamentals and event flags - #87

Open
HugoXK wants to merge 2 commits into
mainfrom
janus/26-fundamentals
Open

HugoXK wants to merge 2 commits into
mainfrom
janus/26-fundamentals

Conversation

@HugoXK

@HugoXK HugoXK commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Refs JAN-026.

What changed

  • New core/janus/analysis/fundamentals.py: SEC facts become revenue, margin, cash-flow, leverage, YoY growth, EPS, PE, and book-value features.
  • Only facts published/valid at as_of participate; a later restatement is invisible to an earlier view.
  • Every feature records the observation ids that produced it, and missing inputs are returned explicitly.
  • detect_events maps filing/news text to earnings, M&A, litigation, insider, and guidance flags with supporting ids.
  • Fixture tests cover ratios, restatement isolation, missing facts, timezone validation, and event citation.

Verification

  • tests/test_fundamentals.py: 5 tests pass locally.
  • No schema migration; the module reads the existing as-of store only.

@HugoXK
HugoXK requested a review from HugoXK-bot as a code owner November 26, 2026 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant