How alok-yadav25/reviva works
REVIVA is an ML reliability control plane. Operators inspect monitoring evidence, diagnose drift and labeled degradation, request worker-run retraining, validate a challenger, approve promotion, and retain rollback capability; Coinbase Live is a separate workspace. The diagram includes documented CSV observations, registry/research, and operational visibility. Some connections are based on README workflow descriptions because the relevant implementation excerpts were not shown.
Main entry points: main.py FastAPI control plane · jobs.py Recovery jobs · storage.py Artifact store · services.py Registry operations
Components 22
Operator interface
- Dashboard workspace
frontend/src/components/workspace.tsx - Workspace pages
frontend/src/components/pages - Pipeline monitor
frontend/src/components/pages/pipelines.tsx - API client
frontend/src/lib/api.ts - Market workspace
frontend/src/components/pages/live.tsx
Control plane
- FastAPI control plane
backend/app/main.py - Operator authentication
backend/app/auth.py - CSV observations
backend/app/observations.py - Registry operations
backend/app/services.py
Recovery and ML
- Persistent worker
ml/worker.py - Recovery jobs
ml/jobs.py - Data windows
ml/data.py - Drift and metrics
ml/drift.py - Recovery policy
ml/policy.py - Model training
ml/training.py
Coinbase Live
- Trade collector
ml/market_feed.py - Market jobs
ml/market_jobs.py - Market transitions
backend/app/market_services.py
Persistence
- Artifact store
backend/app/storage.py - PostgreSQL registry
backend/app/models.py
Other components
- Operator
- Coinbase public feed
Connections 26
- Operator → Dashboard workspace: uses
README.md - Dashboard workspace → Workspace pages: navigates
frontend/src/components/pages/pipelines.tsx - Operator → Pipeline monitor: reviews jobs
README.md - Pipeline monitor → API client: fetches job status
frontend/src/components/pages/pipelines.tsx - API client → FastAPI control plane: requests data
- FastAPI control plane → Operator authentication: requires operator
backend/app/main.py - FastAPI control plane → CSV observations: routes observations
backend/app/main.py - FastAPI control plane → Registry operations: calls registry operations
backend/app/main.py - FastAPI control plane → PostgreSQL registry: reads and updates
backend/app/main.py - FastAPI control plane → Artifact store: uses artifacts
backend/app/main.py - Operator → CSV observations: imports CSV
README.md - Registry operations → PostgreSQL registry: queues and records
backend/app/services.py - Persistent worker → Recovery jobs: runs jobs
ml/worker.py - Recovery jobs → Data windows: loads windows
ml/jobs.py - Recovery jobs → Drift and metrics: measures shift
ml/jobs.py - Recovery jobs → Recovery policy: checks gates
ml/jobs.py - Recovery jobs → Model training: trains challenger
ml/jobs.py - Recovery jobs → Artifact store: stores artifacts
ml/jobs.py - Registry operations → Artifact store: verifies models
backend/app/services.py - Market workspace → API client: requests market data
- Coinbase public feed → Trade collector: streams trades
README.md - Trade collector → Market jobs: dispatches market work
ml/market_feed.py - Market jobs → Market transitions: uses transitions
ml/market_jobs.py - Market jobs → Artifact store: stores model artifacts
ml/market_jobs.py - Market transitions → PostgreSQL registry: updates market state
backend/app/market_services.py - Operator → Market workspace: explores live data
README.md