Admin simulation flows
How provisioned admins drive simulated dating flows for testing.
Updated 2026-08-25 · 1 min read
For testing, PsiMatch supports admin impersonation: a provisioned admin can drive two users through like → mutual match → conversation without touching production accounts' agency.
Who can do this
Only accounts where admin authority came from either:
- The
psymatch_admincustom claim written via the Firebase Admin SDK (scripts/provision-admin-user.mjs), or - The static
ADMIN_EMAILSallowlist
Impersonation requests carry X-Act-As-User-Id and are validated per request: targets must exist, must not be banned, and can never be another admin. Every request is logged.
The flow
- 01
admin_list_usersto find an unmatched pair - 02
admin_become_user(A)thenlike_usertoward B - 03
admin_become_user(B)thenrespond_to_matchACCEPTED - 04Exchange messages both directions as A and B
- 05
analyze_conversationfrom each side to verify dynamics - 06
admin_clear_actorto drop the impersonation