{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lucasandersen-ai/json-schema/lucasandersen-ai-compare-data-schema.json",
  "title": "CompareData",
  "description": "Data of /v1/mlp/compare (fields named in OBS-158; other fields as returned).",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lucasandersen-ai-openapi.json#/components/schemas/CompareData",
  "type": "object",
  "properties": {
    "holdNoSale": {
      "type": "object",
      "description": "The hold scenario: no sale by the holder through the horizon.",
      "properties": {
        "terminalMarketValue": {
          "type": "number",
          "description": "Projected market value at the end of the horizon."
        },
        "dollarAdvantageVsSelling": {
          "type": "number",
          "description": "Projected value with no tax deducted plus net distributions, less the after-tax proceeds of a sale today. Not a measure of tax saved or avoided at death."
        }
      }
    },
    "saleAtProjectedValue": {
      "type": "object",
      "description": "Reference, outside both scenarios: a sale by the holder at the projected value at the end of the horizon.",
      "properties": {
        "saleTaxAtProjectedValue": {
          "type": "number",
          "description": "Tax on a sale by the holder at the projected market value at the end of the horizon. Not a measure of tax saved or avoided at death; the successor's tax is not computed."
        },
        "section751OrdinaryIncomeOnSale": {
          "type": "number",
          "description": "The §751 ordinary income in that sale (an income amount, not a tax)."
        }
      }
    },
    "holdUntilDeath": {
      "type": "object",
      "deprecated": true,
      "x-sunset": "2027-01-31",
      "description": "Deprecated (to be removed on 2027-01-31): earlier names for values now in holdNoSale and saleAtProjectedValue. heirSteppedUpBasis equals terminalMarketValue, the projected market value; it is not a successor's basis figure. deferredTaxEliminated equals saleAtProjectedValue.saleTaxAtProjectedValue and section751Eliminated equals saleAtProjectedValue.section751OrdinaryIncomeOnSale. None of them is an amount eliminated or saved at death."
    }
  }
}