← Files LuciaARCHIVED FILE

scripts/legal_documents_review.schema.json

3.94 KB · Nov 21, 2026 · 00:11 UTC

↓ Download file

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "required": [
    "context",
    "coverage",
    "items",
    "takeaways"
  ],
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "object",
      "required": [
        "represented_party",
        "jurisdiction",
        "instructions",
        "assumptions",
        "relationship",
        "formation",
        "forum",
        "legal_basis",
        "firm_instructions"
      ],
      "additionalProperties": false,
      "properties": {
        "represented_party": {
          "type": "string",
          "minLength": 1
        },
        "jurisdiction": {
          "type": "string",
          "minLength": 1
        },
        "instructions": {
          "type": "string",
          "minLength": 1
        },
        "assumptions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "language": {
          "enum": [
            "it",
            "en",
            "fr",
            "de",
            "es"
          ]
        },
        "relationship": {
          "type": "string",
          "minLength": 1
        },
        "formation": {
          "type": "string",
          "minLength": 1
        },
        "forum": {
          "type": "string",
          "minLength": 1
        },
        "legal_basis": {
          "type": "string",
          "minLength": 1
        },
        "firm_instructions": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "coverage": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "required": [
          "reviewed_anchors",
          "limitations",
          "original_inspected"
        ],
        "additionalProperties": false,
        "properties": {
          "reviewed_anchors": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "string"
            }
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "original_inspected": {
            "type": "boolean"
          }
        }
      }
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "source_id",
          "topic",
          "status",
          "summary",
          "reasoning",
          "proposal",
          "citations"
        ],
        "additionalProperties": false,
        "properties": {
          "source_id": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          },
          "status": {
            "enum": [
              "supported",
              "not-stated",
              "unreadable",
              "not-reviewed"
            ]
          },
          "summary": {
            "type": "string"
          },
          "reasoning": {
            "type": "string"
          },
          "proposal": {
            "type": "string"
          },
          "citations": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "source_id",
                "anchor",
                "quote"
              ],
              "additionalProperties": false,
              "properties": {
                "source_id": {
                  "type": "string"
                },
                "anchor": {
                  "type": "string"
                },
                "quote": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        }
      }
    },
    "takeaways": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "differences": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "minLength": 1
      }
    }
  }
}

SHA-256: 4dca15c02f9ca12d010e4ddbc0bfc9b7e786ddee51987b86a39f9b1bb635e268