Documentation › Concepts

Calls, nodes and passports

What happens between your request and the answer, how calls are grouped into nodes and versions, and what the passport file contains.

A call#

A call is one chat completion request through the endpoint. You name the model in the model field; OSPP calls that model and never another. Every call gets a run id (X-OSPP-Run) and its own passport. Calls are not chained: each round trip of a conversation or an agent task is a call with a passport of its own. X-OSPP-Trace groups them.

What happens during a call#

  1. Request. The request is signed, naming the node version, its fingerprint and a commitment to the input. Through the Cloud endpoint OSPP signs with a key it holds for your organisation (a hosted key, and the passport says so). Through the local proxy of a self-hosted organisation, the signing happens on your machine.
  2. Intent witnessed. The gateway commits to the exact request bytes it will send to the model. That intent is appended to the log and cosigned by the witnesses before the model is called.
  3. Dispatch. The gateway calls the provider.
  4. Receipt witnessed. The gateway commits to the exact answer bytes and signs a receipt; that entry is appended and cosigned too.
  5. Certification. The issuer checks that every entry is in the log under cosigned heads, that the registered version matches and that the request's signature verifies, and signs the certificate. It adds what OSPP measured.
  6. Passport. The certificate, the log entries, the cosigned heads, the inclusion proofs, the keys and the witness policy make one file, the .ospp file, that verifies offline.

The answer returns to your application with the passport's id and links. If the passport is not issued yet when the answer leaves, the answer says so (X-OSPP-Passport-Status: pending) and the passport follows; it is read later with GET /v1/runs/{run_id}. See responses.

A streamed call can also be delivered answer first: where streamed calls are enabled, the model's text is passed on as it is written and the passport follows at the end of the stream. See streaming.

Nodes#

A node is the calls of one task. Nothing is built or configured before the first call.

  • Named. Send X-OSPP-Node: support-bot with a call and it belongs to the node support-bot.
  • Unnamed. Without the header, OSPP groups calls per model, parameters, system prompt and tool definitions, under a name it makes itself that starts with chat-.

The node is where figures and outcomes are added up, per model, and where settings live: Model Compare, the retention period, your own outcome metrics.

The node's definition and the conversation#

A call has two parts.

  • The node's definition is the fixed part: the provider and model, the parameters, the system prompt and the tool definitions. System and developer messages at the start of messages are the system prompt.
  • The conversation is the messages after the system messages: user, assistant and tool turns. It is the call's input.

OSPP registers each distinct node's definition once, with a fingerprint, in the log.

Versions#

Inside a named node, any change to the node's definition (model, parameters, system prompt or tool definitions) is a new version of the same node. The answer names the version in X-OSPP-Node, for example support-bot@3f9a1c2b7d10. Because a version never changes after it is registered, a passport's statement "this version ran" stays meaningful.

The system prompt is private by default: a verifier of the passport sees the fingerprint of the node's definition, not its text.

What OSPP keeps#

PartWhat OSPP keeps
The node's definitionAlways kept: model, parameters, system prompt and tool definitions. This does not depend on Model Compare, and it holds for Self-hosted too: the local proxy sends the definition so that OSPP can name and register the node
The conversation and the answer, Model Compare offFingerprints stay. The content is deleted about an hour after the call; the answer, a retry and a pending passport need it that long
The conversation and the answer, Model Compare onKept encrypted for the node's retention period: 30 days by default, 1 to 365. Only calls made after the switch; X-OSPP-Store: false keeps one call out
The conversation and the answer, Self-hosted through the local proxyNever reach OSPP in readable form: they pass OSPP's API only sealed and are not stored there. They stay on your own gateway

A legal hold, or an evidence retention policy your organisation set itself under Compliance, keeps content regardless of the above.

Text that must not be stored by OSPP goes in the conversation, not in the system prompt or a tool description. See Model Compare.

What the passport file contains#

  • The certificate: node version and fingerprint, the commitment to the input, the request's hash and signature, the gateway, the call's commitments and log positions, the cosigned heads, the witness policy, the issue time, the issuer's signature.
  • The log entries and inclusion proofs the certificate names.
  • The verification keys that were valid at the time.
  • Extensions: OSPP's measurements, the model behaviour epoch, a re-run's link to its original, and others. Verifiers ignore unknown non-critical extensions; unknown critical ones fail.
  • Its history: outcomes and other witnessed events appended later.

The system prompt, the conversation and the answer are not in the file. Their fingerprints are. See what a passport proves.

How a call can end#

A call ends certified, or it ends without a passport: failed, rejected, undetermined, provider outcome unknown, or expired. A call that ends without a passport returns an error to your application. A call can also be held by a finding of a monitor or halted on a log conflict; it has then not ended, and the endpoint answers that it is still pending. See errors. A certified passport can later be withdrawn by governance; the withdrawal is itself a log entry and shows on the public page.

Retries#

Send an Idempotency-Key header to make a retry safe. The key counts together with the conversation: the same key with the same messages returns the same call and passport instead of making a second one; the same key with other messages is a new call. The same key and messages with another model or system prompt is refused with 409 idempotency_conflict. See idempotency.