{
  "$id": "https://schemas.ump.dev/v1/prior-card.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "approved_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Governance member (spec \u00a76): approver principal.",
      "title": "Governance ApprovedBy"
    },
    "best_guess": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "True when the prior is a labelled best guess (parent cell or reference prior). Written by onboarding and models (prior cards from the benchmark store, \u00a725.6).",
      "title": "Best Guess"
    },
    "channel": {
      "title": "Channel",
      "type": "string"
    },
    "client_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Client the prior is for (the card also carries the salted `client_ref`). Written by onboarding and models (prior cards from the benchmark store, \u00a725.6).",
      "title": "Client Id"
    },
    "client_ref": {
      "title": "Client Ref",
      "type": "string"
    },
    "content_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Governance member (spec \u00a76): the artifact content hash.",
      "title": "Governance ContentHash"
    },
    "contributor_band": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Contributor band of the source cell (`<5`, `5-9`, `10+`). Written by onboarding and models (prior cards from the benchmark store, \u00a725.6).",
      "title": "Contributor Band"
    },
    "estimand_id": {
      "default": "E-BM-AVG-ROI",
      "title": "Estimand Id",
      "type": "string"
    },
    "fallbacks": {
      "anyOf": [
        {
          "items": {},
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Fallback entries (code, gate, field, assumed, effect). Written by onboarding and models (prior cards from the benchmark store, \u00a725.6).",
      "title": "Fallbacks"
    },
    "formula": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The mixture prior in words. Written by onboarding and models (prior cards from the benchmark store, \u00a725.6).",
      "title": "Formula"
    },
    "gate_results": {
      "anyOf": [
        {
          "items": {},
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Governance member (spec \u00a76): gate results of the latest run.",
      "title": "Governance GateResults"
    },
    "id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Governance member (spec \u00a76): artifact id.",
      "title": "Governance Id"
    },
    "iroas": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The prior on the iROAS scale: median, lo, hi, level, sd_dollar. Written by onboarding and models (prior cards from the benchmark store, \u00a725.6).",
      "title": "Iroas"
    },
    "mixture_weight": {
      "default": 0.8,
      "description": "0.8, or 0.6 on parent-cell fallback (placeholder).",
      "title": "Mixture Weight",
      "type": "number"
    },
    "moderator_shift": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Shift applied to mu for the client's moderators (\u00a725.6). Written by onboarding and models (prior cards from the benchmark store, \u00a725.6).",
      "title": "Moderator Shift"
    },
    "moderator_shift_assumed": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "True when the shift was assumed, not computed. Written by onboarding and models (prior cards from the benchmark store, \u00a725.6).",
      "title": "Moderator Shift Assumed"
    },
    "mu": {
      "title": "Mu",
      "type": "number"
    },
    "notes": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Note codes. Written by onboarding and models (prior cards from the benchmark store, \u00a725.6).",
      "title": "Notes"
    },
    "owner": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Governance member (spec \u00a76): owner principal.",
      "title": "Governance Owner"
    },
    "parent_fallback": {
      "default": false,
      "title": "Parent Fallback",
      "type": "boolean"
    },
    "proposed": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "True while the mixture weights and widths are proposed values. Written by onboarding and models (prior cards from the benchmark store, \u00a725.6).",
      "title": "Proposed"
    },
    "revision": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Governance member (spec \u00a76): content revision (spec \u00a77).",
      "title": "Governance Revision"
    },
    "sd": {
      "title": "Sd",
      "type": "number"
    },
    "source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Where the prior came from: `cell`, `parent` or `reference`. Written by onboarding and models (prior cards from the benchmark store, \u00a725.6).",
      "title": "Source"
    },
    "source_cell": {
      "title": "Source Cell",
      "type": "string"
    },
    "state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Governance member (spec \u00a76): lifecycle state of the version.",
      "title": "Governance State"
    },
    "submitted_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Governance member (spec \u00a76): submitter principal.",
      "title": "Governance SubmittedBy"
    },
    "valid_to": {
      "default": null,
      "description": "Governance member (spec \u00a76): end of the validity window (spec \u00a77).",
      "title": "Governance ValidTo"
    },
    "vintage_id": {
      "title": "Vintage Id",
      "type": "string"
    },
    "wide_sd": {
      "default": 1.0,
      "title": "Wide Sd",
      "type": "number"
    }
  },
  "required": [
    "client_ref",
    "channel",
    "source_cell",
    "vintage_id",
    "mu",
    "sd"
  ],
  "title": "PriorCard",
  "type": "object"
}
