KIVEX

What happens to a request

Follow one call from your agent to the response.

Every request goes through the same steps in the same order, regardless of who sends it. Knowing these steps helps you understand the responses you get.

Request path

agent ──► edge ──► agent layer ──► the site's sources
          │          │
          │          └─ capability, manifest, permissions, limits, evidence
          └─ who is calling, which site, coarse limits

The edge identifies the caller

Requests arrive at api.kivex.chat. The edge checks your API key, finds the site from the URL and applies a per-minute limit. It then forwards the request with a signed record of who you are and which site you called. Your request can't change this record.

The agent layer checks the request

The agent layer looks up the capability and runs these checks in order:

  1. The input matches the capability's schema.
  2. The site supports the capability. If not, you get NOT_SUPPORTED with alternatives.
  3. The operator hasn't turned the capability off.
  4. Your type of caller is allowed to use it.
  5. The site's plan includes it.
  6. You are within the site's limits.

The first failed check determines the response. The remaining checks don't run.

The agent layer reads the source

Depending on the capability, the data comes from what KIVEX stores for the site, from the site's search index, or live from the operator's system. Each source has a timeout. If a source doesn't respond, you get SOURCE_UNAVAILABLE. KIVEX never returns an older value instead.

You get the response

Before the response is sent, KIVEX validates it against the capability's output schema. Each important value has an evidenceRef that points to its source and time.

What this means for your agent

  • Requests work the same on every site. Only the manifest is different.
  • NOT_SUPPORTED and NOT_ALLOWED are different errors. NOT_SUPPORTED means the site can't do it. NOT_ALLOWED means you aren't allowed to.
  • Sites you can't access return NOT_FOUND. They look the same as sites that don't exist, so nobody can find out which sites run KIVEX.
  • Every request is logged with the site, the caller and the capability. Your arguments aren't stored.

On this page