{
  "format": "Bus Bunching Lab scenario",
  "notes": "Units: seconds from time zero; bus numbers start at 1. At equal timestamps, mandatory arrivals and completions precede listed manual actions, then one automatic decision batch, then door starts and departures. Cutoff includes arrivals at that timestamp, cancels later demand and ends new automatic decisions. The temporal control window is start inclusive, end exclusive; its automatic components restore normal service at end. Manual bounded instructions may finish or expire during drain. Cohort includes all present just before its boundary plus births through cutoff, retaining original whole-journey clocks. until_recovered uses forward gap at most 110% of ideal; a convoy leader owns the long wrap arc. Stopping precedes overhead and sequential door service; both overlap holds. Starting extends the following travel segment after service/holds. True bypasses incur neither stopping nor starting penalties. A boarding_limit permits the specified number of new boardings per visit; existing boarding finishes. See scenario-guide.html for bounds and definitions.",
  "name": "cost-hold",
  "description": "Matched skip and hold comparison.",
  "setup": {
    "stops": 12,
    "buses": 4,
    "travel_seconds_per_segment": 25,
    "passengers_per_stop_per_minute": 3,
    "arrival_pattern": "fixed",
    "boarding_seconds_per_passenger": 2,
    "debarking_seconds_per_passenger": 1,
    "ride_length_stops": 3,
    "ride_pattern": "random",
    "random_seed": 1499838779
  },
  "model": {
    "stop_overhead_seconds": 0,
    "stopping_delay_seconds": 12,
    "starting_delay_seconds": 12,
    "bus_capacity": null,
    "allow_overtaking": true,
    "calibration_notes": "Illustrative teaching model; not empirically calibrated."
  },
  "observation": {
    "cohort_start_seconds": 900,
    "arrival_cutoff_seconds": 3600,
    "drain_max_seconds": 14400
  },
  "interventions": [
    {
      "at_seconds": 900,
      "bus": 1,
      "action": "hold",
      "seconds": 120
    }
  ],
  "recovery_policy": {
    "rule": "passenger-cost",
    "rule_explanation": "Event-based heuristic at stop arrivals and release opportunities. Use observed usable service and predicted eligible follower times, bounded onboard-cost versus queue-benefit holding, repeat budgets, destination-specific coverage and repeated-denial safeguards. Unknown or unsuitable coverage restores normal service. Predictions use current information, not future demand. This is illustrative and not an optimizer.",
    "start_seconds": 1200,
    "end_seconds": 3600,
    "options": {
      "response": "hold",
      "decisionMode": "events",
      "pollSeconds": 30,
      "maxHold": 60,
      "maxVisitHold": 60,
      "repeatBudget": 900,
      "cooldownStops": 0,
      "benefitFactor": 1,
      "targetSeconds": 0,
      "maxFollowerEta": 600,
      "maxDenials": 2,
      "maxServiceGap": 600,
      "boardingPassengers": 5,
      "restrictionStops": 6,
      "leadStops": 1,
      "serveEvery": 2,
      "restrictionMaxSeconds": 600
    }
  }
}
