Skip to content

Plays

A file in plays/ is one Play, a named strategy with the Process that runs it, the Metric it moves and its budget.

A file in plays/ is one Play: a named, repeatable strategy with the Process that runs it, the Metric it moves and its budget.

  • plays/
  • manager-referrals.mdx

Reference

MDX, frontmatter only.

KeyTypeHolds
familystringThe kind of Play, such as demand
processProcess idThe Process in workflows/ that runs it
metricMetric idWhat it moves
budget{ amount, currency, per }What it may spend
cohortstringWho it targets

Examples

Minimal

plays/manager-referrals.mdx
---
family: demand
process: referrals
---

Leaseline

plays/manager-referrals.mdx
---
family: demand
process: referrals
metric: customers.new
budget: { amount: 500, currency: USD, per: month }
cohort: managers with 20 to 200 units
---

What it builds

The SalesBuilder compiles a demand Play; the StartupBuilder compiles the rest. Play.apply starts it.

  • a Play and an Experiment per rollout
  • every write tagged with the Play id, so a rollback reverts them together
  • the Event Play.applied

Good to know

  • A Play that loses its Experiment goes dormant with its writes reverted.