{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coppica-com/json-schema/coppica-com-outcome-result-schema.json",
  "title": "OutcomeResult",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coppica-com-openapi.yml#/components/schemas/OutcomeResult",
  "type": "object",
  "properties": {
    "outcome_id": {
      "type": "string",
      "format": "uuid"
    },
    "output_id": {
      "type": "string",
      "format": "uuid"
    },
    "type": {
      "type": "string"
    },
    "weights_updated": {
      "type": "integer",
      "description": "Always 0 on the synchronous response; the update runs async."
    },
    "weight_update_queued": {
      "type": "boolean",
      "description": "True only when status is clean: the outcome will move technique weights."
    },
    "status": {
      "type": "string",
      "description": "clean trains the model; flagged (over 90 days old) and rejected (dated before its output existed) are recorded but do not."
    },
    "echo": {
      "type": "object",
      "properties": {
        "output_id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "value": {
          "type": [
            "number",
            "null"
          ]
        },
        "external_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "anomaly_flagged": {
          "type": "boolean"
        }
      }
    }
  },
  "required": [
    "outcome_id",
    "output_id",
    "type",
    "weight_update_queued",
    "status"
  ]
}