{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://trimestre.ca/schema/index-proposal.v1.json",
  "title": "Trimestre index proposal v1",
  "description": "A finalist's proposal to add Canadian companies from the Nov 12 challenge list to one live Trimestre index, funded only from that index's cash.",
  "type": "object",
  "required": ["spec", "team", "base_index", "execution", "moves", "cash_target_pct"],
  "additionalProperties": false,
  "properties": {
    "$schema": { "type": "string" },
    "spec": { "const": "trimestre.index-proposal/v1" },
    "team": {
      "type": "object", "required": ["name", "members"], "additionalProperties": false,
      "properties": {
        "name": { "type": "string", "minLength": 1, "maxLength": 60 },
        "members": { "type": "array", "minItems": 1, "maxItems": 6, "items": { "type": "string", "minLength": 1 } }
      }
    },
    "base_index": { "enum": ["reits-across-borders", "serial-acquirers"] },
    "execution": {
      "type": "object", "required": ["fill", "date"], "additionalProperties": false,
      "properties": { "fill": { "const": "close" }, "date": { "const": "2026-11-19" } }
    },
    "moves": {
      "type": "array", "minItems": 1, "maxItems": 5,
      "items": {
        "type": "object", "required": ["action", "ticker", "exchange", "target_weight_pct", "funded_by", "thesis"], "additionalProperties": false,
        "properties": {
          "action": { "const": "add" },
          "ticker": { "enum": ["REI.UN", "CAR.UN", "KMP.UN", "GRT.UN", "NXR.UN", "CSU", "TOI", "WSP", "TFII", "ARE"] },
          "exchange": { "enum": ["TSX", "TSXV"] },
          "target_weight_pct": { "type": "number", "exclusiveMinimum": 0, "maximum": 15 },
          "funded_by": { "const": "cash" },
          "thesis": { "type": "string", "minLength": 1, "maxLength": 280 },
          "signals": {
            "type": "array", "maxItems": 10,
            "items": {
              "type": "object", "required": ["name", "value", "source"], "additionalProperties": false,
              "properties": { "name": { "type": "string" }, "value": { "type": ["string", "number"] }, "source": { "type": "string" } }
            }
          }
        }
      }
    },
    "cash_target_pct": { "type": "number", "minimum": 0 },
    "tool": {
      "type": "object", "additionalProperties": false,
      "properties": {
        "name": { "type": "string" },
        "url": { "type": "string", "format": "uri" },
        "repo": { "type": "string", "format": "uri" },
        "video": { "type": "string", "format": "uri" }
      }
    }
  }
}
