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

Architecture Flow src/main.py

How the phone-first participant app, tested service routes, dashboard, API, Redis, PostgreSQL, proxy, extension, and pipeline fit together.

System path

Phone / PWA
/ags onboarding, task UI, help overlay
Service route
template target such as Niko or public-service flow
Capture layer
proxy, SW proxy, extension, limited, offline
FastAPI
participants, sessions, events, help, survey
Pipeline
normalise → readiness → governance → adaptation
Storage
Redis session state + PostgreSQL evidence
Dashboard
monitoring, content, analytics, exports

Component responsibilities

ComponentOwnsDoes not own
Phone/PWA participant appOnboarding, consent UI, task shell, help display, touch/mobile signals, offline queue.Study condition assignment or governance decisions.
Service route/templateTarget-service metadata, schema version, route-specific capture preference, tested route notes such as Niko.Global readiness logic or participant identity.
Proxy/SW proxyHeader rewriting, runtime injection, iframe-compatible capture.Bypassing in-page anti-frame logic or CAPTCHA checks.
ExtensionReal-tab capture, overlay, locator guidance, external-site handoff.Participant enrollment or dashboard access.
Tauri desktop shellFuture desktop packaging option for controlled desktop or lab studies.The default mobile participant path.
APIAuth, validation, session lifecycle, persistence, pipeline orchestration.Hardcoded study changes outside config/templates.
RedisHot session context, cooldowns, counters, background suppression.Permanent research record.
PostgreSQLCanonical evidence: users, sessions, events, readiness, governance, adaptations, audit.Realtime browser capture.
DashboardMonitoring, config/content administration, exports, audit review.Participant-facing intervention rendering.

Boundary rule

Client submits signals, not decisions. The participant app and extension may report what happened. The server computes condition, readiness, governance, adaptation level, and content resolution.