Skip to content

Payload storage

Observability records have two parts with different destinations. The body (an event payload, a log's message and details, an audit record's before and after) is written to your bucket by the node. The metadata that describes it crosses to the control plane. Body and metadata travel separately.

Two storage modes

Mode Used for Body lives in
external_ref Data-plane and kernel observability Your bucket, written by the node
control_plane_inline The control plane's own operational records Control-plane storage

The split is by origin. A record the control plane produced about its own operation holds only control-plane content, so it persists inline. A record about a run on your node carries a tenant body, so the body goes to your bucket and a reference crosses.

flowchart LR
  K["Kernel / xratud<br/>produces a record"] -->|"body"| B["Your bucket"]
  K -->|"metadata"| CP["Control plane"]
  CP -->|"reference"| B
  CPL["Control plane<br/>own operational record"] -->|"inline"| CPS["Control-plane storage"]

What crosses the boundary

Four fields, and nothing else about the body:

{
  "payload_ref": {
    "path": "gcs://<bucket>/<prefix>/observability/event/<workspace>/<run>/<node>/2026/09/19/<name>.json",
    "bucket_uri": "gcs://<bucket>/<prefix>",
    "object_key": "observability/event/<workspace>/<run>/<node>/2026/09/19/<name>.json",
    "provider": "gcp",
    "scheme": "gcs",
    "bucket": "<bucket>",
    "prefix": "<prefix>",
    "digest": "sha256:...",
    "size_bytes": 1024,
    "content_type": "application/json",
    "record_kind": "event",
    "workspace_uuid": "...",
    "run_id": "...",
    "node_id": "...",
    "trace_id": "..."
  },
  "payload_digest": "sha256:...",
  "payload_size_bytes": 1024,
  "payload_content_type": "application/json"
}
Field Purpose
payload_ref Where the body is, decomposed so a reader can locate it without parsing a URI
payload_digest sha256: over the serialized body, so a fetched body can be verified against what was recorded
payload_size_bytes What to expect before fetching
payload_content_type How to interpret it, defaulting to application/json

The digest is the one the node computed at write time, so a body fetched later can be checked against it.

The object key layout

Bodies are laid out so a workspace, a run, a node and a day are all prefix queries:

observability/<record_kind>/<workspace_uuid>/<run_id>/<node_id>/<YYYY>/<MM>/<DD>/<name>.json

Every segment is sanitized to a safe object token, and a missing identifier becomes an explicit placeholder rather than an empty path segment:

observability/event/workspace-unknown/run-unknown/node-unknown/2026/09/19/<digest-prefix>.json

The final name is the caller's hint when it supplied one, and the first 16 characters of the body digest when it did not.

Inline bodies are refused

Crossing the boundary is validated rather than trusted. A record carrying a body inline is rejected:

dataplane events channel record: inline field `payload` is not allowed across the DP/CP boundary
Channel Forbidden inline fields
Events payload
Logs message, details
Audit before, after

The same call validates that the metadata is present and well formed, so every record carries a resolvable reference:

observability payload_ref.path is required
observability payload_ref.digest is required
observability payload_ref.size_bytes is required

The bucket must match the node's identity

A node can only write to a bucket its own cloud identity covers, and the check is explicit:

observability payload store bucket provider must match infra identity provider

An s3:// bucket on a node whose infra identity is GCP is refused before the write is attempted.

Credentials resolve from the node's ambient cloud identity by default. Where an explicit reference is configured, the write uses secret_ref mode and the reference, never inlined material, is what the node resolves.

Why this shape

The control plane can be hosted. Bodies are the part of telemetry that carries tenant content; they link identities, capabilities, evidence and effects. Holding them in your bucket lets a control plane you do not operate record that they exist without reading them.

Integrity survives the split. The control plane exposes verification read paths over the records it holds, and every record carries a digest taken at write time, so verification runs against the recorded digest.

Retention is yours. Bodies age out under your bucket's lifecycle policy. The metadata the control plane holds remains, so a run's history stays queryable after its bodies expire, carrying references to expired objects.