{
  "openapi": "3.1.0",
  "info": {
    "title": "JYOTINT API — read-only, no-key, CORS-open",
    "version": "v1",
    "description": "JYOTINT delivers the high-stakes call right — a mission that flies clean, a position defended. This read-only, CORS-open API exposes the credential that PROVES it: the publicly-graded, Bitcoin-anchored record (derived from the seal manifest, grading ledger, and CC-BY dataset), recomputable and never operator-asserted. See `positioning` for the full framing.",
    "termsOfService": "https://jyotishintelligence.com/policies/terms#TERMS_02API",
    "x-disclaimer": "All records are editorial forecasting opinion and protected commentary under CC-BY-4.0 — NOT statements of fact about any third party, not an engineering finding, not investment / legal / safety advice. Provided 'as is,' without warranty. A sealed probabilistic forecast is not notice and imputes no knowledge or scienter; this record is not evidence of any third party's liability, foreseeability, or fault, and may not be used in any securities, shareholder, derivative, insurance, subrogation, or product-liability proceeding against any launch operator or payload customer. See /policies/terms#TERMS_02API and #TERMS_02NW.",
    "license": {
      "name": "CC-BY-4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    },
    "contact": {
      "name": "Vijay Jyotish LLC",
      "url": "https://jyotishintelligence.com/contact",
      "email": "contactus@vijayjyotish.com"
    },
    "x-api-policy": {
      "versioning": "Path-versioned: /api/v1. Changes within v1 are ADDITIVE ONLY — new endpoints and new fields may appear; documented fields and endpoints are not renamed, removed, or retyped within v1. Consumers should ignore unknown fields.",
      "deprecation": "Nothing has been removed from v1 since it shipped. If a breaking change were ever required it would ship as /api/v2 with v1 kept serving in parallel; any deprecation would be announced in this descriptor and in /api/v1/corrections.json.",
      "content_negotiation": "/brain is dual-faced by Accept header: a browser Accept explicitly naming text/html gets the human search page; Accept: application/json, */* (curl/fetch default), any POST, or ?format=json gets the JSON envelope, byte-identical to the pre-negotiation contract. Every other endpoint is a static file with a single face.",
      "cors": "Open by design: Access-Control-Allow-Origin: * on every data/agent surface (/api/v1, /dataset, /brain, /mcp, the root-level JSON artifacts).",
      "rate_posture": "No key, no signup, no imposed quota. /api/v1 and /dataset are build-time static files served from a CDN; /brain and /mcp are stateless edge functions subject only to the platform's generic abuse protection. Bulk consumers should mirror the CC-BY dataset (Zenodo/Hugging Face/GitHub) rather than crawl.",
      "authentication": "None for the public record — it is public, read-only, Bitcoin-anchored data. /oauth/token (OAuth 2.0 client-credentials, 2LO) issues scoped bearer tokens only to clients registered by the operator; with no client registered it is inert (passes through). A registered-client door and the write path (/api/ops/*) are bearer-token-gated in every mode; there is no self-serve signup and no public descriptor of the gated door.",
      "geo": "The map layer is standard RFC 7946 GeoJSON plus OGC KML 2.2 (xmlns http://www.opengis.net/kml/2.2) — loadable by any GIS tool. No STAC compliance is claimed."
    }
  },
  "servers": [
    {
      "url": "https://jyotishintelligence.com/api/v1"
    }
  ],
  "paths": {
    "/index.json": {
      "get": {
        "summary": "API root: counts, calibration, integrity, endpoints",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "name": "JYOTINT API — read-only, no-key, CORS-open",
                  "version": "v1",
                  "counts": {
                    "sealed": 123,
                    "graded": 108,
                    "open": 16
                  },
                  "calibration": {
                    "brier": 0.0888
                  },
                  "integrity": {
                    "manifest_hash": "8a3f1994009b04d48fde481a25cd72d604e1bf95cd59aac099b41ce392945603",
                    "ledger_hash": "0a9e5e15e7fc2945589bc60ccba909cec0783ca256b7a281c373758a39a3d309"
                  },
                  "endpoints": {
                    "manifest_meta": "/api/v1/manifest-meta.json",
                    "brief": "/api/v1/brief.json"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/manifest-meta.json": {
      "get": {
        "summary": "THE canonical live values: manifestHash / ledgerHash / counts / Brier / verdicts. Read this to learn current numbers and detect staleness",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "manifestHash": "8a3f1994009b04d48fde481a25cd72d604e1bf95cd59aac099b41ce392945603",
                  "ledgerHash": "0a9e5e15e7fc2945589bc60ccba909cec0783ca256b7a281c373758a39a3d309",
                  "sealed": 123,
                  "graded": 108,
                  "brier": 0.0888,
                  "brier_launch_only": 0.033,
                  "verdicts": {
                    "HIT": 84,
                    "NEAR": 10,
                    "PARTIAL": 5,
                    "MISS": 9
                  },
                  "generated_at": "2026-09-13T15:40:15.397Z"
                }
              }
            }
          }
        }
      }
    },
    "/brief.json": {
      "get": {
        "summary": "One-GET analyst brief: what it is / is not, live numbers, marquee calls, how-to-verify, the ceiling, identity, citation",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "what_it_is": "A public, cryptographically pre-sealed, Bitcoin-anchored, openly graded forecasting record…",
                  "numbers": {
                    "sealed": 123,
                    "graded": 108,
                    "brier": 0.0888
                  },
                  "marquee_calls": [
                    {
                      "id": "IA-RU-008",
                      "title": "Crocus City Hall",
                      "sha256": "36bb84d3b0aa2de6c0aefc16f36fa194e12f172c37327909944a879dcd99bd4e"
                    }
                  ],
                  "ceiling": "Self-scored Brier (a base-rate baseline ties it) and the method is Vedic jyotish (astrology) — an augmenting input, never a go/no-go authority. (NSSL designates the LAUNCH VEHICLE, not the payload: the corpus DOES include a flown call on the NSSL launch vehicle itself — ULA's Vulcan Cert-1, LA-003 — the certification flight of the very rocket ULA flies U.S. national-security payloads on (ULA-confirmed), which carried Astrobotic's Peregrine; forecast on-demand against an ~80%-go consensus.)"
                }
              }
            }
          }
        }
      }
    },
    "/limitations.json": {
      "get": {
        "summary": "The machine-readable ceiling: self-scored Brier, base-rate ties, disclosed method, augmenting-not-go/no-go (NSSL is a credential — a flown call on the NSSL launch vehicle, Vulcan Cert-1/LA-003) + the honest one-paragraph statement",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "self_scored_brier": true,
                  "base_rate_ties": true,
                  "method": "Vedic jyotish (astrology), disclosed",
                  "nssl_launch_vehicle_flown_call": "Flown call on the NSSL launch vehicle (Vulcan Cert-1/LA-003); NSSL is the vehicle, not the payload; no NS mission/NRO/affiliation claimed",
                  "augmenting_not_go_no_go": true,
                  "statement": "The honest ceiling, stated plainly so it cannot be mistaken: the Brier is SELF-ASSIGNED (a base-rate baseline ties it on this small, operator-selected sample, s…"
                }
              }
            }
          }
        }
      }
    },
    "/verify.json": {
      "get": {
        "summary": "The verification recipe AS DATA: one_command, ordered steps with expectations, the LIVE expected manifestHash/counts/Brier, and the offline kit",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "one_command": "sh -c \"$(curl -fsSL https://jyotishintelligence.com/verify.sh)\"",
                  "expected": {
                    "manifestHash": "8a3f1994009b04d48fde481a25cd72d604e1bf95cd59aac099b41ce392945603",
                    "sealed": 123,
                    "graded": 108,
                    "brier": 0.0888
                  }
                }
              }
            }
          }
        }
      }
    },
    "/glossary.json": {
      "get": {
        "summary": "Every term of art (protocol/formula/grading/domain), with stable anchors mirroring /glossary",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "count": 32,
                  "terms": [
                    {
                      "anchor": "seal",
                      "term": "Seal",
                      "short": null,
                      "section": "protocol",
                      "definition": "The act of publishing an advisory to a public host (YouTube and/or X) before the prediction window opens, with the SHA-256 hash of the advisory document published in the same post. The seal is non-custodial — there is no JYOTINT-controlled database that could be silently rewritten. The public timestamp is the timestamp.",
                      "example": "An advisory uploaded to YouTube at 14:02 UTC with the SHA-256 hash in the description is sealed at 14:02 UTC."
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/corpus.json": {
      "get": {
        "summary": "All sealed records (graded + ungraded)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "generated_at": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Advisory"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/graded.json": {
      "get": {
        "summary": "Graded records only (the Brier corpus). Each row carries sha256, verify_cmd, and a one-line ceiling so the caveat travels with the atom",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "count": 108,
                  "records": [
                    {
                      "id": "LA-022",
                      "title": "New Glenn NG-3 / BlueBird",
                      "graded": true,
                      "accuracy": "HIT",
                      "prob_at_seal": 0.8,
                      "sha256": "26bc6da6c6f9bc39158a6cb03094508a85c8720a7ffd2d940451aea3fedceb97",
                      "verify_cmd": "node verify-jyotint.mjs --manifest seal-manifest.json --id LA-022",
                      "ceiling": "Self-scored Brier (a base-rate baseline ties it) and the method is Vedic jyotish (astrology) — an augmenting input, never a go/no-go authority. (NSSL designates the LAUNCH VEHICLE, not the payload: the corpus DOES include a flown call on the NSSL launch vehicle itself — ULA's Vulcan Cert-1, LA-003 — the certification flight of the very rocket ULA flies U.S. national-security payloads on (ULA-confirmed), which carried Astrobotic's Peregrine; forecast on-demand against an ~80%-go consensus.)"
                    }
                  ]
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "generated_at": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Advisory"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/open-calls.json": {
      "get": {
        "summary": "Unresolved sealed forecasts",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/sita.json": {
      "get": {
        "summary": "SITA decision-value scores (4 axes + composite + percentile) for every sealed call",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/info-yield.json": {
      "get": {
        "summary": "Information Yield — bits of surprise-if-true per call + corpus/domain summary (median, NOT a compounded total)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/warning-timelines.json": {
      "get": {
        "summary": "Before-the-event indications-and-warning timelines (index + full per-slug timelines)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/regrade.json": {
      "get": {
        "summary": "Grade-it-yourself kit: per-call claim/outcome/p/verdict + stress-test recipes + IY (surprise_bits) and SITA-Improbability (one_in_n) inputs to recompute Brier, specificity, and Information Yield under your own verdicts",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/site.json": {
      "get": {
        "summary": "RENDER THE WHOLE SITE WITH NO BROWSER — the render-anything index: every public page as text (pages.json), live embed (/embed/page/{path}), and structured data. For an AI tool on a locked-down network",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/pages.json": {
      "get": {
        "summary": "The ENTIRE public site as text in one document, route-tagged — the no-browser full-site render. Private/operator-only surfaces excluded",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/facets.json": {
      "get": {
        "summary": "Master facet index: every way the corpus slices (domain/verdict/theater/vehicle/severity/payload/orbit/year/against-consensus) with counts + ids",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/by-vehicle.json": {
      "get": {
        "summary": "Launch advisories grouped by launch vehicle",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/by-provider.json": {
      "get": {
        "summary": "Launch advisories grouped by provider (SpaceX / Blue Origin / ULA / NASA / ISRO)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/by-severity.json": {
      "get": {
        "summary": "Launch advisories grouped by outcome severity",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/by-payload-class.json": {
      "get": {
        "summary": "Launch advisories grouped by payload class",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/by-orbit.json": {
      "get": {
        "summary": "Launch advisories grouped by target orbit",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/by-theater.json": {
      "get": {
        "summary": "Intel advisories grouped by theater",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/by-verdict.json": {
      "get": {
        "summary": "All records grouped by graded verdict (HIT/NEAR/PARTIAL/MISS/open)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/by-domain.json": {
      "get": {
        "summary": "All records grouped by domain (launch/intel)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/by-year.json": {
      "get": {
        "summary": "All records grouped by sealed year",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/against-consensus.json": {
      "get": {
        "summary": "The contrarian-of-record slice (calls that diverged from a documented consensus)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/top-information-yield.json": {
      "get": {
        "summary": "Graded calls ranked by Information Yield (bits of surprise-if-true)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/top-sita.json": {
      "get": {
        "summary": "Records ranked by SITA decision-value",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/advisory/{id}.json": {
      "get": {
        "summary": "A single sealed record by id (e.g. IA-RU-008, LA-011). Carries the verbatim claim, sha256, verify_cmd, and a one-line ceiling",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "IA-RU-008"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "id": "IA-RU-008",
                  "title": "Crocus City Hall",
                  "graded": true,
                  "accuracy": "HIT",
                  "sealed_on": "2023-09-04",
                  "sha256": "36bb84d3b0aa2de6c0aefc16f36fa194e12f172c37327909944a879dcd99bd4e",
                  "verify_cmd": "node verify-jyotint.mjs --manifest seal-manifest.json --id IA-RU-008",
                  "ceiling": "Self-scored Brier (a base-rate baseline ties it) and the method is Vedic jyotish (astrology) — an augmenting input, never a go/no-go authority. (NSSL designates the LAUNCH VEHICLE, not the payload: the corpus DOES include a flown call on the NSSL launch vehicle itself — ULA's Vulcan Cert-1, LA-003 — the certification flight of the very rocket ULA flies U.S. national-security payloads on (ULA-confirmed), which carried Astrobotic's Peregrine; forecast on-demand against an ~80%-go consensus.)"
                },
                "schema": {
                  "$ref": "#/components/schemas/Advisory"
                }
              }
            }
          },
          "404": {
            "description": "Unknown id"
          }
        }
      }
    },
    "/launch-evidence/index.json": {
      "get": {
        "summary": "Index of per-advisory machine EVIDENCE PACKAGES for the launch corpus — one fetch per advisory returns the complete advisory content, cryptographic provenance, governing grading convention, misread guards, and the steelmanned objection bank. Built for verifying agents: read, recompute, decide",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "what": "Per-advisory machine evidence packages for the launch corpus",
                  "packages": [
                    {
                      "id": "LA-025",
                      "url": "https://jyotishintelligence.com/api/v1/launch-evidence/LA-025.json"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/page/index.json": {
      "get": {
        "summary": "Index of prose-page machine twins — each the page's own text, server-rendered from the page's component and sectioned by heading",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "counts": {
                    "pages": 5
                  },
                  "pages": [
                    {
                      "route": "/checklist",
                      "url": "https://jyotishintelligence.com/api/v1/page/checklist.json"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/page/{route}.json": {
      "get": {
        "summary": "The text of one prose page (checklist · case · jyotint · heritage · published · red-team · doctrines · press · proof · crocus · excluded · grading) as sections — server-rendered from the same component the site renders, so it cannot drift from the page",
        "parameters": [
          {
            "name": "route",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "checklist",
                "case",
                "jyotint",
                "heritage",
                "published",
                "red-team",
                "doctrines",
                "press",
                "proof",
                "crocus",
                "excluded",
                "grading"
              ]
            },
            "example": "checklist"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "canonical": "https://jyotishintelligence.com/checklist",
                  "counts": {
                    "sections": 11
                  },
                  "sections": [
                    {
                      "heading": "Accuracy",
                      "level": 2,
                      "text": [
                        "Predictions must be precise and detailed, not vague."
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Unknown route"
          }
        }
      }
    },
    "/exchanges/{id}.json": {
      "get": {
        "summary": "One public X debate kept verbatim and dated: every message with its status id, snowflake-decoded posting instant, text and sha256; the counterpart's demands and the operator's replies in the moment, before any grade existed",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "akhil-turai-2025",
                "starship-la001-logan-2023"
              ]
            },
            "example": "starship-la001-logan-2023"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "id": "starship-la001-logan-2023",
                  "canonical": "https://jyotishintelligence.com/launches/la-001",
                  "outcome": "standoff",
                  "span": {
                    "messages": 33
                  },
                  "messages": [
                    {
                      "n": 1,
                      "role": "counterpart",
                      "handle": "@LogansNotions",
                      "x_status_id": "1726035519878910078",
                      "posted_at": "2023-11-19T00:31:50.785Z"
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Unknown id"
          }
        }
      }
    },
    "/launch-evidence/{id}.json": {
      "get": {
        "summary": "Complete evidence package for one launch advisory (e.g. LA-003, LA-025): the full advisory verbatim (sealed claim, mechanisms, timeline, outcome, exhibits, accuracy/moat rubrics), provenance (seal hash, merkle proof, SITA, IY), calibration-defense narrative, misread guards, every objection with evidence, and verify recipes",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "LA-025"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "schema": "jyotint-launch-evidence/2",
                  "id": "LA-025",
                  "human_page": "https://jyotishintelligence.com/advisory/LA-025",
                  "page_text": {
                    "component": "AdvisoryDetail",
                    "chars": 60000,
                    "text": "…"
                  },
                  "page_data": {
                    "ops_board": {},
                    "evidence_chain": {}
                  },
                  "grading_convention": {
                    "two_eras": "…",
                    "window_rating_symmetry": "…"
                  },
                  "advisory_verbatim": {
                    "id": "LA-025"
                  },
                  "objections": {
                    "bank_url": "https://jyotishintelligence.com/objections.json"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown id"
          }
        }
      }
    },
    "/russia-evidence/index.json": {
      "get": {
        "summary": "Index of per-advisory machine EVIDENCE PACKAGES for the Russia theater corpus (IA-RU ids) — same architecture as /launch-evidence: complete advisory content, provenance, grading convention, misread guards, objection bank, per package",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "what": "Per-advisory machine evidence packages for the Russia theater corpus",
                  "packages": [
                    {
                      "id": "IA-RU-008",
                      "url": "https://jyotishintelligence.com/api/v1/russia-evidence/IA-RU-008.json"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/russia-evidence/{id}.json": {
      "get": {
        "summary": "Complete evidence package for one Russia-theater advisory (e.g. IA-RU-008 Crocus): full advisory verbatim, provenance, calibration defense, misread guards, every objection with evidence, verify recipes",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "IA-RU-008"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "schema": "jyotint-launch-evidence/2",
                  "id": "IA-RU-008",
                  "human_page": "https://jyotishintelligence.com/advisory/IA-RU-008",
                  "page_text": {
                    "component": "IntelAdvisoryDetail",
                    "chars": 46000,
                    "text": "…"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown id"
          }
        }
      }
    },
    "/intel-evidence/index.json": {
      "get": {
        "summary": "Index of per-advisory machine EVIDENCE PACKAGES for every intel theater OUTSIDE Russia (IA- ids not IA-RU-: US elections, India, China, Pakistan, Venezuela, SpaceX-intel, NYC …) — same architecture as /launch-evidence and /russia-evidence; includes ungraded and seal-only advisories",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "what": "Per-advisory machine evidence packages for the intel corpus (every theater outside Russia)",
                  "packages": [
                    {
                      "id": "IA-US24-001",
                      "url": "https://jyotishintelligence.com/api/v1/intel-evidence/IA-US24-001.json"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/intel-evidence/{id}.json": {
      "get": {
        "summary": "Complete evidence package for one non-Russia intel advisory (e.g. IA-US24-001, IA-CN-2022): full advisory verbatim, page_text (the complete rendered human page), page_data (every page data slice), provenance, calibration defense, misread guards, objection bank",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "IA-US24-001"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "schema": "jyotint-launch-evidence/2",
                  "id": "IA-US24-001",
                  "human_page": "https://jyotishintelligence.com/advisory/IA-US24-001",
                  "page_text": {
                    "component": "IntelAdvisoryDetail",
                    "chars": 59000,
                    "text": "…"
                  },
                  "page_data": {
                    "ops_board": {},
                    "specificity_grid": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown id"
          }
        }
      }
    },
    "/auto-evidence/index.json": {
      "get": {
        "summary": "Index of machine EVIDENCE PACKAGES for the automated launch reads — the automated lane, its own ledger, never blended with the hand lane. One package per live read: the row verbatim, lane context, grading convention, provenance (seal, custody timeline, sources, public X posts), justification and ordered verify steps",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "schema": "jyotint-auto-evidence/1",
                  "lane": "auto",
                  "count": 1,
                  "rows": [
                    {
                      "id": "lia_20261109_d8570b3674b7",
                      "mission": "USSF-627",
                      "band": "no_go",
                      "p": 0.78,
                      "verdict": "hit",
                      "url": "https://jyotishintelligence.com/api/v1/auto-evidence/lia_20261109_d8570b3674b7.json"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/auto-evidence/{id}.json": {
      "get": {
        "summary": "Complete evidence package for one automated launch read (lane auto): the row verbatim, lane totals, grading matrix, provenance (custody timeline and video evidence: each YouTube clip with the claim it bears on), justification, and ordered verify steps with the URL and expected value for each",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^lia_[0-9]{8}_[0-9a-f]{12}$"
            },
            "example": "lia_20261109_d8570b3674b7"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "schema": "jyotint-auto-evidence/1",
                  "id": "lia_20261109_d8570b3674b7",
                  "lane": "auto",
                  "lane_context": {
                    "closed": 1,
                    "brier": 0.0484
                  },
                  "verify": {
                    "steps": [
                      {
                        "n": 2,
                        "check": "Recompute the Brier term from p and the outcome value",
                        "expected": "(0.78 − 1)² → 0.0484"
                      }
                    ]
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown id"
          }
        }
      }
    },
    "/evidence-index.json": {
      "get": {
        "summary": "MASTER INDEX of the per-advisory evidence packages — every advisory the site serves, exactly one package each, across launch-evidence (LA-), russia-evidence (IA-RU-) and intel-evidence (every other IA-). Start here: fetch the package for any id and quote the COMPLETE sealed unit before grading anything",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "what": "MASTER INDEX of the per-advisory machine evidence packages",
                  "schema": "jyotint-launch-evidence/2",
                  "count": 123,
                  "missing_packages": [],
                  "corpora": [
                    {
                      "corpus": "launch-evidence",
                      "prefix": "LA-"
                    },
                    {
                      "corpus": "russia-evidence",
                      "prefix": "IA-RU-"
                    },
                    {
                      "corpus": "intel-evidence",
                      "prefix": "IA-"
                    }
                  ],
                  "packages": [
                    {
                      "id": "LA-025",
                      "corpus": "launch-evidence",
                      "url": "https://jyotishintelligence.com/api/v1/launch-evidence/LA-025.json"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/brain": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "Search the sealed record by meaning (semantic + associative). Returns verbatim sealed/published text with provenance (source_url, SHA-256 seal hash, frozen grade) and an explainable why/activation path. Retrieval-only — no generative model. No q → introspection envelope. MCP twin: neural_search. Note: a browser Accept: text/html gets the human page; use Accept: application/json or ?format=json for the envelope",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "what did the record say before the Crocus attack"
          },
          {
            "name": "k",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 12,
              "default": 6
            }
          },
          {
            "name": "sensitivity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "high_recall",
                "balanced",
                "high_precision"
              ],
              "default": "balanced"
            },
            "description": "Recall/precision posture. high_recall: widest seeds, deepest spread, lowest prune floor, k default 10 — a planner inside a live window. balanced: engine defaults. high_precision: only hits whose own similarity to the query clears the cosine floor; hits reached by association alone are reported under sensitivity.withheld, never returned as results — an office quoting the record outward. Every result carries lane: direct | associative."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Force the JSON envelope regardless of Accept header"
          }
        ],
        "responses": {
          "200": {
            "description": "OK — ranked verbatim results + provenance + why-paths + the sensitivity block (or the introspection envelope when q is absent)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrainResultEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "bad_sensitivity — not one of high_recall | balanced | high_precision"
          },
          "503": {
            "description": "embedding_unavailable — no query-embedding backend configured (never a fake ranking)"
          }
        }
      },
      "post": {
        "summary": "Same query surface as JSON body: {\"q\": \"…\", \"k\": 6, \"sensitivity\": \"balanced\"} or a client-computed {\"vector\": [768 floats]} (EmbeddingGemma-300m — @cf/google/embeddinggemma-300m, query instruction applied)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrainResultEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "bad_vector — wrong dimension · bad_sensitivity — unknown posture"
          },
          "503": {
            "description": "embedding_unavailable"
          }
        }
      }
    },
    "/health": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The API's HEARTBEAT — every tenant-facing element (RU-046 and LA-025 live feeds, the sealed record and ledger, the API index, the retrieval engine) with its expected cadence, last beat, age and state, computed live from the published artifacts; 200 when nothing is dead or failing, 503 otherwise (cache ≤ 60 s).",
        "responses": {
          "200": {
            "description": "ok — no element dead or failing; per-element states: alive · late (> expect×1.5) · on-change (no cadence)"
          },
          "503": {
            "description": "one or more elements dead (> expect×3) or failing — the body lists which, so a consumer never reads a page that rests on a silent sensor unannounced"
          }
        }
      }
    },
    "/brain-graph.json": {
      "get": {
        "summary": "The inspectable retrieval graph — every node (seal/passage) + typed edge (semantic/citation/temporal/link) with provenance",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "nodes": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BrainNode"
                      }
                    },
                    "edges": {
                      "type": "array"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/brain-manifest.json": {
      "get": {
        "summary": "Retrieval-graph manifest — counts, encoder model, generation date",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/x-archive/{shard}.json": {
      "get": {
        "summary": "One account-year shard of the firm's X record: every post with id · X created_at · verbatim text · x.com URL · sha256 of the text. Shard names and per-shard sha256 are listed in /api/v1/x-archive.json",
        "parameters": [
          {
            "name": "shard",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "vijayjyotish-2023"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "account": "vijayjyotish",
                  "year": 2023,
                  "count": 0,
                  "posts": [
                    {
                      "id": "1698700000000000000",
                      "created_at": "2023-09-04T00:00:00.000Z",
                      "text": "…",
                      "url": "https://x.com/vijayjyotish/status/1698700000000000000",
                      "sha256": "…"
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Unknown shard"
          }
        }
      }
    },
    "/answers.json": {
      "get": {
        "summary": "The /faq as machine-readable Q→A data",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/book.json": {
      "get": {
        "summary": "The Laws of Foresight book series (volumes, ISBNs, DOIs, formats) as data",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/brain-edges.bin": {
      "get": {
        "summary": "Brain typed-synapse CSR edge store (binary artifact; layout in brain-manifest.json)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/octet-stream": {}
            }
          }
        }
      }
    },
    "/brain-index.bin": {
      "get": {
        "summary": "Brain embedding index — int8-quantized EmbeddingGemma-300m (Google) matrix, 768-d (binary artifact; layout in brain-manifest.json)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/octet-stream": {}
            }
          }
        }
      }
    },
    "/brain-nodes-offsets.bin": {
      "get": {
        "summary": "Byte offsets into brain-nodes.jsonl for Range fetches (binary artifact)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/octet-stream": {}
            }
          }
        }
      }
    },
    "/brain-nodes.jsonl": {
      "get": {
        "summary": "Brain node store — one verbatim node per line (JSON Lines), Range-fetched by the /brain hot path via brain-nodes-offsets.bin",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/x-ndjson": {}
            }
          }
        }
      }
    },
    "/calibration.json": {
      "get": {
        "summary": "Live Brier / log-loss / verdict counts / IPCC reliability bins (mirror of /calibration.json)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/company.json": {
      "get": {
        "summary": "How the firm is structured — the frame line first, then the seat, services delivery, firm tallies and every function/role with how it is held; counts derived from the internal roster, system names never published (/company)",
        "description": "JYOTINT is an AI-operated firm with one human signature: a 72-role company across 11 functions, run end to end by 307 auditable automated systems and one AI chief of staff, so that a single principal can run what conventionally takes a staffed institution — and personally read, sign and answer for every call. The company is automated; the judgment is not; the record proves both.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/corpus-insights.json": {
      "get": {
        "summary": "Deep-pass signature findings over the full corpus, ledger-cross-checked at build (mechanism ledger, war read, named-entity register, Two Warnings, delivered-to-defenders)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/corrections.json": {
      "get": {
        "summary": "The public corrections log — every published erratum, dated",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/crocus-dossier.json": {
      "get": {
        "summary": "The Crocus anteriority dossier — every timestamp with its adjudicating source, machine-readable",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/delivery-log.json": {
      "get": {
        "summary": "The DELIVERY axis — every advisory's dated public outreach posts as a flat table (provenance, never accuracy)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/doctrines.json": {
      "get": {
        "summary": "Machine twin of /doctrines: every signature doctrine — name, essence, substance, category, host page",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/engagement.json": {
      "get": {
        "summary": "Documented engagement metrics for the owned public channels (distribution figures, never accuracy)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/evidence-chains.json": {
      "get": {
        "summary": "Chain-of-custody exhibit ladders for every worked advisory — each rung dated, sourced, linked to its live original",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/exchanges.json": {
      "get": {
        "summary": "The two public X debates kept verbatim and dated (Akhil Turai 2025 · @LogansNotions on Starship-2/LA-001 2023) — index; each exchange at exchanges/<id>.json with every message's status id, decoded posting instant, text and sha256",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/excluded.json": {
      "get": {
        "summary": "Machine twin of /excluded: every public dated call deliberately kept OUT of the graded corpus, with the governing reason (hits included)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/grading-convention.json": {
      "get": {
        "summary": "The grading convention for launch advisories stated once: two eras, the storm metaphor (the advisory is the warning; if they sail anyway the consequences are on the branch, and the branch is graded), fork/branch resolution, window-rating symmetry, seal-time anchor. Every launch-evidence package embeds the same object as grading_convention.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/grading.json": {
      "get": {
        "summary": "Machine twin of /grading: the self-adversarial rubric rule by rule, what each cuts against the operator, and the probability ladder",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/iy-implementation.json": {
      "get": {
        "summary": "The IY & SITA self-testing reference implementation, JSON-wrapped (full source + sha256) for fetch-restricted clients",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/iy-spec.json": {
      "get": {
        "summary": "The IY & SITA specification (canonical text), JSON-wrapped for fetch-restricted clients",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/judge-index.json": {
      "get": {
        "summary": "ONE index for a cold evaluator: every JSON the site publishes, one row each — url · family · the objection it answers (curated rows first) · _doc · count · bytes",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/ledger-lens.json": {
      "get": {
        "summary": "LedgerLens aggregates — overall + per-desk verdict matrices, lead-time clusters, against-consensus counts",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/ledger-membership.json": {
      "get": {
        "summary": "What the ungraded remainder of the X archive is: every post split by a rerunnable rule (cited by an advisory · replies · reposts · uncited numbered thread lines · free-standing), the candidate pool for an unscored call listed by id, and the membership rule + standing offer",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/luck-test.json": {
      "get": {
        "summary": "The corpus-level could-this-be-luck significance test — clustered, strict, coin-flip-floored, caveats inline",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/measurement-profile.json": {
      "get": {
        "summary": "Calibration-integrity suite — Murphy decomposition, Spiegelhalter Z, Cox slope, sharpness, breadth, provenance",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/novel-metrics.json": {
      "get": {
        "summary": "The novel-metrics family (IY / SITA / moat / calibration-integrity) as one machine-readable index",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/nssl.json": {
      "get": {
        "summary": "The NSSL launch-vehicle credential in one GET — NSSL designates the vehicle, not the payload; the flown Vulcan Cert-1 (LA-003) call with the exact non-claim guardrails",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "summary": "This descriptor (self-reference) — OpenAPI 3.1, regenerated with the record by scripts/gen-api.mjs",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/ots-proof.json": {
      "get": {
        "summary": "The OpenTimestamps Bitcoin proof, base64-wrapped in JSON so binary-restricted clients can fetch and verify it",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/papers.json": {
      "get": {
        "summary": "The publication pipeline with live statuses (DOIs where published)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/passport.json": {
      "get": {
        "summary": "The PASSPORT — the firm's one outward self-statement: identity (UEI · CAGE · NAICS), dated acquisition stamps (SAM · CMMC Level 2 Self-Assessment · JCP DD 2345 …) with the registrar's dates, the government-readiness ladder (held · not-held · ceiling · n/a) and the rail; every public copy is checked against it at build",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/peers.json": {
      "get": {
        "summary": "The /peers seven-dimension comparison matrix as data — category-shape claims, never accuracy claims",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/presence.json": {
      "get": {
        "summary": "Every official digital surface — anything not listed here is unofficial",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/press-qa.json": {
      "get": {
        "summary": "The public press Q&A, sanitised: the questions a broadcaster asks and the answers the principal gives on air (no revenue figure, no client name)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/proof.json": {
      "get": {
        "summary": "Machine twin of /proof: every artifact an independent party uses to verify, grade and audit the record, grouped as the page groups them",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/red-team.json": {
      "get": {
        "summary": "Machine twin of /red-team: every stock objection at full strength with the house's verdict (REFUTED / PARTIAL / CONCEDED), exhibits, and the dismissal patterns",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/sam.json": {
      "get": {
        "summary": "SAM.gov acquisition identity — UEI / CAGE / NAICS + buying vehicles + compliance posture (CMMC L2 Self 110/110, JCP DD 2345; registration active; no active contract claimed)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/schemas.json": {
      "get": {
        "summary": "The data dictionary — JSON Schema (draft 2020-12) for SealedRecord / GradedLedgerEntry / Advisory / BrainNode / BrainResultEnvelope. Same shapes inlined in this descriptor's components.schemas",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/signature-calls.json": {
      "get": {
        "summary": "The marquee launch exhibits, each linked to its chain of custody",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/signature-campaigns.json": {
      "get": {
        "summary": "Multi-attempt mission campaigns (e.g. the four-attempt Axiom-4 saga) as one document",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/verifier.json": {
      "get": {
        "summary": "The zero-dependency seal/Brier verifier, JSON-wrapped (full source + sha256) for fetch-restricted clients",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/verify-prompts.json": {
      "get": {
        "summary": "Copy-paste verification prompts for AI assistants — hand the questions, never the verdict",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/x-archive.json": {
      "get": {
        "summary": "The firm's whole X record as data — index of per-account-year shards (/x-archive/{shard}.json), each post with id · X timestamp · verbatim text · x.com URL · sha256; a post's snowflake id is its own pre-event clock",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/answers/{intent}.json": {
      "get": {
        "summary": "One evaluator-question answer pack by intent slug (e.g. external-validation, joint-improbability, the-misses) — model-ready answer with its exact caveat inline. Index: /api/v1/answers/index.json",
        "parameters": [
          {
            "name": "intent",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "external-validation"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Unknown intent"
          }
        }
      }
    },
    "/mcp": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "MCP introspection — the full tool contract (server info, safety posture, all tools) in one unauthenticated GET, so an org's approval workflow never needs a handshake",
        "responses": {
          "200": {
            "description": "OK — server descriptor + tools"
          }
        }
      },
      "post": {
        "summary": "Remote MCP endpoint — Model Context Protocol over stateless streamable HTTP. JSON-RPC 2.0: initialize · tools/list · tools/call · ping. Read-only tools over this same public data; no auth, no state, no external egress. Descriptor: /.well-known/mcp.json; stdio twin: /jyotint-mcp.mjs",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "tools/list"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response (or batch)"
          },
          "202": {
            "description": "Notification(s) only — no reply"
          },
          "400": {
            "description": "Parse error"
          }
        }
      }
    },
    "/oauth/token": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "post": {
        "summary": "OAuth 2.0 token endpoint — client_credentials (2LO / machine-to-machine) only. Issues tokens ONLY to clients the operator has registered; with no client registered the endpoint is inert (passes through; no token is ever issued). It is the authentication front door of a token-mode (GovCloud-class) deployment of the same codebase and, on this public deployment, of the operator-registered evaluator door",
        "description": "The client presents client_id + client_secret via HTTP Basic (RFC 6749 §2.3.1) or in the form/JSON body (§4.4) with grant_type=client_credentials, and receives a scoped, expiring HS256 bearer token (default TTL 1h). Scopes map to the need-to-know boundary (corpus:read · squadron:read · advisories:read) and to a registered client's granted actions. Unsupported grant types → 400; unknown/bad client → 401; signing key absent on the server → 503 (fail closed). The public read surfaces never need a token; there is no self-serve registration.",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "example": "grant_type=client_credentials&client_id=…&client_secret=…&scope=corpus:read"
            }
          }
        },
        "responses": {
          "200": {
            "description": "access_token + token_type=Bearer + expires_in + scope (registered clients only)"
          },
          "400": {
            "description": "unsupported_grant_type / invalid_scope"
          },
          "401": {
            "description": "invalid_client"
          },
          "503": {
            "description": "server_misconfigured — no signing key; no token is issued with a default"
          }
        }
      }
    },
    "/ask-corpus.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The extractive prose corpus behind /ask and the ask_the_record MCP tool — every public page's verbatim passages. (/ask itself is the human page; its matcher runs client-side over this file — deterministic, no LLM.)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/seal-manifest.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "THE canonical seal manifest — every sealed record (SealedRecord schema) + manifestHash. The .ots sibling commits its bytes to Bitcoin",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "manifestHash": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SealedRecord"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/seal-manifest.json.ots": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "OpenTimestamps proof committing seal-manifest.json's bytes to a Bitcoin block (binary; JSON-wrapped mirror at /api/v1/ots-proof.json)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/octet-stream": {}
            }
          }
        }
      }
    },
    "/grading-ledger.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The frozen grading ledger (GradedLedgerEntry schema) — Brier = mean of entries[].brierTerm; independently OTS-anchored",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ledgerHash": {
                      "type": "string"
                    },
                    "brier": {
                      "type": "number"
                    },
                    "entries": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GradedLedgerEntry"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/seal-merkle.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "Per-record Merkle inclusion proofs + root (transitively Bitcoin-anchored via the manifest)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/verify-jyotint.mjs": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The zero-dependency verifier (Node ≥16, native crypto only) — recomputes every seal, the OTS anchor, the Merkle layer, and the Brier; exits non-zero on any drift",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/javascript": {}
            }
          }
        }
      }
    },
    "/governance.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "Data-handling, provenance & governance posture (chain-of-custody first; descriptive disclosure, not a certification)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/environment.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The one canonical data-availability manifest — every public JSON/CSV/GeoJSON/KML/API endpoint with current counts + the versioning pointer (papers cite this)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/sbom.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "CycloneDX SBOM for the public site (EO 14028 supply-chain disclosure)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/llms-ctx.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "Compact LLM orientation context (machine twin of llms.txt)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/data-flow.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The data-flow disclosure — what flows in, what is stored, what leaves (nothing personal; no client data ingested)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/independence.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The independence disclosure — no tasking, no contract, no affiliation; independence is the credential",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/gsa-comment.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The public GSA AI data-safeguarding rule comment, as data",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/dataset/record-versions.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The live-data version index — resolve any published count/Brier to its immutable snapshot by count or hash (append-only record; a larger live count is expected, not an erratum)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/dataset/documented-reach.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "Total documented public reach across the owned channels (distribution figure, never accuracy)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/dataset/advisory-impressions.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "Per-advisory documented impressions — the row-level twin of documented-reach.json",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/dataset/jyotint-analyst-table.csv": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The analyst table — one row per graded call, every field + metric flat, for direct load into pandas/R/Excel",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/csv": {}
            }
          }
        }
      }
    },
    "/dataset/jyotint-analyst-table.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The analyst table as JSON — for pipelines",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/dataset/jyotint-sealed-corpus/corpus.jsonl": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The full CC-BY sealed corpus as JSON Lines (one Advisory-schema record per line)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/x-ndjson": {}
            }
          }
        }
      }
    },
    "/dataset/jyotint-sealed-corpus/regrade-inputs.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The grade-it-yourself kit (dataset mirror of /api/v1/regrade.json)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/dataset/map/index.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "Machine index for the CC-BY map/GIS layer (files + live map + tour)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/dataset/map/jyotint-record.geojson": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The graded record as a GeoJSON FeatureCollection (RFC 7946; Point features, [lon, lat]) — every pin a sealed, graded call with verdict, seal date, SHA-256, canonical URL. Coordinates approximate by design; the seal and grade are the record. Loads in any RFC 7946-compliant GIS tool",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/geo+json": {}
            }
          }
        }
      }
    },
    "/dataset/map/jyotint-record.kml": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The same record as OGC KML 2.2 (xmlns http://www.opengis.net/kml/2.2) — for Google Earth and KML-native GIS tooling",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.google-earth.kml+xml": {}
            }
          }
        }
      }
    },
    "/dataset/map/map.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "Map layer config — deep-link grammar + guided tours for the live map",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/feed.xml": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "RSS feed of the published record",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/rss+xml": {}
            }
          }
        }
      }
    },
    "/llms.txt": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The plain-text LLM front door (hand-written orientation; llms-full.txt is the complete generated briefing)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {}
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The complete generated LLM briefing — positioning, calibration, per-advisory dossiers, endpoints, policy",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {}
            }
          }
        }
      }
    },
    "/ai.txt": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The analyst orientation file (structured-JSON twin: /api/v1/brief.json)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {}
            }
          }
        }
      }
    },
    "/.well-known/mcp.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The MCP server descriptor — tools, safety posture, supply-chain pin, remote + stdio transports, client config blocks",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/.well-known/agent.json": {
      "servers": [
        {
          "url": "https://jyotishintelligence.com"
        }
      ],
      "get": {
        "summary": "The A2A-style AgentCard — the agent-facing twin of the MCP descriptor",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SealedRecord": {
        "type": "object",
        "title": "Sealed record (seal-manifest.json entry)",
        "description": "One manifest-level seal: the canonical hash preimage fields plus the SHA-256. Recompute: sha256('objectId|dateIssued|title|claim') must equal `hash`.",
        "required": [
          "id",
          "title",
          "dateIssued",
          "claim",
          "hash",
          "objectId",
          "objectType"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Advisory id (LA-* launch, IA-* intel).",
            "examples": [
              "IA-RU-008",
              "LA-011"
            ]
          },
          "title": {
            "type": "string"
          },
          "dateIssued": {
            "type": "string",
            "format": "date",
            "description": "Seal date — part of the hash preimage."
          },
          "claim": {
            "type": "string",
            "description": "The verbatim sealed claim — part of the hash preimage."
          },
          "hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "description": "SHA-256 over objectId|dateIssued|title|claim."
          },
          "objectId": {
            "type": "string",
            "description": "The sealed public object (e.g. the X post/video id)."
          },
          "objectType": {
            "type": "string"
          },
          "videoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "videoId": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Canonical advisory page."
          }
        },
        "additionalProperties": true
      },
      "GradedLedgerEntry": {
        "type": "object",
        "title": "Graded ledger entry (grading-ledger.json entry)",
        "description": "One frozen grade. The corpus Brier = mean of entries[].brierTerm; brierTerm = (probAtSeal − outcomeValue)². Grades are frozen at grade time and never edited (misses kept at full weight).",
        "required": [
          "id",
          "probAtSeal",
          "outcome",
          "outcomeValue",
          "brierTerm"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "probAtSeal": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "The confidence the SEALED words stated — never raised after the fact."
          },
          "ipccBand": {
            "type": [
              "string",
              "null"
            ],
            "description": "IPCC AR6 likelihood band of probAtSeal."
          },
          "audited": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "outcome": {
            "type": "string",
            "enum": [
              "HIT",
              "NEAR",
              "PARTIAL",
              "MISS"
            ]
          },
          "outcomeValue": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "HIT 1 · NEAR/PARTIAL 0.5 · MISS 0."
          },
          "brierTerm": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          }
        },
        "additionalProperties": true
      },
      "Provenance": {
        "type": "object",
        "title": "Inline chain-of-custody block",
        "description": "Every advisory record self-proves its lineage: the seal hash, the exact preimage template, the anchor files, and the one-command recompute.",
        "properties": {
          "seal_sha256": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9a-f]{64}$"
          },
          "hash_input_template": {
            "type": "string"
          },
          "object_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "date_issued": {
            "type": [
              "string",
              "null"
            ]
          },
          "posted_publicly_before_event": {
            "type": "boolean"
          },
          "immutable_fields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "manifest_url": {
            "type": "string",
            "format": "uri"
          },
          "ots_anchor": {
            "type": "string",
            "format": "uri"
          },
          "verify_cmd": {
            "type": "string"
          },
          "governance": {
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": true
      },
      "SitaBlock": {
        "type": "object",
        "title": "SITA decision-value block",
        "description": "Four-axis decision-value (Specificity · Improbability · impacT · Actionability), 0-100 composite + corpus percentile. computed:true axes derive from published inputs; computed:false axes are rubric-judged. Definitions: /math.",
        "properties": {
          "score": {
            "type": "number"
          },
          "grade": {
            "type": "string"
          },
          "percentile": {
            "type": "number"
          },
          "definitions": {
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": true
      },
      "InformationYieldBlock": {
        "type": "object",
        "title": "Information Yield block",
        "description": "Bits of against-consensus surprise-if-true: bits = log2(1-in-N) capped at 1-in-a-million; bits_earned = bits × verdict-credit (HIT 1 · NEAR/PARTIAL 0.5 · MISS 0). A base rate scores 0 bits by construction. Definitions: /math.",
        "properties": {
          "bits": {
            "type": "number"
          },
          "bits_raw": {
            "type": "number"
          },
          "bits_earned": {
            "type": [
              "number",
              "null"
            ],
            "description": "null until the call is graded (no verdict-credit yet)."
          },
          "verdict": {
            "type": [
              "string",
              "null"
            ],
            "description": "HIT/NEAR/PARTIAL/MISS, or UNGRADED for sealed-only records."
          },
          "credit": {
            "type": [
              "number",
              "null"
            ]
          },
          "one_in_n": {
            "type": [
              "number",
              "null"
            ]
          },
          "definitions": {
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": true
      },
      "WarningTimelinePointer": {
        "type": "object",
        "title": "Warning-timeline pointer",
        "properties": {
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "embed": {
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": false
      },
      "Advisory": {
        "type": "object",
        "title": "Advisory (unified API record — corpus.jsonl schema + derived facets)",
        "description": "The enriched per-record shape served at /api/v1/advisory/{id}.json and inside corpus.json/graded.json/open-calls.json. snake_case, mirroring the CC-BY corpus.jsonl. Graded records carry accuracy/prob_at_seal/brier_term; ungraded seal-only records carry graded:false with the seal fields only.",
        "required": [
          "id",
          "title",
          "claim",
          "graded"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "claim": {
            "type": "string",
            "description": "Verbatim sealed claim (hash-bound)."
          },
          "graded": {
            "type": "boolean"
          },
          "against_consensus": {
            "type": "boolean",
            "description": "true only where the source advisory documents a consensus to diverge from; false = no recorded consensus, NOT agreement."
          },
          "outcome_severity": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "loss",
              "partial",
              "scrub-or-delay",
              "nominal",
              null
            ],
            "description": "Launch records only."
          },
          "payload_class": {
            "type": [
              "string",
              "null"
            ],
            "description": "Launch records only."
          },
          "orbit": {
            "type": [
              "string",
              "null"
            ],
            "description": "Launch records only."
          },
          "accuracy": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "HIT",
              "NEAR",
              "PARTIAL",
              "MISS",
              null
            ]
          },
          "prob_at_seal": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 1
          },
          "ipcc_band": {
            "type": [
              "string",
              "null"
            ]
          },
          "brier_term": {
            "type": [
              "number",
              "null"
            ]
          },
          "outcome_summary": {
            "type": [
              "string",
              "null"
            ]
          },
          "sealed_on": {
            "type": [
              "string",
              "null"
            ]
          },
          "materialized_on": {
            "type": [
              "string",
              "null"
            ]
          },
          "lead_days": {
            "type": [
              "number",
              "null"
            ]
          },
          "lead_time_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "announce_window_days": {
            "type": [
              "number",
              "null"
            ]
          },
          "evidence_chain": {
            "type": [
              "object",
              "null"
            ]
          },
          "signature": {
            "type": [
              "object",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "artifact_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "object_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "object_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "video_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "seal_hash_sha256": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9a-f]{64}$"
          },
          "sha256": {
            "type": [
              "string",
              "null"
            ],
            "description": "Alias of seal_hash_sha256 so the caveat/verify fields travel with every quoted atom."
          },
          "hash_input_template": {
            "type": "string"
          },
          "merkle_proof": {
            "type": [
              "array",
              "null"
            ],
            "description": "O(log n) inclusion proof against /seal-merkle.json's root."
          },
          "sources": {
            "type": "array"
          },
          "sita": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SitaBlock"
              },
              {
                "type": "null"
              }
            ]
          },
          "iy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InformationYieldBlock"
              },
              {
                "type": "null"
              }
            ]
          },
          "warning_timeline": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WarningTimelinePointer"
              },
              {
                "type": "null"
              }
            ]
          },
          "verify_cmd": {
            "type": "string"
          },
          "ceiling": {
            "type": "string",
            "description": "The one-line honest ceiling — travels with every record."
          },
          "provenance": {
            "$ref": "#/components/schemas/Provenance"
          },
          "license": {
            "type": "string",
            "const": "CC-BY-4.0"
          },
          "operator": {
            "type": "string"
          },
          "entity": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "BrainNode": {
        "type": "object",
        "title": "Brain graph node (brain-graph.json nodes[])",
        "description": "One neuron of the public retrieval graph: a seal or a published-site passage, verbatim, with provenance. Edges are typed (semantic/citation/temporal).",
        "required": [
          "id",
          "kind",
          "text"
        ],
        "properties": {
          "id": {
            "type": "string",
            "examples": [
              "seal:IA-RU-008"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "seal",
              "passage"
            ]
          },
          "record_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "text": {
            "type": "string",
            "description": "VERBATIM sealed/published text — never generated."
          },
          "ts": {
            "type": [
              "string",
              "null"
            ]
          },
          "emb_row": {
            "type": "integer",
            "description": "Row in brain-index.bin (the int8-quantized embedding matrix)."
          },
          "degree": {
            "type": "integer"
          },
          "provenance": {
            "type": [
              "object",
              "null"
            ],
            "description": "source_url + seal_hash_sha256 + frozen grade."
          }
        },
        "additionalProperties": true
      },
      "BrainResult": {
        "type": "object",
        "title": "One /brain result",
        "required": [
          "id",
          "text"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "seal",
              "passage"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "text": {
            "type": "string",
            "description": "VERBATIM — quote directly and cite source_url."
          },
          "ts": {
            "type": [
              "string",
              "null"
            ]
          },
          "score": {
            "type": "number"
          },
          "cosine": {
            "type": "number"
          },
          "activation": {
            "type": "number"
          },
          "inhibition": {
            "type": "number"
          },
          "provenance": {
            "type": [
              "object",
              "null"
            ]
          },
          "source_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "seal_hash_sha256": {
            "type": [
              "string",
              "null"
            ]
          },
          "grade": {
            "type": [
              "string",
              "null"
            ]
          },
          "lane": {
            "type": "string",
            "enum": [
              "direct",
              "associative"
            ],
            "description": "direct = the query itself matched this stored pattern (hop 0); associative = reached along typed synapses from a direct match."
          },
          "why": {
            "type": "string",
            "description": "Explainable activation path (seed match / N hops via edge-type from …)."
          }
        },
        "additionalProperties": true
      },
      "BrainSensitivity": {
        "type": "object",
        "title": "/brain sensitivity block",
        "description": "The recall/precision posture the query ran under and what it withheld. Nothing is silently dropped: at high_precision the associative hits that a looser posture would have returned are listed here (id, title, cosine, lane, why).",
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "high_recall",
              "balanced",
              "high_precision"
            ]
          },
          "profile": {
            "type": "object",
            "description": "The engine parameters this mode applied (seedK, hops, theta, budget, cosFloor, admit)."
          },
          "admitted": {
            "type": "integer"
          },
          "withheld_total": {
            "type": "integer"
          },
          "withheld": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "cosine": {
                  "type": "number"
                },
                "lane": {
                  "type": "string"
                },
                "why": {
                  "type": "string"
                }
              }
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "BrainResultEnvelope": {
        "type": "object",
        "title": "/brain query envelope",
        "description": "The retrieval-only, non-generative response of GET/POST /brain. Every result is verbatim text with provenance and a why-path; no generative model anywhere in the path.",
        "required": [
          "ok",
          "results"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "engine": {
            "type": "string"
          },
          "non_generative": {
            "type": "boolean",
            "const": true
          },
          "note": {
            "type": "string"
          },
          "query": {
            "type": "string"
          },
          "k": {
            "type": "integer"
          },
          "sensitivity": {
            "$ref": "#/components/schemas/BrainSensitivity"
          },
          "embedding": {
            "type": "object"
          },
          "hopfield": {
            "type": "object",
            "description": "Pattern-completion convergence info (basin, iterations, delta, basin_weight)."
          },
          "counts": {
            "type": "object"
          },
          "timing_ms": {
            "type": [
              "number",
              "object"
            ]
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrainResult"
            }
          }
        },
        "additionalProperties": true
      }
    }
  }
}
