How bhavikk10/autharva_inbox_desk works
Inbox Desk is a read-only email attention and review application. A user browses or imports conversations, requests an assessment, then inspects its attention tier, obligation evidence, history, and editable reply drafts. The backend extracts and validates obligations, resolves dates, and applies attention policy before presenting results; saved runs and review corrections persist in SQLite. Gmail access and model providers are external integrations. Some subsystem links reflect README documentation or source-index references rather than inspected implementation details.
Main entry points: main.py FastAPI routes · App.tsx Inbox workspace · api.ts API client · service.py Attention service
Components 21
Inbox interface
- Inbox workspace
frontend/src/App.tsx - Gmail controls
frontend/src/GmailPanel.tsx - Review and drafts
frontend/src/ReviewTools.tsx - Saved runs
frontend/src/SavedRunsPanel.tsx - Analysis queue
frontend/src/QueuePanel.tsx - API client
frontend/src/api.ts
Application API
- FastAPI routes
backend/main.py
Assessment pipeline
- Attention service
backend/service.py - Analysis jobs
backend/jobs.py - Obligation validation
backend/domain.py - Date resolution
backend/dates.py - Attention policy
backend/policy.py - Timezone handling
backend/timezones.py - Reply drafts
backend/drafts.py - Saved-run replay
backend/replay.py
Saved state
- Conversation and run store
backend/store.py
External integrations
- Gmail import
backend/gmail.py - Model adapters
backend/providers.py
Other components
- Salesperson
- Gmail API
- Inference services
Connections 28
- Salesperson → Inbox workspace: uses
README.md - Inbox workspace → API client: requests
frontend/src/App.tsx - Inbox workspace → Gmail controls: opens
frontend/src/App.tsx - Inbox workspace → Review and drafts: shows
frontend/src/App.tsx - Inbox workspace → Saved runs: shows
frontend/src/App.tsx - Inbox workspace → Analysis queue: shows
frontend/src/App.tsx - Gmail controls → API client: requests
frontend/src/GmailPanel.tsx - Review and drafts → API client: requests
frontend/src/ReviewTools.tsx - Saved runs → API client: requests
frontend/src/SavedRunsPanel.tsx - Analysis queue → API client: requests
frontend/src/QueuePanel.tsx - API client → FastAPI routes: calls API
frontend/src/api.ts - FastAPI routes → Attention service: routes analysis
backend/main.py - FastAPI routes → Analysis jobs: creates jobs
backend/main.py - FastAPI routes → Gmail import: routes Gmail
backend/main.py - FastAPI routes → Reply drafts: configures drafts
backend/main.py - FastAPI routes → Saved-run replay: imports runs
backend/main.py - Attention service → Conversation and run store: reads and writes
backend/service.py - Attention service → Obligation validation: validates output
backend/service.py - Attention service → Attention policy: applies policy
backend/service.py - Attention policy → Date resolution: resolves dates
backend/policy.py - Attention policy → Timezone handling: uses zones
backend/policy.py - Attention service → Model adapters: requests analysis
backend/service.py - Model adapters → Inference services: sends inference
README.md - Gmail import → Gmail API: reads mail
README.md - Reply drafts → Model adapters: uses provider
backend/drafts.py - Reply drafts → Obligation validation: uses contract
backend/drafts.py - Saved-run replay → Conversation and run store: loads saved runs
backend/replay.py - FastAPI routes → Conversation and run store: seeds store
backend/main.py