{
 "version": 1,
 "name": "Round 8: a partner-funded program, held out inside the partner's own list",
 "declared": "Before any code of this round existed and before any account, nomination, test or replication was computed. The commit records the date.",
 "known_before_declaration": "Only the published results of rounds 1 to 7. Rough arithmetic on round 5's formulas (written in the design note) placed the effect grid around the cost; no simulation of this round had been run on any random stream.",
 "unchanged": "Every earlier round's code, random streams, data, results and pages, apart from one link sentence on the entry page.",
 "seed": 20261008,
 "streams": "numpy default_rng(SeedSequence([20261008, 8, 808, k, ...])): k = 1 the history with no program, k = 2 the truth population, k = 3 the study run, k = 4 the replications (SeedSequence([20261008, 8, 808, 4, r]) for company r). No earlier round uses a stream that starts [20261008, 8, 808]. Within one draw the order is fixed: round 5's accounts(g, n), then z (partner rating noise, standard normal), v (random nomination key, uniform), w (holdout key, uniform), m (partner outreach key, uniform), each of length n.",
 "money": "Simulated US dollars at face value (no margin).",
 "question": "A partner co-funds a program for accounts it picks from its own book. What can a holdout drawn inside the partner's list tell you about the program's return, what can it not, and what is the minimum agreement with the partner that makes the return readable?",
 "company": "Round 5's free self-serve accounts of the same simulated company, with round 5's generator unchanged: intent q ~ Beta(2, 2), usage fields, upgrade within 90 days with p0 = 0.01 + 0.40 q^2, first-year value 600 x seats x (1 + 0.5 x expansion). The code imports motions.pqa.accounts, p0, value and expected_value without changes.",
 "partner_book": {
  "accounts_per_quarter": 3000,
  "meaning": "Each quarter, 3,000 of the company's free accounts are also customers of the partner. A fresh 3,000 each quarter."
 },
 "nomination": {
  "per_quarter": 300,
  "rules": {
   "sharp": "The partner rates each account in its book by rating = q + 0.05 z and nominates its top 300 each quarter: it knows its own customers well.",
   "loose": "rating = q + 0.25 z, top 300 each quarter: a noisier read of the same intent.",
   "random": "A reference, not a partner's choice: 300 drawn at random each quarter (the 300 smallest v). For the swap below the partner still rates its accounts with the loose rating."
  },
  "observed_by_the_company": "The company sees the nominated list and its own records (usage, upgrades, value). It never sees the partner's rating."
 },
 "program": {
  "effect_shapes": {
   "middle": "tau = s x 4 q (1 - q), round 5's shape: middle-intent accounts gain most; the likeliest buyers gain little because they upgrade anyway",
   "rising": "tau = s x q, round 5's shape: the likeliest buyers also gain most"
  },
  "scales_points": [0, 5, 10],
  "scenarios": ["none", "middle-5", "middle-10", "rising-5", "rising-10"],
  "programmed_probability": "min(0.95, p0 + tau), as round 5",
  "value_effect": "None: the program changes whether and when an account upgrades within the 90-day window, not its seats or expansion.",
  "cost_per_nominated_account_in_program_usd": 150,
  "cost_rationale": "The company's share of the co-funded program per account it reaches, the same as round 5's cost per worked account so the two rounds read on one scale. An assumption. Held-out accounts cost nothing."
 },
 "truth": {
  "population_quarters": 100,
  "per_rule_and_scenario": {
   "caused_per_nominated": "mean over nominated accounts of (p1 - p0) x expected_value",
   "credited_per_nominated": "attribution: mean over nominated accounts of p1 x expected_value, every upgrade in a program account credited to the program",
   "against_the_rest_per_nominated": "mean of p1 x expected_value over nominated accounts minus mean of p0 x expected_value over the book's other accounts",
   "caused_per_other_account": "mean over the book's accounts the partner did not nominate of (p1 - p0) x expected_value: what the program would cause per account if it reached them",
   "right_call": "keep if caused_per_nominated >= the cost, else stop"
  }
 },
 "test": {
  "assignment": "The company draws the holdout inside each quarter's nominated list: the round(h x 300) accounts with the smallest w are held out; the rest get the program. The draw is the company's, not the partner's.",
  "outcome": "First-year value of an upgrade within 90 days (0 without one), from the company's own records, the same window and definition in both groups.",
  "estimator": "Round 1's Neyman difference (gtm.budget.neyman): mean outcome in the program minus mean outcome held out, with its standard error; 90% interval estimate +/- 1.645 SE.",
  "decision": "keep if the estimate per nominated account is at least the cost (US$150), else stop.",
  "right_call": "The same rule on the true caused value per nominated account (truth above)."
 },
 "design": {
  "rule": "Round 1's design rule (motions.common.choose_design): over the grid, the shortest enrollment whose planned error, 1 - Phi(cost / SE), is at most 20%, then the smallest holdout share. Planned error is the same at zero effect and at twice the cost.",
  "holdout_shares": [0.1, 0.2, 0.3, 0.5],
  "enrollment_quarters": [1, 2, 3, 4, 6, 8],
  "max_planned_error": 0.2,
  "planning_sd": "The largest, over the three nomination rules, of the standard deviation of first-year value without the program among nominated accounts in the history (4 quarters of the partner's book, k = 1).",
  "readout": "One readout, one quarter after the last quarter's nominations (the 90-day window)."
 },
 "agreements": {
  "clean": "The partner hands over each quarter's list before the draw; the company draws the holdout; nobody moves an account afterwards; held-out accounts get none of the funded activity from either side.",
  "worked": "The partner runs its own unfunded outreach to half its held-out accounts (those with m < 0.5), with the same effect as the program. No cost to the company. The test is read as drawn.",
  "swapped": "After the draw, in each quarter, the partner moves the round(0.25 x held-out count) held-out accounts it rates highest into the program and moves the same number of the lowest-rated program accounts out to the held-out group, keeping the group sizes. Accounts get the program by their final group, and the test compares the final groups, as a team reading the report as it stands would."
 },
 "replications": {
  "companies": 2000,
  "common_draws": "Each company r is one draw of the partner's book for the chosen number of quarters (k = 4, r). Every rule, scenario and agreement of company r reads the same accounts and the same keys, so cells differ only by what they change."
 },
 "study_run": "One test per rule, scenario and agreement on the study run's draw (k = 3), reported with its interval.",
 "worked_example": "One company traced, chosen by this rule: in the cell (sharp rule, middle-10), the company whose clean estimate is the median of the 2,000 (sorted by estimate, then by company number; the lower median, position 999 counting from 0). The page shows its credit, its comparison with the rest of the book, its three reads and the truth.",
 "predictions": {
  "P1": {"text": "Under the sharp and loose rules, attribution credits the program with at least 3 times its caused value per nominated account in every scenario with an effect (four scenarios per rule)."},
  "P2": {"text": "Under the sharp and loose rules, comparing program accounts with the partner's other accounts gives at least twice the caused value per nominated account in every scenario with an effect, and more than the cost in the no-effect scenario."},
  "P3": {"text": "Clean agreement: the mean estimate over the 2,000 companies is within US$25 or 10% of the true caused value per nominated account, whichever is larger, in all 15 cells (3 rules x 5 scenarios)."},
  "P4": {"text": "Clean agreement, no effect: the test says stop in at least 80% of companies under each of the three rules."},
  "P5": {"text": "Worked agreement: the mean estimate is 40% to 60% of the clean mean estimate in every cell with an effect, and the right-call rate is lower than clean in every cell whose right call is keep.", "note": "The 50% centre is true by construction: half the held-out accounts get the same effect."},
  "P6": {"text": "Swapped agreement, no effect: the test says keep in at least 50% of companies under the sharp and the loose rule."},
  "P7": {"text": "Sharp rule: the true caused value per account the partner did not nominate is above that per nominated account in both middle scenarios, and below it in both rising scenarios."},
  "P8": {"text": "The chosen design needs at least 2 quarters of nominations: one quarter's list cannot be read at the cost within the error target."}
 },
 "stopping": "One run of 2,000 companies on the streams above. No run on any other stream, no rerun after looking. Anything added after the results is labelled on the page and kept in its own results key.",
 "outputs": ["results-partner-programs.json", "partner-programs-cells.csv", "partner-programs-replications.csv.gz"],
 "headline_rules": "Every figure is conditional: in this simulation, at these assumed effects, rules and cost. The h1 says so ('in simulation', 'tested on the same generator'), and any range in it holds over every cell it names. Right-call rates come from the generator the test was sized on (a self-test). The worked agreement's halved estimate is true by construction and the page says so at the figure. Attribution is a credit convention, not causal lift, and the page says so."
}
