{
 "schema": "pacing-delayed-conversions/protocol/1",
 "note": "Frozen with DESIGN.md before any arm runs. Only the calibration block may change, once, before the arms run.",
 "target_return": 3.0,
 "history_days": 56,
 "test_days": 56,
 "day0_weekday": "monday",
 "segments": [
  {"name": "A", "rate": 0.08, "mean_value": 30, "median_delay_days": 0.5, "opps_per_hour": 42},
  {"name": "B", "rate": 0.06, "mean_value": 50, "median_delay_days": 1.0, "opps_per_hour": 42},
  {"name": "C", "rate": 0.05, "mean_value": 80, "median_delay_days": 1.5, "opps_per_hour": 42},
  {"name": "D", "rate": 0.04, "mean_value": 125, "median_delay_days": 3.0, "opps_per_hour": 42},
  {"name": "E", "rate": 0.03, "mean_value": 200, "median_delay_days": 5.0, "opps_per_hour": 42},
  {"name": "F", "rate": 0.02, "mean_value": 400, "median_delay_days": 8.0, "opps_per_hour": 42}
 ],
 "value_sigma": 0.5,
 "delay_sigma": 1.0,
 "volume": {
  "hour_profile": "raw(h) = 0.35 + exp(-((h - 13) / 3)^2) + exp(-((h - 20) / 2.5)^2), h = 0..23 at the hour's middle (h + 0.5), scaled to mean 1 over the day",
  "weekend_factor": 0.8,
  "weekly_sigma": 0.08
 },
 "competition": {
  "median_per_value_per_click": 0.6,
  "sigma": 0.6,
  "hour_profile": "1 + 0.15 * bump(h) / max(bump), bump(h) = exp(-((h - 13) / 3)^2) + exp(-((h - 20) / 2.5)^2), h at the hour's middle",
  "weekend_factor": 0.9,
  "weekly_sigma": 0.06
 },
 "weekly_factor": "exp(sigma * z - sigma^2 / 2), z standard normal, one draw per week and per kind (volume, competition) for the 16 weeks",
 "drift": {"day": 28, "up_segment": "F", "down_segment": "B", "up_factor": "u", "down_factor": "1/u"},
 "cells": {"delay_factor": [0.5, 1.0, 2.0], "drift_u": [1.25, 1.5, 2.0], "base": {"delay_factor": 1.0, "drift_u": 1.5}},
 "seeds": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
 "bidding": {
  "grid": "history informed bid of the segment on day 0 times 2^(j/4), j = -8..8",
  "lookback_days": 14,
  "kappa_exponent": 0.5,
  "kappa_step_min": 0.85,
  "kappa_step_max": 1.18,
  "prior_clicks": 20,
  "history_kappa_start": 0.5
 },
 "pacing": {"even": "plan grows evenly over 24 hours; q *= 1.2 (max 1) after an hour behind plan, q *= 0.8 after an hour ahead; stop at the budget", "q_start": 1.0, "cap": "enter every auction until the budget is reached"},
 "prior_window_days": [-56, -29],
 "exploration": {"share": 0.05, "steps_each_side": 4},
 "reaction": {"tolerance": 0.2, "hold_days": 3},
 "ope": {"logging_arm": "explore", "rewards": "complete outcomes", "direct_model": "mean per segment, week and level; fallback segment and level; then 0"},
 "calibration": {"rule": "informed bidder alone, base cell, budget cap on: spend 85% to 100% of budget and return within 10% of target, else move competition median_per_value_per_click once", "status": "pending"}
}
