Why it matters
Multi-tenant bots must isolate tokens, data and rate limits per customer — a shared table without tenant_id is an incident waiting to happen.
Practical steps
- Every row carries tenant_id; enforce in the query layer.
- Separate secrets per tenant when platforms allow.
- Per-tenant rate limits and budgets.
- Avoid cross-tenant caches keyed only by user id.
- Test with two tenants in CI asserting isolation.
Watch out for
- Global admin commands that forget the tenant filter.
- Logging one tenant's prompts in another's support ticket.