AI architecture

Trace an AI decision

When an AI-assisted action has to be explained, a list of timestamps is not enough. You need to follow one piece of work across every step and system it touched.

3 min read

From logs to traces

Software teams solved a similar problem years ago with distributed tracing. OpenTelemetry, an open standard, describes a trace as the path of a request through a system, made of spans: each span is one unit of work with a start, an end and attributes. The same idea fits AI workflows. One client request becomes one trace. Reading the email, finding the client, preparing the entry, the approval and the write to the system are its spans.

What to capture at each step

  • What the step received and where it came from.
  • Which rule or process version applied.
  • What the model proposed, and what a person changed.
  • Who approved, and what the target system returned.

The aim is traceability, the same aim the EU AI Act sets for high-risk systems in its article on record-keeping. It does not require keeping every word. A reference to the source document is often enough, and safer.

Make it readable

A trace that only an engineer can interpret will not help when a partner or a client asks what happened. The view should read like a timeline: request, steps, approval, result.

How Flow approaches it

Flow keeps each piece of work together, from the incoming request to the record in your system, with the approval and any Undo in the same history.

Sources

  1. OpenTelemetry, Traces
  2. EU AI Act, Article 12: Record-keeping

Next step

A deployment plan for your organization.

Book a call