How mfdel/fact-ledger works
Investor Intel builds an auditable company fact base from investor materials, checks for inconsistencies and gaps, and produces management questions—not a valuation or forecast. The main workflow is document extraction/transcription, fact storage, validation and review output. The README documents these product stages; the source index confirms key module references, but unsampled implementation details and some runtime wiring are not verified.
Main entry points: validator.py Fact Validator · __init__.py CLI Commands · facts.py Facts and Brief CLI · extract.py Extraction Command
Components 23
User Interfaces
- CLI Commands
src/investor_intel/cli/__init__.py - Web Pages
src/investor_intel/web/pages.py - Web App
src/investor_intel/app.py - Facts and Brief CLI
src/investor_intel/cli/facts.py - Brief Command
src/investor_intel/cli/brief.py - Health Endpoint
src/investor_intel/api/health.py
Evidence Ingestion
- Company Documents
- Extraction Command
src/investor_intel/cli/extract.py - Document Extraction
src/investor_intel/extract.py - LLM Service
src/investor_intel/llm.py - Transcripts
src/investor_intel/store/yaml_files.py
Fact Analysis
- Metric Dictionary
src/investor_intel/domain/models.py - Fact Records
src/investor_intel/domain/models.py - Fact Validator
src/investor_intel/domain/validator.py - Identity Checks
src/investor_intel/domain/checks.py - Domain Rules
src/investor_intel/domain/rules.py - Fact Patterns
src/investor_intel/domain/patterns.py - Management Questions
src/investor_intel/domain/questions.py
Fact Persistence
- Fact Store
src/investor_intel/store/facts.py - Database
src/investor_intel/store/db.py - YAML Files
src/investor_intel/store/yaml_files.py - Runtime Settings
src/investor_intel/settings.py
Other components
- Investor
Connections 29
- Investor → CLI Commands: runs commands
README.md - Investor → Web Pages: views results
README.md - Web App → Web Pages: serves pages
src/investor_intel/app.py - Web App → Health Endpoint: registers endpoint
src/investor_intel/app.py - Company Documents → Extraction Command: provides documents
README.md - Extraction Command → Document Extraction: invokes extraction
src/investor_intel/cli/extract.py - Extraction Command → LLM Service: requests model output
src/investor_intel/cli/extract.py - Extraction Command → YAML Files: writes transcript
src/investor_intel/cli/extract.py - Document Extraction → Fact Records: produces facts
README.md - LLM Service → Runtime Settings: reads configuration
src/investor_intel/llm.py - Facts and Brief CLI → YAML Files: reads transcript
src/investor_intel/cli/facts.py - YAML Files → Fact Records: parses records
src/investor_intel/store/yaml_files.py - Facts and Brief CLI → Fact Store: loads and queries
src/investor_intel/cli/facts.py - Fact Store → Database: persists observations
src/investor_intel/store/facts.py - CLI Commands → Runtime Settings: loads settings
src/investor_intel/cli/__init__.py - CLI Commands → Database: creates engine
src/investor_intel/cli/__init__.py - CLI Commands → Fact Store: opens store
src/investor_intel/cli/__init__.py - CLI Commands → Metric Dictionary: loads dictionary
src/investor_intel/cli/__init__.py - YAML Files → Metric Dictionary: loads definitions
src/investor_intel/store/yaml_files.py - Brief Command → Facts and Brief CLI: composes commands
src/investor_intel/cli/brief.py - Brief Command → Fact Validator: requests validation
src/investor_intel/cli/brief.py - Facts and Brief CLI → Fact Validator: validates facts
src/investor_intel/cli/facts.py - Fact Validator → Identity Checks: runs identities
src/investor_intel/domain/validator.py - Fact Validator → Fact Patterns: builds findings
src/investor_intel/domain/validator.py - Fact Validator → Domain Rules: applies policies
src/investor_intel/domain/validator.py - Fact Validator → Fact Store: reads stored facts
README.md - Fact Validator → Management Questions: forms questions
README.md - Brief Command → Management Questions: prints questions
src/investor_intel/cli/brief.py - Facts and Brief CLI → Metric Dictionary: uses metric definitions
src/investor_intel/cli/facts.py