{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "contractVersion": "1.1.0",
  "decisionId": "__",
  "createdAt": "__",
  "systemBoundary": {
    "project": "__",
    "requestedAction": "__",
    "geography": "__",
    "payer": "__",
    "beneficiary": "__",
    "resourceController": "__",
    "riskBearer": "__",
    "included": [
      "__"
    ],
    "excluded": [
      "__"
    ]
  },
  "hypotheses": [
    {
      "id": "H1",
      "claim": "__",
      "mechanism": "__",
      "falsifier": "__"
    },
    {
      "id": "H2",
      "claim": "__",
      "mechanism": "__",
      "falsifier": "__"
    },
    {
      "id": "H3",
      "claim": "__",
      "mechanism": "__",
      "falsifier": "__"
    }
  ],
  "unresolvedBlockers": [
    {
      "id": "__",
      "status": "open",
      "primaryVariable": "__REQUIRED__",
      "claim": "__",
      "resolutionEvidence": "__"
    }
  ],
  "reversalEvidence": [
    {
      "id": "__",
      "wouldChangeDecisionTo": "__SELECT__",
      "trigger": "__",
      "source": "__",
      "asOf": "__YYYY-MM-DD__"
    }
  ],
  "evidence": [
    {
      "claimId": "__",
      "tier": "observed",
      "value": "__",
      "source": "__",
      "observedAt": "__",
      "scope": "__"
    },
    {
      "claimId": "__",
      "tier": "owner_reported",
      "value": "__",
      "source": "__",
      "observedAt": "__",
      "scope": "__"
    },
    {
      "claimId": "__",
      "tier": "tool_estimate",
      "value": "__",
      "source": "__",
      "observedAt": "__",
      "scope": "__"
    },
    {
      "claimId": "__",
      "tier": "hypothesis",
      "value": "__",
      "source": "__",
      "observedAt": "__",
      "scope": "__"
    },
    {
      "claimId": "__RECURRING_ECONOMICS__",
      "tier": "observed",
      "value": "__REFUND_ADJUSTED_PAID_MONTHS_LOW_BASE_HIGH__",
      "source": "__BILLING_COHORT_EXPORT__",
      "observedAt": "__YYYY-MM-DD__",
      "scope": "__GEOGRAPHY_AND_COHORT_SCOPE__"
    },
    {
      "claimId": "__RETENTION_BOUNDS__",
      "tier": "hypothesis",
      "value": "__STRESS_LOW_AND_HORIZON_CAP__",
      "source": "__SAME_BILLING_COHORT_EXPORT__",
      "observedAt": "__YYYY-MM-DD__",
      "scope": "__MODELED_NOT_OBSERVED__"
    }
  ],
  "variables": {
    "observed": [
      {
        "name": "__",
        "value": "__",
        "unit": "__",
        "source": "__",
        "asOf": "__"
      }
    ],
    "controlled": [
      {
        "name": "__",
        "fixedAt": "__"
      }
    ],
    "noise": [
      {
        "name": "__",
        "mitigation": "__"
      }
    ],
    "feedbackDelays": [
      {
        "signal": "__",
        "days": "__",
        "basis": "__"
      }
    ]
  },
  "market": {
    "deduplicatedDemandPerMonth": {
      "low": "__",
      "base": "__",
      "high": "__",
      "method": "__"
    },
    "eligibilityRate": {
      "low": "__",
      "base": "__",
      "high": "__",
      "basis": "__",
      "source": "__",
      "asOf": "__YYYY-MM-DD__"
    },
    "impressionShare": {
      "low": "__",
      "base": "__",
      "high": "__",
      "basis": "__",
      "source": "__",
      "asOf": "__YYYY-MM-DD__"
    },
    "reachableImpressionsPerMonth": {
      "low": "__",
      "base": "__",
      "high": "__",
      "formula": "deduplicatedDemandPerMonth*eligibilityRate*impressionShare"
    },
    "actualCpc": {
      "low": "__",
      "base": "__",
      "high": "__",
      "currency": "__",
      "source": "__"
    }
  },
  "offer": {
    "price": {
      "amount": "__",
      "currency": "__",
      "unit": "__"
    },
    "nonAcquisitionVariableCostsPerUnit": {
      "modelApi": "__",
      "payment": "__",
      "refundChargeback": "__",
      "fulfillmentSupport": "__",
      "infrastructure": "__",
      "taxCompliance": "__",
      "other": "__"
    },
    "contributionMarginBeforeAcquisitionFormula": "price-sum(nonAcquisitionVariableCosts)"
  },
  "funnel": {
    "period": "__",
    "impressionToClick": {
      "low": "__",
      "base": "__",
      "high": "__",
      "basis": "__",
      "source": "__",
      "asOf": "__YYYY-MM-DD__"
    },
    "reachableClicksPerMonth": {
      "low": "__",
      "base": "__",
      "high": "__",
      "formula": "reachableImpressionsPerMonth*impressionToClick"
    },
    "sampleAcquisitionDays": {
      "low": "__",
      "base": "__",
      "high": "__",
      "formula": "ceil(minimumSample/reachableClicksPerMonth*30)"
    },
    "clickToQualifiedVisit": {
      "low": "__",
      "base": "__",
      "high": "__"
    },
    "qualifiedVisitToCustomer": {
      "low": "__",
      "base": "__",
      "high": "__"
    },
    "feedbackDelayDays": "__"
  },
  "scenarios": [
    {
      "name": "pessimistic",
      "preflight": "__SELECT__",
      "inputs": {
        "clicks": null,
        "cpc": null,
        "clickToQualifiedVisit": null,
        "qualifiedVisitToCustomer": null,
        "fixedNonMediaCashSpend": null,
        "workHours": null
      },
      "outputs": {
        "qualifiedVisits": null,
        "customers": null,
        "revenue": null,
        "nonAcquisitionCosts": null,
        "contributionBeforeAcquisition": null,
        "acquisitionSpend": null,
        "totalCashRequired": null,
        "laborCost": null,
        "netAfterAcquisitionAndLabor": null,
        "cac": null,
        "cpc": null
      },
      "action": "__REQUIRED__"
    },
    {
      "name": "base",
      "preflight": "__SELECT__",
      "inputs": {
        "clicks": null,
        "cpc": null,
        "clickToQualifiedVisit": null,
        "qualifiedVisitToCustomer": null,
        "fixedNonMediaCashSpend": null,
        "workHours": null
      },
      "outputs": {
        "qualifiedVisits": null,
        "customers": null,
        "revenue": null,
        "nonAcquisitionCosts": null,
        "contributionBeforeAcquisition": null,
        "acquisitionSpend": null,
        "totalCashRequired": null,
        "laborCost": null,
        "netAfterAcquisitionAndLabor": null,
        "cac": null,
        "cpc": null
      },
      "action": "__REQUIRED__"
    },
    {
      "name": "optimistic",
      "preflight": "__SELECT__",
      "inputs": {
        "clicks": null,
        "cpc": null,
        "clickToQualifiedVisit": null,
        "qualifiedVisitToCustomer": null,
        "fixedNonMediaCashSpend": null,
        "workHours": null
      },
      "outputs": {
        "qualifiedVisits": null,
        "customers": null,
        "revenue": null,
        "nonAcquisitionCosts": null,
        "contributionBeforeAcquisition": null,
        "acquisitionSpend": null,
        "totalCashRequired": null,
        "laborCost": null,
        "netAfterAcquisitionAndLabor": null,
        "cac": null,
        "cpc": null
      },
      "action": "__REQUIRED__"
    }
  ],
  "economics": {
    "paybackHorizonMonths": "__",
    "acquisitionAllocationRate": {
      "value": "__",
      "basis": "__",
      "source": "__",
      "asOf": "__YYYY-MM-DD__"
    },
    "paidMonthsWithinHorizon": {
      "low": "__",
      "base": "__",
      "high": "__",
      "source": "__REFUND_ADJUSTED_BILLING_COHORT_EVIDENCE__"
    },
    "cumulativeContributionPerCustomer": {
      "low": "__",
      "base": "__",
      "high": "__",
      "formula": "unitContributionPerPaidMonth*paidMonthsWithinHorizon"
    },
    "safetyReserve": {
      "low": "__",
      "base": "__",
      "high": "__",
      "basis": "__",
      "source": "__",
      "asOf": "__YYYY-MM-DD__"
    },
    "maxCac": {
      "low": "__",
      "base": "__",
      "high": "__",
      "formula": "min((cumulativeContributionPerCustomer-safetyReserve)*acquisitionAllocationRate,cumulativeContributionPerCustomer-safetyReserve)"
    },
    "maxCpc": {
      "low": "__",
      "base": "__",
      "high": "__",
      "formula": "maxCAC*clickToQualifiedVisit*qualifiedVisitToCustomer"
    }
  },
  "test": {
    "decision": "__SELECT__",
    "primaryVariable": "__REQUIRED__",
    "heldConstant": [
      "__REQUIRED__"
    ],
    "fixedNonMediaCashCap": null,
    "cashCap": null,
    "workHourCap": null,
    "hourlyRate": null,
    "minimumSample": {
      "unit": "click",
      "value": null
    },
    "earliestReviewAt": "__RFC3339__",
    "attributionWindowDays": null,
    "stopConditions": [
      "__REQUIRED__"
    ],
    "reversalConditions": [
      "__REQUIRED__"
    ]
  },
  "resultBranches": [
    {
      "condition": "__",
      "action": "continue"
    },
    {
      "condition": "__",
      "action": "adjust"
    },
    {
      "condition": "__",
      "action": "pause"
    },
    {
      "condition": "__",
      "action": "abandon"
    }
  ],
  "validation": {
    "filePath": "decisions/<decisionId>.commercial-decision-contract.json",
    "validator": "downloads/validate-commercial-decision-contract.mjs",
    "status": "PENDING"
  }
}
