TEST Mode
TEST Mode
The identity_bridge supports a MODE=TEST configuration that uses Twilio's magic numbers for phone verification — no real SMS is sent.
How to Enable
Set MODE=TEST in the identity_bridge environment. The SentryAgent.ai hosted instance uses TEST mode for sandbox registrations.
Magic Phone Numbers
Use +15005550006 as the mobile phone in your manifest for successful TEST registrations.
| Phone Number | Behaviour |
|---|---|
+15005550006 | Success — OTP delivered (simulated) |
+15005550001 | Error — number not in service |
+15005550007 | Error — number cannot receive SMS |
+15005550008 | Error — number blocked by carrier |
+15005550009 | Error — number invalid |
| Any other number | Normal Twilio lookup (live mode only) |
Source: Twilio Magic Numbers — used in TEST mode to simulate carrier responses without sending real messages.
OTP Acceptance in TEST Mode
When MODE=TEST, the identity_bridge accepts any 6-digit numeric string as a valid OTP. You do not need to receive or read an actual SMS message.
Valid: 123456, 000001, 999999
Invalid (triggers 429 in stub): 000000
Invalid (triggers 401): non-numeric, fewer than 6 digits
Portal Stub Mode
The portal's STUB_MODE=true setting is separate from MODE=TEST. In stub mode, all API calls are intercepted by in-process stubs — no HTTP calls to identity_bridge are made at all. This is used for Sprint 1 testing before the live backend is wired.