{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kovatools-com/json-schema/kovatools-com-explorer-memory-schema.json",
  "title": "ExplorerMemory",
  "x-generated": "2026-11-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kovatools-com-openapi.yml#/components/schemas/ExplorerMemory",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "record": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "uuid": {
              "type": "string"
            },
            "observed_at": {
              "type": "string"
            },
            "captured_at": {
              "type": "string"
            },
            "portfolio_kind": {
              "type": "string"
            },
            "facts": {
              "type": "object",
              "properties": {
                "cash_value": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "portfolio_value": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "cash_percent": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "positions": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "quantity": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "value": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "percent": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "quantity",
                      "value",
                      "percent"
                    ],
                    "additionalProperties": false
                  }
                },
                "received_at": {
                  "type": "string"
                },
                "reported_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "valuation_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "date_basis": {
                  "type": "string"
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "scope": {
                  "type": "string"
                }
              },
              "required": [
                "cash_value",
                "portfolio_value",
                "cash_percent",
                "positions",
                "received_at",
                "reported_at",
                "valuation_at",
                "date_basis",
                "limitations",
                "scope"
              ],
              "additionalProperties": false
            },
            "source_available": {
              "type": "boolean"
            },
            "brief_available": {
              "type": "boolean"
            }
          },
          "required": [
            "uuid",
            "observed_at",
            "captured_at",
            "portfolio_kind",
            "facts",
            "source_available",
            "brief_available"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "uuid": {
              "type": "string"
            },
            "topic_key": {
              "type": "string"
            },
            "kind": {
              "type": "string"
            },
            "status": {
              "type": "string"
            },
            "revision": {
              "type": "integer"
            },
            "strategy_current": {
              "type": "boolean"
            },
            "details": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string"
                },
                "observation": {
                  "type": "string"
                },
                "relevance": {
                  "type": "string"
                },
                "question": {
                  "type": "string"
                },
                "quote": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "resolution": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "reopening_reason": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "response_uuid": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "response_interpretation": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "last_response_uuid": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "needs_strategy_revision": {
                  "type": "boolean"
                },
                "response_pending": {
                  "type": "boolean"
                }
              },
              "required": [
                "title",
                "observation",
                "relevance",
                "question"
              ],
              "additionalProperties": false
            },
            "updated_at": {
              "type": "string"
            },
            "evidence": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "uuid": {
                    "type": "string"
                  },
                  "observed_at": {
                    "type": "string"
                  },
                  "captured_at": {
                    "type": "string"
                  },
                  "portfolio_kind": {
                    "type": "string"
                  },
                  "facts": {
                    "type": "object",
                    "properties": {
                      "cash_value": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "portfolio_value": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "cash_percent": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "positions": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "quantity": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "value": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "percent": {
                              "type": [
                                "number",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "quantity",
                            "value",
                            "percent"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "received_at": {
                        "type": "string"
                      },
                      "reported_at": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "valuation_at": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "date_basis": {
                        "type": "string"
                      },
                      "limitations": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "scope": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "cash_value",
                      "portfolio_value",
                      "cash_percent",
                      "positions",
                      "received_at",
                      "reported_at",
                      "valuation_at",
                      "date_basis",
                      "limitations",
                      "scope"
                    ],
                    "additionalProperties": false
                  },
                  "source_available": {
                    "type": "boolean"
                  },
                  "brief_available": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "uuid",
                  "observed_at",
                  "captured_at",
                  "portfolio_kind",
                  "facts",
                  "source_available",
                  "brief_available"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "uuid",
            "topic_key",
            "kind",
            "status",
            "revision",
            "strategy_current",
            "details",
            "updated_at",
            "evidence"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "uuid": {
              "type": "string"
            },
            "action": {
              "type": "string"
            },
            "text": {
              "type": [
                "string",
                "null"
              ]
            },
            "source": {
              "type": "string"
            },
            "created_at": {
              "type": "string"
            },
            "advisory_uuid": {
              "type": "string"
            }
          },
          "required": [
            "uuid",
            "action",
            "text",
            "source",
            "created_at",
            "advisory_uuid"
          ],
          "additionalProperties": false
        }
      ]
    },
    "history": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string"
              },
              "assessment_uuid": {
                "type": "string"
              },
              "sequence": {
                "type": "integer"
              },
              "attempt": {
                "type": "integer"
              },
              "worker_token": {
                "type": "string"
              },
              "capture_status": {
                "type": "string"
              },
              "capture_version": {
                "type": "string"
              },
              "engine_version": {
                "type": "string"
              },
              "model": {
                "type": "string"
              },
              "prompt_fingerprint": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "started_at": {
                "type": "string"
              },
              "finished_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expires_at": {
                "type": "string"
              },
              "duration_ms": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "referenced": {
                "type": [
                  "boolean",
                  "null"
                ]
              }
            },
            "required": [
              "uuid",
              "assessment_uuid",
              "sequence",
              "attempt",
              "worker_token",
              "capture_status",
              "capture_version",
              "engine_version",
              "model",
              "prompt_fingerprint",
              "started_at",
              "finished_at",
              "expires_at",
              "duration_ms",
              "included",
              "referenced"
            ],
            "additionalProperties": false
          }
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "items",
        "next_cursor"
      ],
      "additionalProperties": false
    },
    "history_notice": {
      "type": "string"
    },
    "responses": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "uuid": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string"
                  },
                  "text": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "source": {
                    "type": "string"
                  },
                  "created_at": {
                    "type": "string"
                  },
                  "advisory_uuid": {
                    "type": "string"
                  }
                },
                "required": [
                  "uuid",
                  "action",
                  "text",
                  "source",
                  "created_at",
                  "advisory_uuid"
                ],
                "additionalProperties": false
              }
            },
            "next_cursor": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "items",
            "next_cursor"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "question": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "uuid": {
              "type": "string"
            },
            "topic_key": {
              "type": "string"
            },
            "kind": {
              "type": "string"
            },
            "status": {
              "type": "string"
            },
            "revision": {
              "type": "integer"
            },
            "strategy_current": {
              "type": "boolean"
            },
            "details": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string"
                },
                "observation": {
                  "type": "string"
                },
                "relevance": {
                  "type": "string"
                },
                "question": {
                  "type": "string"
                },
                "quote": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "resolution": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "reopening_reason": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "response_uuid": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "response_interpretation": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "last_response_uuid": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "needs_strategy_revision": {
                  "type": "boolean"
                },
                "response_pending": {
                  "type": "boolean"
                }
              },
              "required": [
                "title",
                "observation",
                "relevance",
                "question"
              ],
              "additionalProperties": false
            },
            "updated_at": {
              "type": "string"
            },
            "evidence": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "uuid": {
                    "type": "string"
                  },
                  "observed_at": {
                    "type": "string"
                  },
                  "captured_at": {
                    "type": "string"
                  },
                  "portfolio_kind": {
                    "type": "string"
                  },
                  "facts": {
                    "type": "object",
                    "properties": {
                      "cash_value": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "portfolio_value": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "cash_percent": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "positions": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "quantity": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "value": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "percent": {
                              "type": [
                                "number",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "quantity",
                            "value",
                            "percent"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "received_at": {
                        "type": "string"
                      },
                      "reported_at": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "valuation_at": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "date_basis": {
                        "type": "string"
                      },
                      "limitations": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "scope": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "cash_value",
                      "portfolio_value",
                      "cash_percent",
                      "positions",
                      "received_at",
                      "reported_at",
                      "valuation_at",
                      "date_basis",
                      "limitations",
                      "scope"
                    ],
                    "additionalProperties": false
                  },
                  "source_available": {
                    "type": "boolean"
                  },
                  "brief_available": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "uuid",
                  "observed_at",
                  "captured_at",
                  "portfolio_kind",
                  "facts",
                  "source_available",
                  "brief_available"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "uuid",
            "topic_key",
            "kind",
            "status",
            "revision",
            "strategy_current",
            "details",
            "updated_at",
            "evidence"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "kind",
    "record",
    "history",
    "history_notice",
    "responses",
    "question"
  ],
  "additionalProperties": false
}