Skip to content

PlayMix.compiled

Emitted each time a Play Mix is compiled.

PlayMix.compile emits PlayMix.compiled when it completes on a Play Mix.

PropertyValue
Emitted byPlayMix.compile
NounPlay Mix
WakesNone.

Payload

Each delivery is an Event record. data holds what PlayMix.compile returns.

FieldTypeRequiredDescription
namestringrequiredPlayMix.compiled.
atdatetimerequiredWhen it happened.
seqintegerIts position in the namespace, one more than the Event before; any seq is a cursor into the history.
datajsonrequiredThe Thing as the Action left it.
data.playMixPlay MixrequiredThe new version, or the current one when nothing moved.
data.playMix.versionintegerrequiredThe version number; each weekly compile that changes a Play’s state or budget adds one.
data.playMix.playsjsonrequiredEach Play with its state (gated, running or paused), its monthly budget, its stop rule and its payback last week.
data.playMix.gatesjsonEach gate: the Metric and threshold that opens it, and the Plays it opens.
data.playMix.crossoverstringThe reading that ends seed mode, such as compounding share at 50 percent for 4 weeks.
data.playMix.difftextWhat changed from the previous version, one line per Play, with the reading that moved it.
data.playMix.fromstringLineage: the slot it compiles from, as Hypothesis#<slot>@v<version>.
data.playMix.compiledAtdatetimerequiredWhen 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
}