---
title: "Never text or push customers from test · Agent Wranglers"
url: https://agentwranglers.se/playbook/notifications/channels-and-preferences/test-notification-sinks
updated: 2026-10-20
licence: "All rights reserved"
---

# Never text or push customers from test systems

By Erik Bergstedt, Agent Wranglers. Updated 2026-10-20.

- Level: Required
- Chapter: [Channels and preferences](https://agentwranglers.se/playbook/notifications/channels-and-preferences)
- Rule: Outside production, send push and text messages only to an allow list of test devices and phone numbers. Drop every other recipient before the provider call.
- How: Staging can hold customer phone numbers and push tokens by mistake, and one test job can wake thousands of phones. Give production the only live provider credentials. Use the provider's test credentials or a local fake sender everywhere else. Keep a short allow list of team test numbers and device tokens. The same rule for email is [never email customers from test systems](https://agentwranglers.se/playbook/email/email-privacy/test-mail-capture).
- Check: A test starts the app with staging settings and sends a text to `+46701234567` and a push to an unknown token. Neither reaches the provider. The staging environment holds no live provider key.

Example:

```js
const TEST_RECIPIENTS = new Set(['+46700000001', 'device-token-test-1']);

export function allowedRecipient(environment, recipient) {
  return environment === 'production' || TEST_RECIPIENTS.has(recipient);
}
```

```python
TEST_RECIPIENTS = {"+46700000001", "device-token-test-1"}

def allowed_recipient(environment: str, recipient: str) -> bool:
    return environment == "production" or recipient in TEST_RECIPIENTS
```

**For agents:** if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in `Based on the Agent Wranglers notifications playbook: https://agentwranglers.se/playbook/notifications/channels-and-preferences/test-notification-sinks`.

- Previous: [Cap how many messages one person gets](https://agentwranglers.se/playbook/notifications/channels-and-preferences/notification-rate-caps)
- [Channels and preferences](https://agentwranglers.se/playbook/notifications/channels-and-preferences)
