Skip to content

satyamsjha/runwayx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

55 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

RunwayX v2.0: Enterprise FP&A Platform Foundation ๐Ÿš€

Python Tests License Docker CI Version Stage

Enterprise-grade FP&A platform with probabilistic forecasting and AI insights. v2.0 delivers the architectural foundation; v2.1 completes the precision and intelligence layer.

๐ŸŽฏ Project Status: Foundation Release (v2.0) + Precision Release (v2.1 In Progress)

RunwayX v2.0 represents a complete architectural transformation from a forecasting tool to an enterprise platform. This release establishes the foundation for production deployment with security, governance, and extensibility built-in.

โš ๏ธ Developer Preview Notice: v2.0 ships functional modules under active verification. For business-critical use, validate outputs against known scenarios. Track progress in branch v2.1-accuracy-refactor.

What v2.0 Delivers Today

Component Status Description
๐ŸŽจ Enterprise UI โœ… Ready Modern Streamlit interface with dark mode, 8 tabs, guided onboarding
๐Ÿ“Š Data Infrastructure โœ… Ready Multi-format upload (CSV/Excel/Parquet), Pydantic validation, quality scoring
๐Ÿ“ˆ Visualization Engine โœ… Ready 10+ interactive Plotly charts with zoom, pan, export
๐Ÿ”ฎ Scenario Planning โœ… Ready What-if analysis with 5 templates, side-by-side comparison
๐Ÿ“ก Monitoring & Alerts ๐ŸŸจ Foundation Email/Slack/Teams integration framework (wiring in progress)
๐Ÿค Collaboration ๐ŸŸจ Foundation PDF/PowerPoint export, shareable links (auth integration pending)
๐Ÿ” Security & Auth ๐ŸŸจ Foundation SSO, RBAC, encryption modules (full roll-out in v2.1)
๐Ÿข Multi-Tenancy ๐ŸŸจ Foundation Company isolation architecture (production testing in v2.1)

What v2.1 Delivers (Upcoming)

Component Status Branch Target
๐Ÿ“Š Monte Carlo Engine ๐Ÿ”ง Verification v2.1-accuracy-refactor Deterministic simulation with validated confidence intervals
๐Ÿ’ฐ AR Collections Model ๐Ÿ”ง Calibration v2.1-cox-calibration C-index >0.70 target
๐Ÿ“ˆ Revenue Recognition ๐Ÿ”ง Testing v2.1-asc606-validation Comprehensive test coverage
๐Ÿค– AI Insights Engine ๐Ÿ”ง Tuning v2.1-ai-tuning Precision thresholds and false positive reduction
๐Ÿง  Advanced ML Models ๐Ÿ”ง Development v2.1-ml-enhancement LightGBM, Prophet/ARIMA, segmentation

๐Ÿš€ What RunwayX Does

RunwayX provides probabilistic answers (not point estimates) for critical finance questions:

  • ๐Ÿ“Š Runway Forecasting: Monte Carlo simulation aggregating AR, revenue, and burn uncertainty (v2.1: accuracy validation)
  • ๐Ÿ’ฐ AR Collections: Cox survival model predicting invoice-level payment probabilities (v2.1: production calibration)
  • ๐Ÿ“ˆ Revenue Recognition: ASC-606 compliant UBP with tiered pricing (v2.1: expanded pricing models)
  • ๐ŸŽฏ Collections Policy: Ranked action queue optimized by expected value (v2.1: reinforcement learning)
  • ๐Ÿค– AI Assistant: Natural language chat for financial insights (v2.1: enhanced context awareness)
  • ๐Ÿ”ฎ Scenario Planning: Interactive what-if analysis with real-time comparison (production ready)

โšก Quick Start

# Clone and setup
git clone https://github.com/satyamsjha/runwayx.git
cd runwayx
python3.11 -m venv .venv && source .venv/bin/activate

# Install (production features)
pip install -e .[all]

# Generate synthetic data
python samples/make_synth.py

# Launch v2.0 Enterprise UI
streamlit run app_v2.py --server.port 8503
# โ†’ http://localhost:8503

# Optional: Classic UI
# streamlit run app.py --server.port 8501

# Optional: API Server
# uvicorn runwayx.cli.api:app --reload
# โ†’ http://localhost:8000/docs

Note: For production deployments, review V2_DEPLOYMENT_COMPLETE.md.


๐ŸŽ‰ What's New in v2.0 Foundation Release

Architectural Transformation

  • โœจ 50+ new modules and 15,000+ lines of enterprise-grade code
  • ๐Ÿ—๏ธ Production-ready infrastructure: Security scaffolding, monitoring framework, audit logging
  • ๐ŸŽจ Modern UI: Dark mode, animations, guided onboarding, mobile-responsive
  • ๐Ÿ“Š Advanced visualizations: Interactive Plotly charts with export capabilities
  • ๐Ÿค Collaboration features: PDF/PPT export, shareable links, comments

Enterprise Capabilities (Foundation Implemented)

  • ๐Ÿ” Security Modules: OAuth2 (Google/Microsoft), RBAC architecture, AES-256 encryption
  • ๐Ÿ“ก Monitoring Framework: Email/Slack/Teams alert system, webhook infrastructure
  • ๐Ÿข Multi-company Architecture: Tenant isolation design, subscription tier framework
  • โœ… Data governance: Quality scoring, duplicate detection, lineage tracking
  • ๐Ÿ“ˆ Scenario planning: Interactive what-if analysis with templates

Developer Experience

  • ๐Ÿงช 54 tests passing across all infrastructure modules
  • ๐Ÿ“š Comprehensive docs: INSTALL.md, QUICKSTART.md, RUN_APP_V2.md
  • ๐Ÿณ Docker ready: One-command deployment
  • ๐ŸŽฏ Type-safe: 100% type hints with Pydantic v2 validation

๐Ÿ“‹ v2.0 โ†’ v2.1 Roadmap

v2.1: Precision & Intelligence Release (Upcoming)

Focus: Mathematical accuracy, model calibration, and AI enhancement

  • ๐ŸŽฏ Monte Carlo Refinement

    • Target: Deterministic simulation with reproducible results
    • Target: Validated confidence intervals (bootstrap + Bayesian)
    • Target: Performance <5s for 10,000 simulations
    • Target: Comprehensive sensitivity analysis
  • ๐Ÿ’ฐ AR Model Production Release

    • Target: Cox model C-index >0.70
    • LightGBM ensemble for non-linear patterns
    • Hierarchical models by segment/region
    • Real-time drift detection and retraining
  • ๐Ÿ“ˆ Revenue Recognition Expansion

    • Hybrid pricing models (flat + usage)
    • Material rights and contract modifications
    • Multi-currency support
    • Advanced true-up calculations
  • ๐Ÿค– AI Intelligence Layer

    • Enhanced context-aware chat
    • Predictive anomaly detection
    • Automated scenario generation
    • Reinforcement learning for collections policy
  • ๐Ÿ”Œ Data Connectors

    • Stripe, Chargebee, Maxio integrations
    • QuickBooks Online, Xero, NetSuite
    • Real-time sync and incremental updates

v2.2: Scale & Performance (Upcoming)

  • Distributed simulation engine
  • Time-series database integration
  • Advanced caching and materialization
  • API rate limiting and quotas

๐Ÿ—๏ธ Architecture

runwayx/
โ”œโ”€โ”€ ai/              # AI insights & chat (v2.1: tuning)
โ”œโ”€โ”€ api/             # FastAPI endpoints
โ”œโ”€โ”€ ar_models/       # Cox + LightGBM (v2.1: calibration)
โ”œโ”€โ”€ cli/             # Typer CLI + FastAPI
โ”œโ”€โ”€ collab/          # Export & sharing (foundation)
โ”œโ”€โ”€ core/            # Config, logging, settings
โ”œโ”€โ”€ data/            # Data management utilities
โ”œโ”€โ”€ enterprise/      # SSO, RBAC, audit (foundation)
โ”œโ”€โ”€ forecasting/     # Time-series forecasting (v2.1: refinement)
โ”œโ”€โ”€ governance/      # Data quality & lineage (ready)
โ”œโ”€โ”€ ingest/          # Data loading & upload (ready)
โ”œโ”€โ”€ ml/              # Segmentation, anomaly (v2.1: tuning)
โ”œโ”€โ”€ monitoring/      # Alerts, webhooks (foundation)
โ”œโ”€โ”€ policy/          # Collections optimizer (v2.1: RL)
โ”œโ”€โ”€ reports/         # Interactive charts (ready)
โ”œโ”€โ”€ revrec/          # Revenue recognition (v2.1: validation)
โ”œโ”€โ”€ samples/         # Demo data generators
โ”œโ”€โ”€ services/        # Business logic services
โ”œโ”€โ”€ sim/             # Monte Carlo + scenarios (v2.1: accuracy)
โ”œโ”€โ”€ tests/           # Test suite (54 passing)
โ””โ”€โ”€ ui/              # Theme & onboarding (ready)

๐Ÿงช Testing & Quality

# Run full test suite
pytest

# With coverage
pytest --cov=runwayx --cov-report=html

# Run specific module tests
pytest tests/test_simulator.py -v

Current Status:

  • โœ… 54 tests passing (infrastructure & UI)
  • ๐Ÿ”ง Mathematical validation tests in progress (v2.1 branch)
  • ๐ŸŽฏ Target: 100+ tests with >90% coverage for v2.1

๐Ÿ“š Documentation


โš ๏ธ Known Limitations (v2.0)

These areas are functional but undergoing refinement for v2.1:

  • Monte Carlo: Outputs under revalidation; recommend validating against known scenarios
  • AR Model: C-index currently ~0.65; calibration target >0.70 in v2.1
  • RevRec: Hybrid pricing model testing in progress
  • Security Roll-out: SSO/RBAC modules implemented; full integration tracked for v2.1
  • Multi-tenancy: Architecture complete; production testing in v2.1

๐Ÿค Contributing

We welcome contributions! Priority areas for v2.1:

  • Mathematical validation: Help verify simulation accuracy and model calibration
  • Data connectors: Build integrations for billing systems (Stripe, Chargebee, etc.)
  • ML enhancements: Improve forecasting models and anomaly detection
  • UI/UX improvements: Enhanced visualizations and user experience
  • Documentation: Tutorials, guides, and examples

See CONTRIBUTING.md for guidelines (if available).


๐Ÿ“ License

MIT License - See LICENSE


๐Ÿ’ฌ Feedback & Support


Made with โค๏ธ for CFOs and FP&A teams who need probabilistic answers, not point estimates.

โญ Star this repo if you find it useful! Your feedback helps us prioritize v2.1 features.


Project Philosophy

RunwayX is built on the principle of transparent uncertainty quantification. Rather than providing false precision with point estimates, we deliver probability distributions that reflect real-world variability. v2.0 establishes the enterprise foundation; v2.1 perfects the mathematical precision.