Spaces:
Sleeping
Sleeping
Commit History
-
feat: Analyst Edge layer — deterministic text delta signals (Phase 0+1)
Adds a signal engine that computes verbatim filing text changes across consecutive periods and injects them into the LangGraph pipeline before the LLM loop, so the agent investigates signals and the synthesis cites exact before→after fragments rather than summarizing what it already knows. Phase 0 — foundation: - storage/sections_db.py: persist raw MD&A, Risk Factors, and transcript text keyed by (ticker, period, section); populated at ingest time - ingest.py: call upsert_section for each text block after edgar fetch - analysis/signals.py: QuarterDelta Pydantic model (kind, before_text, after_text, computed_metric, significance) shared across all modules - agent/graph.py: signals_node as new entry point; edge_signals state key; attach_edge_signals() called in synthesis_node after apply_reliability() - agent/post_synthesis.py: attach_edge_signals() writes authoritative computed data — LLM cannot fabricate signal numbers - agent/schemas.py: BriefOutput.quarter_deltas optional fi…559c2ff