Customer data glossary

Correlation ID

A correlation ID is a single identifier attached to one request and carried through every agent, tool call and approval it touches, so that all its ledger entries can be joined later.

By Art Kukharenko · Published · Updated

All glossary terms

Part of the Learn hub and the customer data glossary.

What it means in practice

A correlation ID answers an auditor's first question: what happened to this request? Without it, each agent's record is a separate fragment, and someone has to piece the story together from timestamps.

The idea predates agents. The Correlation Identifier pattern in Enterprise Integration Patterns puts a unique ID on each request so that a reply can be matched to it 1. The W3C Trace Context Recommendation does something similar for distributed tracing: its trace-id marks every system involved in one logical operation 2.

On rails, the Orchestrator issues one correlation ID per request, and every step carries it. A ledger writer outside the agent records the ID with each entry, because agents do not write or edit their own record.

A correlation ID and a payload hash do different jobs. The ID says which request an action belongs to. The hash says exactly what was approved. A good audit ledger entry holds both.

Generate the ID at random, and never build it from an email address or customer number. A hop that drops the ID breaks the chain, so test for this: audit coverage below 100% is a defect.

PrivyCDP's immutable audit ledger ties each AI-assisted action to the actor that authorised it, and a correlation ID answers a different question: which request the action belonged to.

Example (government agency, illustrative): one request passes from the Segment Drafter to the Journey QA Reviewer, then to an approver and the Audience Sync Steward. Four ledger entries share one ID, so an auditor can read the whole path.

Where it matters

Back to the customer data glossary or the Learn hub.

Browse use casesFunction playbooksAgent roster

FAQ

Is a correlation ID the same as a trace ID?

They are close relatives. A W3C trace-id serves engineers tracing a technical operation. A correlation ID follows one business request, including waits for people. You can reuse a trace ID if it survives those waits.

Who creates the correlation ID?

The first system that receives the request, usually the Orchestrator or a workflow engine. Agents receive it and pass it on, and they should not be able to change it.

Sources

  1. Enterprise Integration Patterns, Correlation Identifier
  2. W3C, Trace Context (23 November 2021)

Further reading

Published: · Updated:

Editorial dates describe content changes. Confirm current sources before making legal, security or purchasing decisions.