{
 "$schema": "../world.schema.json",
 "recipe": "cp-world/world@1",
 "id": "city",
 "name": "C&P City",
 "tagline": "agency pipeline",
 "aria": "C&P Agency City diorama: one slab, every district, the six couriers",
 "hint": "Click the Seal Court to open the press",
 "skin": {
  "slot": "cp64"
 },
 "look": {
  "sky": "#172a52"
 },
 "slab": {
  "shape": "rect",
  "hx": 9,
  "hz": 9,
  "top": "#45824a",
  "side": "#7f4d2e",
  "band": "#3e2318"
 },
 "road": {
  "ring": {
   "r": 5.2,
   "n": 48
  },
  "width": 0.9,
  "color": "#dccba3"
 },
 "machines": {},
 "districts": [
  {
   "id": "intake",
   "name": "Intake",
   "at": {
    "polar": [
     135,
     7.2
    ]
   },
   "face": "center",
   "door": 0.9,
   "building": {
    "parts": [
     {
      "box": [
       1.8,
       1,
       1.4
      ],
      "color": "#f2e8c9",
      "at": [
       0,
       0,
       -0.3
      ]
     },
     {
      "prism": [
       1.9,
       1.6,
       0.8
      ],
      "color": "#b5304b",
      "at": [
       0,
       1,
       -0.3
      ]
     },
     {
      "box": [
       0.35,
       0.6,
       0.05
      ],
      "color": "#7f4d2e",
      "at": [
       0,
       0,
       0.42
      ]
     },
     {
      "cyl": [
       0.05,
       0.05,
       0.5
      ],
      "color": "#3a3550",
      "at": [
       0.75,
       0,
       0.6
      ]
     },
     {
      "box": [
       0.25,
       0.2,
       0.18
      ],
      "color": "#dc4c5e",
      "at": [
       0.75,
       0.5,
       0.6
      ]
     }
    ]
   }
  },
  {
   "id": "account",
   "name": "Account",
   "hero": "account_house",
   "at": {
    "polar": [
     90,
     7.2
    ]
   },
   "face": "center",
   "door": 0.9,
   "building": {
    "parts": [
     {
      "box": [
       1.6,
       2.6,
       1.4
      ],
      "color": "#ef7a2a",
      "at": [
       0,
       0,
       -0.4
      ]
     },
     {
      "box": [
       1.2,
       0.9,
       1
      ],
      "color": "#ffa04a",
      "at": [
       0,
       2.6,
       -0.4
      ]
     },
     {
      "box": [
       0.4,
       0.5,
       0.05
      ],
      "color": "#172a52",
      "at": [
       0,
       0,
       0.32
      ]
     },
     {
      "box": [
       1.62,
       0.12,
       1.42
      ],
      "color": "#6b2513",
      "at": [
       0,
       0.9,
       -0.4
      ]
     },
     {
      "box": [
       1.62,
       0.12,
       1.42
      ],
      "color": "#6b2513",
      "at": [
       0,
       1.5,
       -0.4
      ]
     },
     {
      "box": [
       1.62,
       0.12,
       1.42
      ],
      "color": "#6b2513",
      "at": [
       0,
       2.1,
       -0.4
      ]
     }
    ]
   }
  },
  {
   "id": "creative",
   "name": "Creative and Router",
   "hero": "creative_forge",
   "at": {
    "polar": [
     45,
     7.2
    ]
   },
   "face": "center",
   "door": 0.9,
   "building": {
    "parts": [
     {
      "box": [
       2,
       1.2,
       1.5
      ],
      "color": "#cc561d",
      "at": [
       0,
       0,
       -0.3
      ]
     },
     {
      "prism": [
       2.1,
       1.7,
       0.6
      ],
      "color": "#3a3550",
      "at": [
       0,
       1.2,
       -0.3
      ]
     },
     {
      "cyl": [
       0.2,
       0.25,
       1.2,
       6
      ],
      "color": "#5b5873",
      "at": [
       0.6,
       1.2,
       -0.6
      ]
     },
     {
      "cyl": [
       0.04,
       0.04,
       0.9,
       4
      ],
      "color": "#7f4d2e",
      "at": [
       -0.9,
       0,
       0.7
      ]
     },
     {
      "box": [
       0.5,
       0.14,
       0.04
      ],
      "color": "#ffc97a",
      "at": [
       -0.75,
       0.65,
       0.7
      ]
     }
    ]
   }
  },
  {
   "id": "tribunal",
   "name": "Audit Tribunal",
   "hero": "audit_tribunal",
   "heroSize": 1.9,
   "at": {
    "polar": [
     0,
     7.2
    ]
   },
   "face": "center",
   "door": 0.9,
   "building": {
    "parts": [
     {
      "box": [
       2,
       0.25,
       1.6
      ],
      "color": "#b8b9c8",
      "at": [
       0,
       0,
       -0.2
      ]
     },
     {
      "cyl": [
       0.12,
       0.12,
       1.2,
       8
      ],
      "color": "#e0e0e8",
      "at": [
       -0.75,
       0.25,
       0.3
      ]
     },
     {
      "cyl": [
       0.12,
       0.12,
       1.2,
       8
      ],
      "color": "#e0e0e8",
      "at": [
       -0.25,
       0.25,
       0.3
      ]
     },
     {
      "cyl": [
       0.12,
       0.12,
       1.2,
       8
      ],
      "color": "#e0e0e8",
      "at": [
       0.25,
       0.25,
       0.3
      ]
     },
     {
      "cyl": [
       0.12,
       0.12,
       1.2,
       8
      ],
      "color": "#e0e0e8",
      "at": [
       0.75,
       0.25,
       0.3
      ]
     },
     {
      "box": [
       1.6,
       1.2,
       0.8
      ],
      "color": "#6fa6d8",
      "at": [
       0,
       0.25,
       -0.5
      ]
     },
     {
      "box": [
       2,
       0.2,
       1.6
      ],
      "color": "#b8b9c8",
      "at": [
       0,
       1.45,
       -0.2
      ]
     },
     {
      "prism": [
       2,
       1.6,
       0.45
      ],
      "color": "#e0e0e8",
      "at": [
       0,
       1.65,
       -0.2
      ]
     }
    ]
   }
  },
  {
   "id": "packaging",
   "name": "Packaging",
   "hero": "packaging_works",
   "at": {
    "polar": [
     315,
     7.2
    ]
   },
   "face": "center",
   "door": 0.9,
   "building": {
    "parts": [
     {
      "box": [
       2.2,
       1.1,
       1.5
      ],
      "color": "#237d70",
      "at": [
       0,
       0,
       -0.3
      ]
     },
     {
      "box": [
       2.25,
       0.18,
       1.55
      ],
      "color": "#12403f",
      "at": [
       0,
       1.1,
       -0.3
      ]
     },
     {
      "box": [
       0.8,
       0.7,
       0.05
      ],
      "color": "#0c2629",
      "at": [
       0,
       0,
       0.47
      ]
     },
     {
      "box": [
       0.4,
       0.4,
       0.4
      ],
      "color": "#c48b55",
      "at": [
       0.9,
       0,
       0.75
      ]
     },
     {
      "box": [
       0.4,
       0.4,
       0.4
      ],
      "color": "#a3693e",
      "at": [
       0.95,
       0.4,
       0.75
      ]
     },
     {
      "box": [
       0.4,
       0.4,
       0.4
      ],
      "color": "#c48b55",
      "at": [
       -0.95,
       0,
       0.8
      ]
     }
    ]
   }
  },
  {
   "id": "feedback",
   "name": "Feedback and Oracle",
   "hero": "feedback_observatory",
   "at": {
    "polar": [
     270,
     7.2
    ]
   },
   "face": "center",
   "door": 0.9,
   "building": {
    "parts": [
     {
      "cyl": [
       0.85,
       0.95,
       1.1,
       12
      ],
      "color": "#a8d0f0",
      "at": [
       0,
       0,
       -0.2
      ]
     },
     {
      "geo": "sphere",
      "args": [
       0.85,
       12,
       6,
       0,
       "360deg",
       0,
       "90deg"
      ],
      "color": "#4880ba",
      "at": [
       0,
       1.1,
       -0.2
      ]
     },
     {
      "cyl": [
       0.12,
       0.16,
       0.9,
       6
      ],
      "color": "#3a3550",
      "at": [
       0,
       1.4,
       0.1
      ],
      "rot": [
       0.9,
       0,
       0
      ]
     }
    ]
   }
  },
  {
   "id": "seal",
   "name": "Seal Court",
   "hero": "seal_court",
   "at": {
    "polar": [
     225,
     7.5
    ]
   },
   "face": "center",
   "door": 1.2,
   "scale": 1.2,
   "slots": [
    [
     -1.33333,
     1.33
    ],
    [
     1.33333,
     1.33
    ],
    [
     -1.625,
     1.33
    ],
    [
     1.625,
     1.33
    ],
    [
     -1.91667,
     1.33
    ],
    [
     1.91667,
     1.33
    ]
   ],
   "building": {
    "parts": [
     {
      "box": [
       2.8,
       0.22,
       0.5
      ],
      "color": "#c2ab86",
      "at": [
       0,
       0,
       0.95
      ]
     },
     {
      "box": [
       2.5,
       0.22,
       0.5
      ],
      "color": "#c2ab86",
      "at": [
       0,
       0.22,
       0.7
      ]
     },
     {
      "box": [
       2.2,
       0.22,
       0.5
      ],
      "color": "#c2ab86",
      "at": [
       0,
       0.44,
       0.45
      ]
     },
     {
      "box": [
       2.8,
       0.66,
       2
      ],
      "color": "#a38c6e",
      "at": [
       0,
       0,
       -0.55
      ]
     },
     {
      "cyl": [
       0.13,
       0.13,
       1.3,
       8
      ],
      "color": "#f2e8c9",
      "at": [
       -1.1,
       0.66,
       0.2
      ]
     },
     {
      "cyl": [
       0.13,
       0.13,
       1.3,
       8
      ],
      "color": "#f2e8c9",
      "at": [
       -0.37,
       0.66,
       0.2
      ]
     },
     {
      "cyl": [
       0.13,
       0.13,
       1.3,
       8
      ],
      "color": "#f2e8c9",
      "at": [
       0.37,
       0.66,
       0.2
      ]
     },
     {
      "cyl": [
       0.13,
       0.13,
       1.3,
       8
      ],
      "color": "#f2e8c9",
      "at": [
       1.1,
       0.66,
       0.2
      ]
     },
     {
      "box": [
       2,
       1.3,
       1
      ],
      "color": "#c99a1f",
      "at": [
       0,
       0.66,
       -0.75
      ]
     },
     {
      "box": [
       3,
       0.22,
       2.2
      ],
      "color": "#9a6e14",
      "at": [
       0,
       1.96,
       -0.45
      ]
     },
     {
      "prism": [
       3,
       2.2,
       0.75
      ],
      "color": "#ebc137",
      "at": [
       0,
       2.18,
       -0.45
      ]
     },
     {
      "cyl": [
       0.05,
       0.05,
       2.3,
       5
      ],
      "color": "#5b5873",
      "at": [
       0,
       2.6,
       -0.45
      ]
     },
     {
      "group": [
       {
        "box": [
         1,
         0.55,
         0.03
        ],
        "color": "#dc4c5e",
        "at": [
         0.52,
         -0.55,
         0
        ]
       }
      ],
      "at": [
       0,
       3,
       -0.45
      ],
      "id": "flag"
     },
     {
      "lamp": 0.22,
      "at": [
       0,
       5.05,
       -0.45
      ],
      "id": "lamp"
     },
     {
      "parcel": 1.35,
      "at": [
       -0.7,
       0.22,
       0.95
      ],
      "hidden": true,
      "id": "parcels[]"
     },
     {
      "parcel": 1.35,
      "at": [
       0,
       0.22,
       0.95
      ],
      "hidden": true,
      "id": "parcels[]"
     },
     {
      "parcel": 1.35,
      "at": [
       0.7,
       0.22,
       0.95
      ],
      "hidden": true,
      "id": "parcels[]"
     },
     {
      "parcel": 1.35,
      "at": [
       -0.7,
       0.44,
       0.7
      ],
      "hidden": true,
      "id": "parcels[]"
     },
     {
      "parcel": 1.35,
      "at": [
       0,
       0.44,
       0.7
      ],
      "hidden": true,
      "id": "parcels[]"
     },
     {
      "parcel": 1.35,
      "at": [
       0.7,
       0.44,
       0.7
      ],
      "hidden": true,
      "id": "parcels[]"
     },
     {
      "parcel": 1.35,
      "at": [
       -0.7,
       0.66,
       0.45
      ],
      "hidden": true,
      "id": "parcels[]"
     },
     {
      "parcel": 1.35,
      "at": [
       0,
       0.66,
       0.45
      ],
      "hidden": true,
      "id": "parcels[]"
     },
     {
      "parcel": 1.35,
      "at": [
       0.7,
       0.66,
       0.45
      ],
      "hidden": true,
      "id": "parcels[]"
     }
    ],
    "brick": {
     "spec": "seal-court-kiosk",
     "model": "../bricks/models/seal-court-kiosk.glb"
    }
   }
  },
  {
   "id": "exit",
   "name": "Exit gate",
   "at": {
    "polar": [
     180,
     7.2
    ]
   },
   "face": "center",
   "door": 0.2,
   "building": {
    "parts": [
     {
      "box": [
       0.25,
       1.4,
       0.25
      ],
      "color": "#8a8aa0",
      "at": [
       -0.6,
       0,
       0
      ]
     },
     {
      "box": [
       0.25,
       1.4,
       0.25
      ],
      "color": "#8a8aa0",
      "at": [
       0.6,
       0,
       0
      ]
     },
     {
      "box": [
       1.5,
       0.25,
       0.35
      ],
      "color": "#5b5873",
      "at": [
       0,
       1.4,
       0
      ]
     }
    ]
   }
  }
 ],
 "decor": [
  {
   "geo": "circle",
   "args": [
    4.75,
    40,
    0,
    "360deg"
   ],
   "ops": [
    [
     "rotateX",
     "-90deg"
    ]
   ],
   "color": "#66a052",
   "at": [
    0,
    0.015,
    0
   ],
   "shadow": false
  },
  {
   "group": [
    {
     "box": [
      2.6,
      0.3,
      1
     ],
     "color": "#a38c6e"
    },
    {
     "geo": "torus",
     "args": [
      0.42,
      0.13,
      5,
      14,
      "261deg"
     ],
     "color": "#e0e0e8",
     "at": [
      -0.75,
      0.85,
      0
     ],
     "rot": [
      0,
      0,
      0.86394
     ]
    },
    {
     "geo": "octahedron",
     "args": [
      0.18,
      0
     ],
     "color": "#ebc137",
     "at": [
      0,
      0.7,
      0
     ]
    },
    {
     "box": [
      0.24,
      1,
      0.26
     ],
     "color": "#e0e0e8",
     "at": [
      0.55,
      0.3,
      0
     ]
    },
    {
     "geo": "torus",
     "args": [
      0.24,
      0.12,
      5,
      10,
      "180deg"
     ],
     "color": "#e0e0e8",
     "at": [
      0.67,
      1.06,
      0
     ],
     "rot": [
      0,
      0,
      -1.5708
     ]
    }
   ],
   "rot": [
    0,
    0.7854,
    0
   ]
  },
  {
   "tree": 0.9,
   "at": [
    -2.6,
    0,
    1.6
   ]
  },
  {
   "tree": 0.9,
   "at": [
    2.4,
    0,
    -2
   ]
  },
  {
   "tree": 0.9,
   "at": [
    -1,
    0,
    -3.3
   ]
  },
  {
   "tree": 0.9,
   "at": [
    3.1,
    0,
    1.2
   ]
  },
  {
   "tree": 0.9,
   "at": [
    -3.4,
    0,
    -1
   ]
  },
  {
   "tree": 0.9,
   "at": [
    0.8,
    0,
    3.4
   ]
  },
  {
   "box": [
    0.9,
    0.25,
    0.3
   ],
   "color": "#7f4d2e",
   "at": [
    -0.55567,
    0,
    3.15138
   ],
   "rot": [
    0,
    -3.31613,
    0
   ]
  },
  {
   "box": [
    0.9,
    0.25,
    0.3
   ],
   "color": "#7f4d2e",
   "at": [
    -2.45134,
    0,
    -2.05692
   ],
   "rot": [
    0,
    -5.41052,
    0
   ]
  },
  {
   "box": [
    0.9,
    0.25,
    0.3
   ],
   "color": "#7f4d2e",
   "at": [
    2.77128,
    0,
    -1.6
   ],
   "rot": [
    0,
    -7.33038,
    0
   ]
  },
  {
   "tree": 1.1,
   "at": [
    8.2,
    0,
    -8.2
   ]
  },
  {
   "tree": 1.1,
   "at": [
    -8.2,
    0,
    8
   ]
  },
  {
   "tree": 1.1,
   "at": [
    -8.3,
    0,
    -8.3
   ]
  },
  {
   "tree": 1.1,
   "at": [
    8.1,
    0,
    4.3
   ]
  },
  {
   "tree": 1.1,
   "at": [
    -3.6,
    0,
    8.3
   ]
  },
  {
   "tree": 1.1,
   "at": [
    8.3,
    0,
    -2.4
   ]
  },
  {
   "tree": 1.1,
   "at": [
    -8.4,
    0,
    1
   ]
  },
  {
   "tree": 1.1,
   "at": [
    1.5,
    0,
    -8.4
   ]
  },
  {
   "tree": 1.1,
   "at": [
    -6,
    0,
    -8.2
   ]
  },
  {
   "tree": 1.1,
   "at": [
    4.2,
    0,
    8.4
   ]
  }
 ],
 "props": {
  "door": [
   "painted_wooden_bench",
   "planter_box_02"
  ],
  "near": {
   "packaging": [
    "barrel_01",
    "cardboard_box_01",
    "cardboard_box_01",
    "barrel_01"
   ],
   "intake": [
    "cardboard_box_01",
    "cardboard_box_01"
   ]
  },
  "scatter": {
   "shrub_03": 8,
   "fern_02": 4
  },
  "cars": 2
 },
 "cast": [
  {
   "id": "detective",
   "near": "intake",
   "do": "walk",
   "side": 1
  },
  {
   "id": "round_chef",
   "near": "packaging",
   "do": "idle",
   "side": 1
  },
  {
   "id": "emirati_grandfather",
   "near": "seal",
   "do": "idle",
   "side": -1
  },
  {
   "id": "moroccan_influencer",
   "near": "creative",
   "do": "walk",
   "side": -1
  }
 ],
 "crew": [
  {
   "name": "Hessa",
   "person": "city-hessa",
   "agents": [
    "intake.*",
    "audit_intake.*",
    "intake"
   ],
   "role": "carries a brief through the city",
   "team": "couriers",
   "look": {
    "shirt": "#dc4c5e",
    "skin": "#c48b55"
   },
   "home": {
    "polar": [
     40,
     2.3
    ]
   }
  },
  {
   "name": "Omar",
   "person": "city-omar",
   "agents": [
    "account.*",
    "account"
   ],
   "role": "carries a brief through the city",
   "team": "couriers",
   "look": {
    "shirt": "#305f98",
    "skin": "#a3693e"
   },
   "home": {
    "polar": [
     100,
     2.3
    ]
   }
  },
  {
   "name": "Shahd",
   "person": "city-shahd",
   "agents": [
    "creative.*",
    "creative"
   ],
   "role": "carries a brief through the city",
   "team": "couriers",
   "look": {
    "shirt": "#36a08a",
    "skin": "#e0b47a"
   },
   "home": {
    "polar": [
     160,
     2.3
    ]
   }
  },
  {
   "name": "Fahad",
   "person": "city-fahad",
   "agents": [
    "audit.*",
    "audit"
   ],
   "role": "carries a brief through the city",
   "team": "couriers",
   "look": {
    "shirt": "#ef7a2a",
    "skin": "#7f4d2e"
   },
   "home": {
    "polar": [
     220,
     2.3
    ]
   }
  },
  {
   "name": "Yousra",
   "person": "city-yousra",
   "agents": [
    "review.*",
    "packaging"
   ],
   "role": "carries a brief through the city",
   "team": "couriers",
   "look": {
    "shirt": "#8a8aa0",
    "skin": "#c48b55"
   },
   "home": {
    "polar": [
     280,
     2.3
    ]
   }
  },
  {
   "name": "Bilal",
   "person": "city-bilal",
   "agents": [
    "feedback.*",
    "feedback"
   ],
   "role": "carries a brief through the city",
   "team": "couriers",
   "look": {
    "shirt": "#ebc137",
    "skin": "#e0b47a"
   },
   "home": {
    "polar": [
     340,
     2.3
    ]
   }
  }
 ],
 "life": {
  "seed": 7,
  "vehicles": {
   "vans": 2,
   "scooters": 2,
   "lane": 0.2
  },
  "pigeons": {
   "count": 6,
   "area": [
    [
     -1.6,
     1.4
    ],
    [
     1.6,
     2.6
    ]
   ]
  },
  "lamps": {
   "count": 8,
   "side": -1,
   "offset": 0.7,
   "start": 0.25
  },
  "steam": [
   {
    "district": "packaging",
    "top": true
   }
  ],
  "gulls": {
   "count": 3,
   "center": [
    0,
    0
   ],
   "radius": [
    3,
    5
   ],
   "height": [
    4.2,
    5.2
   ]
  }
 },
 "feed": {
  "include": [
   "*"
  ],
  "exclude": [
   "activation.*",
   "strategy.*",
   "studio.*",
   "meeting.*",
   "approval.*"
  ],
  "sandbox": true,
  "drives": {
   "run.created": "a courier picks up the brief; data.gates says which stages wait on sign-off",
   "stage.started": "the run's courier walks to that stage's district",
   "gate.opened": "a parcel joins the Seal Court steps, the flag goes up, the lamp lights",
   "gate.passed": "the parcel leaves the steps, the courier carries on",
   "gate.returned": "the courier is sent back, unsealed",
   "run.released": "the courier carries the release out of the exit gate",
   "run.cancelled": "the courier stops"
  },
  "sample": {
   "length": 62,
   "events": [
    {
     "t": 0,
     "type": "run.created",
     "data": {
      "client": "Sample brand A",
      "gates": {
       "account": "manual",
       "audit": "manual"
      }
     },
     "run": "a"
    },
    {
     "t": 0.5,
     "type": "stage.started",
     "run": "a",
     "stage": "intake"
    },
    {
     "t": 5,
     "type": "stage.started",
     "run": "a",
     "stage": "account"
    },
    {
     "t": 4,
     "type": "run.created",
     "data": {
      "client": "Sample brand B",
      "gates": {
       "account": "manual"
      }
     },
     "run": "b"
    },
    {
     "t": 4.5,
     "type": "stage.started",
     "run": "b",
     "stage": "intake"
    },
    {
     "t": 10,
     "type": "gate.opened",
     "run": "a",
     "stage": "account"
    },
    {
     "t": 11,
     "type": "stage.started",
     "run": "b",
     "stage": "account"
    },
    {
     "t": 13,
     "type": "run.created",
     "data": {
      "client": "Sample brand C",
      "gates": {}
     },
     "run": "c"
    },
    {
     "t": 13.5,
     "type": "stage.started",
     "run": "c",
     "stage": "intake"
    },
    {
     "t": 17,
     "type": "gate.opened",
     "run": "b",
     "stage": "account"
    },
    {
     "t": 19,
     "type": "stage.started",
     "run": "c",
     "stage": "account"
    },
    {
     "t": 22,
     "type": "gate.passed",
     "run": "a",
     "stage": "account"
    },
    {
     "t": 22.5,
     "type": "stage.started",
     "run": "a",
     "stage": "creative"
    },
    {
     "t": 24,
     "type": "stage.started",
     "run": "c",
     "stage": "creative"
    },
    {
     "t": 28,
     "type": "gate.passed",
     "run": "b",
     "stage": "account"
    },
    {
     "t": 28.5,
     "type": "stage.started",
     "run": "b",
     "stage": "creative"
    },
    {
     "t": 31,
     "type": "stage.started",
     "run": "a",
     "stage": "audit"
    },
    {
     "t": 33,
     "type": "stage.started",
     "run": "c",
     "stage": "audit"
    },
    {
     "t": 36,
     "type": "gate.opened",
     "run": "a",
     "stage": "audit"
    },
    {
     "t": 38,
     "type": "stage.started",
     "run": "c",
     "stage": "packaging"
    },
    {
     "t": 40,
     "type": "stage.started",
     "run": "b",
     "stage": "audit"
    },
    {
     "t": 43,
     "type": "stage.started",
     "run": "c",
     "stage": "feedback"
    },
    {
     "t": 47,
     "type": "run.released",
     "run": "c"
    },
    {
     "t": 50,
     "type": "stage.started",
     "run": "b",
     "stage": "packaging"
    }
   ]
  }
 },
 "behaviour": {
  "driver": "city"
 }
}
