How salikawtar/responsible-ai-checkup works
Responsible AI Check-up is a bilingual Streamlit app that turns a plain-language AI-system description into a traceable, rule-by-rule Canadian compliance report, followed by human review, sign-off, and PDF export. Its fixed workflow separates AI-assisted fact extraction from deterministic rule evaluation; it also estimates impact, records changes and reviewer actions, and supports a simulated Bill C-36 change. The graph follows relationships shown in the excerpts, source index, or README; some internal wiring is not shown, so uncertain links are omitted.
Main entry points: intake_screen.py Check-up intake · report.py Report builder · report_view.py Report screen · main.py Streamlit app
Components 18
Intake and facts
- Streamlit app
app/main.py - Check-up intake
app/intake_screen.py - Description reader
app/model.py - System registry
app/registry.py - Follow-up questions
app/followup.py
Rules and evaluation
- Canadian rule packs
rules - Rule loader
app/rules.py - Condition matching
app/conditions.py - Impact estimate
app/impact.py - Rule checker
app/checker.py
Report and review
- Report builder
app/report.py - Review and sign-off
app/review.py - Report screen
app/report_view.py - PDF export
app/export_pdf.py
Shared services
- Append-only audit log
app/audit.py - English / French text
app/i18n.py
Other components
- Reviewer / user
- OpenRouter model
Connections 30
- Reviewer / user → Streamlit app: uses
README.md - Streamlit app → Check-up intake: opens intake
app/main.py - Streamlit app → System registry: loads systems
app/main.py - Streamlit app → English / French text: loads text
app/main.py - Check-up intake → Description reader: reads description
app/intake_screen.py - Description reader → OpenRouter model: sends prompt
app/model.py - Check-up intake → System registry: saves system
app/intake_screen.py - Check-up intake → Follow-up questions: gets questions
app/intake_screen.py - Check-up intake → Impact estimate: estimates impact
app/intake_screen.py - Check-up intake → Review and sign-off: snapshots rules
app/intake_screen.py - Check-up intake → Append-only audit log: logs intake
app/intake_screen.py - Follow-up questions → Rule loader: loads questions
app/followup.py - Follow-up questions → Condition matching: finds missing facts
app/followup.py - Follow-up questions → Impact estimate: checks impact facts
app/followup.py - Rule loader → Canadian rule packs: loads YAML
app/rules.py - Impact estimate → Rule loader: loads impact config
app/impact.py - Rule checker → Rule loader: gets rules
app/checker.py - Rule checker → Condition matching: tests conditions
app/checker.py - Rule checker → Impact estimate: uses impact level
app/checker.py - Report builder → Rule checker: gets findings
app/report.py - Report builder → System registry: uses system facts
app/report.py - Report builder → Review and sign-off: applies decisions
app/report.py - Report builder → English / French text: formats text
app/report.py - Report screen → Report builder: builds cards
app/report_view.py - Report screen → Review and sign-off: records review
app/report_view.py - Report screen → System registry: saves changes
app/report_view.py - Report screen → Append-only audit log: logs actions
app/report_view.py - Report screen → PDF export: offers download
app/report_view.py - PDF export → Report builder: exports report data
app/export_pdf.py - PDF export → English / French text: formats PDF text
app/export_pdf.py