Skip to content

Access payloads and artifacts

Large observability bodies stay in the tenant observability bucket. The control plane record carries the exact object identity, digest, size, and content type. An xratu obs command retrieves that object through a short-lived delegated download and verifies it before displaying the record.

Prerequisites

  • Select an organization and workspace in the CLI context.
  • Hold the read permission for the record being queried.
  • Keep access to the data plane that owns the tenant observability bucket.

Read a record with an external payload

The normal observability commands perform payload access automatically and are the object-download surface.

RUN_ID=run-7f92
xratu obs logs run $RUN_ID
xratu obs history run $RUN_ID
xratu obs runs events $RUN_ID

The first response contains a payload-access marker. The CLI opens an actor-scoped operation, waits for the data plane to mint an exact-object download, and replaces the marker with the verified body before rendering the result.

{
  "run_id": "run-7f92",
  "items": [
    {
      "event_type": "provider.result",
      "payload": {
        "status": "completed"
      }
    }
  ]
}

Verify the download

Use JSON output and inspect the returned record. A successful command replaces the internal payload-access marker with the hydrated payload.

xratu obs --json runs events $RUN_ID

The CLI accepts the downloaded bytes only when their SHA-256 digest and byte length match the metadata admitted with the record. The delegated credential is bound to the CLI session and the exact bucket object.

When access fails

The command fails closed with this message when the operation, credential, object identity, digest, or byte length cannot be validated:

Unable to retrieve this observability content securely. The record exists, but delegated payload access could not be established.

Check the workspace context, the actor's record-read permission, data plane availability, and access from the data plane to the tenant observability bucket. Retry the original xratu obs command after correcting the failed condition.

What changed

The command creates an actor-scoped payload-access operation. The observability record and its external object remain unchanged.