How harshitpatilx/bob-ai-hackathon-cipher-matrix works
CFNA turns case files or pasted investigation material into a correlated fraud network, analyzes its money flow and likely roles, then produces an interactive report and FIR-ready brief. The main flow is explicit in pipeline.py; the browser entry point is supported by serve.py documentation and its form handler. Analysis internals are shown as meaningful stages, while unsampled implementation details and uncertain links are omitted. IBM Bob is an optional narrative hook; the README says local deterministic analysis is the active behavior.
Main entry points: pipeline.py Case Pipeline · serve.py Browser Form · cli.py Command Line · intake.py Form Intake
Components 22
Case Intake
- Command Line
src/cfna/cli.py - Browser Form
src/cfna/serve.py - Form Intake
src/cfna/intake.py - Case Pipeline
src/cfna/pipeline.py
Evidence Correlation
- Case Loader
src/cfna/ingest/loaders.py - Entity Extraction
src/cfna/extract/entities.py - Relation Discovery
src/cfna/extract/relations.py - Case Graph
src/cfna/models.py
Investigation Analysis
- Network Metrics
src/cfna/analysis/metrics.py - Pattern Detection
src/cfna/analysis/patterns.py - Role Assessment
src/cfna/analysis/hierarchy.py - Risk Scoring
src/cfna/analysis/risk.py - Hierarchy Builder
src/cfna/analysis/hierarchy.py - Activity Timeline
src/cfna/analysis/timeline.py - Evidence Summary
src/cfna/analysis/evidence.py - Narrative Insights
src/cfna/bob/__init__.py
Investigation Outputs
- Interactive Network Report
src/cfna/report/html_report.py - FIR Brief
src/cfna/report/fir.py - Case And Network JSON
src/cfna/pipeline.py
Other components
- Investigator
- Case Material
- Investigation Results
Connections 28
- Investigator → Command Line: runs case
- Case Material → Command Line: supplies files
- Investigator → Browser Form: enters case
- Browser Form → Form Intake: submits fields
- Form Intake → Case Pipeline: creates case
- Command Line → Case Pipeline: runs analysis
- Case Pipeline → Case Loader: loads case
- Case Loader → Case Pipeline: returns records
- Case Pipeline → Entity Extraction: extracts entities
- Case Pipeline → Relation Discovery: discovers relations
- Entity Extraction → Case Graph: adds entities
- Relation Discovery → Case Graph: adds relations
- Case Pipeline → Network Metrics: computes metrics
- Case Pipeline → Pattern Detection: classifies patterns
- Case Pipeline → Role Assessment: assigns roles
- Case Pipeline → Risk Scoring: scores risk
- Case Pipeline → Hierarchy Builder: builds hierarchy
- Case Pipeline → Activity Timeline: builds timeline
- Case Pipeline → Evidence Summary: builds evidence
- Case Pipeline → Narrative Insights: requests insights
- Case Pipeline → Interactive Network Report: renders report
- Case Pipeline → FIR Brief: renders brief
- Case Pipeline → Case And Network JSON: writes exports
- Interactive Network Report → Investigation Results: publishes HTML
- FIR Brief → Investigation Results: publishes brief
- Case And Network JSON → Investigation Results: writes JSON
- Browser Form → Investigation Results: serves reports
- Investigator → Investigation Results: reviews findings