Warn when a messaging experiment's branches use different triggers

Open
#17,660 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@jaredlockhart is already working on this.

Since Oct 7, 2026.

Assessment

This issue has not been assessed yet.

Description

A messaging experiment's exposure-basis comparison only holds if every branch shows its message under the same conditions. When one branch's messages use a different trigger from the others, the branches' exposed populations come from different moments in the browser, and the exposure event carries no message id to separate them. Across desktop and mobile messaging experiments, branches almost always share the same triggers, so a branch that differs is usually a configuration mistake.

Proposal

Add a non-blocking review warning for experiments (not rollouts) on desktop and mobile messaging features: if the triggers on any branch are not the same as on the rest, warn and name the feature and the branch or branches that differ. Stay silent when every branch's triggers match.

  • Compare each branch's set of message triggers. Desktop: the message's trigger object (id plus any params or patterns), across a single message or every message in a multi value. Mobile (messaging feature): each message's trigger-if-all names, resolved through the branch's own triggers map where the recipe defines them.
  • Skip branches with no messages, and template-less dummy control messages on desktop (is-control messages on mobile). A dummy control that doesn't match its treatment is already covered by the existing control-message warnings.

Acceptance criteria

  • Non-blocking warning on the review warning card naming the feature and the branches whose triggers differ.
  • Fires on desktop and on mobile messaging experiments.
  • Silent when all compared branches have the same triggers, for rollouts, for experiments with fewer than two branches carrying messages, and for non-messaging features.

┆Issue is synchronized with this Jira Task

Dominant language
Python
Stars
152
Forks
231
Avg merge
23h 54m
Merged PRs (30d)
201

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/experimenter

All issues in mozilla/experimenter

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.