# Delivery controls

Permission, relevance, timing and message pressure are separate controls in Braze. A person can pass one and fail another, and each failure leaves a different trace. This file keeps only the behaviour that changes a QA decision or a failure signature, checked on 2026-10-17. Read the live page in `sources.yaml` for parameters, limits and channel lists, and record the live values and the date in the QA record.

## Frequency caps

Where: Settings > Frequency Capping Rules (per workspace). Live page: frequency capping.

Behaviour that decides tests:

- Global caps count calendar days in the user's timezone, not rolling 24-hour periods.
- In-app messages and Content Cards neither count toward caps nor get capped by them.
- On conflicting rules, the most restrictive applicable rule wins. Tag-based rules use the tags on past messages as they are at send time, so retagging a campaign changes history.
- Caps are checked when the campaign sends or the Canvas Message step is reached. A capped Canvas step advances the user to the next step; the user does not exit.
- With quiet hours, the cap is checked first. A user already at cap is skipped, not held.

Failure signatures:

- Messaging History shows a frequency cap event for the user and step; in Currents, an abort event with `abort_type` `frequency_capped`.
- The Canvas step shows fewer sends than entries while the user still reached later steps.
- A "calendar day" cap lets 23:50 and 00:10 sends through for the same user. If the policy promises a rolling window, add an eligibility rule or change the promise.

QA tests:

- Boundary: two messages either side of local midnight for a test profile with a known timezone.
- Collision: a low-priority tagged campaign sent first, then the Canvas step; confirm which message the policy expects to win and whether the later Canvas copy still reads correctly.
- Exempt classes: list every campaign or Canvas with capping off and its reason.

## Subscription states and groups

Decision facts:

- Email `subscribed` is the default for a new profile, so it is not evidence of consent. Only `opted_in` records an explicit confirmation.
- Email subscription groups are optional filters under the global email state: a globally unsubscribed user gets no email even if subscribed to a group.
- SMS, MMS, RCS, WhatsApp and LINE need a subscription group to send. An SMS goes only to users subscribed to the group selected in the composer.
- The Canvas subscription setting (Send Settings) is applied per step, not at entry, so an unsubscribe during a delay suppresses the next step (fixture F17).
- A hard bounce marks the address invalid and stops sends until the email changes; the subscription state does not change.
- State can change from many writers: SDK, dashboard edits, CSV import, REST endpoints, the preference centre, unsubscribe links and List-Unsubscribe, and a Canvas User Update step. Name the trusted writer for each group in the data dictionary.

Targeting settings to read in the dashboard:

- Campaigns: the "Send to these users" option. "Send to all users including unsubscribed users" must have a documented reason.
- Canvas: Send Settings, subscription setting. Record the live label.

Failure signatures:

- Subscription state looks fine but the profile is a duplicate: the unsubscribe landed on another profile with the same person. Check identity first.
- Every profile shows a group as subscribed: an integration sets it unconditionally. Detect it as a group near 100% subscribed with a single writer in the Event User Log (test profiles) or the data dictionary. Treat the state as untrusted until fixed.
- An older CRM or warehouse value resubscribes someone after an unsubscribe: the sync is overwriting a newer customer choice. Hand to preferences-caps-and-suppression for the stale-write rule; if it is not installed, record the writer and the overwrite in the QA record and stop the sync's subscription field until an owner decides.

QA tests:

- Unsubscribe from one email group, confirm another group still sends and the global state is unchanged.
- Global unsubscribe through the real email footer, confirm every group is suppressed.
- One-click List-Unsubscribe from a mail client, compare scope with the body link.
- Replay an older sync value after an unsubscribe and confirm it cannot resubscribe the profile.

## Quiet hours

- Canvas or campaign level: "Enable Quiet Hours" in the send settings, a window in each user's local timezone, and a fallback of "Abort message" or "Send at next available time".
- A held message is checked against frequency caps and rate limits when it finally sends. Several held messages can release together at the end of the window; check that this does not become a burst.
- Workspace quiet hours (Settings > Quiet Hours) were early access on 2026-10-17. A campaign or Canvas window overrides the workspace one, and a campaign or Canvas can opt out. Transactional email and test sends are not held. Fallbacks documented on 2026-10-17:
  - Action-based campaigns and Canvases: abort or send at the next available time, as configured.
  - Scheduled campaigns with a fixed send time: abort.
  - API-triggered campaigns and API campaigns: abort by default. API campaigns can pass `ignore_workspace_quiet_hours` for transactional sends; API-triggered campaigns have no such parameter.
  - API-triggered Canvases: not stated. Read the Canvas's own quiet hours setting, opt-out and fallback in the dashboard rather than assume an abort.

Failure signature: an API-triggered transactional-style campaign silently missing at night after workspace quiet hours were switched on. Messaging History or the Message Activity Log shows an abort.

QA test: trigger a test profile whose timezone puts it inside the window, confirm hold or abort matches the recorded setting, and confirm delivery validation runs on release when configured.

## Global Control Group

- Members receive no campaigns or Canvases on any channel except API campaigns, and except campaigns or Canvases carrying a tag in the group's exclusion settings. API-triggered campaigns and API-triggered Canvases are not exempt, and API-triggered Content Cards are withheld. Individual users cannot be removed from the group.
- Changing the percentage means disabling the group and saving a new one, which draws a new random selection. Former membership cannot be restored, so export members first (Global Control Group Settings tab or `/users/export/global_control_group`). Braze advises shuffling no more than once a month.
- Profiles that share an email address: if only one of them is in the group, the email is still sent to that address.
- Segments using random bucket filters for other tests can overlap the group.

Checking one user: the profile's Engagement tab, Miscellaneous section, shows the random bucket number and group status.

Failure signature: a consistent share of eligible users never enter or never receive, with no aborts and no cap events. Check group status before anything else.

QA rule: never disable or resize the group to make a test pass. If a test profile lands in the group, record it as a free test of the exclusion; otherwise mark the Global Control Group as "not exercised" in the plan. Measuring lift with it belongs to incrementality-test-design; if that skill is not installed, record the percentage, exclusion tags and last shuffle date and stop there.

## Canvas-level control and A/B variants

`/users/export/ids` with `canvases_received` returns `in_control` and `variation_name` per Canvas. A user in a Canvas control variant entered but was never meant to receive messages.

## Rate limiting (delivery speed)

- Rate limiting applies before the frequency cap; users removed by the cap are not replaced.
- Messages delayed 72 hours or more by a low rate limit are aborted.

## Record in the QA record

Propose cap, control group and consent decisions for `martech-context/decisions.md`; write them only after the user approves.

```yaml
controls_checked_on: "2026-10-17"
frequency_caps:
  - rule: "2 per 1 day, all channels, tag lifecycle_optional"
    exempt_messages: ["password reset (transactional)"]
quiet_hours:
  canvas: "21:00 to 08:00 local, send at next available time"
  workspace: "not enabled"
global_control_group:
  percentage: 5
  exclusion_tags: ["service"]
  last_shuffled: "2026-09-01"
subscription:
  email_groups: ["Product tips", "Events"]
  sms_group: "Marketing SMS"
  campaigns_sending_to_unsubscribed: []
rate_limit: none
```
