How adityapatel5912/verdict works
Verdict is a decision stress-testing application: users create a proposal, add source documents, extract claims, model assumptions, and inspect deterministic outcomes before challenging them against reality. The React client presents evidence, scenarios, comparisons, sensitivity analysis, and audit views; the FastAPI backend handles ingestion, extraction, state, and red-team work. Decision history and local persistence preserve reviewable snapshots. The README documents additional integrations and review capabilities whose wiring is not fully visible in the sampled excerpts, so uncertain call edges are omitted.
Main entry points: main.py API Application · App.tsx Workspace App · state.py Decision State · api.ts API Client
Components 26
Decision Workspace
- Workspace App
frontend/src/App.tsx - API Client
frontend/src/api.ts - Evidence Panel
frontend/src/components/EvidencePanel.tsx - Decision Model
frontend/src/components/DecisionModel.tsx - Review Views
frontend/src/components/Heatmap.tsx - Decision Chat
frontend/src/components/ChatPanel.tsx - Calculation Client
frontend/src/workers/calcClient.ts - Decision History
frontend/src/components/DecisionHistory.tsx
Evidence and Modeling
- Calculation Worker
frontend/src/workers/verdictCalc.worker.ts - File Parsers
backend/ingestion/parsers.py - Claim Extraction
backend/extraction/claim_extractor.py - Decision State
backend/state.py - Decision Engine
backend/engine/decision_model.py - Robustness Analysis
backend/engine/robustness.py - API Application
backend/main.py
Challenge and Audit
- Chat Tools
backend/chat/handler.py - Red Team
backend/redteam/orchestrator.py - History Snapshots
backend/services/history_service.py - Audit Export
backend/export/exporters.py - System Watchdog
backend/services/watchdog_service.py
Persistence and Integrations
- SQLite Store
backend/db.py - LLM Router
backend/llm/provider_router.py - Browser Persistence
frontend/src/store/autosave.ts - IndexedDB
frontend/src/store/indexedDb.ts
Other components
- Decision Maker
- LLM Providers
Connections 32
- Decision Maker → Workspace App: uses
- Workspace App → API Client: requests data
- Workspace App → Evidence Panel: renders
- Workspace App → Decision Model: renders
- Workspace App → Review Views: renders
- Workspace App → Decision Chat: renders
- Workspace App → Decision History: renders
- Decision Model → Calculation Client: requests calculations
- Calculation Client → Calculation Worker: dispatches calculations
- API Client → API Application: sends API requests
- API Application → File Parsers: parses uploads
- API Application → Claim Extraction: extracts claims
- API Application → Decision State: reads and updates
- API Application → Red Team: runs red team
- API Application → SQLite Store: stores decisions
- Claim Extraction → SQLite Store: stores claims
- Decision State → SQLite Store: reads and writes
- Decision State → Decision Engine: calculates outcomes
- Decision State → Robustness Analysis: scores resilience
- Chat Tools → Decision State: executes decision tools
- Chat Tools → LLM Router: requests language model
- LLM Router → LLM Providers: routes model requests
- Red Team → LLM Router: requests critic analysis
- Red Team → SQLite Store: stores findings
- History Snapshots → Decision State: snapshots decision state
- History Snapshots → SQLite Store: stores history
- Decision History → API Client: loads history
- API Application → History Snapshots: saves decision history
- API Application → Audit Export: generates exports
- API Client → Browser Persistence: loads local decisions
- Browser Persistence → IndexedDB: persists snapshots
- API Client → System Watchdog: sends telemetry