# PlayMix.compiled

URL: /business/events/PlayMix.compiled · Id: `event:PlayMix.compiled`

> Emitted each time a Play Mix is compiled.

[PlayMix.compile](/business/nouns/play-mix/compile) emits `PlayMix.compiled` when it completes on a [Play Mix](/business/nouns/play-mix).

| Property | Value |
| --- | --- |
| Emitted by | [PlayMix.compile](/business/nouns/play-mix/compile) |
| Noun | [Play Mix](/business/nouns/play-mix) |
| Wakes | None. |

### Payload
Each delivery is an [Event](/business/nouns/event) record. `data` holds what [PlayMix.compile](/business/nouns/play-mix/compile) returns.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | Yes | `PlayMix.compiled`. |
| `at` | `datetime` | Yes | When it happened. |
| `seq` | `integer` | No | Its position in the namespace, one more than the Event before; any seq is a cursor into the history. |
| `data` | `json` | Yes | The Thing as the Action left it. |
| `data.playMix` | [Play Mix](/business/nouns/play-mix) | Yes | The new version, or the current one when nothing moved. |
| `data.playMix.version` | `integer` | Yes | The version number; each weekly compile that changes a Play’s state or budget adds one. |
| `data.playMix.plays` | `json` | Yes | Each Play with its state (`gated`, `running` or `paused`), its monthly budget, its stop rule and its payback last week. |
| `data.playMix.gates` | `json` | No | Each gate: the Metric and threshold that opens it, and the Plays it opens. |
| `data.playMix.crossover` | `string` | No | The reading that ends seed mode, such as compounding share at 50 percent for 4 weeks. |
| `data.playMix.diff` | `text` | No | What changed from the previous version, one line per Play, with the reading that moved it. |
| `data.playMix.from` | `string` | No | Lineage: the slot it compiles from, as `Hypothesis#<slot>@v<version>`. |
| `data.playMix.compiledAt` | `datetime` | Yes | When the compile ran. |

### Example
```json
{
  "$id": "https://api.sb/routewise.dev/events/event_1",
  "$type": "Event",
  "name": "PlayMix.compiled",
  "at": "2026-10-22T12:00:00Z",
  "data": {
    "playMix": {
      "$id": "https://api.sb/routewise.dev/play-mixes/play_mix_1",
      "$type": "PlayMix",
      "version": 1,
      "plays": {},
      "gates": {},
      "crossover": "Example crossover",
      "diff": "Example diff",
      "from": "Hypothesis#approach@v1",
      "compiledAt": "2026-10-22T12:00:00Z"
    }
  },
  "seq": 1
}
```