Interfaces¶
Functional Requirements¶
| ID | Requirement | Priority | Status |
|---|---|---|---|
| FR-6.1 | Python API: create_pipeline() and CreditRiskCalc for programmatic access |
P0 | Done |
| FR-6.2 | Interactive web UI via Marimo for scenario analysis, exploration, and dual-framework comparison | P1 | Done |
| FR-6.3 | CLI entry point (rwa-calc-ui) for launching the web interface |
P2 | Done |
| FR-6.4 | API input validation with clear error messages | P1 | Done |
Python API¶
create_pipeline()— primary entry point for programmatic RWA calculationCreditRiskCalc— higher-level service wrapper
Marimo Web UI¶
Interactive workbooks for scenario analysis, exposure drill-down, and regulatory exploration.
Comparison App (ui/marimo/comparison_app.py)¶
Registered at /comparison in the multi-app server. Provides:
- Dual-framework comparison (CRR vs Basel 3.1) using DualFrameworkRunner
- Capital impact waterfall via CapitalImpactAnalyzer
- Transitional floor schedule timeline with year slider (TransitionalScheduleRunner)
- Exposure-level drill-down with filters
- CSV export for all views
CLI¶
rwa-calc-ui— launches the Marimo web interface
Status¶
All interface requirements implemented.