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 limitsThe 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:
- The input matches the capability's schema.
- The site supports the capability. If not, you get
NOT_SUPPORTEDwith alternatives. - The operator hasn't turned the capability off.
- Your type of caller is allowed to use it.
- The site's plan includes it.
- 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_SUPPORTEDandNOT_ALLOWEDare different errors.NOT_SUPPORTEDmeans the site can't do it.NOT_ALLOWEDmeans 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.