How abiroland/ai-mrg-framework works
AI-MRG is a self-hosted model-risk governance toolkit. Its main workflow registers an AI system, classifies and tiers it, plans applicable controls, runs checks and records evidence, then supports gated lifecycle review and audit-ready reporting. The map also preserves the documented dashboard, REST API, MLflow integration, and control-pack capabilities. Edges are based on the README workflow, source-index references, and shown excerpts; some subsystem wiring is documented but not sampled in source.
Main entry points: cli.py Command line · store.py Governance registry · app.py Web dashboard · mlflow.py MLflow integration
Components 20
Governance workflow
- Governance records
src/aimrg/core/models.py - AI classification
src/aimrg/core/classify.py - Risk tiering
src/aimrg/tiering.py - Lifecycle gates
src/aimrg/workflow.py
Controls and checks
- Control packs
src/aimrg/packs/loader.py - Control applicability
src/aimrg/packs/resolver.py - Checks library
src/aimrg/checks - Check framework
src/aimrg/checks/base.py
Records and reporting
- Governance registry
src/aimrg/registry/store.py - Findings
src/aimrg/findings.py - Governance reports
src/aimrg/reports/render.py - Evidence export
src/aimrg/export.py
User interfaces
- Command line
src/aimrg/cli.py - REST API
src/aimrg/api.py - Web dashboard
src/aimrg/dashboard/app.py - Dashboard views
src/aimrg/dashboard/views.py - API client
src/aimrg/dashboard/client.py
Integrations
- MLflow integration
src/aimrg/integrations/mlflow.py
Other components
- Practitioner
- MLflow
Connections 24
- Practitioner → Command line: runs commands
README.md - Practitioner → Web dashboard: uses interface
README.md - Practitioner → REST API: calls endpoints
README.md - Command line → Governance registry: manages records
src/aimrg/cli.py - REST API → Governance registry: serves requests
src/aimrg/api.py - Web dashboard → Dashboard views: renders views
src/aimrg/dashboard/app.py - Web dashboard → API client: uses client
src/aimrg/dashboard/app.py - Governance registry → Governance records: validates records
src/aimrg/registry/store.py - Command line → AI classification: classifies assets
src/aimrg/cli.py - AI classification → Governance records: builds classification
src/aimrg/core/classify.py - Command line → Risk tiering: assesses risk
README.md - Command line → Control packs: loads controls
src/aimrg/cli.py - Control packs → Control applicability: supplies controls
src/aimrg/packs/resolver.py - Command line → Checks library: runs checks
README.md - Checks library → Check framework: uses framework
src/aimrg/checks/__init__.py - Command line → Findings: tracks findings
src/aimrg/cli.py - Command line → Lifecycle gates: advances lifecycle
README.md - Lifecycle gates → Governance registry: records events
src/aimrg/workflow.py - Command line → Governance reports: renders reports
README.md - Governance reports → Governance registry: reads evidence
src/aimrg/reports/render.py - Command line → Evidence export: exports evidence
src/aimrg/cli.py - Evidence export → Governance registry: reads records
src/aimrg/export.py - MLflow integration → Governance registry: imports records
src/aimrg/integrations/mlflow.py - MLflow integration → MLflow: integrates with
README.md