{
  "openapi": "3.1.0",
  "info": {
    "title": "VERA public API",
    "version": "1.0.0",
    "x-contract": "PREPAIRE-VERA-PUBLIC-API@1.0.0",
    "description": "VERA's endpoints that answer without an account on a demonstration copy. They hold public reference data and synthetic people only; none takes or returns a real person's data.\n\nEvery example reads the copy's address from `$VERA`: `export VERA=https://platform.prepaire.com`.\n\nThe reference graph in build 3ee489ad88d928d3 (read from the served build): 5,593,578 nodes and 20,284,892 edges from 44 public sources and, for 1,028 of those nodes and edges, Prepaire's own tables of hand-made rows as their source, each row signed for the build by a named person; signed, read-only. 173 of the 242 laboratory tests are linked to what they measure (266 HAS_ANALYTE edges to 166 proteins and metabolites, each edge a hand-made row that carries `review`: who compiled the row, who signed it for the build and on which day, and the review it carries); the build's tables of hand-made rows hold 1,355 rows signed for the build, each by a named person. The count is of the tables' own rows, as the build's review record counts them. One row of a table can stand on many records of the build: each entry and each link written from the row carries the row's `review`, but for two kinds of link that carry it on the entry they start at: the link from a run record to its model, and the link from a catalogue entry of a genome reference to another genome reference. ClinVar 2026-11: 4,610,910 DNA changes; the DNA changes of this build are located in 20,259 genes; by classification group (one hand-made row of a table gives one of ClinVar's terms its group; a record that carries the groups of several terms is counted under one of those groups, the one the table's rank picks; 4,354,685 DNA changes carry one of the groups counted here): uncertain significance: 2,390,732; likely benign: 1,224,898; pathogenic: 232,695; benign: 192,251; conflicting classifications: 183,504; likely pathogenic: 130,605; 4,676 DNA changes carry ClinVar's own classification alone. Why the build holds the ClinVar record: it is part of ClinVar's catalogue, and that alone is why the build holds it: 4,061,119; its classification names pathogenic or likely pathogenic: 363,506; its classification names a conflict: 183,557; its classification names drug response: 1,942; its classification names a risk factor or a risk allele: 532; it defines a gene version in CPIC's tables: 391. Review status: criteria provided, single submitter: 3,289,269; criteria provided, multiple submitters, no conflicts: 765,221; criteria provided, conflicting classifications: 183,212; no assertion criteria provided: 98,947; reviewed by expert panel: 22,662; no classification provided: 6,466; no classification for the single variant: 593; no classifications from unflagged records: 140; practice guideline: 51. Review stars, 0 to 4: 0: 106,146; 1: 3,472,481; 2: 765,221; 3: 22,662; 4: 51. Origin: germline: 4,300,851; not applicable: 243,149; unknown: 55,048; somatic: 6,906; germline/somatic: 3,553; not provided: 1,403.\n\nThe build's manifest.json is signed with the OpenSSH key SHA256:KVPlqDbWHStLFb7IEX95Vqf6W8FUFgIBfRgIFpdxqhU (ED25519; principal and namespace prepaire-kg-build), and its output_sha256 is af0b39c0304f5dce67d89f6d201c5460b51bb977636605eeabe20628b653f6d2. The download's archive carries the key too, but a key inside the archive proves nothing by itself: run `./verify.sh SHA256:KVPlqDbWHStLFb7IEX95Vqf6W8FUFgIBfRgIFpdxqhU af0b39c0304f5dce67d89f6d201c5460b51bb977636605eeabe20628b653f6d2`, which refuses any other key.\n\nThe graph's answers and the gate's verdicts come from VERA's own deterministic code; no model computes them. Where a language model may read or word something (the report questions, and the stream's closing summary on a copy with a model gateway), the answer says so: `modelAvailable` and `readBy` on each value for the report questions, the model.invoked and model.result events of call SYN-CALL-<scenario>-<n>-gpt-oss-20b for the stream."
  },
  "servers": [
    {
      "url": "https://platform.prepaire.com"
    }
  ],
  "tags": [
    {
      "name": "Reference graph",
      "description": "Search, nodes with provenance (by id, rsID, ClinVar variation id or HGVS name), a node's links page by page, neighbourhoods, paths, counts and sources, answered by VERA's own process from its pack of the signed build. Contract PREPAIRE-VERA-REFERENCE-GRAPH-API@1.4.0, carried by every answer: within version 1 a change adds endpoints, parameters and answer fields and changes none that is there, and raises the second number (1.2.0 adds the node's `reading`, the steps of a path with what is stated and shared beside it, /kinds, the layers' figures in /stats and `denying` in /links; 1.4.0 adds the encoded form on every JSON read, `error.detail.scope` on a 429, a range of bytes of a download's file, and two pairs of ends a path's `shared` is given for). Paths and neighbourhoods follow the walk rules, which /kinds gives for every link type of the served build with the graph contract's own rules of wording. A caller with a name of its own has 600 units a minute: a test key of a sandbox of one's own, sent as the bearer (Authorization: Bearer), is such a name, for the budget alone, and so is the caller's address on a copy whose environment states how many proxies in front of it append one (the entry that many places from the right of X-Forwarded-For, and no entry a caller writes itself). Every other caller is counted together with the others, and the holders of the sample key together: they are answered in turn at 600 units a second, 150 at once after a pause. A request past that pace waits for its turn, up to 250 ms, and only a request whose turn lies further off is refused 429, with Retry-After in whole seconds; a refused request takes nothing from the budget. Every 429 states whose budget refused in `error.detail.scope`: `key` (a test key's own), `client` (a caller a proxy names) or `shared` (the callers counted together). Each endpoint states its price; a request whose query holds the server for longer than 25 ms also pays one unit for each further 10 ms, charged after its answer, and the header x-budget-units of an answer says what the request cost. After a query of half a second or more the next request of a caller with a name of its own is answered when as long again has passed (429 with Retry-After until then, at no cost). At most 4 requests counted under one name are answered at once. Every JSON read takes `encoding=base64url` and then answers its exact bytes in the encoded form, which a host on the way does not rewrite. Every address of the graph answers GET, HEAD, OPTIONS: OPTIONS answers the preflight of a page of another origin (Access-Control-Allow-Origin *, and the request headers Authorization, If-None-Match, Range, X-Request-Id). A whole number is written in digits with no zero in front."
    },
    {
      "name": "Model runs",
      "description": "The frontier models' run records: each signed record verified on read, its files to download and hash again, and the runner's submission route."
    },
    {
      "name": "Graph download",
      "description": "The signed build, for free Cypher in a Neo4j 5.26 on one's own machine."
    },
    {
      "name": "Analyser gate",
      "description": "VERA's five-check gate on one laboratory file."
    },
    {
      "name": "Command centre",
      "description": "A synthetic run through VERA's modules, event by event."
    },
    {
      "name": "Product page",
      "description": "The questions the product page asks VERA."
    },
    {
      "name": "About"
    }
  ],
  "paths": {
    "/api/v1/openapi.{format}": {
      "get": {
        "tags": [
          "About"
        ],
        "operationId": "getOpenApi",
        "summary": "This document",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Always json: the file's extension, written as a parameter so that no host on the way reads this path as a file to rewrite."
          },
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            },
            "description": "With base64url the document's exact bytes come wrapped as base64url text, which a host on the way does not rewrite; decode it to hold the document to its SHA-256."
          }
        ],
        "responses": {
          "200": {
            "description": "The OpenAPI 3.1 document, its server set to the address it was asked from.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reference-graph": {
      "get": {
        "tags": [
          "Reference graph"
        ],
        "operationId": "getGraphIndex",
        "summary": "The build, its counts and the endpoint templates",
        "description": "Not cached. On a copy with a live graph of its own, `live` says how that graph stands to the served build. `endpoints` gives a template for each endpoint of this tag under the copy's base path.",
        "parameters": [
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes. The read is priced and counted as without the parameter, and its entity tag is the encoded answer's own. An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The index.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/GraphEnvelope"
                    },
                    {
                      "$ref": "#/components/schemas/GraphIndex"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "REFERENCE_GRAPH_PARAMETER_REPEATED. Or BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "VALIDATION_FAILED (unknown parameter, value out of range) or REFERENCE_GRAPH_UNKNOWN_NAME (a kind or type the build has not; detail.known lists them).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "REFERENCE_GRAPH_RATE_LIMITED: over the budget the request is counted in, named in error.detail.scope (key, client or shared; the tag's description states each); Retry-After says when, in whole seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "REFERENCE_GRAPH_UNAVAILABLE: no pack on this copy, or a damaged one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reference-graph/search": {
      "get": {
        "tags": [
          "Reference graph"
        ],
        "operationId": "searchGraph",
        "summary": "Search nodes by name, alias, code or id",
        "description": "Ranked by how much of a field the query covers, times the field's weight, plus a kind boost (a laboratory test first). Every query word must occur in one field. Costs 1 unit.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The text: a name, an alias, a code (LOINC, HGNC, rsID, InChIKey...) or an id.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "example": "ApoB"
          },
          {
            "name": "kinds",
            "in": "query",
            "required": false,
            "description": "Only these kinds (Biomarker, Gene, Protein, Disease, ...). Comma-separated.",
            "schema": {
              "type": "string",
              "maxLength": 600
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Hits to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Hits to skip.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000,
              "default": 0
            }
          },
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes. The read is priced and counted as without the parameter, and its entity tag is the encoded answer's own. An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Hits, total, facets per kind, attribution.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/GraphEnvelope"
                    },
                    {
                      "$ref": "#/components/schemas/SearchResult"
                    }
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched the ETag, which names the build and the query)."
          },
          "400": {
            "description": "REFERENCE_GRAPH_PARAMETER_REPEATED. Or BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "VALIDATION_FAILED (unknown parameter, value out of range) or REFERENCE_GRAPH_UNKNOWN_NAME (a kind or type the build has not; detail.known lists them).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "REFERENCE_GRAPH_RATE_LIMITED: over the budget the request is counted in, named in error.detail.scope (key, client or shared; the tag's description states each); Retry-After says when, in whole seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "REFERENCE_GRAPH_UNAVAILABLE: no pack on this copy, or a damaged one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "1. Find a test, a gene and a protein by name",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/search?q=ApoB&limit=5\"",
            "x-answer": "7,011 hits. First the test loinc:1884-6 (degree 4, references 0), then the APOB gene ensembl:ENSG00000084674 and the protein uniprot:P04114.",
            "x-example-id": "kg-search"
          }
        ]
      }
    },
    "/api/v1/reference-graph/node": {
      "get": {
        "tags": [
          "Reference graph"
        ],
        "operationId": "getNode",
        "summary": "One node, by its id or by another key: every property, its link groups and its provenance",
        "description": "Give `id` or `key`, one of the two. `provenance` names the node's source, the release of that source (publisher, the pinned files with their SHA-256, where and when the licence was checked) and the signed build it belongs to. `node.links` lists the node's link groups (kind, type, direction) with the number of links in each; /links answers a group's links page by page. With `key`: when one node carries the key the answer is that node, as for `id`; when several nodes share it the answer is `key`, `offset`, `matches` (20 of their ids in id order, from place `offset` of that order) and `more` (true when further nodes share the key: ask again with `offset` raised by 20). `id` is an id and nothing else: a key given as `id` answers 404, on every build. `reading` is what the node's own page prints above its links, as data and made by the function the page calls: the sections for the node's kind (families disease, test, anatomy, model, variant, structural, code; /kinds names the family of each kind that has one), each a heading over lists of statements, label and value lines, sentences and notes, every statement with the source that states it and that source's release. A long list of a reading is one page of a group of the node's links: its `page` names the group, the page and the number of pages, and `group` with `page` asks another page of it. Costs 1 unit, and more when the work was long (see the tag's description).",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "A CURIE as the build writes it (loinc:1884-6, ensembl:ENSG00000084674, uniprot:P04114, mondo:0004975, cpic.diplotype:CYP2C19*1/*2). URL-encode * and /.",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 300
            },
            "example": "loinc:1884-6"
          },
          {
            "name": "key",
            "in": "query",
            "required": false,
            "description": "Another key of the node, in place of `id`: an rsID (rs429358), a ClinVar variation id (17864), an HGVS name (NM_000041.4:c.388T>C) or a cross-reference as the build writes it (dbsnp:rs429358). Capitals and small letters are read alike.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            },
            "example": "rs429358",
            "x-in-place-of": "id"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "With `key`: the place in the list of the nodes that share the key at which `matches` starts (0 = the first).",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000,
              "default": 0
            }
          },
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "With `page`: the group of the node's links that a long list of the reading is a page of, as that list's `page.group` names it (edge.CLASSIFIED_FOR_CONDITION.out).",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 200
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "With `group`: the page of that list, from 1; a page past the list's last answers its last.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 999999999
            }
          },
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes. The read is priced and counted as without the parameter, and its entity tag is the encoded answer's own. An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The node and its provenance; or, for a key several nodes share, their ids.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/GraphEnvelope"
                    },
                    {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/NodeAnswer"
                        },
                        {
                          "$ref": "#/components/schemas/NodeKeyMatches"
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched the ETag, which names the build and the query)."
          },
          "400": {
            "description": "REFERENCE_GRAPH_PARAMETER_REPEATED. Or BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "REFERENCE_GRAPH_NODE_NOT_FOUND: no node of the build has that id, or that key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "VALIDATION_FAILED (unknown parameter, value out of range) or REFERENCE_GRAPH_UNKNOWN_NAME (a kind or type the build has not; detail.known lists them).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "REFERENCE_GRAPH_RATE_LIMITED: over the budget the request is counted in, named in error.detail.scope (key, client or shared; the tag's description states each); Retry-After says when, in whole seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "REFERENCE_GRAPH_UNAVAILABLE: no pack on this copy, or a damaged one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "2. Open the test node and read its provenance",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/node?id=loinc%3A1884-6\"",
            "x-answer": "degree 4, references 0, links: 4 groups, the first HAS_ANALYTE out to one Protein: the graph knows the test's LOINC name and what the test measures. provenance names source nlm_loinc_names, its release, the pinned file with its SHA-256, and the signed build with its signing key's fingerprint. reading (family test) is what the node's page prints, as data: the section \"What it measures\" lists Apolipoprotein B-100 with its role (measured) and who signed the row.",
            "x-example-id": "kg-node"
          },
          {
            "lang": "Shell",
            "label": "Find a variant by its rsID and read ClinVar's classification and review status",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/node?key=rs429358\"",
            "x-answer": "One node of the build carries that rsID, so the answer is the node, as for its id: spdi:NC_000019.10:44908683:T:C, NM_000041.4(APOE):c.388T>C (p.Cys130Arg). Its properties hold ClinVar's classification \"Conflicting classifications of pathogenicity, other, risk factor\" and review status \"criteria provided, conflicting classifications\" (review_stars 1, num_submitters 18); provenance names source clinvar.",
            "x-example-id": "kg-node-key"
          },
          {
            "lang": "Shell",
            "label": "Body: from a test to the cell it is about, to the organ Step 1 of 5: The test: mean corpuscular volume",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/node?id=loinc%3A787-2\"",
            "x-answer": "The node loinc:787-2 with its properties, its link groups, its provenance and its reading.",
            "x-example-id": "layer-test-to-organ.1"
          },
          {
            "lang": "Shell",
            "label": "Models: what does a model read, and what does it inform? Step 1 of 3: The model: the equation that estimates kidney filtration from creatinine",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/node?id=prepaire%3Amodel%2Fegfr-ckd-epi-2021-cr%2F1.0.0\"",
            "x-answer": "The node prepaire:model/egfr-ckd-epi-2021-cr/1.0.0 with its properties, its link groups, its provenance and its reading.",
            "x-example-id": "layer-model-reads-informs.1"
          },
          {
            "lang": "Shell",
            "label": "DNA changes: open a change by its rsID and read each statement apart Step 1 of 4: The DNA change that carries the rsID rs6025",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/node?key=rs6025\"",
            "x-answer": "The node that carries the key rs6025, as for its id; or, where several nodes share the key, their ids in matches.",
            "x-example-id": "layer-change-by-rsid.1"
          },
          {
            "lang": "Shell",
            "label": "DNA changes: two alleles at one place that share one rsID Step 1 of 3: The DNA changes that carry the rsID rs334",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/node?key=rs334\"",
            "x-answer": "The node that carries the key rs334, as for its id; or, where several nodes share the key, their ids in matches.",
            "x-example-id": "layer-two-alleles.1",
            "x-answer-schema": "#/components/schemas/NodeKeyMatches"
          }
        ]
      }
    },
    "/api/v1/reference-graph/links": {
      "get": {
        "tags": [
          "Reference graph"
        ],
        "operationId": "getLinks",
        "summary": "One link group of a node, page by page: a gene's variants, a disease's variants",
        "description": "A link group is the links of one type in one direction at a node, as `node.links` of /node lists them (a gene's variants: type LOCATED_IN, direction in; a disease's variants: VARIANT_ASSOCIATED_WITH, in). The answer holds `total` (the links of the group), `members` (the distinct nodes at their other end) and `items`: one item per link, the link (with the edge's own properties, such as ClinVar's review status) and the summary of the node at its other end. Items are ordered by the other end's kind, then most linked first, then id. `offset` and `limit` name the page: items `offset` + 1 to `offset` + `limit` of `total`; adding `limit` to `offset` until it reaches `total` reads the group end to end, each link once. Where a node has gene statements whose own grade disputes or refutes the link, `node.links` lists them as a group of their own (`denying: true`) beside the group of the asserting statements: `denying=true` pages the first, `denying=false` the second, and with `denying` left out the page runs over both. Costs 1 unit for a page of up to 50 links, 2 units for a longer one.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": true,
            "description": "The node whose links are read.",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 300
            },
            "example": "ensembl:ENSG00000012048"
          },
          {
            "name": "type",
            "in": "query",
            "required": true,
            "description": "The group's type: an edge type (LOCATED_IN), or for kind=reference the group's name as `node.links` gives it (xrefs).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "LOCATED_IN"
          },
          {
            "name": "direction",
            "in": "query",
            "required": true,
            "description": "out: links that start at the node; in: links that end at it.",
            "schema": {
              "type": "string",
              "enum": [
                "out",
                "in"
              ]
            },
            "example": "in"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "edge: edges of the build; reference: reference links.",
            "schema": {
              "type": "string",
              "enum": [
                "edge",
                "reference"
              ],
              "default": "edge"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Links of the group before the page.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Links on the page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "properties",
            "in": "query",
            "required": false,
            "description": "Include each edge's own properties. With `false` a link that is a hand-made row still carries `review`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "true"
            }
          },
          {
            "name": "denying",
            "in": "query",
            "required": false,
            "description": "true: the statements of the group whose own grade disputes or refutes the link; false: the group without them.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes. The read is priced and counted as without the parameter, and its entity tag is the encoded answer's own. An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The group's totals and one page of its links, each with the node at its other end.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/GraphEnvelope"
                    },
                    {
                      "$ref": "#/components/schemas/LinkPage"
                    }
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched the ETag, which names the build and the query)."
          },
          "400": {
            "description": "REFERENCE_GRAPH_PARAMETER_REPEATED. Or BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "REFERENCE_GRAPH_NODE_NOT_FOUND: no node of the build has that id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "VALIDATION_FAILED (unknown parameter, value out of range) or REFERENCE_GRAPH_UNKNOWN_NAME (a kind or type the build has not; detail.known lists them).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "REFERENCE_GRAPH_RATE_LIMITED: over the budget the request is counted in, named in error.detail.scope (key, client or shared; the tag's description states each); Retry-After says when, in whole seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "REFERENCE_GRAPH_UNAVAILABLE: no pack on this copy, or a damaged one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "A gene's variants, a page at a time, the most linked first",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=ensembl%3AENSG00000012048&type=LOCATED_IN&direction=in&offset=0&limit=5\"",
            "x-answer": "total 15,265, members 15,265: BRCA1 has 15,265 LOCATED_IN links from 15,265 variants. The page holds the first 5 of them, each with the variant at its other end, the most linked first: spdi:NC_000017.11:43092918:G:A (degree 34) leads. offset=5 gives the next page.",
            "x-example-id": "kg-links"
          },
          {
            "lang": "Shell",
            "label": "Diseases: which genes are stated for cystic fibrosis, and with what grade? Step 1 of 2: The gene statements that end at cystic fibrosis, each with its grade",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=mondo%3A0009061&type=GENE_ASSOCIATED_WITH&direction=in&offset=0&limit=20\"",
            "x-answer": "The GENE_ASSOCIATED_WITH links that end at mondo:0009061, a page of them, each with its own properties and the node at its other end.",
            "x-example-id": "layer-disease-genes.1"
          },
          {
            "lang": "Shell",
            "label": "Diseases: a statement its source refutes Step 2 of 2: Every gene statement of CPA6, each with its grade in the source's words",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=ensembl%3AENSG00000165078&type=GENE_ASSOCIATED_WITH&direction=out&offset=0&limit=20\"",
            "x-answer": "The GENE_ASSOCIATED_WITH links that start at ensembl:ENSG00000165078, a page of them, each with its own properties and the node at its other end.",
            "x-example-id": "layer-refuted-statement.2"
          },
          {
            "lang": "Shell",
            "label": "Body: from a test to the cell it is about, to the organ Step 2 of 5: What the test is about",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=loinc%3A787-2&type=TEST_ABOUT&direction=out&offset=0&limit=20\"",
            "x-answer": "The TEST_ABOUT links that start at loinc:787-2, a page of them, each with its own properties and the node at its other end.",
            "x-example-id": "layer-test-to-organ.2"
          },
          {
            "lang": "Shell",
            "label": "Body: from a test to the cell it is about, to the organ Step 3 of 5: What the test is read for",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=loinc%3A787-2&type=READ_FOR&direction=out&offset=0&limit=20\"",
            "x-answer": "The READ_FOR links that start at loinc:787-2, a page of them, each with its own properties and the node at its other end.",
            "x-example-id": "layer-test-to-organ.3"
          },
          {
            "lang": "Shell",
            "label": "Body: from a test to the cell it is about, to the organ Step 4 of 5: The cell types Uberon states for blood",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=uberon%3A0000178&type=ANATOMY_HAS_CELL_TYPE&direction=out&offset=0&limit=20\"",
            "x-answer": "The ANATOMY_HAS_CELL_TYPE links that start at uberon:0000178, a page of them, each with its own properties and the node at its other end.",
            "x-example-id": "layer-test-to-organ.4"
          },
          {
            "lang": "Shell",
            "label": "Models: what does a model read, and what does it inform? Step 2 of 3: What the model reads",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=prepaire%3Amodel%2Fegfr-ckd-epi-2021-cr%2F1.0.0&type=READS&direction=out&offset=0&limit=20\"",
            "x-answer": "The READS links that start at prepaire:model/egfr-ckd-epi-2021-cr/1.0.0, a page of them, each with its own properties and the node at its other end.",
            "x-example-id": "layer-model-reads-informs.2"
          },
          {
            "lang": "Shell",
            "label": "Models: what does a model read, and what does it inform? Step 3 of 3: What the model informs",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=prepaire%3Amodel%2Fegfr-ckd-epi-2021-cr%2F1.0.0&type=INFORMS&direction=out&offset=0&limit=20\"",
            "x-answer": "The INFORMS links that start at prepaire:model/egfr-ckd-epi-2021-cr/1.0.0, a page of them, each with its own properties and the node at its other end.",
            "x-example-id": "layer-model-reads-informs.3"
          },
          {
            "lang": "Shell",
            "label": "DNA changes: open a change by its rsID and read each statement apart Step 2 of 4: ClinVar's classifications of the change, one for each condition",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=spdi%3ANC_000001.11%3A169549810%3AC%3AT&type=CLASSIFIED_FOR_CONDITION&direction=out&offset=0&limit=20\"",
            "x-answer": "The CLASSIFIED_FOR_CONDITION links that start at spdi:NC_000001.11:169549810:C:T, a page of them, each with its own properties and the node at its other end.",
            "x-example-id": "layer-change-by-rsid.2"
          },
          {
            "lang": "Shell",
            "label": "DNA changes: open a change by its rsID and read each statement apart Step 3 of 4: The model's prediction for the change",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=spdi%3ANC_000001.11%3A169549810%3AC%3AT&type=PREDICTED_BY&direction=out&offset=0&limit=20\"",
            "x-answer": "The PREDICTED_BY links that start at spdi:NC_000001.11:169549810:C:T, a page of them, each with its own properties and the node at its other end.",
            "x-example-id": "layer-change-by-rsid.3"
          },
          {
            "lang": "Shell",
            "label": "DNA changes: open a change by its rsID and read each statement apart Step 4 of 4: Where the genome panel shows the change",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=spdi%3ANC_000001.11%3A169549810%3AC%3AT&type=SEEN_IN&direction=out&offset=0&limit=20\"",
            "x-answer": "The SEEN_IN links that start at spdi:NC_000001.11:169549810:C:T, a page of them, each with its own properties and the node at its other end.",
            "x-example-id": "layer-change-by-rsid.4"
          },
          {
            "lang": "Shell",
            "label": "DNA changes: two alleles at one place that share one rsID Step 2 of 3: The site's association rows at the first allele, the risk allele beside each",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=spdi%3ANC_000011.10%3A5227001%3AT%3AA&type=GWAS_ASSOCIATED_WITH&direction=out&offset=0&limit=20\"",
            "x-answer": "The GWAS_ASSOCIATED_WITH links that start at spdi:NC_000011.10:5227001:T:A, a page of them, each with its own properties and the node at its other end.",
            "x-example-id": "layer-two-alleles.2"
          },
          {
            "lang": "Shell",
            "label": "DNA changes: two alleles at one place that share one rsID Step 3 of 3: The site's association rows at the second allele, the risk allele beside each",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/links?id=spdi%3ANC_000011.10%3A5227001%3AT%3AG&type=GWAS_ASSOCIATED_WITH&direction=out&offset=0&limit=20\"",
            "x-answer": "The GWAS_ASSOCIATED_WITH links that start at spdi:NC_000011.10:5227001:T:G, a page of them, each with its own properties and the node at its other end.",
            "x-example-id": "layer-two-alleles.3"
          }
        ]
      }
    },
    "/api/v1/reference-graph/neighbourhood": {
      "get": {
        "tags": [
          "Reference graph"
        ],
        "operationId": "getNeighbourhood",
        "summary": "Breadth-first neighbourhood of a node",
        "description": "Each expanded node's links are grouped by kind, type and direction and taken round-robin, smallest group first. `groups` says how many neighbours each group has and how many are shown. The centre's own links are drawn as the build states them; two and three hops out a link is followed where a path from the centre may step along it (the walk rules of /paths), and from a laboratory test the body is reached by the test's own reviewed rows. A group marked `denying` holds the statements that dispute or refute a link, `by` names the property value that sets a group apart within one link type, and `counted` marks the kinds of a grouping class, which are counted and read page by page with /links. Costs 1, 2 or 4 units for depth 1, 2 or 3.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": true,
            "description": "The centre node.",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 300
            },
            "example": "uniprot:P04114"
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "Hops out.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 3,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Nodes, the centre included.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 60
            }
          },
          {
            "name": "fanout",
            "in": "query",
            "required": false,
            "description": "New nodes per expanded node.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "kinds",
            "in": "query",
            "required": false,
            "description": "Only neighbours of these kinds. Comma-separated.",
            "schema": {
              "type": "string",
              "maxLength": 600
            }
          },
          {
            "name": "types",
            "in": "query",
            "required": false,
            "description": "Only these edge types or reference properties. Comma-separated.",
            "schema": {
              "type": "string",
              "maxLength": 600
            }
          },
          {
            "name": "links",
            "in": "query",
            "required": false,
            "description": "all: edges and reference links; edges: edges of the build only.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "edges"
              ],
              "default": "all"
            }
          },
          {
            "name": "properties",
            "in": "query",
            "required": false,
            "description": "Include each edge's own properties. With `false` a link that is a hand-made row still carries `review`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "true"
            }
          },
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes. The read is priced and counted as without the parameter, and its entity tag is the encoded answer's own. An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Nodes, links among them, groups.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/GraphEnvelope"
                    },
                    {
                      "$ref": "#/components/schemas/Neighbourhood"
                    }
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched the ETag, which names the build and the query)."
          },
          "400": {
            "description": "REFERENCE_GRAPH_PARAMETER_REPEATED. Or BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "REFERENCE_GRAPH_NODE_NOT_FOUND: no node of the build has that id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "VALIDATION_FAILED (unknown parameter, value out of range) or REFERENCE_GRAPH_UNKNOWN_NAME (a kind or type the build has not; detail.known lists them).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "REFERENCE_GRAPH_RATE_LIMITED: over the budget the request is counted in, named in error.detail.scope (key, client or shared; the tag's description states each); Retry-After says when, in whole seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "REFERENCE_GRAPH_UNAVAILABLE: no pack on this copy, or a damaged one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "3. Walk out from the protein",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/neighbourhood?id=uniprot%3AP04114&depth=1&limit=40&properties=false\"",
            "x-answer": "24 nodes and 30 links: the APOB gene (1 ENCODED_BY edge), 20 Reactome pathways through 27 PARTICIPATES_IN edges, and the 2 laboratory tests that measure the protein (2 HAS_ANALYTE edges).",
            "x-example-id": "kg-neighbourhood"
          }
        ]
      }
    },
    "/api/v1/reference-graph/paths": {
      "get": {
        "tags": [
          "Reference graph"
        ],
        "operationId": "getPaths",
        "summary": "Shortest connections between two nodes",
        "description": "Fewest hops over edges and reference links (links=edges: edges only), the most specific intermediate nodes first, under the walk rules. The rules: A family tree is climbed from child to parent, or from part to whole, and never descended: a path does not come back down to a sibling. A statement is walked from its start to its end only. Two starts that share an end are not linked to each other by it. Walked from a gene to a DNA change that lies in it, and not from the DNA change to the gene. Walked from subject to object always, and back only where the stating source pairs the two entries one to one. A statement its own source disputes or refutes is never a step: it is returned beside the path, in `alsoStated` and on the step it lies along, with who states it and its grade in the source's words. A grouping class (a class with very many direct kinds) and a record that belongs to one entry may start or end a path and are never passed through. /kinds gives the rule of every link type of the served build. The pair is searched in both orders and the shorter answer is given; at one length the paths of both are listed. A path's `nodes` always run from `from` to `to`, and its `direction` says which way the rules walk it (`forward`: from `from`; `backward`: from `to`). `paths[].steps[i]` is the step between `nodes[i]` and `nodes[i + 1]`: `links` lists every link between the two that the path may walk (parallel statements of several sources are one step), and `paths[].links[i]` is the first of them, as before 1.2.0. `reading: \"molecule route\"` marks a path from a laboratory test to the body that runs through the molecule the test measures and rests on no reviewed row of the test itself: it is worded by its links, never as what the test is read for. With no path the rules return within `maxHops`, `distance` is null and `reason` says what was searched. `shared` then names up to five entries both ends hold a link to (or from), each in one sentence with each end's own links to it, for these pairs of ends: a symptom two diseases have; a sign two diseases show; a disease two genes are stated to be linked to; a code two diseases or codes are mapped to; an entry two models read; a DNA change ClinVar links to two diseases; a gene two DNA changes lie in; a disease ClinVar links two DNA changes to. For any other pair of ends `shared` is an empty list. `truncated` is true when there are more than the five, or when both ends hold more than 200,000 links of one sort and that sort was left out. Costs 4 units.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "description": "Start node.",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 300
            },
            "example": "ensembl:ENSG00000130203"
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "description": "End node.",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 300
            },
            "example": "mondo:0004975"
          },
          {
            "name": "maxHops",
            "in": "query",
            "required": false,
            "description": "Longest connection searched.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 6,
              "default": 4
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Paths to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 5
            }
          },
          {
            "name": "links",
            "in": "query",
            "required": false,
            "description": "all: edges and reference links; edges: edges of the build only.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "edges"
              ],
              "default": "all"
            }
          },
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes. The read is priced and counted as without the parameter, and its entity tag is the encoded answer's own. An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Distance, paths as ids with their steps, the nodes and links they name, and what stands beside a path.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/GraphEnvelope"
                    },
                    {
                      "$ref": "#/components/schemas/PathsResult"
                    }
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched the ETag, which names the build and the query)."
          },
          "400": {
            "description": "REFERENCE_GRAPH_PARAMETER_REPEATED. Or BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "REFERENCE_GRAPH_NODE_NOT_FOUND: no node of the build has that id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "VALIDATION_FAILED (unknown parameter, value out of range) or REFERENCE_GRAPH_UNKNOWN_NAME (a kind or type the build has not; detail.known lists them).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "REFERENCE_GRAPH_RATE_LIMITED: over the budget the request is counted in, named in error.detail.scope (key, client or shared; the tag's description states each); Retry-After says when, in whole seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "REFERENCE_GRAPH_UNAVAILABLE: no pack on this copy, or a damaged one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "4. Gene to disease, with ClinVar's evidence on the edge",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/paths?from=ensembl%3AENSG00000130203&to=mondo%3A0004975&maxHops=4&limit=5\"",
            "x-answer": "Distance 2, 2 paths of that length: APOE, the variant spdi:NC_000019.10:44908683:T:C, Alzheimer disease, walked as asked (direction forward): from the gene to a DNA change that lies in it, then ClinVar's link from the DNA change to the disease. The edge carries the highest review status among ClinVar's submissions for this condition \"criteria provided, single submitter\". The other path runs through hp:0002511: a sign the gene is stated for, and the sign's own row names the disease (a reference link, listed as \"reference\").",
            "x-example-id": "kg-paths-apoe"
          },
          {
            "lang": "Shell",
            "label": "5. Genotype to prescribing guidance",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/paths?from=cpic.diplotype%3ACYP2C19*2%2F*2&to=clinpgx%3Aguideline%2FPA166251443&maxHops=4&limit=3&links=edges\"",
            "x-answer": "Distance 2, 1 path: CYP2C19 *2/*2, PREDICTS poor metaboliser, HAS_GUIDELINE \"CYP2C19 and Clopidogrel\", CPIC's guideline for that phenotype and clopidogrel. Source cpic, licence CC0. direction forward; each step lists 1 link.",
            "x-example-id": "kg-paths-cyp2c19"
          },
          {
            "lang": "Shell",
            "label": "6. A laboratory test to what it measures, with the row's review on the edge",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/paths?from=loinc%3A1884-6&to=uniprot%3AP04114&maxHops=6\"",
            "x-answer": "Distance 1: the ApoB test, HAS_ANALYTE, the ApoB protein (role measured), direction forward. The edge is a hand-made row of the table lab/test_analytes and carries its record: review_status \"signed_off\", the name of the person who signed it for the build (reviewed_by) and the day 2026-11-26. `review` gives that record as fields with the label a page prints: who compiled the row, who signed it for the build, and the review it carries.",
            "x-example-id": "kg-test-analyte"
          },
          {
            "lang": "Shell",
            "label": "Two diseases one DNA change is linked to: named as sharing it, not as linked to each other",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/paths?from=mondo%3A0004975&to=mondo%3A0007390&maxHops=4\"",
            "x-answer": "distance null: a statement is walked from its start to its end only, so a DNA change that ClinVar links to Alzheimer disease and to coumarin resistance is no path between the two. shared names what the two have in common, 1 entry: \"ClinVar links the DNA change NM_000041.4(APOE):c.388T>C (p.Cys130Arg) to both\" (spdi:NC_000019.10:44908683:T:C, by VARIANT_ASSOCIATED_WITH), with each disease's own link to it.",
            "x-example-id": "kg-paths-shared"
          },
          {
            "lang": "Shell",
            "label": "Diseases: which genes are stated for cystic fibrosis, and with what grade? Step 2 of 2: The path from the gene CFTR to cystic fibrosis, with the statements on its step",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/paths?from=ensembl%3AENSG00000001626&to=mondo%3A0009061&maxHops=4\"",
            "x-answer": "distance and the shortest paths from ensembl:ENSG00000001626 to mondo:0009061 that the walk rules allow, each from the first entry to the second; or distance null with the reason, and beside it what the two share and the statements a source disputes or refutes.",
            "x-example-id": "layer-disease-genes.2"
          },
          {
            "lang": "Shell",
            "label": "Diseases: from a hospital code to the disease Step 1 of 2: The path from the ICD-10-CM code E11.9 to type 2 diabetes mellitus",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/paths?from=icd10cm%3AE11.9&to=mondo%3A0005148&maxHops=4\"",
            "x-answer": "distance and the shortest paths from icd10cm:E11.9 to mondo:0005148 that the walk rules allow, each from the first entry to the second; or distance null with the reason, and beside it what the two share and the statements a source disputes or refutes.",
            "x-example-id": "layer-code-to-disease.1"
          },
          {
            "lang": "Shell",
            "label": "Diseases: from a hospital code to the disease Step 2 of 2: The codes E11.9 and E10.9, asked for a path between them",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/paths?from=icd10cm%3AE11.9&to=icd10cm%3AE10.9&maxHops=4\"",
            "x-answer": "distance and the shortest paths from icd10cm:E11.9 to icd10cm:E10.9 that the walk rules allow, each from the first entry to the second; or distance null with the reason, and beside it what the two share and the statements a source disputes or refutes.",
            "x-example-id": "layer-code-to-disease.2"
          },
          {
            "lang": "Shell",
            "label": "Diseases: a statement its source refutes Step 1 of 2: The gene CPA6 and epilepsy, asked for a path within three hops",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/paths?from=ensembl%3AENSG00000165078&to=mondo%3A0005027&maxHops=3\"",
            "x-answer": "distance and the shortest paths from ensembl:ENSG00000165078 to mondo:0005027 that the walk rules allow, each from the first entry to the second; or distance null with the reason, and beside it what the two share and the statements a source disputes or refutes.",
            "x-example-id": "layer-refuted-statement.1"
          },
          {
            "lang": "Shell",
            "label": "Body: from a test to the cell it is about, to the organ Step 5 of 5: The path from the erythrocyte to the spleen",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/paths?from=cl%3A0000232&to=uberon%3A0002106&maxHops=4\"",
            "x-answer": "distance and the shortest paths from cl:0000232 to uberon:0002106 that the walk rules allow, each from the first entry to the second; or distance null with the reason, and beside it what the two share and the statements a source disputes or refutes.",
            "x-example-id": "layer-test-to-organ.5"
          }
        ]
      }
    },
    "/api/v1/reference-graph/kinds": {
      "get": {
        "tags": [
          "Reference graph"
        ],
        "operationId": "getKinds",
        "summary": "Every kind and link type of the build: its count, its words and its walk rule",
        "description": "The tables the pages print from and the path search reads, for the kinds and link types the served build has rows of. `kinds`: the name, the count, what a page calls one and many of the kind (`one`, `many`), what it is (`what`), how search finds it (`searchedBy`), the family of its reading in /node (`reading`) and, for a kind a contract file of the graph's layers adds, that file (`addedBy`). `linkTypes`: the name, the count, the words of the link read from its start (`label`) and from its end (`back`), the kinds it joins with the links between each pair (`between`) and `walk`: the rule /paths follows for the type, by name and in one sentence. `referenceLinks`: the build's reference links by the properties that state them, each with its rule. `walkRules` lists each rule a link type of the build follows, with those types. `endsOnly` names the kinds that start or end a path, and `groupingClasses` the classes that end one. `contractRules` quotes, word for word from the graph contract's own files, the path-search rules of the disease layer and the wording rules of the variant layer, where the build has rows of that layer. Costs 1 unit.",
        "parameters": [
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes. The read is priced and counted as without the parameter, and its entity tag is the encoded answer's own. An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The kinds, the link types and the walk rules of the served build.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/GraphEnvelope"
                    },
                    {
                      "$ref": "#/components/schemas/KindsAnswer"
                    }
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched the ETag, which names the build and the query)."
          },
          "400": {
            "description": "REFERENCE_GRAPH_PARAMETER_REPEATED. Or BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "VALIDATION_FAILED (unknown parameter, value out of range) or REFERENCE_GRAPH_UNKNOWN_NAME (a kind or type the build has not; detail.known lists them).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "REFERENCE_GRAPH_RATE_LIMITED: over the budget the request is counted in, named in error.detail.scope (key, client or shared; the tag's description states each); Retry-After says when, in whole seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "REFERENCE_GRAPH_UNAVAILABLE: no pack on this copy, or a damaged one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "Every kind and link type of the build: what a page calls it, and the rule the path search follows",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/kinds\"",
            "x-answer": "45 kinds and 65 link types, each with its count, its words and its walk rule. A Variant is called \"DNA change\". LOCATED_IN follows the rule \"end to start\" (walked from a gene to a DNA change that lies in it), VARIANT_ASSOCIATED_WITH the rule \"stated direction\"; 10 link types are walked both ways, and walkRules lists every rule with the link types under it. A kind whose node answers carry a reading names its family (Biomarker: test).",
            "x-example-id": "kg-kinds"
          }
        ]
      }
    },
    "/api/v1/reference-graph/stats": {
      "get": {
        "tags": [
          "Reference graph"
        ],
        "operationId": "getStats",
        "summary": "Counts, isolated nodes per kind, verification",
        "description": "The counts equal the signed manifest's. `verification` records the signature check and the re-hash of every CSV file, `verification.keyFingerprint` the fingerprint of the signing key and `verification.outputSha256Recomputed` the build's output_sha256: compare both with the download (verify.sh takes them as its arguments). `layers` holds the figures /reference-graph prints for the graph's layers (diseases with their family trees and codes; the body and VERA's models; the DNA changes with the genome references), counted from the pack at the request by the function the page calls: each layer the build has rows of, with its figures and its counted tables. Not cached. Costs 1 unit.",
        "parameters": [
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes. The read is priced and counted as without the parameter, and its entity tag is the encoded answer's own. An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Counts per kind and type, isolated nodes, the most linked node per kind, verification, the layers' figures.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/GraphEnvelope"
                    },
                    {
                      "$ref": "#/components/schemas/GraphStats"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "REFERENCE_GRAPH_PARAMETER_REPEATED. Or BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "VALIDATION_FAILED (unknown parameter, value out of range) or REFERENCE_GRAPH_UNKNOWN_NAME (a kind or type the build has not; detail.known lists them).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "REFERENCE_GRAPH_RATE_LIMITED: over the budget the request is counted in, named in error.detail.scope (key, client or shared; the tag's description states each); Retry-After says when, in whole seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "REFERENCE_GRAPH_UNAVAILABLE: no pack on this copy, or a damaged one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "Counts per kind and per edge type, and the signature check",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/stats\"",
            "x-answer": "5,593,578 nodes, 20,284,892 edges, 59,100 reference links; Biomarker 242, of which 241 have a link; 266 HAS_ANALYTE edges; the manifest's signature verified when the pack was made, by the key SHA256:KVPlqDbWHStLFb7IEX95Vqf6W8FUFgIBfRgIFpdxqhU; output_sha256 recomputed: af0b39c0304f5dce67d89f6d201c5460b51bb977636605eeabe20628b653f6d2.",
            "x-example-id": "kg-stats"
          }
        ]
      }
    },
    "/api/v1/reference-graph/sources": {
      "get": {
        "tags": [
          "Reference graph"
        ],
        "operationId": "getSources",
        "summary": "Every source, release and licence, and the notice texts",
        "description": "`sources`: each source with its pinned release, its licence and the records the build takes from it. `licences`, `notices` and `changesMade`: the texts a screen that shows these records shows with them. `notInBuild` is an empty list from 1.2.0 and `pinnedWithoutRecords` null from 1.3.0, and both leave the answer with the next version; the builder's own notices file is in the download, byte for byte. Costs 1 unit.",
        "parameters": [
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes. The read is priced and counted as without the parameter, and its entity tag is the encoded answer's own. An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Sources, licences, notices.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/GraphEnvelope"
                    },
                    {
                      "$ref": "#/components/schemas/GraphSources"
                    }
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched the ETag, which names the build and the query)."
          },
          "400": {
            "description": "REFERENCE_GRAPH_PARAMETER_REPEATED. Or BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "VALIDATION_FAILED (unknown parameter, value out of range) or REFERENCE_GRAPH_UNKNOWN_NAME (a kind or type the build has not; detail.known lists them).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "REFERENCE_GRAPH_RATE_LIMITED: over the budget the request is counted in, named in error.detail.scope (key, client or shared; the tag's description states each); Retry-After says when, in whole seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "REFERENCE_GRAPH_UNAVAILABLE: no pack on this copy, or a damaged one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "Every source, release and licence, with the notices to show",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/sources\"",
            "x-answer": "Each source with its pinned release and licence; the notices loinc, alphamissense, arab-pangenome-supplement, cell-ontology, civic, clingen-dosage, clingen-erepo, clingen-validity, cpic, gencc, gnomad, gwas-catalog, hgsvc3-assembly-info, hgsvc3-variant-calls, hpa, hprc-release2-tables, hra-asctb, igsr-1kg-populations, oh2023-organ-proteins, oh2025-organ-aging, orphanet, pharmgkb, uberon, hpo, chebi, credit.",
            "x-example-id": "kg-sources"
          }
        ]
      }
    },
    "/api/v1/reference-graph/download": {
      "get": {
        "tags": [
          "Graph download"
        ],
        "operationId": "getDownloadIndex",
        "summary": "The signed build for one's own Neo4j 5.26: what the download holds",
        "description": "PREPAIRE-VERA-REFERENCE-GRAPH-DOWNLOAD@1.0.0. The archive holds the files the builder signed, byte for byte: manifest.json, its signature, and the 310 CSV files and constraints.cypher that manifest.json lists with their SHA-256. Beside them, and not signed: the public key, the sources' notices (ATTRIBUTION.md), and VERA's README, verify.sh, import.sh, check.cypher and examples.cypher. The key inside the archive proves nothing by itself: compare its fingerprint with the one in this document's description and in /stats (verification.keyFingerprint); verify.sh takes it as its first argument. import.sh builds the graph in a Neo4j 5.26 of one's own from the signed CSV files. check.cypher prints the build hash and the counts per label and type for you to compare with manifest.json; that shows which build was loaded, not that every property is unchanged. prepaire-reference-kg-3ee489ad88d928d3.tar.gz is kept on VERA's public storage: the list gives its address there (`storage`) and the line that checks the fetched file against its SHA-256 (`check`), and VERA answers the file's own address with a redirect. Costs 1 unit.",
        "parameters": [
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes. The read is priced and counted as without the parameter, and its entity tag is the encoded answer's own. An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The build, the signature and every file with its size, SHA-256 and address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadIndex"
                }
              }
            }
          },
          "400": {
            "description": "BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "VALIDATION_FAILED: the endpoint takes no parameter but `encoding`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the budget.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "REFERENCE_GRAPH_UNAVAILABLE.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "The signed graph for your own Neo4j: what is in the download",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/reference-graph/download\"",
            "x-answer": "The build, the signature (OpenSSH, principal prepaire-kg-build, key SHA256:KVPlqDbWHStLFb7IEX95Vqf6W8FUFgIBfRgIFpdxqhU), and each file with its size, SHA-256 and address: the archive (.tar.gz, 975.5 MB) of the signed CSV files, which import.sh loads into a Neo4j 5.26 of your own, is kept on VERA's public storage (stverapublicbd305a.blob.core.windows.net); VERA answers its address with a redirect to the file there, and the list gives the one line that checks the fetched file against its SHA-256.",
            "x-example-id": "download-index"
          },
          {
            "lang": "Shell",
            "label": "Download the signed build, check it, load it into Neo4j 5.26",
            "source": "# the archive is kept on VERA's public storage: VERA answers with a redirect, which curl follows with -L\ncurl -fLO \"$VERA/api/v1/reference-graph/download/prepaire-reference-kg-3ee489ad88d928d3.tar.gz\"\n# check the archive against the SHA-256 VERA's list gives for it (GET /api/v1/reference-graph/download gives this line for each file kept on the storage, as \"check\")\necho \"2e201ca017529da732b86c045634d76b4d2f1791b250ec80813ed9439ad3a2fa  prepaire-reference-kg-3ee489ad88d928d3.tar.gz\" | shasum -a 256 -c -\ntar -xzf prepaire-reference-kg-3ee489ad88d928d3.tar.gz && cd prepaire-reference-kg-3ee489ad88d928d3\n# read verify.sh first: it is not signed. Its arguments are the key's fingerprint and output_sha256 as VERA publishes them.\n./verify.sh SHA256:KVPlqDbWHStLFb7IEX95Vqf6W8FUFgIBfRgIFpdxqhU af0b39c0304f5dce67d89f6d201c5460b51bb977636605eeabe20628b653f6d2\n# then, with Neo4j 5.26 stopped (README.md in the archive has every step):\nNEO4J_HOME=/path/to/neo4j-community-5.26.33 ./import.sh",
            "x-answer": "VERA answers with a redirect (302) to the archive's own address on its public storage, https://stverapublicbd305a.blob.core.windows.net/graph/3ee489ad88d928d3/prepaire-reference-kg-3ee489ad88d928d3.tar.gz, and states in the headers x-content-bytes and x-content-sha256 the size (975,463,315 bytes) and the SHA-256 (2e201ca017529da732b86c045634d76b4d2f1791b250ec80813ed9439ad3a2fa) the file there must have; curl -L follows the redirect, and the list's check line holds the fetched file against that SHA-256. The archive holds manifest.json, the one VERA's pack was made from, the 310 CSV files, each with the size and SHA-256 manifest.json lists for it, and constraints.cypher with the SHA-256 manifest.json states for it (5,593,578 nodes and 20,284,892 edges in the manifest's counts). verify.sh checks the key against the fingerprint, the signature, every file and output_sha256; import.sh then builds the graph from the CSV files in a Neo4j of your own, with the options the builder's own runtime uses (5,593,578 nodes and 20,284,892 relationships by the manifest's counts).",
            "x-example-id": "download-verify"
          }
        ]
      }
    },
    "/api/v1/reference-graph/download/{file}": {
      "get": {
        "tags": [
          "Graph download"
        ],
        "operationId": "getDownloadFile",
        "summary": "One file of the download, streamed",
        "description": "Only names the index lists. The answer is streamed without Content-Length (Next.js drops it from route-handler answers), so a client shows no size or progress: the size is in the index (`bytes`) and the SHA-256 in the index and SHA256SUMS. The ETag and x-content-sha256 carry the file's SHA-256 (sent by the same server as the file, so they show the transfer was complete, not who made the file). A request with one range of bytes (Range: bytes=first-last) for a file this copy sends from its own disk is answered 206 with Content-Range and those bytes (Accept-Ranges: bytes), and 416 for a range that holds no byte of the file, so a reader whose connection ended goes on where it stopped; a file answered with a redirect is read in ranges at the storage. A range costs 1 unit. The .tar.gz and manifest.json, which the build's key signs, are application/octet-stream; a reader holds each file that arrived to the SHA-256 the index states for it. The archive and manifest.json are sent with Content-Disposition attachment, every file with Cache-Control no-transform. A small file costs 1 unit, and so does a file answered with a redirect, a name the index does not list, a HEAD and a 304. The archive, where this copy sends the file itself, is counted apart from the queries: VERA sends 4 such files at a time and 30 a minute, and a caller a proxy names also spends 30 units of its own minute for each; past that 429 with Retry-After, with `error.detail.scope` `shared` where the places or the minute of everybody's large files together refused. A place has a floor of pace: a reader that has taken fewer than 10 MiB in 10 seconds is let go and its place given back, and asks again with Range. Ranges of such a file are counted in the minute apart from the files asked for whole, to the same figures, each as the share of the file this copy read for it: the range's own bytes for a file kept as it is sent.",
        "parameters": [
          {
            "name": "file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "verify.sh"
          }
        ],
        "responses": {
          "200": {
            "description": "The file.",
            "headers": {
              "x-content-sha256": {
                "schema": {
                  "type": "string"
                }
              },
              "etag": {
                "schema": {
                  "type": "string"
                }
              },
              "content-disposition": {
                "description": "attachment; filename=\"<file>\" for the archive and manifest.json.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/x-tar": {},
              "application/octet-stream": {},
              "text/plain": {}
            }
          },
          "206": {
            "description": "For a request with one range of bytes of a file this copy sends from its own disk: those bytes, with Content-Range (bytes first-last/size) and Content-Length.",
            "headers": {
              "content-range": {
                "schema": {
                  "type": "string"
                }
              },
              "etag": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/x-tar": {},
              "application/octet-stream": {},
              "text/plain": {}
            }
          },
          "302": {
            "description": "For a file the index lists with `storage`: a redirect to the file on VERA's public storage, for GET and HEAD alike. `location` is the entry's `storage`; x-content-sha256 and x-content-bytes carry the SHA-256 and the size the fetched file must have (the entry's `check` line compares the first). curl follows it with -L.",
            "headers": {
              "location": {
                "schema": {
                  "type": "string"
                }
              },
              "x-content-sha256": {
                "schema": {
                  "type": "string"
                }
              },
              "x-content-bytes": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified."
          },
          "400": {
            "description": "BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "REFERENCE_GRAPH_FILE_NOT_FOUND; detail.files lists the names.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "The range holds no byte of the file; Content-Range states the file's size (bytes */size)."
          },
          "429": {
            "description": "Over the budget.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "REFERENCE_GRAPH_UNAVAILABLE.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "tags": [
          "Graph download"
        ],
        "operationId": "headDownloadFile",
        "summary": "The file's headers (SHA-256; no Content-Length), no body",
        "parameters": [
          {
            "name": "file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "verify.sh"
          }
        ],
        "responses": {
          "200": {
            "description": "Headers only."
          },
          "302": {
            "description": "For a file kept on VERA's public storage: the redirect GET answers."
          },
          "400": {
            "description": "BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection."
          },
          "404": {
            "description": "Not listed."
          }
        }
      }
    },
    "/api/v1/model-runs": {
      "get": {
        "tags": [
          "Model runs"
        ],
        "operationId": "getModelRuns",
        "summary": "Every model task with its status, its runs and their evidence, the run ledger and the runner keys",
        "description": "The Models page's data. A model is shown as ran only when a signed run record verifies: from this node's ledger, or a signed record shipped with the release, verified on every read with the same checks (signature with a registered key, every output re-hashed, weights, hardware, times). Each row's observed run is the one its page shows (the recorded manifest's primary run, else the newest verified one). `?taskId=` narrows it to one task. A run's `receivedAt` is the time this node's ledger took it in or, for a record shipped with the release, the time its signed manifest states (`shipped.signedAt`): no time of a read stands in the answer, so two reads of one copy give the same bytes while its records and keys stand. Public reference and synthetic data only; no person's result.",
        "parameters": [
          {
            "name": "taskId",
            "in": "query",
            "required": false,
            "description": "One task of the model stack.",
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "example": "genomics.dna-foundation-model"
          },
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes (a run record holds paths of the machine it ran on, which a host that rewrites answers changes). An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "1. The frontier models, each with its status and the run its page shows",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/model-runs\" \\\n  | python3 -c 'import json,sys; [print(r[\"taskId\"], \"|\", r[\"statusLabel\"], \"|\", (r[\"observed\"] or {}).get(\"runId\")) for r in json.load(sys.stdin)[\"rows\"] if r[\"frontier\"]]'",
            "x-answer": "Eight lines, one for each frontier model with its status: seven \"Ran (signed run record)\" (Kumo-Tabular, Evo 2 7B base, CpGPT, SCimilarity, MGM, Pulse-PPG, ECG-FM), each with the run id its page shows (Evo 2's is …bf62d256, the first full run, which steps 2 to 5 download; its FP8-off run …7bc874bc is listed on its page among its other runs; CpGPT's is the run with the authors' input preparation, …1f7ca84a).",
            "x-example-id": "runs-list"
          }
        ],
        "responses": {
          "200": {
            "description": "The tasks, statuses, runs (each with VERA's checks and the key), the ledger's chain state, the shipped signed records and the keys (public keys and fingerprints).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "MODEL_TASK_NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "ENCODING_INVALID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Model runs"
        ],
        "operationId": "submitModelRun",
        "summary": "A runner submits one signed run record with its output files",
        "description": "Only on a node set up to take run submissions (the preview and the operational nodes); any other copy, the App Store copy among them, answers 403 MODEL_RUN_SUBMISSIONS_OFF, since its runs reach it as signed records shipped with the release. Body: { record, outputs: [{ name, contentBase64 }], inputs?: [...] }, at most 34 MiB (the bound the runners' own contract states). 201 kept (verified, with every check), 200 the same record again, 403 key not registered, 409 runId taken or shipped with the release, 413 too large, 422 not of the contract, or refused by a check (nothing is kept). Not passed through the request proxy, so a large body is not cut.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "record",
                  "outputs"
                ],
                "properties": {
                  "record": {
                    "type": "object"
                  },
                  "outputs": {
                    "type": "array"
                  },
                  "inputs": {
                    "type": "array"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The same record again.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "201": {
            "description": "Kept, with every check.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "MODEL_RUN_SUBMISSIONS_OFF, MODEL_RUN_KEY_NOT_REGISTERED or MODEL_RUN_KEY_REVOKED.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "MODEL_RUN_ID_TAKEN or MODEL_RUN_ID_SHIPPED.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "MODEL_RUN_SCHEMA, MODEL_RUN_SIGNATURE, MODEL_RUN_SUBMISSION or MODEL_RUN_REFUSED (with the checks).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/model-runs/keys": {
      "get": {
        "tags": [
          "Model runs"
        ],
        "operationId": "getModelRunnerKeys",
        "summary": "The runner keys this copy accepts run records from: public keys and their fingerprints",
        "description": "Public keys only (Ed25519 SubjectPublicKeyInfo DER, base64), each with its fingerprint (SHA-256 of that DER) computed on this read and where it is registered: with the release (`registeredBy` shipped) or on this node (`registeredBy` node), the file named in `registeredIn`. A client hashes the key itself and verifies a run record's signature with it: the Models page's live checks do so in the visitor's browser with WebCrypto.",
        "responses": {
          "200": {
            "description": "The keys: keyId, algorithm, publicKey, fingerprint, owner, createdAt, revoked, registeredBy, registeredIn.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "contract",
                    "readAt",
                    "keys"
                  ],
                  "properties": {
                    "contract": {
                      "type": "string"
                    },
                    "readAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "keys": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "keyId",
                          "algorithm",
                          "publicKey",
                          "fingerprint",
                          "owner",
                          "createdAt",
                          "revoked",
                          "registeredBy",
                          "registeredIn"
                        ],
                        "properties": {
                          "keyId": {
                            "type": "string"
                          },
                          "algorithm": {
                            "type": "string",
                            "enum": [
                              "Ed25519"
                            ]
                          },
                          "publicKey": {
                            "type": "string",
                            "description": "The public key: SubjectPublicKeyInfo DER, base64."
                          },
                          "fingerprint": {
                            "type": "string",
                            "pattern": "^[0-9a-f]{64}$",
                            "description": "SHA-256 of that DER, worked out on this read."
                          },
                          "owner": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "revoked": {
                            "type": "boolean"
                          },
                          "registeredBy": {
                            "type": "string",
                            "enum": [
                              "shipped",
                              "node"
                            ]
                          },
                          "registeredIn": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/model-runs/{runId}": {
      "get": {
        "tags": [
          "Model runs"
        ],
        "operationId": "getModelRun",
        "summary": "One run as VERA verified it: the signed record, VERA's checks, the key",
        "description": "From this node's ledger (with its entry and chain hashes), else from the signed records shipped with the release, verified on this read: `verifiedAt` is the time of this read, at which the checks were made (the one field of the answer that differs between two reads), and `receivedAt` the time the signed manifest states.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "evo2-brca1-findlay-evo2-7b-base-full-20261120t103457z-bf62d256"
          },
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes (a run record holds paths of the machine it ran on, which a host that rewrites answers changes). An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The run.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "MODEL_RUN_NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "ENCODING_INVALID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/model-runs/outputs/{sha256}": {
      "get": {
        "tags": [
          "Model runs"
        ],
        "operationId": "getModelRunOutput",
        "summary": "An output file of a verified run, by its SHA-256",
        "description": "Re-hashed before it is sent; x-content-sha256 carries the digest. Sent as a file for download, its name in Content-Disposition (attachment), with Cache-Control no-transform: a JSON file as application/octet-stream, a CSV file as text/csv, a text file as text/plain. A reader hashes what arrived and holds it to x-content-sha256. A recorded run's output is also read in the encoded form, whose decoded bytes are the bytes that were hashed, at GET model-runs/recorded/{runId}/{file}.",
        "parameters": [
          {
            "name": "sha256",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "example": "d27766a6fea18ab18fa07554460ab8eed57468ab52cf3ce1372cb28d318d7c15"
          }
        ],
        "responses": {
          "200": {
            "description": "The file.",
            "headers": {
              "x-content-sha256": {
                "schema": {
                  "type": "string"
                }
              },
              "content-disposition": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/octet-stream": {},
              "text/csv": {},
              "text/plain": {}
            }
          },
          "400": {
            "description": "BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "MODEL_RUN_OUTPUT_NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "SHA256_INVALID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/model-runs/recorded": {
      "get": {
        "tags": [
          "Model runs"
        ],
        "operationId": "getRecordedRuns",
        "summary": "The run records on file, each checked against its files, and whether its signed copy verifies",
        "description": "The run records kept with the release: each record copied byte for byte from its branch of the runners' repository (vera-frontier) at a pinned commit (or fetched from the machine it ran on), every output's size and SHA-256 compared with it, the record checked against the contract and its digest computed. The whole check is made when a copy first answers this call, again whenever a file of the records, of the signed copies or of the key register has changed, and at least once a minute; an answer in between is that check's own bytes. A record whose signed copy shipped with the release verifies in that check has state \"signed\" and names the signed copy's file, key and digest; the others keep their recorded state.",
        "parameters": [
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the answer's exact bytes come as base64url text inside one fixed wrapper, {\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}, a form a host on the way passes on as it is: decode `data` to hold this copy's own bytes. The read is priced and counted as without the parameter, and its entity tag is the encoded answer's own. An answer that is no 200 comes plain. Any other value is refused 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The recorded runs.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "contract",
                    "notes",
                    "directory",
                    "runs",
                    "unavailable"
                  ],
                  "properties": {
                    "contract": {
                      "type": "string"
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "directory": {
                      "type": "string"
                    },
                    "runs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "runId",
                          "taskId",
                          "state",
                          "stateLabel",
                          "problems",
                          "schemaIssues",
                          "recordSha256",
                          "source",
                          "model",
                          "input",
                          "outputs",
                          "signed"
                        ],
                        "properties": {
                          "runId": {
                            "type": "string"
                          },
                          "taskId": {
                            "type": "string"
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "signed",
                              "recorded",
                              "contract",
                              "mismatch"
                            ],
                            "description": "signed: the signed copy shipped with the release verifies in the copy's latest check (the call's description says when a check is made). recorded: every output's size and SHA-256 equal to the record. contract: the outputs check out and the record does not match the run contract. mismatch: an output or the record file differs."
                          },
                          "stateLabel": {
                            "type": "string"
                          },
                          "problems": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "schemaIssues": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "recordSha256": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^[0-9a-f]{64}$",
                                "description": "SHA-256, in hexadecimal, of the record's canonical bytes: the record without its `signature` member, written as the schema of a recorded run's file says. The runner key signs those bytes themselves."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "source": {
                            "type": "object",
                            "required": [
                              "repository",
                              "branch",
                              "commit",
                              "path",
                              "recordFileSha256",
                              "recordFileMatches",
                              "fetched"
                            ],
                            "properties": {
                              "repository": {
                                "type": "string"
                              },
                              "branch": {
                                "type": "string"
                              },
                              "commit": {
                                "type": "string"
                              },
                              "path": {
                                "type": "string"
                              },
                              "recordFileSha256": {
                                "type": "string"
                              },
                              "recordFileMatches": {
                                "type": "boolean"
                              },
                              "fetched": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "required": [
                                      "host",
                                      "path",
                                      "fetchedAt",
                                      "recordDigestPrintedByDriver",
                                      "driverLogSha256"
                                    ],
                                    "properties": {
                                      "host": {
                                        "type": "string"
                                      },
                                      "path": {
                                        "type": "string"
                                      },
                                      "fetchedAt": {
                                        "type": "string"
                                      },
                                      "recordDigestPrintedByDriver": {
                                        "type": "string"
                                      },
                                      "driverLogSha256": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          },
                          "note": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cardLine": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "primary": {
                            "type": "boolean"
                          },
                          "corrections": {
                            "type": "object",
                            "required": [
                              "datasetLicence",
                              "datasetVersion",
                              "checks"
                            ],
                            "properties": {
                              "datasetLicence": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "datasetVersion": {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              },
                              "checks": {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "inputSources": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "model": {
                            "type": "object",
                            "required": [
                              "name",
                              "version",
                              "architecture",
                              "parameters",
                              "sourceUrl",
                              "revision",
                              "licence"
                            ],
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              },
                              "architecture": {
                                "type": "string"
                              },
                              "parameters": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourceUrl": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "revision": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "licence": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "name",
                                  "url"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "url": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "weights": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "path",
                                "sha256",
                                "bytes"
                              ],
                              "properties": {
                                "path": {
                                  "type": "string"
                                },
                                "sha256": {
                                  "type": "string"
                                },
                                "bytes": {
                                  "type": "integer"
                                }
                              }
                            }
                          },
                          "weightsDigest": {
                            "type": "string"
                          },
                          "input": {
                            "type": "object",
                            "required": [
                              "dataClass",
                              "description",
                              "dataTypes",
                              "datasets",
                              "files"
                            ],
                            "properties": {
                              "dataClass": {
                                "type": "string",
                                "enum": [
                                  "public_reference",
                                  "synthetic"
                                ]
                              },
                              "description": {
                                "type": "string"
                              },
                              "dataTypes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "datasets": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "name",
                                    "version",
                                    "url",
                                    "licence",
                                    "citation"
                                  ],
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "version": {
                                      "type": "string"
                                    },
                                    "url": {
                                      "type": "string"
                                    },
                                    "licence": {
                                      "type": "string"
                                    },
                                    "citation": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              "files": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "name",
                                    "sha256",
                                    "bytes"
                                  ],
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "sha256": {
                                      "type": "string"
                                    },
                                    "bytes": {
                                      "type": "integer"
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "outputs": {
                            "type": "array",
                            "description": "Each output file the record lists, its size and SHA-256 compared with the record in the copy's latest check; `matches` is true where the bytes on file have the record's SHA-256.",
                            "items": {
                              "type": "object",
                              "required": [
                                "name",
                                "bytes",
                                "sha256",
                                "matches"
                              ],
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "bytes": {
                                  "type": "integer"
                                },
                                "sha256": {
                                  "type": "string",
                                  "pattern": "^[0-9a-f]{64}$"
                                },
                                "matches": {
                                  "type": "boolean"
                                }
                              }
                            }
                          },
                          "figures": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "name",
                                "description",
                                "value",
                                "expected",
                                "passed"
                              ],
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "description": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string"
                                },
                                "expected": {
                                  "type": "string"
                                },
                                "passed": {
                                  "anyOf": [
                                    {
                                      "type": "boolean"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "otherChecks": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "name",
                                "description",
                                "value"
                              ],
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "description": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "summary": {
                            "type": "object",
                            "description": "The runner's own summary of the run, as its record holds it."
                          },
                          "execution": {
                            "type": "object",
                            "required": [
                              "host",
                              "accelerators",
                              "device",
                              "cpu",
                              "memoryBytes",
                              "os",
                              "arch",
                              "container",
                              "software",
                              "runner",
                              "command",
                              "startedAt",
                              "endedAt",
                              "durationMs"
                            ],
                            "properties": {
                              "host": {
                                "type": "string"
                              },
                              "accelerators": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "device": {
                                "type": "string"
                              },
                              "cpu": {
                                "type": "string"
                              },
                              "memoryBytes": {
                                "type": "number"
                              },
                              "os": {
                                "type": "string"
                              },
                              "arch": {
                                "type": "string"
                              },
                              "container": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "required": [
                                      "image",
                                      "digest"
                                    ],
                                    "properties": {
                                      "image": {
                                        "type": "string"
                                      },
                                      "digest": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "software": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "name",
                                    "version"
                                  ],
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "version": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "runner": {
                                "type": "object",
                                "required": [
                                  "path",
                                  "commit",
                                  "dirty"
                                ],
                                "properties": {
                                  "path": {
                                    "type": "string"
                                  },
                                  "commit": {
                                    "type": "string"
                                  },
                                  "dirty": {
                                    "type": "boolean"
                                  }
                                }
                              },
                              "command": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "startedAt": {
                                "type": "string"
                              },
                              "endedAt": {
                                "type": "string"
                              },
                              "durationMs": {
                                "type": "number"
                              }
                            }
                          },
                          "signed": {
                            "anyOf": [
                              {
                                "type": "object",
                                "required": [
                                  "file",
                                  "keyId",
                                  "fingerprint",
                                  "recordSha256"
                                ],
                                "properties": {
                                  "file": {
                                    "type": "string"
                                  },
                                  "keyId": {
                                    "type": "string"
                                  },
                                  "fingerprint": {
                                    "type": "string",
                                    "pattern": "^[0-9a-f]{64}$",
                                    "description": "SHA-256 of the signing key's SubjectPublicKeyInfo DER: the fingerprint GET model-runs/keys states for that keyId."
                                  },
                                  "recordSha256": {
                                    "type": "string",
                                    "pattern": "^[0-9a-f]{64}$"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "unavailable": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match named the answer's entity tag, the SHA-256 of its bytes (the encoded form has a tag of its own)."
          },
          "400": {
            "description": "BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "ENCODING_INVALID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "MODEL_RUNS_RATE_LIMITED: over the budget of the recorded runs' addresses. A caller with a name of its own has 600 calls a minute: a test key of a sandbox of one's own, sent as the bearer (Authorization: Bearer), is such a name, for the budget alone, and so is the caller's address on a copy whose environment states how many proxies in front of it append one (the entry that many places from the right of X-Forwarded-For, and no entry a caller writes itself). Every other caller is counted together with the others, and the holders of the sample key together: they are answered in turn at 200 calls a second, 50 at once after a pause. A call past that pace waits for its turn, up to 100 ms, and only a call whose turn lies further off is refused 429, with Retry-After in whole seconds; a refused call takes nothing from the budget. Every 429 states whose budget refused in `error.detail.scope`: `key` (a test key's own), `client` (a caller a proxy names) or `shared` (the callers counted together).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/model-runs/recorded/{runId}/{file}": {
      "get": {
        "tags": [
          "Model runs"
        ],
        "operationId": "getRecordedRunFile",
        "summary": "A recorded run's files: record.json, signed-record.json, outputs/<name>",
        "description": "record.json is the unsigned record byte for byte as copied from its branch; signed-record.json its signed copy; outputs/<name> each output the record lists, its size and SHA-256 compared with the record before it is sent. x-content-sha256 carries the SHA-256 of each file as this copy holds it. To hold a file's exact bytes, ask with `encoding=base64url` and decode `data`: a host between a caller and this copy passes that form on as it is, so a signed record arrives as it was signed and its digest and signature hold. The worked examples below take that form. Asked without the parameter, each is sent as a file for download, its name in Content-Disposition (attachment), with Cache-Control no-transform: record.json, signed-record.json and every JSON output as application/octet-stream, a CSV or text output as text/plain. A host that rewrites answers on their way may change a file sent so (the public copy's host writes its base path before a path inside one signed record); the file's SHA-256 is then another than x-content-sha256 states. {file} may hold a slash, sent as it is or encoded (outputs%2Fscores.csv): both name the same file.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "evo2-brca1-findlay-evo2-7b-base-full-20261120t103457z-bf62d256"
          },
          {
            "name": "file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "outputs/scores.csv"
          },
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "With base64url the file's exact bytes come as base64url text inside the fixed wrapper a JSON read's encoded form has ({\"encoding\":\"base64url\",\"bytes\":<the decoded length>,\"data\":\"<base64url, no padding>\"}), for a file of at most 8,000,000 bytes: decode `data`, then hash or verify those bytes. A host on the way passes that form on as it is, so a signed record arrives as it was signed. A larger file asked so is refused 413 ENCODING_TOO_LARGE; any other value 422 ENCODING_INVALID.",
            "schema": {
              "type": "string",
              "enum": [
                "base64url"
              ]
            },
            "x-vera-most-bytes": 8000000
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "2. Download Evo 2's signed record and its scores, and hash them",
            "source": "RUN=evo2-brca1-findlay-evo2-7b-base-full-20261120t103457z-bf62d256\nget() { curl -sS --fail-with-body \"$VERA/api/v1/model-runs/recorded/$RUN/$1?encoding=base64url\" | python3 -c 'import sys, json, base64; d = json.load(sys.stdin)[\"data\"]; sys.stdout.buffer.write(base64.urlsafe_b64decode(d + \"=\" * (-len(d) % 4)))'; }\nget signed-record.json > signed-record.json\nget outputs/scores.csv > scores.csv\nshasum -a 256 scores.csv",
            "x-answer": "scores.csv has SHA-256 d27766a6fea18ab18fa07554460ab8eed57468ab52cf3ce1372cb28d318d7c15, the digest the record lists for it.",
            "x-example-id": "runs-record"
          },
          {
            "lang": "Shell",
            "label": "3. Recompute the AUROC from the scores",
            "source": "RUN=evo2-brca1-findlay-evo2-7b-base-full-20261120t103457z-bf62d256\nget() { curl -sS --fail-with-body \"$VERA/api/v1/model-runs/recorded/$RUN/$1?encoding=base64url\" | python3 -c 'import sys, json, base64; d = json.load(sys.stdin)[\"data\"]; sys.stdout.buffer.write(base64.urlsafe_b64decode(d + \"=\" * (-len(d) % 4)))'; }\nget outputs/scores.csv > scores.csv\npython3 - <<'PY'\nimport csv, bisect\nrows = list(csv.DictReader(open(\"scores.csv\")))\npairs = [(-float(r[\"evo2_delta_score\"]), r[\"label_lof\"] == \"1\") for r in rows]\npos = [s for s, l in pairs if l]; neg = [s for s, l in pairs if not l]; ranked = sorted(s for s, _ in pairs)\nrank = lambda x: (bisect.bisect_left(ranked, x) + bisect.bisect_right(ranked, x) + 1) / 2\nprint(\"AUROC\", round((sum(rank(s) for s in pos) - len(pos) * (len(pos) + 1) / 2) / (len(pos) * len(neg)), 4))\nPY",
            "x-answer": "AUROC 0.8634 on 823 loss-of-function and 3,070 other variants: the record's figure, against the paper's 0.891.",
            "x-example-id": "runs-auroc"
          },
          {
            "lang": "Shell",
            "label": "4. Recompute the record digest: the SHA-256 of the bytes the key signed",
            "source": "RUN=evo2-brca1-findlay-evo2-7b-base-full-20261120t103457z-bf62d256\nget() { curl -sS --fail-with-body \"$VERA/api/v1/model-runs/recorded/$RUN/$1?encoding=base64url\" | python3 -c 'import sys, json, base64; d = json.load(sys.stdin)[\"data\"]; sys.stdout.buffer.write(base64.urlsafe_b64decode(d + \"=\" * (-len(d) % 4)))'; }\nget signed-record.json > signed-record.json\npython3 - <<'PY'\nimport json, hashlib\nr = json.load(open(\"signed-record.json\")); r.pop(\"signature\")\np = lambda v: int(v) if isinstance(v, float) and v.is_integer() else [p(x) for x in v] if isinstance(v, list) else {k: p(x) for k, x in v.items()} if isinstance(v, dict) else v\nprint(hashlib.sha256(json.dumps(p(r), sort_keys=True, separators=(\",\", \":\"), ensure_ascii=False).encode()).hexdigest())\nPY",
            "x-answer": "3a34dd1a8b929668f9d73a377e6621c276b9ba518f3d74ef9793a282941f5135, the record digest on the model's page.",
            "x-example-id": "runs-digest"
          },
          {
            "lang": "Shell",
            "label": "5. Verify the signature with the published runner key",
            "source": "RUN=evo2-brca1-findlay-evo2-7b-base-full-20261120t103457z-bf62d256\nget() { curl -sS --fail-with-body \"$VERA/api/v1/model-runs/recorded/$RUN/$1?encoding=base64url\" | python3 -c 'import sys, json, base64; d = json.load(sys.stdin)[\"data\"]; sys.stdout.buffer.write(base64.urlsafe_b64decode(d + \"=\" * (-len(d) % 4)))'; }\nget signed-record.json > signed-record.json\nnode -e 'const c = require(\"crypto\"), r = JSON.parse(require(\"fs\").readFileSync(\"signed-record.json\", \"utf8\")), s = r.signature; delete r.signature;\nconst canon = (v) => Array.isArray(v) ? \"[\" + v.map(canon).join(\",\") + \"]\" : v && typeof v === \"object\" ? \"{\" + Object.keys(v).sort().map((k) => JSON.stringify(k) + \":\" + canon(v[k])).join(\",\") + \"}\" : JSON.stringify(v);\nconst key = c.createPublicKey({ key: Buffer.from(\"MCowBQYDK2VwAyEA3bwtz7//Q+Fs0CEJM6CxAvrWMImkI8VtX/+M2Hp0VJY=\", \"base64\"), format: \"der\", type: \"spki\" });\nconsole.log(\"key is the published one:\", s.publicKey === \"MCowBQYDK2VwAyEA3bwtz7//Q+Fs0CEJM6CxAvrWMImkI8VtX/+M2Hp0VJY=\", \"· signature verifies:\", c.verify(null, Buffer.from(canon(r)), key, Buffer.from(s.value, \"base64\")));'",
            "x-answer": "key is the published one: true · signature verifies: true. The key is prepaire-runner-2026-11-20, SHA-256 fingerprint f17787256f69d0eead235445af1e6a706588921bf3bf0282e4f6da0160bb69f5. The signature shows the record is unchanged since it was signed on Prepaire's Mac after the run.",
            "x-example-id": "runs-signature"
          }
        ],
        "responses": {
          "200": {
            "description": "The file. record.json and signed-record.json are JSON of the schema stated under application/octet-stream; an output is the bytes the record lists under output.files.",
            "headers": {
              "x-content-sha256": {
                "schema": {
                  "type": "string"
                }
              },
              "content-disposition": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "object",
                  "required": [
                    "contract",
                    "runId",
                    "taskId",
                    "model",
                    "input",
                    "output",
                    "execution"
                  ],
                  "description": "A run record as its runner wrote it. signed-record.json carries `signature`. What is signed is the record's canonical bytes. To make them: read the file as JSON, take the `signature` member out, and write what is left by the JSON Canonicalization Scheme (RFC 8785): the members of every object sorted by name (by UTF-16 code unit), no space and no line break between any two tokens, every text and every number as ECMAScript's JSON.stringify writes it (a whole number has no fraction: 1.0 is written 1), the whole encoded as UTF-8. A signed record holds only numbers that ECMAScript and Python print with the same digits (whole numbers below 2^53, and decimals from 0.0001 up to but not including 10^15 in size), so in Python the bytes are json.dumps(record, sort_keys=True, separators=(\",\", \":\"), ensure_ascii=False).encode(\"utf-8\") once every float that is a whole number is made an int. `signature.value` is the Ed25519 signature (RFC 8032), in base64, over those bytes themselves: a verifier gives the bytes to Ed25519 and takes no digest of them first. `signature.publicKey` is the signing key (SubjectPublicKeyInfo DER, base64); GET model-runs/keys lists the same key under the keyId that `signature.keyId` names, with its fingerprint. The SHA-256 of the same bytes, in hexadecimal, is the `recordSha256` GET model-runs/recorded states for the run.",
                  "properties": {
                    "contract": {
                      "type": "string"
                    },
                    "runId": {
                      "type": "string"
                    },
                    "taskId": {
                      "type": "string"
                    },
                    "model": {
                      "type": "object",
                      "required": [
                        "name",
                        "version"
                      ],
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        },
                        "architecture": {
                          "type": "string"
                        },
                        "parameters": {
                          "type": "integer"
                        },
                        "source": {
                          "type": "object",
                          "required": [],
                          "properties": {
                            "retrievedAt": {
                              "type": "string"
                            },
                            "revision": {
                              "type": "string"
                            },
                            "url": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        "licence": {
                          "type": "object",
                          "required": [
                            "id",
                            "name"
                          ],
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "url": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        "files": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "path",
                              "sha256",
                              "bytes"
                            ],
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "role": {
                                "type": "string"
                              },
                              "sha256": {
                                "type": "string",
                                "pattern": "^[0-9a-f]{64}$"
                              },
                              "bytes": {
                                "type": "integer"
                              }
                            }
                          }
                        }
                      }
                    },
                    "input": {
                      "type": "object",
                      "required": [
                        "dataClass",
                        "files"
                      ],
                      "properties": {
                        "dataClass": {
                          "type": "string",
                          "enum": [
                            "public_reference",
                            "synthetic"
                          ]
                        },
                        "description": {
                          "type": "string"
                        },
                        "dataTypes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "datasets": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "name",
                              "version"
                            ],
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              },
                              "url": {
                                "type": "string"
                              },
                              "licence": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "url": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                }
                              },
                              "citation": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "synthetic": {},
                        "files": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "name",
                              "sha256",
                              "bytes"
                            ],
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "sha256": {
                                "type": "string",
                                "pattern": "^[0-9a-f]{64}$"
                              },
                              "bytes": {
                                "type": "integer"
                              },
                              "mediaType": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    },
                    "output": {
                      "type": "object",
                      "required": [
                        "files",
                        "checks"
                      ],
                      "properties": {
                        "files": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "name",
                              "sha256",
                              "bytes"
                            ],
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "sha256": {
                                "type": "string",
                                "pattern": "^[0-9a-f]{64}$"
                              },
                              "bytes": {
                                "type": "integer"
                              },
                              "mediaType": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "summary": {
                          "type": "object",
                          "description": "The runner's own summary of the run; its fields are the task's."
                        },
                        "checks": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "name",
                              "value"
                            ],
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              },
                              "value": {},
                              "expected": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "passed": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    "execution": {
                      "type": "object",
                      "required": [
                        "startedAt",
                        "endedAt"
                      ],
                      "properties": {
                        "host": {
                          "type": "string"
                        },
                        "hardware": {
                          "type": "object",
                          "required": [],
                          "properties": {
                            "kind": {
                              "type": "string"
                            },
                            "device": {
                              "type": "string"
                            },
                            "accelerators": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "memoryBytes": {
                                    "anyOf": [
                                      {
                                        "type": "integer"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "driver": {
                                    "type": "string"
                                  }
                                }
                              }
                            },
                            "cpu": {
                              "type": "string"
                            },
                            "memoryBytes": {
                              "type": "integer"
                            },
                            "os": {
                              "type": "string"
                            },
                            "arch": {
                              "type": "string"
                            }
                          }
                        },
                        "software": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "name",
                              "version"
                            ],
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "runner": {
                          "type": "object",
                          "required": [
                            "commit"
                          ],
                          "properties": {
                            "repository": {
                              "type": "string"
                            },
                            "path": {
                              "type": "string"
                            },
                            "commit": {
                              "type": "string"
                            },
                            "dirty": {
                              "type": "boolean"
                            }
                          }
                        },
                        "container": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "image",
                                "digest"
                              ],
                              "properties": {
                                "image": {
                                  "type": "string"
                                },
                                "digest": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "command": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "startedAt": {
                          "type": "string"
                        },
                        "endedAt": {
                          "type": "string"
                        }
                      }
                    },
                    "signature": {
                      "type": "object",
                      "required": [
                        "algorithm",
                        "keyId",
                        "publicKey",
                        "value"
                      ],
                      "properties": {
                        "algorithm": {
                          "type": "string"
                        },
                        "keyId": {
                          "type": "string"
                        },
                        "publicKey": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "text/plain": {}
            }
          },
          "400": {
            "description": "BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "MODEL_RUN_FILE_NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "MODEL_RUNS_RATE_LIMITED: over the budget of the recorded runs' addresses; Retry-After says when.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/model-runs/ledger": {
      "get": {
        "tags": [
          "Model runs"
        ],
        "operationId": "getModelRunLedger",
        "summary": "This node's run ledger, one entry per line",
        "responses": {
          "200": {
            "description": "Newline-delimited JSON, each entry with the hash of the one before it: the file ledger.jsonl, sent as application/octet-stream with Content-Disposition attachment, Cache-Control no-transform and its SHA-256 in x-content-sha256: a reader hashes what arrived and holds it to that header.",
            "headers": {
              "x-content-sha256": {
                "schema": {
                  "type": "string"
                }
              },
              "content-disposition": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/ingestion/v1/demo-files": {
      "get": {
        "tags": [
          "Analyser gate"
        ],
        "operationId": "getDemoFiles",
        "summary": "The synthetic demonstration files the gate is shown with",
        "description": "Synthetic HL7, ASTM, gVCF, methylation and stool files, each with its lane and the laboratory facts it was written with. No real person.",
        "responses": {
          "200": {
            "description": "The files.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "synthetic": {
                      "const": true
                    },
                    "files": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "lane": {
                            "type": "string"
                          },
                          "content": {
                            "type": "string"
                          },
                          "facts": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/ingestion/v1/validate": {
      "post": {
        "tags": [
          "Analyser gate"
        ],
        "operationId": "validateFile",
        "summary": "Run the five-check gate on one file",
        "description": "Read-only: stores nothing and writes to no graph (`writes: \"none\"`). Laboratory facts not supplied are read from the file and nothing else; a fact the file does not carry stays empty, and the gate reports it. Body at most 512 KB of content.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The verdict: decision (ready or quarantine), findings by check, observations, summary.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidateAnswer"
                }
              }
            }
          },
          "400": {
            "description": "INVALID_JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "BODY_TOO_LARGE.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "VALIDATION_FAILED or LANE_NOT_IMPLEMENTED.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "Run the analyser gate on a clean synthetic HL7 file",
            "source": "curl -sS --fail-with-body \"$VERA/api/ingestion/v1/demo-files\" \\\n  | python3 -c 'import json,sys; f=[x for x in json.load(sys.stdin)[\"files\"] if x[\"id\"]==\"oru-clean-kernel\"][0]; print(json.dumps({\"content\": f[\"content\"], \"fileName\": f[\"name\"], \"lane\": f[\"lane\"], \"facts\": f[\"facts\"]}))' \\\n  | curl -sS --fail-with-body -X POST \"$VERA/api/ingestion/v1/validate\" -H 'content-type: application/json' --data @-",
            "x-answer": "decision ready: 12 of 12 results pass the five checks. writes: none (nothing is stored).",
            "x-example-id": "validate-clean"
          },
          {
            "lang": "Shell",
            "label": "The same gate on a broken synthetic export: it refuses the file",
            "source": "curl -sS --fail-with-body \"$VERA/api/ingestion/v1/demo-files\" \\\n  | python3 -c 'import json,sys; f=[x for x in json.load(sys.stdin)[\"files\"] if x[\"id\"]==\"oru-broken-navify\"][0]; print(json.dumps({\"content\": f[\"content\"], \"fileName\": f[\"name\"], \"lane\": f[\"lane\"], \"facts\": f[\"facts\"]}))' \\\n  | curl -sS --fail-with-body -X POST \"$VERA/api/ingestion/v1/validate\" -H 'content-type: application/json' --data @-",
            "x-answer": "decision quarantine: 0 of 12 released; findings (MSG_ID, ENCODING, UNIT_RANGE_MISMATCH, PHYSIO) name the truncated message id, the broken micro sign, calcium in mmol/L judged against a mg/dL range, a protein value outside physiological bounds.",
            "x-example-id": "validate-broken"
          }
        ]
      }
    },
    "/api/v1/command-center/stream": {
      "get": {
        "tags": [
          "Command centre"
        ],
        "operationId": "streamRun",
        "summary": "One synthetic person's run through VERA's modules, as server-sent events",
        "description": "PREPAIRE-COMMAND-CENTER-EVENTS@1.7.0. Each `data:` line is one event (JSON with seq, t, type, data). Every person is synthetic (subject SYN-...), checked before the first event is sent. On a copy whose model gateway answers, the run also calls the deployed models with the synthetic data (model.invoked, model.result); otherwise the model stage finishes skipped and says why. On such a copy, when its deployment lists gpt-oss-20b and at least one model answered, the last call is gpt-oss-20b (OpenAI's open-weight language model): it receives the run's names and numbers and words a short plain-English summary, sent as the model.result summary of call SYN-CALL-<scenario>-<n>-gpt-oss-20b; it computes no number, range or verdict. At most 8 streams per process, 5 minutes each. On an operational node only signed-in laboratory readers.",
        "parameters": [
          {
            "name": "scenario",
            "in": "query",
            "required": false,
            "description": "The run.",
            "schema": {
              "type": "string",
              "enum": [
                "check-panel",
                "axiom-multiomics",
                "tasso-organ-age",
                "my-run"
              ],
              "default": "check-panel"
            },
            "example": "axiom-multiomics"
          },
          {
            "name": "speed",
            "in": "query",
            "required": false,
            "description": "Playback: 0.25 to 20 times the run's measured time, or instant.",
            "schema": {
              "type": "string",
              "default": "1"
            },
            "example": "instant"
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Resume after this sequence number (or send Last-Event-ID).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "variant",
            "in": "query",
            "required": false,
            "description": "check-panel only: apob, the labelled synthetic ApoB variant.",
            "schema": {
              "type": "string",
              "enum": [
                "apob"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The event stream.",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "BODY_NOT_TAKEN: the request declares a body (Content-Length above 0, or Transfer-Encoding) to a read. It is refused at once, before a byte of the body is read, and VERA closes the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Sign-in needed (an operational node).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "SCENARIO_INVALID, SPEED_INVALID, VARIANT_INVALID or LAST_EVENT_ID_INVALID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "STREAM_LIMIT.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "A whole synthetic visit through VERA's modules, as server-sent events",
            "source": "curl -sS --fail-with-body \"$VERA/api/v1/command-center/stream?scenario=axiom-multiomics&speed=instant\" \\\n  | grep -o '\"type\":\"[a-z_.]*\"' | sort | uniq -c",
            "x-answer": "Every event of one synthetic person's run (subject SYN-...), stage by stage; the model_calls stage reports its own state (skipped).",
            "x-example-id": "stream-models"
          }
        ]
      }
    },
    "/api/v1/home/ask": {
      "post": {
        "tags": [
          "Product page"
        ],
        "operationId": "homeAsk",
        "summary": "The product page's questions, answered by VERA's own code",
        "description": "Sample people only, named by role, never by name. reports-read: each value of the sample reports and who read it (parser or model); reports-ranges: the personal ranges computed from them; reports-graph: the person's graph from the first n reports; tube: a synthetic tube's raw analyser data through the VERA layer; tube-check: that run's release checked again. The answer to tube is newline-delimited JSON (application/x-ndjson): one event of the run on each line, read line by line. Every other question is answered as one JSON object (application/json). The body is at most 1,024 bytes.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HomeAsk"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer for that question: one JSON object for reports-read, reports-ranges, reports-graph and tube-check; for tube, newline-delimited JSON, one event on each line (first the run, then each stage with its status and its facts).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "type": "string",
                  "description": "One JSON object on each line."
                }
              }
            }
          },
          "400": {
            "description": "Invalid body or NO_SUCH_REPORT.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "BODY_TOO_LARGE: the body is longer than 1,024 bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "Who read each value of the sample reports: the parser or a model",
            "source": "curl -sS --fail-with-body -X POST \"$VERA/api/v1/home/ask\" -H 'content-type: application/json' -d '{\"ask\":\"reports-read\"}' \\\n  | python3 -c 'import json,sys,collections; d=json.load(sys.stdin); print(\"modelAvailable\", d[\"modelAvailable\"], collections.Counter(r[\"readBy\"] for doc in d[\"documents\"] if doc.get(\"ok\") for r in doc[\"read\"][\"rows\"]))'",
            "x-answer": "modelAvailable false; every row readBy parser.",
            "x-example-id": "ask-reports-read"
          },
          {
            "lang": "Shell",
            "label": "A synthetic tube through VERA's sample-run engine, stage by stage",
            "source": "curl -sS --fail-with-body -X POST \"$VERA/api/v1/home/ask\" -H 'content-type: application/json' -d '{\"ask\":\"tube\"}' \\\n  | python3 -c 'import json,sys; [print(e.get(\"type\"), e.get(\"stage\", \"\"), e.get(\"status\", \"\")) for e in map(json.loads, sys.stdin)]'",
            "x-answer": "Newline-delimited JSON: first the run (an invented person, subject SYN-..., a tube on the sysmex-xr-1000 line), then each stage of the run with its status and its facts.",
            "x-example-id": "ask-tube"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "requestId": {
                "type": "string"
              },
              "detail": {},
              "issues": {
                "type": "array"
              }
            }
          }
        }
      },
      "GraphEnvelope": {
        "type": "object",
        "required": [
          "contract",
          "build",
          "source"
        ],
        "properties": {
          "contract": {
            "const": "PREPAIRE-VERA-REFERENCE-GRAPH-API@1.4.0"
          },
          "build": {
            "type": "object",
            "required": [
              "id",
              "buildHash",
              "builtAt",
              "profile",
              "schemaVersion"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "buildHash": {
                "type": "string"
              },
              "builtAt": {
                "type": "string"
              },
              "profile": {
                "type": "string"
              },
              "schemaVersion": {
                "type": "string"
              },
              "codeVersion": {
                "type": "string"
              },
              "gitCommit": {
                "type": "string"
              },
              "treeSha256": {
                "type": "string"
              },
              "lockSha256": {
                "type": "string"
              },
              "outputSha256": {
                "type": "string"
              },
              "constraintsSha256": {
                "type": "string"
              }
            }
          },
          "source": {
            "const": "pack",
            "description": "Answered by VERA's own process from its pack of the signed build: held in memory, the largest kinds of a build read from the pack's files on disk."
          }
        }
      },
      "GraphIndex": {
        "type": "object",
        "required": [
          "counts",
          "kinds",
          "edgeTypes",
          "endpoints"
        ],
        "properties": {
          "live": {
            "type": "object",
            "description": "On a copy with a live graph of its own: how that graph stands to the served build.",
            "properties": {
              "configured": {
                "type": "boolean"
              },
              "status": {
                "enum": [
                  "same_build",
                  "other_build",
                  "unavailable"
                ]
              },
              "release": {
                "type": "string"
              },
              "code": {
                "type": "string"
              }
            }
          },
          "counts": {
            "type": "object",
            "required": [
              "nodes",
              "edges",
              "referenceLinks"
            ],
            "properties": {
              "nodes": {
                "type": "integer"
              },
              "edges": {
                "type": "integer"
              },
              "referenceLinks": {
                "type": "integer"
              }
            }
          },
          "kinds": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "count"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                }
              }
            }
          },
          "edgeTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "count"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                }
              }
            }
          },
          "endpoints": {
            "type": "object",
            "description": "The address template of each endpoint, under the app's base path.",
            "required": [
              "search",
              "node",
              "neighbourhood",
              "paths",
              "stats",
              "sources",
              "download",
              "openapi"
            ],
            "properties": {
              "search": {
                "type": "string"
              },
              "node": {
                "type": "string"
              },
              "nodeByKey": {
                "type": "string"
              },
              "links": {
                "type": "string"
              },
              "neighbourhood": {
                "type": "string"
              },
              "paths": {
                "type": "string"
              },
              "kinds": {
                "type": "string"
              },
              "stats": {
                "type": "string"
              },
              "sources": {
                "type": "string"
              },
              "download": {
                "type": "string"
              },
              "openapi": {
                "type": "string"
              }
            }
          }
        }
      },
      "GraphStats": {
        "type": "object",
        "required": [
          "counts",
          "kinds",
          "edgeTypes",
          "referenceProperties",
          "search",
          "verification",
          "pack"
        ],
        "properties": {
          "live": {
            "type": "object",
            "description": "On a copy with a live graph of its own: how that graph stands to the served build.",
            "properties": {
              "configured": {
                "type": "boolean"
              },
              "status": {
                "enum": [
                  "same_build",
                  "other_build",
                  "unavailable"
                ]
              },
              "release": {
                "type": "string"
              },
              "code": {
                "type": "string"
              }
            }
          },
          "counts": {
            "type": "object",
            "required": [
              "nodes",
              "edges",
              "referenceLinks"
            ],
            "properties": {
              "nodes": {
                "type": "integer"
              },
              "edges": {
                "type": "integer"
              },
              "referenceLinks": {
                "type": "integer"
              }
            }
          },
          "kinds": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "count"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                },
                "isolated": {
                  "type": "integer",
                  "description": "Nodes of the kind with no edge and no reference link."
                },
                "noEdge": {
                  "type": "integer",
                  "description": "Nodes of the kind with no edge."
                },
                "mostLinked": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "degree": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "edgeTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "count"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                },
                "endpoints": {
                  "type": "array",
                  "description": "Each pair of kinds the type joins, with its count: [from kind, to kind, count].",
                  "items": {
                    "type": "array",
                    "items": {
                      "type": [
                        "string",
                        "integer"
                      ]
                    }
                  }
                }
              }
            }
          },
          "referenceProperties": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "properties",
                "count"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "properties": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "count": {
                  "type": "integer"
                },
                "endpoints": {
                  "type": "array",
                  "items": {
                    "type": "array",
                    "items": {
                      "type": [
                        "string",
                        "integer"
                      ]
                    }
                  }
                }
              }
            }
          },
          "search": {
            "type": "object",
            "description": "The size of the search index.",
            "properties": {
              "tokens": {
                "type": "integer"
              },
              "postings": {
                "type": "integer"
              }
            }
          },
          "verification": {
            "type": "object",
            "description": "What VERA checked when it packed the build, for a caller to check again with the download.",
            "required": [
              "manifestSha256",
              "signatureSha256",
              "signature",
              "outputSha256Recomputed",
              "keyFingerprint"
            ],
            "properties": {
              "manifestSha256": {
                "type": "string",
                "description": "SHA-256 of manifest.json as the download serves it."
              },
              "signatureSha256": {
                "type": "string",
                "description": "SHA-256 of manifest.json.sig."
              },
              "signature": {
                "type": "object",
                "properties": {
                  "method": {
                    "type": "string"
                  },
                  "namespace": {
                    "type": "string"
                  },
                  "principal": {
                    "type": "string"
                  },
                  "allowedSigner": {
                    "type": "string",
                    "description": "The allowed_signers line: the principal and the public key."
                  },
                  "verified": {
                    "type": "boolean"
                  }
                }
              },
              "csvFiles": {
                "type": "integer"
              },
              "csvBytes": {
                "type": "integer"
              },
              "outputSha256Recomputed": {
                "type": "string"
              },
              "attributionSha256": {
                "type": "string"
              },
              "keyFingerprint": {
                "type": "string",
                "description": "The OpenSSH SHA256 fingerprint of the signing key, as `ssh-keygen -lf` prints it."
              }
            }
          },
          "pack": {
            "type": "object",
            "description": "The packed form VERA answers from.",
            "properties": {
              "contract": {
                "type": "string"
              },
              "dir": {
                "type": "string"
              },
              "files": {
                "type": "object",
                "description": "Bytes of each file of the pack.",
                "additionalProperties": {
                  "type": "integer"
                }
              },
              "memoryBytes": {
                "type": "integer"
              }
            }
          },
          "layers": {
            "type": "array",
            "description": "The figures of each layer the build has rows of, as /reference-graph prints them.",
            "items": {
              "type": "object",
              "required": [
                "id",
                "title",
                "figures",
                "tables"
              ],
              "properties": {
                "id": {
                  "enum": [
                    "diseases",
                    "body",
                    "variants"
                  ]
                },
                "title": {
                  "type": "string"
                },
                "figures": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "label",
                      "value"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "value": {
                        "type": "integer"
                      },
                      "note": {
                        "type": "string",
                        "description": "A second count of these rows."
                      }
                    }
                  }
                },
                "tables": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "heading",
                      "counts",
                      "rows"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "heading": {
                        "type": "string"
                      },
                      "counts": {
                        "type": "string",
                        "description": "What the second column counts."
                      },
                      "rows": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "integer"
                            }
                          ],
                          "minItems": 2,
                          "maxItems": 2
                        }
                      },
                      "rest": {
                        "type": "array",
                        "description": "Where the column's values do not add up to the figure the table stands under: the lines that complete it, each with what those rows carry and their count. `rows` and `rest` together sum to `all.count`.",
                        "items": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "integer"
                            }
                          ],
                          "minItems": 2,
                          "maxItems": 2
                        }
                      },
                      "all": {
                        "type": "object",
                        "description": "With `rest`: the figure the table stands under, in words and as a count.",
                        "required": [
                          "words",
                          "count"
                        ],
                        "properties": {
                          "words": {
                            "type": "string"
                          },
                          "count": {
                            "type": "integer"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "GraphSources": {
        "type": "object",
        "required": [
          "sources",
          "licences",
          "notices",
          "changesMade"
        ],
        "properties": {
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "title",
                "records"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "publisher": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "group": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "release": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "version": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "urls": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "licenceEvidenceUrl": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "licenceCheckedAt": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "licences": {
                  "type": "array",
                  "description": "Each licence of the source's records with its count: [licence id, records].",
                  "items": {
                    "type": "array",
                    "items": {
                      "type": [
                        "string",
                        "integer"
                      ]
                    }
                  }
                },
                "records": {
                  "type": "integer"
                },
                "credit": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          },
          "licences": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "title"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "records": {
                  "type": "integer"
                },
                "obligations": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "notices": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "title"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "quotes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "instructions": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "appliesTo": {
                  "type": "object",
                  "properties": {
                    "licences": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "changesMade": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The changes made to the sources' texts, as the licences ask them to be stated."
          },
          "notInBuild": {
            "type": "array",
            "maxItems": 0,
            "items": {
              "type": "string"
            },
            "deprecated": true,
            "description": "An empty list from 1.2.0; the field leaves the answer with the next version."
          },
          "pinnedWithoutRecords": {
            "type": "null",
            "deprecated": true,
            "description": "null from 1.3.0; the field leaves the answer with the next version."
          }
        }
      },
      "Attribution": {
        "type": "object",
        "properties": {
          "sources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "licences": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "notices": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "textAltered": {
            "const": true
          }
        },
        "required": [
          "sources",
          "licences",
          "notices"
        ]
      },
      "NodeSummary": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "name",
          "source",
          "licence",
          "degree",
          "references"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "licence": {
            "type": "string"
          },
          "degree": {
            "type": "integer",
            "description": "Edges at the node, both directions."
          },
          "references": {
            "type": "integer",
            "description": "Reference links at the node, both directions."
          }
        }
      },
      "LinkView": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "type",
          "from",
          "to",
          "source",
          "licence"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "e<n> an edge, r<n> a reference link; stable within a build."
          },
          "kind": {
            "enum": [
              "edge",
              "reference"
            ]
          },
          "type": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "licence": {
            "type": "string"
          },
          "properties": {
            "type": "object"
          },
          "review": {
            "type": "object",
            "required": [
              "tables",
              "status",
              "compiledBy",
              "signedForBuild",
              "specialistReview",
              "level",
              "label"
            ],
            "description": "Present on a hand-made row: a row of a table that was written by hand or by a build agent and enters a product build only when a named person has signed it. Read from the row's own record in the build. A row read straight from a pinned source file carries no `review` and keeps its source's credit. A signature for the build is not a specialist's review of the row: `level` and `specialistReview` say which the row carries. On a link it is given whether or not the link's own properties are asked for.",
            "properties": {
              "tables": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
              },
              "status": {
                "enum": [
                  "signed_off",
                  "unsigned",
                  "stale",
                  "rejected"
                ],
                "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
              },
              "compiledBy": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                "properties": {
                  "kind": {
                    "enum": [
                      "build_agents",
                      "person"
                    ]
                  },
                  "name": {
                    "type": "string"
                  }
                }
              },
              "compiledFrom": {
                "enum": [
                  "row",
                  "table",
                  null
                ],
                "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
              },
              "sourceNamed": {
                "type": "boolean",
                "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
              },
              "signedForBuild": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                "properties": {
                  "by": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The name the build's record of the row holds."
                  },
                  "on": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The day of the record (YYYY-MM-DD)."
                  }
                }
              },
              "specialistReview": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                "properties": {
                  "by": {
                    "type": "string"
                  },
                  "on": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "office": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The reviewer's office, where the record gives it."
                  }
                }
              },
              "level": {
                "enum": [
                  "unsigned",
                  "signed_for_build",
                  "specialist_reviewed"
                ],
                "description": "The level of review the row carries."
              },
              "label": {
                "type": "string",
                "description": "The fields in one sentence, as a page prints it beside the row."
              }
            }
          }
        }
      },
      "SearchResult": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "total": {
            "type": "integer"
          },
          "facets": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "offset": {
            "type": "integer"
          },
          "limit": {
            "type": "integer"
          },
          "truncated": {
            "type": "boolean"
          },
          "attribution": {
            "type": "object",
            "properties": {
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "licences": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "notices": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "textAltered": {
                "const": true
              }
            },
            "required": [
              "sources",
              "licences",
              "notices"
            ]
          },
          "hits": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "name",
                    "source",
                    "licence",
                    "degree",
                    "references"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "licence": {
                      "type": "string"
                    },
                    "degree": {
                      "type": "integer",
                      "description": "Edges at the node, both directions."
                    },
                    "references": {
                      "type": "integer",
                      "description": "Reference links at the node, both directions."
                    }
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "score": {
                      "type": "number"
                    },
                    "match": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "enum": [
                            "name",
                            "alias",
                            "extra",
                            "code",
                            "id"
                          ]
                        },
                        "text": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "exact": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "NodeAnswer": {
        "type": "object",
        "required": [
          "node",
          "provenance"
        ],
        "properties": {
          "node": {
            "allOf": [
              {
                "type": "object",
                "required": [
                  "id",
                  "kind",
                  "name",
                  "source",
                  "licence",
                  "degree",
                  "references"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "licence": {
                    "type": "string"
                  },
                  "degree": {
                    "type": "integer",
                    "description": "Edges at the node, both directions."
                  },
                  "references": {
                    "type": "integer",
                    "description": "Reference links at the node, both directions."
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "release": {
                    "type": "string"
                  },
                  "properties": {
                    "type": "object",
                    "description": "The build's whole row, as Neo4j holds it."
                  },
                  "links": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "enum": [
                            "edge",
                            "reference"
                          ]
                        },
                        "type": {
                          "type": "string"
                        },
                        "direction": {
                          "enum": [
                            "out",
                            "in"
                          ]
                        },
                        "count": {
                          "type": "integer"
                        },
                        "kinds": {
                          "type": "object"
                        },
                        "denying": {
                          "const": true,
                          "description": "Present on the group of the gene statements whose own grade disputes or refutes the link; the group of the type and direction without the mark counts the others."
                        }
                      }
                    }
                  },
                  "attribution": {
                    "type": "object",
                    "properties": {
                      "sources": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "licences": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "notices": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "textAltered": {
                        "const": true
                      }
                    },
                    "required": [
                      "sources",
                      "licences",
                      "notices"
                    ]
                  }
                }
              }
            ]
          },
          "provenance": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string"
              },
              "licence": {
                "type": "string"
              },
              "release": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "publisher": {},
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Pinned input files, each as path@sha256:<digest>."
                  },
                  "urls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "licenceEvidenceUrl": {},
                  "licenceCheckedAt": {}
                }
              },
              "build": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "buildHash": {
                    "type": "string"
                  },
                  "outputSha256": {
                    "type": "string"
                  },
                  "signature": {
                    "type": "object"
                  },
                  "reviewSignedOff": {
                    "description": "Hand-made rows of the build that a named person signed for the build (GraphBuild.review_signed_off). A signature for the build is not a specialist's review: each such row says what it carries in `review`."
                  },
                  "checkItYourself": {
                    "type": "string",
                    "description": "The download's address under the app's base path."
                  }
                }
              }
            }
          },
          "review": {
            "type": "object",
            "required": [
              "tables",
              "status",
              "compiledBy",
              "signedForBuild",
              "specialistReview",
              "level",
              "label"
            ],
            "description": "Present on a hand-made row: a row of a table that was written by hand or by a build agent and enters a product build only when a named person has signed it. Read from the row's own record in the build. A row read straight from a pinned source file carries no `review` and keeps its source's credit. A signature for the build is not a specialist's review of the row: `level` and `specialistReview` say which the row carries. On a node it is the record of the node's own row.",
            "properties": {
              "tables": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
              },
              "status": {
                "enum": [
                  "signed_off",
                  "unsigned",
                  "stale",
                  "rejected"
                ],
                "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
              },
              "compiledBy": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                "properties": {
                  "kind": {
                    "enum": [
                      "build_agents",
                      "person"
                    ]
                  },
                  "name": {
                    "type": "string"
                  }
                }
              },
              "compiledFrom": {
                "enum": [
                  "row",
                  "table",
                  null
                ],
                "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
              },
              "sourceNamed": {
                "type": "boolean",
                "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
              },
              "signedForBuild": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                "properties": {
                  "by": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The name the build's record of the row holds."
                  },
                  "on": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The day of the record (YYYY-MM-DD)."
                  }
                }
              },
              "specialistReview": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                "properties": {
                  "by": {
                    "type": "string"
                  },
                  "on": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "office": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The reviewer's office, where the record gives it."
                  }
                }
              },
              "level": {
                "enum": [
                  "unsigned",
                  "signed_for_build",
                  "specialist_reviewed"
                ],
                "description": "The level of review the row carries."
              },
              "label": {
                "type": "string",
                "description": "The fields in one sentence, as a page prints it beside the row."
              }
            }
          },
          "reading": {
            "type": "object",
            "required": [
              "family",
              "sections"
            ],
            "description": "What the node's page prints above its links, as data: the sections for the node's kind, in the page's order. Present for a node of a kind that has a family, where the build states something a section shows.",
            "properties": {
              "family": {
                "enum": [
                  "disease",
                  "test",
                  "anatomy",
                  "model",
                  "variant",
                  "structural",
                  "code"
                ]
              },
              "sections": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "heading",
                    "blocks"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "heading": {
                      "type": "string"
                    },
                    "blocks": {
                      "type": "array",
                      "minItems": 1,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "required": [
                              "type",
                              "list"
                            ],
                            "properties": {
                              "type": {
                                "const": "list"
                              },
                              "list": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "count",
                                  "names",
                                  "columns",
                                  "rows"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "heading": {
                                    "type": "string"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "description": "The statements of the list: the rows, or every row of every page where the list is paged."
                                  },
                                  "names": {
                                    "type": "string"
                                  },
                                  "columns": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "review": {
                                    "type": "object",
                                    "required": [
                                      "label",
                                      "value"
                                    ],
                                    "properties": {
                                      "label": {
                                        "type": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      },
                                      "href": {
                                        "type": "string"
                                      },
                                      "review": {
                                        "type": "object",
                                        "required": [
                                          "tables",
                                          "status",
                                          "compiledBy",
                                          "signedForBuild",
                                          "specialistReview",
                                          "level",
                                          "label"
                                        ],
                                        "description": "On the line that is a hand-made row's label (`value` is the label): the record the label was made of, as fields.",
                                        "properties": {
                                          "tables": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            },
                                            "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
                                          },
                                          "status": {
                                            "enum": [
                                              "signed_off",
                                              "unsigned",
                                              "stale",
                                              "rejected"
                                            ],
                                            "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
                                          },
                                          "compiledBy": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                                            "properties": {
                                              "kind": {
                                                "enum": [
                                                  "build_agents",
                                                  "person"
                                                ]
                                              },
                                              "name": {
                                                "type": "string"
                                              }
                                            }
                                          },
                                          "compiledFrom": {
                                            "enum": [
                                              "row",
                                              "table",
                                              null
                                            ],
                                            "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
                                          },
                                          "sourceNamed": {
                                            "type": "boolean",
                                            "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
                                          },
                                          "signedForBuild": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                                            "properties": {
                                              "by": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ],
                                                "description": "The name the build's record of the row holds."
                                              },
                                              "on": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ],
                                                "description": "The day of the record (YYYY-MM-DD)."
                                              }
                                            }
                                          },
                                          "specialistReview": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                                            "properties": {
                                              "by": {
                                                "type": "string"
                                              },
                                              "on": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "office": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ],
                                                "description": "The reviewer's office, where the record gives it."
                                              }
                                            }
                                          },
                                          "level": {
                                            "enum": [
                                              "unsigned",
                                              "signed_for_build",
                                              "specialist_reviewed"
                                            ],
                                            "description": "The level of review the row carries."
                                          },
                                          "label": {
                                            "type": "string",
                                            "description": "The fields in one sentence, as a page prints it beside the row."
                                          }
                                        }
                                      }
                                    },
                                    "description": "The label of the list's hand-made rows, where the list has more than one row and every row carries one and the one label: it is given once here and the rows do not repeat it. A list whose rows differ gives each row its own among its `qualifiers`."
                                  },
                                  "termsReview": {
                                    "type": "object",
                                    "required": [
                                      "label",
                                      "value"
                                    ],
                                    "properties": {
                                      "label": {
                                        "type": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      },
                                      "href": {
                                        "type": "string"
                                      },
                                      "review": {
                                        "type": "object",
                                        "required": [
                                          "tables",
                                          "status",
                                          "compiledBy",
                                          "signedForBuild",
                                          "specialistReview",
                                          "level",
                                          "label"
                                        ],
                                        "description": "On the line that is a hand-made row's label (`value` is the label): the record the label was made of, as fields.",
                                        "properties": {
                                          "tables": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            },
                                            "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
                                          },
                                          "status": {
                                            "enum": [
                                              "signed_off",
                                              "unsigned",
                                              "stale",
                                              "rejected"
                                            ],
                                            "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
                                          },
                                          "compiledBy": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                                            "properties": {
                                              "kind": {
                                                "enum": [
                                                  "build_agents",
                                                  "person"
                                                ]
                                              },
                                              "name": {
                                                "type": "string"
                                              }
                                            }
                                          },
                                          "compiledFrom": {
                                            "enum": [
                                              "row",
                                              "table",
                                              null
                                            ],
                                            "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
                                          },
                                          "sourceNamed": {
                                            "type": "boolean",
                                            "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
                                          },
                                          "signedForBuild": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                                            "properties": {
                                              "by": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ],
                                                "description": "The name the build's record of the row holds."
                                              },
                                              "on": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ],
                                                "description": "The day of the record (YYYY-MM-DD)."
                                              }
                                            }
                                          },
                                          "specialistReview": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                                            "properties": {
                                              "by": {
                                                "type": "string"
                                              },
                                              "on": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "office": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ],
                                                "description": "The reviewer's office, where the record gives it."
                                              }
                                            }
                                          },
                                          "level": {
                                            "enum": [
                                              "unsigned",
                                              "signed_for_build",
                                              "specialist_reviewed"
                                            ],
                                            "description": "The level of review the row carries."
                                          },
                                          "label": {
                                            "type": "string",
                                            "description": "The fields in one sentence, as a page prints it beside the row."
                                          }
                                        }
                                      }
                                    },
                                    "description": "Where a row of the list prints the groups of a classification: the label of the table that gives each of the source's terms its group, given once for the list. The rows are the source's own and carry no label."
                                  },
                                  "rows": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "required": [
                                        "key",
                                        "name",
                                        "qualifiers"
                                      ],
                                      "properties": {
                                        "key": {
                                          "type": "string",
                                          "description": "Stable within a build: the link's id, or the id of the node the row is about."
                                        },
                                        "name": {
                                          "type": "string",
                                          "description": "The row's first line: the entry as a list names it, or the statement's own words."
                                        },
                                        "entry": {
                                          "type": "object",
                                          "required": [
                                            "id",
                                            "kind",
                                            "name"
                                          ],
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "kind": {
                                              "type": "string"
                                            },
                                            "name": {
                                              "type": "string"
                                            }
                                          },
                                          "description": "An entry of the build a row names; it answers /node?id=."
                                        },
                                        "marks": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          },
                                          "description": "Labels that are part of what the row is, in the build's or the source's words."
                                        },
                                        "qualifiers": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "required": [
                                              "label",
                                              "value"
                                            ],
                                            "properties": {
                                              "label": {
                                                "type": "string"
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "href": {
                                                "type": "string"
                                              },
                                              "review": {
                                                "type": "object",
                                                "required": [
                                                  "tables",
                                                  "status",
                                                  "compiledBy",
                                                  "signedForBuild",
                                                  "specialistReview",
                                                  "level",
                                                  "label"
                                                ],
                                                "description": "On the line that is a hand-made row's label (`value` is the label): the record the label was made of, as fields.",
                                                "properties": {
                                                  "tables": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    },
                                                    "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
                                                  },
                                                  "status": {
                                                    "enum": [
                                                      "signed_off",
                                                      "unsigned",
                                                      "stale",
                                                      "rejected"
                                                    ],
                                                    "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
                                                  },
                                                  "compiledBy": {
                                                    "type": [
                                                      "object",
                                                      "null"
                                                    ],
                                                    "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                                                    "properties": {
                                                      "kind": {
                                                        "enum": [
                                                          "build_agents",
                                                          "person"
                                                        ]
                                                      },
                                                      "name": {
                                                        "type": "string"
                                                      }
                                                    }
                                                  },
                                                  "compiledFrom": {
                                                    "enum": [
                                                      "row",
                                                      "table",
                                                      null
                                                    ],
                                                    "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
                                                  },
                                                  "sourceNamed": {
                                                    "type": "boolean",
                                                    "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
                                                  },
                                                  "signedForBuild": {
                                                    "type": [
                                                      "object",
                                                      "null"
                                                    ],
                                                    "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                                                    "properties": {
                                                      "by": {
                                                        "type": [
                                                          "string",
                                                          "null"
                                                        ],
                                                        "description": "The name the build's record of the row holds."
                                                      },
                                                      "on": {
                                                        "type": [
                                                          "string",
                                                          "null"
                                                        ],
                                                        "description": "The day of the record (YYYY-MM-DD)."
                                                      }
                                                    }
                                                  },
                                                  "specialistReview": {
                                                    "type": [
                                                      "object",
                                                      "null"
                                                    ],
                                                    "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                                                    "properties": {
                                                      "by": {
                                                        "type": "string"
                                                      },
                                                      "on": {
                                                        "type": [
                                                          "string",
                                                          "null"
                                                        ]
                                                      },
                                                      "office": {
                                                        "type": [
                                                          "string",
                                                          "null"
                                                        ],
                                                        "description": "The reviewer's office, where the record gives it."
                                                      }
                                                    }
                                                  },
                                                  "level": {
                                                    "enum": [
                                                      "unsigned",
                                                      "signed_for_build",
                                                      "specialist_reviewed"
                                                    ],
                                                    "description": "The level of review the row carries."
                                                  },
                                                  "label": {
                                                    "type": "string",
                                                    "description": "The fields in one sentence, as a page prints it beside the row."
                                                  }
                                                }
                                              }
                                            }
                                          },
                                          "description": "The statement's grade, who states it, its date and the like, each with its label."
                                        },
                                        "source": {
                                          "type": "object",
                                          "required": [
                                            "id",
                                            "title"
                                          ],
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "title": {
                                              "type": "string"
                                            },
                                            "release": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "description": "The source that states the row, and its release in the build."
                                        },
                                        "under": {
                                          "type": "array",
                                          "items": {
                                            "type": "object"
                                          },
                                          "description": "The statements under the row, each of this shape."
                                        }
                                      }
                                    }
                                  },
                                  "page": {
                                    "type": "object",
                                    "required": [
                                      "group",
                                      "page",
                                      "pages",
                                      "perPage"
                                    ],
                                    "properties": {
                                      "group": {
                                        "type": "string",
                                        "description": "The group of the node's links the list is a page of: give it as `group`."
                                      },
                                      "page": {
                                        "type": "integer"
                                      },
                                      "pages": {
                                        "type": "integer"
                                      },
                                      "perPage": {
                                        "type": "integer"
                                      }
                                    }
                                  },
                                  "note": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "required": [
                              "type",
                              "block"
                            ],
                            "properties": {
                              "type": {
                                "const": "facts"
                              },
                              "block": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "facts"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "heading": {
                                    "type": "string"
                                  },
                                  "entry": {
                                    "type": "object",
                                    "required": [
                                      "id",
                                      "kind",
                                      "name"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "kind": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      }
                                    },
                                    "description": "An entry of the build a row names; it answers /node?id=."
                                  },
                                  "facts": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "required": [
                                        "label",
                                        "value"
                                      ],
                                      "properties": {
                                        "label": {
                                          "type": "string"
                                        },
                                        "value": {
                                          "type": "string"
                                        },
                                        "href": {
                                          "type": "string"
                                        },
                                        "review": {
                                          "type": "object",
                                          "required": [
                                            "tables",
                                            "status",
                                            "compiledBy",
                                            "signedForBuild",
                                            "specialistReview",
                                            "level",
                                            "label"
                                          ],
                                          "description": "On the line that is a hand-made row's label (`value` is the label): the record the label was made of, as fields.",
                                          "properties": {
                                            "tables": {
                                              "type": "array",
                                              "items": {
                                                "type": "string"
                                              },
                                              "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
                                            },
                                            "status": {
                                              "enum": [
                                                "signed_off",
                                                "unsigned",
                                                "stale",
                                                "rejected"
                                              ],
                                              "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
                                            },
                                            "compiledBy": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                                              "properties": {
                                                "kind": {
                                                  "enum": [
                                                    "build_agents",
                                                    "person"
                                                  ]
                                                },
                                                "name": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "compiledFrom": {
                                              "enum": [
                                                "row",
                                                "table",
                                                null
                                              ],
                                              "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
                                            },
                                            "sourceNamed": {
                                              "type": "boolean",
                                              "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
                                            },
                                            "signedForBuild": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                                              "properties": {
                                                "by": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ],
                                                  "description": "The name the build's record of the row holds."
                                                },
                                                "on": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ],
                                                  "description": "The day of the record (YYYY-MM-DD)."
                                                }
                                              }
                                            },
                                            "specialistReview": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                                              "properties": {
                                                "by": {
                                                  "type": "string"
                                                },
                                                "on": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "office": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ],
                                                  "description": "The reviewer's office, where the record gives it."
                                                }
                                              }
                                            },
                                            "level": {
                                              "enum": [
                                                "unsigned",
                                                "signed_for_build",
                                                "specialist_reviewed"
                                              ],
                                              "description": "The level of review the row carries."
                                            },
                                            "label": {
                                              "type": "string",
                                              "description": "The fields in one sentence, as a page prints it beside the row."
                                            }
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "source": {
                                    "type": "object",
                                    "required": [
                                      "id",
                                      "title"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "title": {
                                        "type": "string"
                                      },
                                      "release": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "description": "The source that states the row, and its release in the build."
                                  }
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "required": [
                              "type",
                              "parts"
                            ],
                            "properties": {
                              "type": {
                                "const": "sentence"
                              },
                              "parts": {
                                "type": "array",
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "required": [
                                        "id",
                                        "kind",
                                        "name"
                                      ],
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "kind": {
                                          "type": "string"
                                        },
                                        "name": {
                                          "type": "string"
                                        }
                                      },
                                      "description": "An entry of the build a row names; it answers /node?id=."
                                    }
                                  ]
                                },
                                "description": "A sentence with entries in it: text and entries in the order they are read."
                              }
                            }
                          },
                          {
                            "type": "object",
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "note"
                              },
                              "text": {
                                "type": "string",
                                "description": "A caution or a rule of reading that the source or the graph contract fixes for the rows beside it."
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Reading": {
        "type": "object",
        "required": [
          "family",
          "sections"
        ],
        "description": "What the node's page prints above its links, as data: the sections for the node's kind, in the page's order. Present for a node of a kind that has a family, where the build states something a section shows.",
        "properties": {
          "family": {
            "enum": [
              "disease",
              "test",
              "anatomy",
              "model",
              "variant",
              "structural",
              "code"
            ]
          },
          "sections": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "required": [
                "id",
                "heading",
                "blocks"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "heading": {
                  "type": "string"
                },
                "blocks": {
                  "type": "array",
                  "minItems": 1,
                  "items": {
                    "oneOf": [
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "list"
                        ],
                        "properties": {
                          "type": {
                            "const": "list"
                          },
                          "list": {
                            "type": "object",
                            "required": [
                              "id",
                              "count",
                              "names",
                              "columns",
                              "rows"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "heading": {
                                "type": "string"
                              },
                              "count": {
                                "type": "integer",
                                "description": "The statements of the list: the rows, or every row of every page where the list is paged."
                              },
                              "names": {
                                "type": "string"
                              },
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "review": {
                                "type": "object",
                                "required": [
                                  "label",
                                  "value"
                                ],
                                "properties": {
                                  "label": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  },
                                  "href": {
                                    "type": "string"
                                  },
                                  "review": {
                                    "type": "object",
                                    "required": [
                                      "tables",
                                      "status",
                                      "compiledBy",
                                      "signedForBuild",
                                      "specialistReview",
                                      "level",
                                      "label"
                                    ],
                                    "description": "On the line that is a hand-made row's label (`value` is the label): the record the label was made of, as fields.",
                                    "properties": {
                                      "tables": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        },
                                        "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
                                      },
                                      "status": {
                                        "enum": [
                                          "signed_off",
                                          "unsigned",
                                          "stale",
                                          "rejected"
                                        ],
                                        "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
                                      },
                                      "compiledBy": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                                        "properties": {
                                          "kind": {
                                            "enum": [
                                              "build_agents",
                                              "person"
                                            ]
                                          },
                                          "name": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      "compiledFrom": {
                                        "enum": [
                                          "row",
                                          "table",
                                          null
                                        ],
                                        "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
                                      },
                                      "sourceNamed": {
                                        "type": "boolean",
                                        "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
                                      },
                                      "signedForBuild": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                                        "properties": {
                                          "by": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The name the build's record of the row holds."
                                          },
                                          "on": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The day of the record (YYYY-MM-DD)."
                                          }
                                        }
                                      },
                                      "specialistReview": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                                        "properties": {
                                          "by": {
                                            "type": "string"
                                          },
                                          "on": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "office": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The reviewer's office, where the record gives it."
                                          }
                                        }
                                      },
                                      "level": {
                                        "enum": [
                                          "unsigned",
                                          "signed_for_build",
                                          "specialist_reviewed"
                                        ],
                                        "description": "The level of review the row carries."
                                      },
                                      "label": {
                                        "type": "string",
                                        "description": "The fields in one sentence, as a page prints it beside the row."
                                      }
                                    }
                                  }
                                },
                                "description": "The label of the list's hand-made rows, where the list has more than one row and every row carries one and the one label: it is given once here and the rows do not repeat it. A list whose rows differ gives each row its own among its `qualifiers`."
                              },
                              "termsReview": {
                                "type": "object",
                                "required": [
                                  "label",
                                  "value"
                                ],
                                "properties": {
                                  "label": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  },
                                  "href": {
                                    "type": "string"
                                  },
                                  "review": {
                                    "type": "object",
                                    "required": [
                                      "tables",
                                      "status",
                                      "compiledBy",
                                      "signedForBuild",
                                      "specialistReview",
                                      "level",
                                      "label"
                                    ],
                                    "description": "On the line that is a hand-made row's label (`value` is the label): the record the label was made of, as fields.",
                                    "properties": {
                                      "tables": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        },
                                        "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
                                      },
                                      "status": {
                                        "enum": [
                                          "signed_off",
                                          "unsigned",
                                          "stale",
                                          "rejected"
                                        ],
                                        "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
                                      },
                                      "compiledBy": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                                        "properties": {
                                          "kind": {
                                            "enum": [
                                              "build_agents",
                                              "person"
                                            ]
                                          },
                                          "name": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      "compiledFrom": {
                                        "enum": [
                                          "row",
                                          "table",
                                          null
                                        ],
                                        "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
                                      },
                                      "sourceNamed": {
                                        "type": "boolean",
                                        "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
                                      },
                                      "signedForBuild": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                                        "properties": {
                                          "by": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The name the build's record of the row holds."
                                          },
                                          "on": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The day of the record (YYYY-MM-DD)."
                                          }
                                        }
                                      },
                                      "specialistReview": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                                        "properties": {
                                          "by": {
                                            "type": "string"
                                          },
                                          "on": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "office": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The reviewer's office, where the record gives it."
                                          }
                                        }
                                      },
                                      "level": {
                                        "enum": [
                                          "unsigned",
                                          "signed_for_build",
                                          "specialist_reviewed"
                                        ],
                                        "description": "The level of review the row carries."
                                      },
                                      "label": {
                                        "type": "string",
                                        "description": "The fields in one sentence, as a page prints it beside the row."
                                      }
                                    }
                                  }
                                },
                                "description": "Where a row of the list prints the groups of a classification: the label of the table that gives each of the source's terms its group, given once for the list. The rows are the source's own and carry no label."
                              },
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "name",
                                    "qualifiers"
                                  ],
                                  "properties": {
                                    "key": {
                                      "type": "string",
                                      "description": "Stable within a build: the link's id, or the id of the node the row is about."
                                    },
                                    "name": {
                                      "type": "string",
                                      "description": "The row's first line: the entry as a list names it, or the statement's own words."
                                    },
                                    "entry": {
                                      "type": "object",
                                      "required": [
                                        "id",
                                        "kind",
                                        "name"
                                      ],
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "kind": {
                                          "type": "string"
                                        },
                                        "name": {
                                          "type": "string"
                                        }
                                      },
                                      "description": "An entry of the build a row names; it answers /node?id=."
                                    },
                                    "marks": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      },
                                      "description": "Labels that are part of what the row is, in the build's or the source's words."
                                    },
                                    "qualifiers": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "required": [
                                          "label",
                                          "value"
                                        ],
                                        "properties": {
                                          "label": {
                                            "type": "string"
                                          },
                                          "value": {
                                            "type": "string"
                                          },
                                          "href": {
                                            "type": "string"
                                          },
                                          "review": {
                                            "type": "object",
                                            "required": [
                                              "tables",
                                              "status",
                                              "compiledBy",
                                              "signedForBuild",
                                              "specialistReview",
                                              "level",
                                              "label"
                                            ],
                                            "description": "On the line that is a hand-made row's label (`value` is the label): the record the label was made of, as fields.",
                                            "properties": {
                                              "tables": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                },
                                                "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
                                              },
                                              "status": {
                                                "enum": [
                                                  "signed_off",
                                                  "unsigned",
                                                  "stale",
                                                  "rejected"
                                                ],
                                                "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
                                              },
                                              "compiledBy": {
                                                "type": [
                                                  "object",
                                                  "null"
                                                ],
                                                "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                                                "properties": {
                                                  "kind": {
                                                    "enum": [
                                                      "build_agents",
                                                      "person"
                                                    ]
                                                  },
                                                  "name": {
                                                    "type": "string"
                                                  }
                                                }
                                              },
                                              "compiledFrom": {
                                                "enum": [
                                                  "row",
                                                  "table",
                                                  null
                                                ],
                                                "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
                                              },
                                              "sourceNamed": {
                                                "type": "boolean",
                                                "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
                                              },
                                              "signedForBuild": {
                                                "type": [
                                                  "object",
                                                  "null"
                                                ],
                                                "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                                                "properties": {
                                                  "by": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ],
                                                    "description": "The name the build's record of the row holds."
                                                  },
                                                  "on": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ],
                                                    "description": "The day of the record (YYYY-MM-DD)."
                                                  }
                                                }
                                              },
                                              "specialistReview": {
                                                "type": [
                                                  "object",
                                                  "null"
                                                ],
                                                "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                                                "properties": {
                                                  "by": {
                                                    "type": "string"
                                                  },
                                                  "on": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "office": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ],
                                                    "description": "The reviewer's office, where the record gives it."
                                                  }
                                                }
                                              },
                                              "level": {
                                                "enum": [
                                                  "unsigned",
                                                  "signed_for_build",
                                                  "specialist_reviewed"
                                                ],
                                                "description": "The level of review the row carries."
                                              },
                                              "label": {
                                                "type": "string",
                                                "description": "The fields in one sentence, as a page prints it beside the row."
                                              }
                                            }
                                          }
                                        }
                                      },
                                      "description": "The statement's grade, who states it, its date and the like, each with its label."
                                    },
                                    "source": {
                                      "type": "object",
                                      "required": [
                                        "id",
                                        "title"
                                      ],
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "title": {
                                          "type": "string"
                                        },
                                        "release": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "description": "The source that states the row, and its release in the build."
                                    },
                                    "under": {
                                      "type": "array",
                                      "items": {
                                        "type": "object"
                                      },
                                      "description": "The statements under the row, each of this shape."
                                    }
                                  }
                                }
                              },
                              "page": {
                                "type": "object",
                                "required": [
                                  "group",
                                  "page",
                                  "pages",
                                  "perPage"
                                ],
                                "properties": {
                                  "group": {
                                    "type": "string",
                                    "description": "The group of the node's links the list is a page of: give it as `group`."
                                  },
                                  "page": {
                                    "type": "integer"
                                  },
                                  "pages": {
                                    "type": "integer"
                                  },
                                  "perPage": {
                                    "type": "integer"
                                  }
                                }
                              },
                              "note": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      },
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "block"
                        ],
                        "properties": {
                          "type": {
                            "const": "facts"
                          },
                          "block": {
                            "type": "object",
                            "required": [
                              "id",
                              "facts"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "heading": {
                                "type": "string"
                              },
                              "entry": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "kind",
                                  "name"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "kind": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "description": "An entry of the build a row names; it answers /node?id=."
                              },
                              "facts": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "label",
                                    "value"
                                  ],
                                  "properties": {
                                    "label": {
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "string"
                                    },
                                    "href": {
                                      "type": "string"
                                    },
                                    "review": {
                                      "type": "object",
                                      "required": [
                                        "tables",
                                        "status",
                                        "compiledBy",
                                        "signedForBuild",
                                        "specialistReview",
                                        "level",
                                        "label"
                                      ],
                                      "description": "On the line that is a hand-made row's label (`value` is the label): the record the label was made of, as fields.",
                                      "properties": {
                                        "tables": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          },
                                          "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
                                        },
                                        "status": {
                                          "enum": [
                                            "signed_off",
                                            "unsigned",
                                            "stale",
                                            "rejected"
                                          ],
                                          "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
                                        },
                                        "compiledBy": {
                                          "type": [
                                            "object",
                                            "null"
                                          ],
                                          "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                                          "properties": {
                                            "kind": {
                                              "enum": [
                                                "build_agents",
                                                "person"
                                              ]
                                            },
                                            "name": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        "compiledFrom": {
                                          "enum": [
                                            "row",
                                            "table",
                                            null
                                          ],
                                          "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
                                        },
                                        "sourceNamed": {
                                          "type": "boolean",
                                          "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
                                        },
                                        "signedForBuild": {
                                          "type": [
                                            "object",
                                            "null"
                                          ],
                                          "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                                          "properties": {
                                            "by": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name the build's record of the row holds."
                                            },
                                            "on": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The day of the record (YYYY-MM-DD)."
                                            }
                                          }
                                        },
                                        "specialistReview": {
                                          "type": [
                                            "object",
                                            "null"
                                          ],
                                          "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                                          "properties": {
                                            "by": {
                                              "type": "string"
                                            },
                                            "on": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            },
                                            "office": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The reviewer's office, where the record gives it."
                                            }
                                          }
                                        },
                                        "level": {
                                          "enum": [
                                            "unsigned",
                                            "signed_for_build",
                                            "specialist_reviewed"
                                          ],
                                          "description": "The level of review the row carries."
                                        },
                                        "label": {
                                          "type": "string",
                                          "description": "The fields in one sentence, as a page prints it beside the row."
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "source": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "title"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "title": {
                                    "type": "string"
                                  },
                                  "release": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "description": "The source that states the row, and its release in the build."
                              }
                            }
                          }
                        }
                      },
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "parts"
                        ],
                        "properties": {
                          "type": {
                            "const": "sentence"
                          },
                          "parts": {
                            "type": "array",
                            "items": {
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "required": [
                                    "id",
                                    "kind",
                                    "name"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "kind": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    }
                                  },
                                  "description": "An entry of the build a row names; it answers /node?id=."
                                }
                              ]
                            },
                            "description": "A sentence with entries in it: text and entries in the order they are read."
                          }
                        }
                      },
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "text"
                        ],
                        "properties": {
                          "type": {
                            "const": "note"
                          },
                          "text": {
                            "type": "string",
                            "description": "A caution or a rule of reading that the source or the graph contract fixes for the rows beside it."
                          }
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "NodeKeyMatches": {
        "type": "object",
        "required": [
          "key",
          "offset",
          "matches",
          "more"
        ],
        "properties": {
          "key": {
            "type": "string",
            "description": "The key as it was asked."
          },
          "offset": {
            "type": "integer",
            "description": "The place of the first id of `matches` in the list of the nodes that share the key."
          },
          "matches": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 20,
            "description": "Ids of the nodes that share the key, in id order; each answers /node?id=."
          },
          "more": {
            "type": "boolean",
            "description": "True when further nodes share the key: `offset` raised by the number of `matches` gives the next of them."
          }
        }
      },
      "LinkPage": {
        "type": "object",
        "required": [
          "node",
          "kind",
          "type",
          "direction",
          "total",
          "members",
          "offset",
          "limit",
          "items",
          "attribution"
        ],
        "properties": {
          "node": {
            "type": "string",
            "description": "The id of the node whose links these are."
          },
          "kind": {
            "enum": [
              "edge",
              "reference"
            ]
          },
          "type": {
            "type": "string"
          },
          "direction": {
            "enum": [
              "out",
              "in"
            ]
          },
          "denying": {
            "type": "boolean",
            "description": "As asked: true for the statements that dispute or refute the link, false for the group without them; left out when the page runs over both."
          },
          "total": {
            "type": "integer",
            "description": "Links of the group."
          },
          "members": {
            "type": "integer",
            "description": "Distinct nodes at the other end of the group's links."
          },
          "offset": {
            "type": "integer"
          },
          "limit": {
            "type": "integer"
          },
          "items": {
            "type": "array",
            "maxItems": 100,
            "description": "One item per link, ordered by the other end's kind, then most linked first, then id.",
            "items": {
              "type": "object",
              "required": [
                "link",
                "node"
              ],
              "properties": {
                "link": {
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "type",
                    "from",
                    "to",
                    "source",
                    "licence"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "e<n> an edge, r<n> a reference link; stable within a build."
                    },
                    "kind": {
                      "enum": [
                        "edge",
                        "reference"
                      ]
                    },
                    "type": {
                      "type": "string"
                    },
                    "from": {
                      "type": "string"
                    },
                    "to": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "licence": {
                      "type": "string"
                    },
                    "properties": {
                      "type": "object"
                    },
                    "review": {
                      "type": "object",
                      "required": [
                        "tables",
                        "status",
                        "compiledBy",
                        "signedForBuild",
                        "specialistReview",
                        "level",
                        "label"
                      ],
                      "description": "Present on a hand-made row: a row of a table that was written by hand or by a build agent and enters a product build only when a named person has signed it. Read from the row's own record in the build. A row read straight from a pinned source file carries no `review` and keeps its source's credit. A signature for the build is not a specialist's review of the row: `level` and `specialistReview` say which the row carries. On a link it is given whether or not the link's own properties are asked for.",
                      "properties": {
                        "tables": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
                        },
                        "status": {
                          "enum": [
                            "signed_off",
                            "unsigned",
                            "stale",
                            "rejected"
                          ],
                          "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
                        },
                        "compiledBy": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                          "properties": {
                            "kind": {
                              "enum": [
                                "build_agents",
                                "person"
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          }
                        },
                        "compiledFrom": {
                          "enum": [
                            "row",
                            "table",
                            null
                          ],
                          "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
                        },
                        "sourceNamed": {
                          "type": "boolean",
                          "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
                        },
                        "signedForBuild": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                          "properties": {
                            "by": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The name the build's record of the row holds."
                            },
                            "on": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The day of the record (YYYY-MM-DD)."
                            }
                          }
                        },
                        "specialistReview": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                          "properties": {
                            "by": {
                              "type": "string"
                            },
                            "on": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "office": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The reviewer's office, where the record gives it."
                            }
                          }
                        },
                        "level": {
                          "enum": [
                            "unsigned",
                            "signed_for_build",
                            "specialist_reviewed"
                          ],
                          "description": "The level of review the row carries."
                        },
                        "label": {
                          "type": "string",
                          "description": "The fields in one sentence, as a page prints it beside the row."
                        }
                      }
                    }
                  }
                },
                "node": {
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "name",
                    "source",
                    "licence",
                    "degree",
                    "references"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "licence": {
                      "type": "string"
                    },
                    "degree": {
                      "type": "integer",
                      "description": "Edges at the node, both directions."
                    },
                    "references": {
                      "type": "integer",
                      "description": "Reference links at the node, both directions."
                    }
                  }
                }
              }
            }
          },
          "attribution": {
            "type": "object",
            "properties": {
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "licences": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "notices": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "textAltered": {
                "const": true
              }
            },
            "required": [
              "sources",
              "licences",
              "notices"
            ]
          }
        }
      },
      "Neighbourhood": {
        "type": "object",
        "properties": {
          "center": {
            "type": "string"
          },
          "depth": {
            "type": "integer"
          },
          "nodes": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "name",
                    "source",
                    "licence",
                    "degree",
                    "references"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "licence": {
                      "type": "string"
                    },
                    "degree": {
                      "type": "integer",
                      "description": "Edges at the node, both directions."
                    },
                    "references": {
                      "type": "integer",
                      "description": "Reference links at the node, both directions."
                    }
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "depth": {
                      "type": "integer"
                    },
                    "expanded": {
                      "type": "boolean"
                    }
                  }
                }
              ]
            }
          },
          "links": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "kind",
                "type",
                "from",
                "to",
                "source",
                "licence"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "description": "e<n> an edge, r<n> a reference link; stable within a build."
                },
                "kind": {
                  "enum": [
                    "edge",
                    "reference"
                  ]
                },
                "type": {
                  "type": "string"
                },
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "licence": {
                  "type": "string"
                },
                "properties": {
                  "type": "object"
                },
                "review": {
                  "type": "object",
                  "required": [
                    "tables",
                    "status",
                    "compiledBy",
                    "signedForBuild",
                    "specialistReview",
                    "level",
                    "label"
                  ],
                  "description": "Present on a hand-made row: a row of a table that was written by hand or by a build agent and enters a product build only when a named person has signed it. Read from the row's own record in the build. A row read straight from a pinned source file carries no `review` and keeps its source's credit. A signature for the build is not a specialist's review of the row: `level` and `specialistReview` say which the row carries. On a link it is given whether or not the link's own properties are asked for.",
                  "properties": {
                    "tables": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
                    },
                    "status": {
                      "enum": [
                        "signed_off",
                        "unsigned",
                        "stale",
                        "rejected"
                      ],
                      "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
                    },
                    "compiledBy": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                      "properties": {
                        "kind": {
                          "enum": [
                            "build_agents",
                            "person"
                          ]
                        },
                        "name": {
                          "type": "string"
                        }
                      }
                    },
                    "compiledFrom": {
                      "enum": [
                        "row",
                        "table",
                        null
                      ],
                      "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
                    },
                    "sourceNamed": {
                      "type": "boolean",
                      "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
                    },
                    "signedForBuild": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                      "properties": {
                        "by": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The name the build's record of the row holds."
                        },
                        "on": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The day of the record (YYYY-MM-DD)."
                        }
                      }
                    },
                    "specialistReview": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                      "properties": {
                        "by": {
                          "type": "string"
                        },
                        "on": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "office": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The reviewer's office, where the record gives it."
                        }
                      }
                    },
                    "level": {
                      "enum": [
                        "unsigned",
                        "signed_for_build",
                        "specialist_reviewed"
                      ],
                      "description": "The level of review the row carries."
                    },
                    "label": {
                      "type": "string",
                      "description": "The fields in one sentence, as a page prints it beside the row."
                    }
                  }
                }
              }
            }
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "node": {
                  "type": "string"
                },
                "kind": {
                  "enum": [
                    "edge",
                    "reference"
                  ]
                },
                "type": {
                  "type": "string"
                },
                "direction": {
                  "enum": [
                    "out",
                    "in"
                  ]
                },
                "total": {
                  "type": "integer"
                },
                "shown": {
                  "type": "integer"
                },
                "denying": {
                  "const": true,
                  "description": "Present on the group of the gene statements whose own grade disputes or refutes the link; the group of the type and direction without the mark counts the others."
                },
                "by": {
                  "type": "object",
                  "properties": {
                    "property": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "description": "The group is the links of the type that state this value of one property."
                },
                "counted": {
                  "const": true,
                  "description": "The node is a grouping class and the group is its kinds: counted here, read page by page with /links."
                }
              }
            }
          },
          "truncated": {
            "type": "boolean"
          },
          "attribution": {
            "type": "object",
            "properties": {
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "licences": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "notices": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "textAltered": {
                "const": true
              }
            },
            "required": [
              "sources",
              "licences",
              "notices"
            ]
          }
        }
      },
      "PathsResult": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "maxHops": {
            "type": "integer"
          },
          "distance": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Hops of the shortest connection the walk rules allow; null with none within maxHops."
          },
          "paths": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "nodes",
                "links",
                "steps",
                "direction"
              ],
              "properties": {
                "nodes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "From `from` to `to`, whichever way the path is walked."
                },
                "links": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "One link a step: the first of the step's `links`."
                },
                "steps": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "links"
                    ],
                    "properties": {
                      "links": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Every link between the step's two nodes that the path may walk, by id."
                      },
                      "alsoStated": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Links between the two nodes that are never walked because of what they state themselves, by id; each is in the answer's `alsoStated`."
                      }
                    }
                  }
                },
                "direction": {
                  "enum": [
                    "forward",
                    "backward"
                  ],
                  "description": "forward: the rules allow the path walked from `from` to `to`; backward: from `to` to `from`."
                },
                "reading": {
                  "const": "molecule route",
                  "description": "The path runs from a laboratory test to the body through the molecule the test measures."
                }
              }
            }
          },
          "nodes": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "required": [
                "id",
                "kind",
                "name",
                "source",
                "licence",
                "degree",
                "references"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "kind": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "licence": {
                  "type": "string"
                },
                "degree": {
                  "type": "integer",
                  "description": "Edges at the node, both directions."
                },
                "references": {
                  "type": "integer",
                  "description": "Reference links at the node, both directions."
                }
              }
            }
          },
          "links": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "required": [
                "id",
                "kind",
                "type",
                "from",
                "to",
                "source",
                "licence"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "description": "e<n> an edge, r<n> a reference link; stable within a build."
                },
                "kind": {
                  "enum": [
                    "edge",
                    "reference"
                  ]
                },
                "type": {
                  "type": "string"
                },
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "licence": {
                  "type": "string"
                },
                "properties": {
                  "type": "object"
                },
                "review": {
                  "type": "object",
                  "required": [
                    "tables",
                    "status",
                    "compiledBy",
                    "signedForBuild",
                    "specialistReview",
                    "level",
                    "label"
                  ],
                  "description": "Present on a hand-made row: a row of a table that was written by hand or by a build agent and enters a product build only when a named person has signed it. Read from the row's own record in the build. A row read straight from a pinned source file carries no `review` and keeps its source's credit. A signature for the build is not a specialist's review of the row: `level` and `specialistReview` say which the row carries. On a link it is given whether or not the link's own properties are asked for.",
                  "properties": {
                    "tables": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The tables of hand-made rows the record names: the row's own (`review_table`), or, on a source's own row, the tables of the terms added beside the source's words (`value_reviews`)."
                    },
                    "status": {
                      "enum": [
                        "signed_off",
                        "unsigned",
                        "stale",
                        "rejected"
                      ],
                      "description": "The state of the row's signature for the build, as the build writes it (`review_status`). A product build holds signed rows only."
                    },
                    "compiledBy": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Who compiled the row: build agents, or a person by the name the record gives. null where the record does not say.",
                      "properties": {
                        "kind": {
                          "enum": [
                            "build_agents",
                            "person"
                          ]
                        },
                        "name": {
                          "type": "string"
                        }
                      }
                    },
                    "compiledFrom": {
                      "enum": [
                        "row",
                        "table",
                        null
                      ],
                      "description": "Where `compiledBy` was read: the row's own proposer (`proposed_by`), or the row's table."
                    },
                    "sourceNamed": {
                      "type": "boolean",
                      "description": "The row names the source it was compiled from (`source`, and a citation where it has one)."
                    },
                    "signedForBuild": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "The signature that lets the row into a product build: who signed and when (`reviewed_by`, `reviewed_at`; on a source's own row with added terms, the name and the day on which every entry of `value_reviews` agrees, else null for that part). null for a row that is not signed.",
                      "properties": {
                        "by": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The name the build's record of the row holds."
                        },
                        "on": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The day of the record (YYYY-MM-DD)."
                        }
                      }
                    },
                    "specialistReview": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "A specialist's own review of the row, with name and day. null where the build's record of the row has none.",
                      "properties": {
                        "by": {
                          "type": "string"
                        },
                        "on": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "office": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The reviewer's office, where the record gives it."
                        }
                      }
                    },
                    "level": {
                      "enum": [
                        "unsigned",
                        "signed_for_build",
                        "specialist_reviewed"
                      ],
                      "description": "The level of review the row carries."
                    },
                    "label": {
                      "type": "string",
                      "description": "The fields in one sentence, as a page prints it beside the row."
                    }
                  }
                }
              }
            }
          },
          "truncated": {
            "type": "boolean",
            "description": "True when there are more shortest paths than listed, or more shared entries than `shared` lists."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "alsoStated": {
            "type": "array",
            "description": "The statements between two neighbouring nodes of a path, or directly between `from` and `to`, that are never walked because of what they state themselves; each is in `links` with its properties.",
            "items": {
              "type": "object",
              "required": [
                "link",
                "type",
                "from",
                "to",
                "source",
                "flag"
              ],
              "properties": {
                "link": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "flag": {
                  "enum": [
                    "one_to_one",
                    "denying_grade",
                    "no_association",
                    "combined_profile",
                    "retracted"
                  ],
                  "description": "What the statement states of itself: a grade that disputes or refutes the link, an annotation that found no association, a retracted curation, a combined profile."
                },
                "says": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Who states it and its grade, in the source's words."
                }
              }
            }
          },
          "shared": {
            "type": "array",
            "maxItems": 5,
            "description": "With `distance` null: entries both ends are linked to, the one with the fewest links first.",
            "items": {
              "type": "object",
              "required": [
                "type",
                "node",
                "sentence",
                "links"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "description": "The link type both ends hold to the entry."
                },
                "node": {
                  "type": "string",
                  "description": "The shared entry's id; it is in `nodes`."
                },
                "sentence": {
                  "type": "string"
                },
                "links": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "to": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "description": "Each end's own links to the entry, by id; each is in `links`."
                }
              }
            }
          },
          "attribution": {
            "type": "object",
            "properties": {
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "licences": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "notices": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "textAltered": {
                "const": true
              }
            },
            "required": [
              "sources",
              "licences",
              "notices"
            ]
          }
        }
      },
      "KindsAnswer": {
        "type": "object",
        "required": [
          "kinds",
          "linkTypes",
          "walkRules"
        ],
        "properties": {
          "kinds": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "count"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                },
                "one": {
                  "type": "string"
                },
                "many": {
                  "type": "string"
                },
                "what": {
                  "type": "string"
                },
                "searchedBy": {
                  "enum": [
                    "names and codes",
                    "id only"
                  ]
                },
                "addedBy": {
                  "type": "string"
                },
                "reading": {
                  "enum": [
                    "disease",
                    "test",
                    "anatomy",
                    "model",
                    "variant",
                    "structural",
                    "code"
                  ]
                },
                "passedThrough": {
                  "const": false,
                  "description": "A node of the kind starts or ends a path."
                }
              }
            }
          },
          "linkTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "count",
                "label",
                "back",
                "between",
                "walk"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                },
                "label": {
                  "type": "string",
                  "description": "Read from the link's start to its end."
                },
                "back": {
                  "type": "string",
                  "description": "Read from its end to its start."
                },
                "what": {
                  "type": "string"
                },
                "between": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string"
                      },
                      "to": {
                        "type": "string"
                      },
                      "count": {
                        "type": "integer"
                      }
                    }
                  }
                },
                "walk": {
                  "type": "object",
                  "required": [
                    "rule",
                    "says"
                  ],
                  "properties": {
                    "rule": {
                      "enum": [
                        "up only",
                        "stated direction",
                        "end to start",
                        "both ways",
                        "mapping",
                        "never"
                      ]
                    },
                    "says": {
                      "type": "string",
                      "description": "The rule in one sentence."
                    },
                    "reads": {
                      "type": "string",
                      "description": "The mark of a link that the rule reads (one_to_one, denying_grade, no_association, combined_profile, retracted)."
                    },
                    "readsWhat": {
                      "type": "string",
                      "description": "What sets that mark, by the build's own cell."
                    },
                    "familyTree": {
                      "const": true
                    },
                    "between": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "from": {
                            "type": "string"
                          },
                          "to": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "addedBy": {
                  "type": "string"
                }
              }
            }
          },
          "referenceLinks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "properties",
                "walk"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "properties": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "walk": {
                  "type": "object",
                  "required": [
                    "rule",
                    "says"
                  ],
                  "properties": {
                    "rule": {
                      "enum": [
                        "up only",
                        "stated direction",
                        "end to start",
                        "both ways",
                        "mapping",
                        "never"
                      ]
                    },
                    "says": {
                      "type": "string",
                      "description": "The rule in one sentence."
                    },
                    "reads": {
                      "type": "string",
                      "description": "The mark of a link that the rule reads (one_to_one, denying_grade, no_association, combined_profile, retracted)."
                    },
                    "readsWhat": {
                      "type": "string",
                      "description": "What sets that mark, by the build's own cell."
                    },
                    "familyTree": {
                      "const": true
                    },
                    "between": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "from": {
                            "type": "string"
                          },
                          "to": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "walkRules": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "rule",
                "says",
                "linkTypes"
              ],
              "properties": {
                "rule": {
                  "enum": [
                    "up only",
                    "stated direction",
                    "end to start",
                    "both ways",
                    "mapping",
                    "never"
                  ]
                },
                "says": {
                  "type": "string"
                },
                "linkTypes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "endsOnly": {
            "type": "object",
            "properties": {
              "kinds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "says": {
                "type": "string"
              }
            }
          },
          "groupingClasses": {
            "type": "object",
            "properties": {
              "says": {
                "type": "string"
              },
              "minDirectChildren": {
                "type": "integer"
              },
              "classes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "directChildren": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "integer"
                      }
                    },
                    "listed": {
                      "type": "boolean",
                      "description": "True for an upper class the builder lists; false for a class counted by its direct children."
                    }
                  }
                }
              }
            }
          },
          "contractRules": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "contract",
                "file",
                "list",
                "rules"
              ],
              "properties": {
                "contract": {
                  "type": "string",
                  "description": "The graph contract's id as the file states it."
                },
                "file": {
                  "type": "string"
                },
                "list": {
                  "type": "string",
                  "description": "The list of the file the rules are quoted from."
                },
                "rules": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "DownloadIndex": {
        "type": "object",
        "required": [
          "contract",
          "build",
          "signature",
          "files"
        ],
        "properties": {
          "contract": {
            "const": "PREPAIRE-VERA-REFERENCE-GRAPH-DOWNLOAD@1.0.0"
          },
          "build": {
            "type": "object",
            "required": [
              "id",
              "buildHash",
              "outputSha256"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "buildHash": {
                "type": "string"
              },
              "builtAt": {
                "type": "string"
              },
              "profile": {
                "type": "string"
              },
              "schemaVersion": {
                "type": "string"
              },
              "outputSha256": {
                "type": "string"
              }
            }
          },
          "signature": {
            "type": "object",
            "required": [
              "file",
              "allowedSigners",
              "principal",
              "namespace",
              "keyFingerprint"
            ],
            "properties": {
              "file": {
                "type": "string"
              },
              "allowedSigners": {
                "type": "string"
              },
              "principal": {
                "type": "string"
              },
              "namespace": {
                "type": "string"
              },
              "covers": {
                "type": "string",
                "description": "What the signature is over."
              },
              "keyFingerprint": {
                "type": "string"
              },
              "notSigned": {
                "type": "string",
                "description": "The files beside the signed ones."
              }
            }
          },
          "counts": {
            "type": "object",
            "properties": {
              "nodes": {
                "type": "integer"
              },
              "edges": {
                "type": "integer"
              },
              "unsignedReviewRows": {
                "type": "integer"
              }
            }
          },
          "neo4j": {
            "type": "object",
            "properties": {
              "version": {
                "type": "string"
              },
              "testedWith": {
                "type": "string",
                "description": "The Neo4j and the Java of the kept record of VERA's download proof on these very files, where VERA's evidence holds that record."
              }
            }
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "bytes",
                "sha256",
                "url"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "bytes": {
                  "type": "integer"
                },
                "sha256": {
                  "type": "string"
                },
                "what": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "gunzipOf": {
                  "type": "string",
                  "description": "Set on the .tar: no file of its own; it is gunzip of this listed .tar.gz, and bytes and sha256 are the uncompressed archive's."
                },
                "storage": {
                  "type": "string",
                  "description": "Set on a file kept on VERA's public storage: its address there. `url` answers with a redirect to it (302)."
                },
                "check": {
                  "type": "string",
                  "description": "Beside `storage`: the one shell line that checks the fetched file against `sha256`."
                }
              }
            }
          }
        }
      },
      "ValidateRequest": {
        "type": "object",
        "required": [
          "content",
          "fileName",
          "lane"
        ],
        "additionalProperties": false,
        "properties": {
          "content": {
            "type": "string",
            "minLength": 1,
            "maxLength": 524288
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "lane": {
            "enum": [
              "blood",
              "wgs",
              "methylation",
              "stool",
              "urine",
              "haematology",
              "urinalysis"
            ]
          },
          "facts": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "patientId": {
                "type": "string",
                "maxLength": 256
              },
              "encounterId": {
                "type": "string",
                "maxLength": 256
              },
              "sampleId": {
                "type": "string",
                "maxLength": 256
              },
              "specimenType": {
                "type": "string",
                "maxLength": 256
              },
              "collectedAt": {
                "type": "string",
                "maxLength": 256
              },
              "laboratory": {
                "type": "string",
                "maxLength": 256
              },
              "instrumentId": {
                "type": "string",
                "maxLength": 256
              },
              "method": {
                "type": "string",
                "maxLength": 256
              },
              "messageId": {
                "type": "string",
                "maxLength": 256
              },
              "consentScope": {
                "type": "string",
                "maxLength": 256
              },
              "releaseReviewer": {
                "type": "string",
                "maxLength": 256
              }
            }
          }
        }
      },
      "ValidateAnswer": {
        "type": "object",
        "properties": {
          "facts": {
            "type": "object"
          },
          "writes": {
            "const": "none"
          },
          "result": {
            "type": "object",
            "properties": {
              "decision": {
                "enum": [
                  "ready",
                  "quarantine"
                ]
              },
              "findings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "severity": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "check": {
                      "type": "integer"
                    }
                  }
                }
              },
              "observations": {
                "type": "array"
              },
              "summary": {
                "type": "object"
              }
            }
          }
        }
      },
      "HomeAsk": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "ask"
            ],
            "additionalProperties": false,
            "properties": {
              "ask": {
                "const": "reports-read"
              }
            }
          },
          {
            "type": "object",
            "required": [
              "ask",
              "reports"
            ],
            "additionalProperties": false,
            "properties": {
              "ask": {
                "const": "reports-graph"
              },
              "reports": {
                "type": "integer",
                "minimum": 1,
                "maximum": 12
              }
            }
          },
          {
            "type": "object",
            "required": [
              "ask"
            ],
            "additionalProperties": false,
            "properties": {
              "ask": {
                "const": "reports-ranges"
              }
            }
          },
          {
            "type": "object",
            "required": [
              "ask"
            ],
            "additionalProperties": false,
            "properties": {
              "ask": {
                "const": "tube"
              },
              "line": {
                "enum": [
                  "sysmex-xr-1000",
                  "sysmex-urine-line",
                  "cobas-c-303",
                  "cobas-e-402"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "ask",
              "runAt"
            ],
            "additionalProperties": false,
            "properties": {
              "ask": {
                "const": "tube-check"
              },
              "runAt": {
                "type": "string",
                "maxLength": 40
              },
              "line": {
                "enum": [
                  "sysmex-xr-1000",
                  "sysmex-urine-line",
                  "cobas-c-303",
                  "cobas-e-402"
                ]
              }
            }
          }
        ]
      }
    }
  }
}