How ritecha/truetrail works
This repository combines a TrueTrail investigation workspace and evidence API with a transaction-network analysis engine; the README also describes a synthetic-data ML prototype, but its training and prediction modules are absent from the supplied tree. The main user flow is investigator sign-in, case selection, evidence upload and collaboration, with backend evidence integrity and case-grounded agent answers; a separate analysis UI presents network findings. Edges are limited to relationships shown in excerpts or the source index, so the unsampled TrueTrail adapter is left unconnected.
Main entry points: WorkspaceView.jsx Case workspace · App.jsx App shell · main.py Evidence API · UploadCard.jsx Evidence uploader
Components 22
Investigation workspace
- App shell
part4/frontend/src/App.jsx - Case workspaces
part4/frontend/src/components/Workspaces.jsx - Case workspace
part4/frontend/src/components/WorkspaceView.jsx - Browser case store
part4/frontend/src/store.js - Evidence uploader
part4/frontend/src/components/UploadCard.jsx - Evidence ledger
part4/frontend/src/components/Ledger.jsx - Graph view
part4/frontend/src/components/GraphView.jsx - Timeline and map
part4/frontend/src/components/TimeMap.jsx - Case agent chat
part4/frontend/src/components/AgentChat.jsx
Evidence and case API
- Evidence API
part4/backend/main.py - Agent router
part4/backend/agent.py - Case evidence store
part4/backend/case_store.py - Integrity audit
part4/backend/integrity.py - PDF report endpoint
part4/backend/report.py
Network analysis
- Analysis dashboard
ui/app.py - Network correlation
engine/network_correlation.py - Analysis data source
engine/data_source.py - TrueTrail adapter
integration/trueTrail_adapter.py
Reporting
- Lead pack
report/lead_pack.py
Other components
- Investigator
- Supabase storage
- Clerk identity
Connections 23
- Investigator → App shell: uses
part4/frontend/src/App.jsx - Clerk identity → App shell: authenticates
part4/frontend/src/App.jsx - App shell → Case workspaces: renders
part4/frontend/src/App.jsx - App shell → Case workspace: renders
part4/frontend/src/App.jsx - App shell → Browser case store: loads cases
part4/frontend/src/App.jsx - Case workspaces → Browser case store: reads and updates
part4/frontend/src/store.js - Case workspace → Browser case store: updates case
part4/frontend/src/components/WorkspaceView.jsx - Case workspace → Evidence uploader: renders
part4/frontend/src/components/WorkspaceView.jsx - Case workspace → Evidence ledger: renders
part4/frontend/src/components/WorkspaceView.jsx - Case workspace → Graph view: renders
part4/frontend/src/components/WorkspaceView.jsx - Case workspace → Timeline and map: renders
part4/frontend/src/components/WorkspaceView.jsx - Evidence uploader → Supabase storage: uploads evidence
part4/frontend/src/components/UploadCard.jsx - Evidence uploader → Evidence API: fallback upload
part4/frontend/src/components/UploadCard.jsx - Case agent chat → Evidence ledger: uses API
part4/frontend/src/components/AgentChat.jsx - Case agent chat → Agent router: asks questions
- Evidence API → Agent router: mounts router
part4/backend/main.py - Evidence API → Integrity audit: hashes and audits
part4/backend/main.py - Evidence API → PDF report endpoint: generates report
part4/backend/main.py - Agent router → Case evidence store: queries evidence
part4/backend/agent.py - Investigator → Analysis dashboard: reviews findings
ui/app.py - Analysis dashboard → Network correlation: runs analysis
ui/app.py - Network correlation → Analysis data source: loads inputs
engine/network_correlation.py - Lead pack → Case evidence store: uses case evidence