{
  "openapi": "3.1.0",
  "info": {
    "title": "Loop Engineering public content",
    "version": "1.0.0",
    "description": "Machine-readable contract for the public presentation by Rafael Mendiola, co-founder and product engineer at okthink.ai. The site does not expose speaker notes or a state-changing application API.",
    "contact": {
      "name": "Rafael Mendiola",
      "url": "https://raf.dev/connect/"
    }
  },
  "servers": [
    {
      "url": "https://loop-engineering.raf.dev",
      "description": "Production"
    }
  ],
  "security": [],
  "paths": {
    "/": {
      "get": {
        "operationId": "getPresentation",
        "summary": "Get the Loop Engineering presentation",
        "description": "Returns interactive HTML by default. Returns the agent-readable overview when text/markdown is preferred by the Accept header.",
        "responses": {
          "200": {
            "description": "Presentation content",
            "headers": {
              "Vary": {
                "description": "Signals that the representation varies by Accept.",
                "schema": {
                  "type": "string",
                  "const": "Accept, Accept-Encoding"
                }
              }
            },
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          }
        }
      },
      "head": {
        "operationId": "headPresentation",
        "summary": "Inspect the negotiated presentation representation",
        "responses": {
          "200": {
            "description": "Presentation headers without a response body"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          }
        }
      }
    },
    "/index.md": {
      "get": {
        "operationId": "getMarkdownOverview",
        "summary": "Get the agent-readable presentation overview",
        "responses": {
          "200": {
            "description": "Markdown overview",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getAgentIndex",
        "summary": "Get the curated agent index",
        "responses": {
          "200": {
            "description": "llms.txt index",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "operationId": "getSitemap",
        "summary": "Get the XML sitemap",
        "responses": {
          "200": {
            "description": "Sitemap",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "getOpenApiContract",
        "summary": "Get this OpenAPI contract",
        "responses": {
          "200": {
            "description": "OpenAPI 3.1 document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "instance",
          "code",
          "resolution"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri-reference"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string",
            "format": "uri-reference"
          },
          "code": {
            "type": "string"
          },
          "resolution": {
            "type": "string"
          }
        }
      }
    },
    "responses": {
      "NotAcceptable": {
        "description": "The Accept header excludes both available representations.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotFound": {
        "description": "The requested resource does not exist.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          },
          "text/markdown": {
            "schema": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
