{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/praxikon-com/json-schema/praxikon-com-status-envelope-schema.json",
  "title": "StatusEnvelope",
  "description": "The state of the published release. Everything in it is derived from the dataset being served or from a record produced while building it; nothing is asserted.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/praxikon-com-openapi.json#/components/schemas/StatusEnvelope",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "meta",
    "data",
    "links"
  ],
  "properties": {
    "meta": {
      "type": "object",
      "additionalProperties": true,
      "required": [
        "dataset_id",
        "dataset_version",
        "schema_version",
        "openapi_version"
      ],
      "properties": {
        "dataset_id": {
          "type": "string"
        },
        "dataset_version": {
          "type": "string"
        },
        "schema_version": {
          "type": "string"
        },
        "openapi_version": {
          "type": "string"
        },
        "documentation": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "data": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "release",
        "objects",
        "release_guards",
        "service_level",
        "rate_limit",
        "registers"
      ],
      "properties": {
        "release": {
          "type": "object",
          "additionalProperties": true,
          "description": "Which release is being served, on both time axes, with the fingerprint of the dataset as a whole. That fingerprint identifies the release; it is not a citation anchor, for which payload_hash_sha256 on the object version is the value.",
          "properties": {
            "dataset_id": {
              "type": "string"
            },
            "dataset_version": {
              "type": "string"
            },
            "schema_version": {
              "type": "string"
            },
            "openapi_version": {
              "type": "string"
            },
            "known_at": {
              "type": "string",
              "format": "date-time",
              "description": "The knowledge date of this release: how far our published and verified knowledge reaches. This is the default an unpinned query resolves against."
            },
            "effective_at": {
              "type": "string",
              "format": "date-time"
            },
            "last_reviewed_at": {
              "type": "string",
              "format": "date-time"
            },
            "append_only": {
              "type": "boolean"
            },
            "licence": {
              "type": "string",
              "format": "uri"
            },
            "graph_fingerprint_sha256": {
              "type": "string"
            },
            "fingerprint_basis": {
              "type": "string"
            }
          }
        },
        "objects": {
          "type": "object",
          "additionalProperties": true,
          "description": "How much is published. Counted over the whole dataset and every version in it, so these numbers are higher than what a query with a temporal pin returns, which resolves at most one version per object.",
          "properties": {
            "entities": {
              "type": "integer"
            },
            "entity_versions": {
              "type": "integer"
            },
            "sources": {
              "type": "integer"
            },
            "by_type": {
              "type": "object",
              "additionalProperties": {
                "type": "integer"
              }
            },
            "counted_over": {
              "type": "string"
            }
          }
        },
        "release_guards": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "status",
            "recorded_at",
            "guard_count"
          ],
          "description": "Whether the release guards ran and passed over exactly the dataset being served here. The status is derived from a fingerprint comparison, never from a flag someone set.",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "passed",
                "no_record_for_the_dataset_being_served"
              ],
              "description": "passed means the fingerprint recorded when the guard chain completed equals the fingerprint of the dataset in this response. The second value is the honest alternative: a run is recorded, but over other bytes."
            },
            "command": {
              "type": "string"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time"
            },
            "guard_count": {
              "type": "integer"
            },
            "dataset_version": {
              "type": "string"
            },
            "schema_version": {
              "type": "string"
            },
            "basis": {
              "type": "string"
            },
            "covers": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "does_not_cover": {
              "type": "string"
            }
          }
        },
        "service_level": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "committed",
            "uptime_measured",
            "latency_measured"
          ],
          "description": "Deliberately empty of numbers. This is a free public beta with no service level, and no availability or latency figure is published because none is measured.",
          "properties": {
            "committed": {
              "type": "boolean"
            },
            "uptime_measured": {
              "type": "boolean"
            },
            "latency_measured": {
              "type": "boolean"
            },
            "detail": {
              "type": "string"
            },
            "contract": {
              "type": "string",
              "format": "uri"
            }
          }
        },
        "rate_limit": {
          "$ref": "#/$defs/RateLimitDisclosure"
        },
        "registers": {
          "type": "object",
          "additionalProperties": true,
          "description": "The registers that sit beside the graph: corrections, release snapshots and the changelog, each with the date from which it is kept."
        },
        "usage_measurement": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "measured",
            "measurement",
            "measures",
            "never_stored"
          ],
          "description": "What is counted about requests to this API, and what is never stored. It carries no figures: a count here would cost this endpoint a database query per call, and the measurement is not allowed to change the performance of the API it measures. Anonymous by construction: no address, no e-mail address, no raw user agent and no query string, and no value that links one caller across two days.",
          "properties": {
            "measured": {
              "type": "boolean"
            },
            "measurement": {
              "type": "string"
            },
            "measures": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "never_stored": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "identifier": {
              "type": "string"
            },
            "retention": {
              "type": "string"
            },
            "affects_responses": {
              "type": "string"
            }
          }
        }
      }
    },
    "links": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "RateLimitDisclosure": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "committed_limit",
        "enforced",
        "unlimited"
      ],
      "description": "What is capped and what is not, taken from the same table the routes enforce, so a published number cannot drift away from the number that is applied.",
      "properties": {
        "committed_limit": {
          "type": "boolean",
          "description": "Always false today. There is no committed limit and no quota to apply for."
        },
        "detail": {
          "type": "string"
        },
        "enforced": {
          "type": "array",
          "description": "The endpoints that carry a cap that is genuinely applied. The counter lives in the memory of one server process, so it is a brake on a runaway client rather than a quota, and the entry says so.",
          "items": {
            "type": "object",
            "additionalProperties": true,
            "required": [
              "path",
              "max_requests",
              "window_seconds",
              "scope"
            ],
            "properties": {
              "path": {
                "type": "string"
              },
              "max_requests": {
                "type": "integer"
              },
              "window_seconds": {
                "type": "integer"
              },
              "scope": {
                "type": "string"
              },
              "storage": {
                "type": "string"
              },
              "shared_across_instances": {
                "type": "boolean"
              },
              "survives_restart": {
                "type": "boolean"
              },
              "limitation": {
                "type": "string"
              }
            }
          }
        },
        "unlimited": {
          "type": "array",
          "description": "The endpoints on which nothing is enforced today. Listed explicitly so that absence from the enforced list cannot be read as a cap.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "path",
              "enforced"
            ],
            "properties": {
              "path": {
                "type": "string"
              },
              "enforced": {
                "type": "boolean",
                "enum": [
                  false
                ]
              }
            }
          }
        },
        "when_limited": {
          "type": "object",
          "additionalProperties": true
        },
        "if_a_limit_is_introduced": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}