{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlas-compiler-com/json-schema/atlas-compiler-com-execution-result-artifact-schema.json",
  "title": "ExecutionResultArtifact",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atlas-compiler-com-openapi.json#/components/schemas/ExecutionResultArtifact",
  "additionalProperties": false,
  "properties": {
    "completedAt": {
      "format": "date-time",
      "type": "string"
    },
    "id": {
      "pattern": "^artifact_[a-f0-9]{40}$",
      "type": "string"
    },
    "ir": {
      "additionalProperties": false,
      "properties": {
        "contentGraph": {
          "additionalProperties": false,
          "properties": {
            "nodes": {
              "additionalProperties": {
                "additionalProperties": false,
                "properties": {
                  "attributes": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "children": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "chunkBoundary": {
                    "type": "boolean"
                  },
                  "content": {
                    "type": "string"
                  },
                  "contentHash": {
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "language": {
                    "type": "string"
                  },
                  "level": {
                    "type": "number"
                  },
                  "parent": {
                    "type": "string"
                  },
                  "provenance": {
                    "additionalProperties": false,
                    "properties": {
                      "selector": {
                        "type": "string"
                      },
                      "tag": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "tag",
                      "selector"
                    ],
                    "type": "object"
                  },
                  "semanticRole": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "section",
                      "heading",
                      "paragraph",
                      "list",
                      "list-item",
                      "table",
                      "table-row",
                      "table-cell",
                      "code",
                      "code-inline",
                      "text",
                      "metadata",
                      "link",
                      "image",
                      "strong",
                      "emphasis",
                      "nav",
                      "separator",
                      "button",
                      "search-input",
                      "blockquote",
                      "figure",
                      "caption",
                      "math",
                      "definition-list",
                      "definition-term",
                      "definition-desc"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "type",
                  "parent",
                  "children"
                ],
                "type": "object"
              },
              "type": "object"
            },
            "readingOrder": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "nodes",
            "readingOrder"
          ],
          "type": "object"
        },
        "metadata": {
          "additionalProperties": false,
          "properties": {
            "author": {
              "type": "string"
            },
            "canonicalUrl": {
              "type": "string"
            },
            "description": {
              "type": "string"
            },
            "documentHash": {
              "type": "string"
            },
            "extractionConfidence": {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            "language": {
              "type": "string"
            },
            "publishedDate": {
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "title": {
              "type": "string"
            }
          },
          "required": [
            "title",
            "canonicalUrl"
          ],
          "type": "object"
        },
        "version": {
          "type": "string"
        }
      },
      "required": [
        "version",
        "metadata",
        "contentGraph"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "markdown": {
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "additionalProperties": false,
      "properties": {
        "author": {
          "type": "string"
        },
        "canonicalUrl": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "documentHash": {
          "type": "string"
        },
        "extractionConfidence": {
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "language": {
          "type": "string"
        },
        "publishedDate": {
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "title",
        "canonicalUrl"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "url": {
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "url",
    "markdown",
    "metadata",
    "ir",
    "completedAt"
  ],
  "type": "object"
}