{
  "openapi": "3.1.0",
  "info": {
    "title": "Glossa Filter runtime",
    "version": "0.1.0",
    "description": "Deterministic linguistic mediation. Peer renders, not a translator. Human opinion remains human, and tools remain tools."
  },
  "servers": [
    {
      "url": "https://glossafilter-download-tracker.vibelock.workers.dev"
    }
  ],
  "paths": {
    "/v1/health": {
      "get": {
        "operationId": "health",
        "summary": "Liveness",
        "responses": {
          "200": {
            "description": "ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/peers": {
      "get": {
        "operationId": "peers",
        "summary": "List bundled peer ids (all equal).",
        "responses": {
          "200": {
            "description": "peers",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/render": {
      "post": {
        "operationId": "render",
        "summary": "Render structured Intent across peers. Not a live translator.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "channel": {
                    "type": "string",
                    "enum": [
                      "tooling",
                      "civic"
                    ]
                  },
                  "subject": {
                    "type": "string"
                  },
                  "rel": {
                    "type": "string"
                  },
                  "object": {
                    "type": "string"
                  },
                  "notes": {
                    "type": "string"
                  },
                  "propositions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "subject": {
                          "type": "string"
                        },
                        "rel": {
                          "type": "string"
                        },
                        "object": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "slots": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "peers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "who": {
                    "type": "string"
                  },
                  "what": {
                    "type": "string"
                  },
                  "when": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string"
                  },
                  "constraint": {
                    "type": "string"
                  },
                  "interface": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "peer map",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}