Live config loaded — values shown in teal reflect what is currently deployed on this server.
AGS Documentation
Back to Dashboard

Failure & Recovery Paths src/api/events.py

What AGS should do when the normal path breaks. Most failures degrade capture quality or delay support; they should not silently corrupt research data.

FailureSystem responseResearcher check
Consent missingReject telemetry with 403; do not write event rows.Alerts and participant onboarding state.
Proxy upstream timeout/errorShow plain recovery page or fallback notice; log technical error.Alerts, proxy logs, affected template/site.
CAPTCHA or anti-frame pageAttempt extension handoff if installed; otherwise show fallback guidance.Capture channel, extension install status, step outcomes.
Extension missingContinue proxy/limited mode where possible; avoid pretending full capture exists.Sessions capture metadata and signal completeness.
OfflineQueue events/help/session end/survey locally and replay idempotently.Replay gaps, duplicate client_event_id rejection, session timeline.
Redis cache missRebuild deterministic session context from PostgreSQL; never invalidate session just for cache miss.Redis memory/eviction and cache miss alerts.
Low signal confidenceWithhold via confidence gate instead of firing a weak intervention.Signal detail, sparse events, baseline quality.
LLM timeout/slow networkUse scripted fallback help and log routing decision.LLM timeout alerts and content coverage gaps.
Template schema mismatchReject incompatible session/template flow with conflict response.Template version and deployment mismatch.
Intervention worsens outcomeWrite adaptation failure, back off with cooldown, factor into later decisions.Adaptation failures by content, step, language, condition.
Recovery principle. Prefer explicit degraded state over fake completeness. If AGS only has limited capture, downstream analysis should be able to see that.