{
  "version": 1,
  "status": "predeclared before headline generation",
  "synthetic": true,
  "currency": "fictional USD",
  "seed": 20261008,
  "development_seed": 1907,
  "population": {
    "months": 36,
    "first_month": "2023-01-01",
    "last_month": "2025-12-01",
    "leads_per_month": 240,
    "one_lead_per_account": true,
    "maximum_opportunities_per_lead": 1,
    "channels": [
      "search",
      "outbound",
      "partner",
      "retarget",
      "direct",
      "unknown"
    ],
    "max_pre_outcome_touches": 5,
    "no_touch_probability": 0.1,
    "observation_cutoff": "2026-07-01T00:00:00Z",
    "conversion_window_days": 180,
    "purpose": "Include lost and unqualified leads, correlated channel selection, heterogeneous contract amounts and delayed wins. No employer reconstruction."
  },
  "data_contract": {
    "ids": "Stable account_id, lead_id, opportunity_id and event_id. Duplicate IDs with identical payloads deduplicate; conflicting payloads fail.",
    "time": "UTC ISO timestamps. As-of cutoff is exclusive; only events strictly before origin may enter features.",
    "tables": [
      "leads",
      "touches",
      "opportunities",
      "stage_events",
      "outcomes",
      "snapshots"
    ],
    "stages": [
      "qualified",
      "proposal",
      "won",
      "lost"
    ],
    "duplicate_injection": "Exact duplicate lead every 13th row and touch every 17th row, before deduplication.",
    "post_outcome_touch_probability": 0.08,
    "size_limit_per_file_bytes": 20000000,
    "max_leads": 8640,
    "raw_touch_row_bound": 70000
  },
  "funnel": {
    "cohort": "All unique leads created in the 36-month enrollment cohort; outcome window fully mature by observation_cutoff.",
    "counts": [
      "leads",
      "qualified opportunities",
      "proposal opportunities",
      "won opportunities"
    ],
    "denominators": "Report every stage as a share of the original unique-lead cohort and each transition as a share of the preceding stage. Zero denominator yields null, not a fabricated zero rate.",
    "revenue": "Sum fixed observed opportunity contract value for wins inside the 180-day conversion window."
  },
  "attribution": {
    "methods": [
      "first_touch",
      "last_touch",
      "position_based",
      "markov_removal"
    ],
    "eligible_paths": "Every mature cohort lead, including nonconversions. Sort deduplicated touches by time then event_id, after lead creation and before the conversion/loss endpoint or 180-day horizon. No silent path truncation above the declared bound.",
    "special_buckets": "direct and unknown remain explicit; an empty path becomes a no_touch sentinel. Unrecognized channel labels map to unknown with a reported count.",
    "position_based": "One touch receives all credit. Two touches split equally. At three or more touches, first and last each receive 40 percent and middle touches share 20 percent. Repeated channel visits receive the sum of their touch weights.",
    "markov": "Collapse consecutive same-channel visits, count transitions from START through channels to CONVERSION or NULL over all cohort paths, solve absorption probabilities. Removing a channel redirects all probability entering it to NULL; do not redistribute outgoing probability among survivors. Normalize nonnegative removal effects across channels.",
    "markov_revenue": "The global conversion-count removal shares allocate both total converted deals and total won revenue as a reporting convention; there is no per-deal causal interpretation.",
    "zero_credit": "No wins yields zero credit arrays and null disagreement percentages. Positive wins with zero total removal effect is an error.",
    "disagreement": "First-versus-last channel disagreement numerator is won opportunities with different endpoint channels, denominator is all won opportunities including direct, unknown and no_touch. Credit-distance numerator is half the channelwise L1 difference, denominator is total credit; zero total yields null.",
    "causal_scope": "Attribution allocates observed conversion credit. It does not estimate intervention lift or an optimal budget."
  },
  "holdouts": {
    "separate_from_attribution": true,
    "replications": 300,
    "accounts_per_replication": 4000,
    "channels": [
      "outbound",
      "retarget"
    ],
    "assignment": "Exactly 2000 accounts per arm, randomized independently within each seeded replication; one opportunity per account.",
    "intervention": "Offer the named channel to every eligible account versus suppress it, holding the other simulated channels and pre-randomization intent and proposal status fixed.",
    "potential_outcomes": "Use shared uniform randomness for each account under both policies. Outbound adds 0.08 to win probability among proposal-ready opportunities; retarget adds exactly zero. Probabilities are bounded below 1.",
    "selection": "In observational paths retarget probability increases with latent intent, which also raises qualification and win probability. Latent intent is unavailable to the forecast.",
    "estimand": "Finite-population average conversion effect over all randomized eligible opportunities, plus treatment effect on fixed-value won revenue. Report assignment-based estimates; never condition on post-treatment use.",
    "estimator": "Unadjusted difference in arm means, frozen before final truth. Two-sided 95 percent normal intervals use sample variances within arms and independent-arm Neyman standard errors. No estimator selection on final outcomes.",
    "truth": "Mean paired potential-outcome difference per replication and its distribution, separately from randomized estimate and observed channel associations.",
    "predeclared_recovery": {
      "max_absolute_mean_conversion_error": 0.005,
      "rationale": "With 2000 accounts per arm, a binary outcome has independent-arm SE at most sqrt(0.25/2000+0.25/2000)=0.01582. Across 300 independent replications, maximum MCSE is 0.000913; 0.005 exceeds five such MCSEs. This is a simulation check, not a claimed real-world effect.",
      "coverage_bounds": [
        0.9,
        1.0
      ],
      "coverage_rationale": "Nominal coverage is 0.95; binomial Monte Carlo SE at 300 replications is about 0.0126. The 0.90 lower bound is about four such SEs below nominal. Neyman intervals can be conservative for finite-population effects.",
      "null_potential_outcomes_exact": true,
      "max_absolute_mean_revenue_error": 300,
      "revenue_rationale": "With a bounded account outcome in [0,60000], maximum independent-arm SE is 60000*0.01582. Across 300 replications the maximum MCSE is about 54.8; an absolute mean error bound of 300 fictional USD exceeds five such MCSEs."
    },
    "multiplicity": "These are diagnostic simulation summaries. No best channel or best estimator is selected by significance. Report all replications and both channels.",
    "population_generation": {
      "intent": "Beta(2,2)",
      "proposal_ready": "Bernoulli(0.30+0.55*intent), fixed before assignment",
      "other_channel_presence": {
        "search": 0.45,
        "partner": "0.20+0.30*intent",
        "outbound": "0.50-0.20*intent",
        "retarget": "0.15+0.70*intent"
      },
      "value": "Same fixed value distribution as the observational cohort",
      "random_stream": "SeedSequence([seed, replication, channel_index, 103]); channel_index is 0 for outbound and 1 for retarget.",
      "population_limit": "Separate sales-qualified simulation population. The binary channel-presence distribution differs from the observational touch-path sampler; both share the declared structural win-probability function."
    }
  },
  "forecast": {
    "development_origins": [
      "2024-07-01",
      "2024-08-01",
      "2024-09-01",
      "2024-10-01",
      "2024-11-01",
      "2024-12-01"
    ],
    "test_origins": [
      "2025-07-01",
      "2025-08-01",
      "2025-09-01",
      "2025-10-01",
      "2025-11-01",
      "2025-12-01"
    ],
    "target": "All won revenue in the next calendar month, including opportunities not yet created at the origin. Existing-pipeline and future-pipeline contributions are reported separately.",
    "snapshot_origins_start": "2023-07-01",
    "training_lookback_months": 12,
    "maturity_rule": "Only origins whose target month ends at or before the current origin enter training. Rebuild each training feature row from that historical origin, never from current/final opportunity state.",
    "known_pipeline": "All opportunities created strictly before origin that have not closed before origin. Contract value is fixed and observed at opportunity creation.",
    "features": [
      "current stage",
      "opportunity age in days",
      "days in current stage",
      "deduplicated prior touch count",
      "prior channel indicators"
    ],
    "excluded": [
      "latent intent",
      "future qualification",
      "future proposal events",
      "future close dates",
      "future wins",
      "post-origin touches",
      "future-created opportunities"
    ],
    "model": "L2 logistic regression for next-month win probability, fixed C=1, lbfgs, max_iter=1000. Scale numeric columns using training data only; fixed stage and channel encoding. Multiply probabilities by known opportunity value and sum. No parameter search.",
    "baseline": "Training-only next-month win frequency per observed stage with global training-rate fallback, multiplied by current fixed contract value.",
    "future_pipeline": "Both methods add the same training-only mean of won revenue from opportunities created and closed within each of the previous 6 fully observed calendar months. No actual future opportunity count is used.",
    "fallback": "If training outcomes contain one class or no eligible training rows, use the stage-rate baseline and record the reason. Never use test truth to select fallback.",
    "metrics": [
      "monthly actual and prediction",
      "MAE",
      "RMSE",
      "WAPE"
    ],
    "zero_total": "WAPE is null when the total absolute actual won revenue across the evaluation months is zero.",
    "test_policy": "All six test months published, including regressions. Compare fixed model against fixed baseline; do not tune from final months. Expanding information at each later origin may include previously matured test-month outcomes as in real rolling deployment."
  },
  "delivery": {
    "cli": "python -m gtm.run --seed 20261008",
    "outputs": [
      "results.json",
      "data CSVs and hashes",
      "holdout-replications.csv",
      "forecast-months.csv",
      "attribution.csv",
      "four SVG/PNG charts",
      "report.html",
      "gtm-review.xlsx"
    ],
    "workbook": "CRO-facing static values with methodology, funnel, attribution, holdouts and forecast tabs. No editable scenarios or formulas; openpyxl readback must match every table and number. No spreadsheet recalculation claim.",
    "independent_checks": "Fresh export and immutable checkout reproduce headline results after pinned dependency bootstrap, without credentials.",
    "claim": "PORT-10 as draft only after measured results exist."
  },
  "resource_plan": {
    "max_environment_download_mb": 300,
    "max_environment_disk_mb": 1000,
    "max_source_data_mb": 50,
    "individual_file_limit_mb": 20,
    "max_full_run_seconds": 600,
    "threads": 1,
    "paid_api_calls": 0
  },
  "generation": {
    "intent_distribution": "Beta(2,2), latent and excluded from forecast features",
    "qualified_probability": "0.20 + 0.65*intent",
    "proposal_probability_given_qualified": "0.30 + 0.55*intent",
    "channel_sampling_weights": {
      "search": "0.8",
      "outbound": "0.2 + 0.6*(1-intent)",
      "partner": "0.2 + 0.6*intent",
      "retarget": "0.15 + 1.8*intent",
      "direct": "0.4",
      "unknown": "0.1"
    },
    "channel_draws": "Independent weighted draws within a lead path, with replacement; path length uniform from 1 through 5 unless no_touch. Draws are chronological.",
    "win_probability_given_proposal": "min(0.85, 0.12 + 0.42*intent + 0.08*has_outbound + 0.06*has_partner + 0.03*has_search); retarget, direct and unknown have zero structural coefficients.",
    "no_proposal_win_probability": 0,
    "contract_values": [
      5000,
      15000,
      30000,
      60000
    ],
    "contract_value_probabilities": [
      0.25,
      0.35,
      0.25,
      0.15
    ],
    "qualification_lag_days": [
      1,
      21
    ],
    "proposal_lag_after_qualification_days": [
      1,
      14
    ],
    "close_lag_after_proposal": "30 percent uniform integer 1..14 days, otherwise uniform integer 15..120 days. Non-proposal opportunities close lost 7..100 days after qualification.",
    "unqualified_endpoint_days": 180,
    "touch_timing": "Core touch times are sorted offsets in the first 25 days. Proposal closes occur after max(proposal time, last core touch time), plus the declared close lag. Non-proposal losses also occur after the last core touch. Thus every core touch precedes outcome. A deliberate post-outcome touch is added to 8 percent of qualified accounts and excluded from attribution and win-probability inputs.",
    "identification_limit": "The simulator is a chosen structural story. Its coefficients and truth are unavailable to the forecaster and are not statements about real acquisition channels."
  }
}
