How tamilselvan04200803-max/fed_sentinel works
FedSentinel-Health is a federated-learning security and operations application for hospital nodes. Operators inspect node readiness, launch enclave training or federation rounds, and review model updates through security checks, trust scoring, and incident handling. The React console queries the backend and receives live events; backend routes coordinate rounds and training and update operational state. The tree documents additional audit, model, compliance, and simulation capabilities. Backend internals beyond the supplied excerpts are represented only where module paths and route documentation support them.
Main entry points: apiClient.ts API client · router.tsx Feature router · state_service.py Application state · training_routes.py Training routes
Components 25
Operator console
- React app
src/App.tsx - Feature router
src/router.tsx - Federation workspace
src/features/federation/FederationPage.tsx - Hospital training
src/features/hospital/EnclaveTrainingLifecycle.tsx - Security center
src/components/security/SecurityCenter.tsx - Incident investigation
src/features/incidents/IncidentInvestigation.tsx - Audit workspace
src/features/audit/AuditWorkspace.tsx
API and realtime
- API client
src/services/api/apiClient.ts - Realtime client
src/services/realtime/wsManager.ts - WebSocket gateway
backend/api/websocket.py
Federated operations
- Federation routes
backend/api/routes/federation_routes.py - Training routes
backend/api/routes/training_routes.py - Round coordinator
backend/federation/coordinator.py - Update aggregation
backend/aggregation/aggregator.py
Security and trust
- Zero-trust pipeline
backend/security/pipeline.py - Trust engine
backend/trust/trust_engine.py - Trust policy
backend/trust/policy.py - Incident manager
backend/incidents/manager.py - Incident routes
backend/api/routes/incident_routes.py
Operational state
- Audit routes
backend/api/routes/audit_routes.py - Model routes
backend/api/routes/model_routes.py - Client routes
backend/api/routes/client_routes.py - Application state
backend/services/state_service.py - Database
backend/db/database.py
Other components
- Operator
Connections 33
- Operator → React app: uses
- React app → Feature router: renders
- Feature router → Federation workspace: routes to
- Feature router → Hospital training: routes to
- Feature router → Security center: routes to
- Feature router → Incident investigation: routes to
- Feature router → Audit workspace: routes to
- Federation workspace → API client: requests rounds
- Hospital training → API client: requests training
- Security center → API client: requests security data
- Incident investigation → API client: requests incidents
- Audit workspace → API client: requests audit data
- API client → Federation routes: HTTP requests
- API client → Training routes: HTTP requests
- API client → Incident routes: HTTP requests
- API client → Audit routes: HTTP requests
- API client → Model routes: HTTP requests
- API client → Client routes: HTTP requests
- Federation routes → Round coordinator: executes rounds
- Round coordinator → Update aggregation: aggregates updates
- Training routes → Zero-trust pipeline: verifies updates
- Training routes → Trust engine: updates trust
- Trust engine → Trust policy: uses policy
- Incident routes → Incident manager: manages incidents
- Federation routes → Application state: reads and updates state
- Training routes → Application state: reads and updates state
- Client routes → Application state: reads and updates state
- Model routes → Application state: reads model state
- Audit routes → Application state: reads audit state
- Application state → Database: persists state
- Realtime client → WebSocket gateway: opens event stream
- Training routes → WebSocket gateway: broadcasts events
- WebSocket gateway → Realtime client: streams events