Platform Engineering13 January 20276 min read

From Copilot to Governed Operator — Part 4 of 7

Observability for AI: traces, quality, cost and safety

An agent that acts needs telemetry that can explain an action months later without storing every prompt forever. Part 4 of From Copilot to Governed Operator sets out eight signals, a minimum action event, and the line between observability metadata and content retention.

#Observability#AI Agents#AI Operations#Production AI#AI Governance

When Duikerkloof Mutual, our fictional East London insurer, asked its platform team to show how the operations agent had behaved during a weekend incident, the team produced three things within an hour: a dashboard of token usage, a latency chart and 4,000 lines of raw prompt and response text exported from a tracing tool. None of them answered the question the incident review had asked, which was why the agent restarted the payments gateway twice in eleven minutes, and who had allowed the second restart.

The team had plenty of telemetry. It had collected what was easy to collect, not what an investigation needs. And the raw text export contained policyholder names and claim notes that should never have been copied into a tracing tool at all.

For an agent that acts, observability must be designed backwards from the questions an incident review, an auditor and a cost owner will ask, built around a minimum action event that records references rather than content, and kept separate from the decision about how long prompts and transcripts are retained.

What the neighbours already cover

CloudNala has written about AI telemetry from several angles: a trace is not an evaluation on the vocabulary of traces, logs and evaluations; AgentOps in practice on the feedback loop from traces to tests; Your agent spent the money on cost receipts; and Do your observability tools store the prompt? on where copies of sensitive text accumulate. This part does not repeat them. It asks what the minimum telemetry is for an agent with authority to change production, so that every action can be reconstructed and every signal has an owner.

Eight signals, each with an owner

The eight-signal control board for AI agents. Eight signals, each with an owner: traces, token usage, latency, quality drift, errors, cost in rand, user feedback, and safety events such as blocked, denied, escalated or flagged actions. Below the board, telemetry is split in two. Observability metadata, including the minimum action event and traces, holds identifiers, versions, timings, outcomes and references. A separate content store holds prompts, retrieved text, tool payloads and outputs, with capture off by default, its own access control and its own retention. The action event points to content by reference instead of copying it.TRACESSteps and toolsper runOwner: PlatformTOKEN USAGEModel workper runOwner: Platform, FinOpsLATENCYTime per stepand per runOwner: PlatformQUALITY DRIFTSame task,worse output?Owner: Process ownerERRORSFailed tool, modeland policy callsOwner: PlatformCOSTRand per run,task and unitOwner: Budget holderUSER FEEDBACKApprovers andusers reportOwner: Process ownerSAFETYBlocked, denied,escalated, flaggedOwner: Risk ownerOBSERVABILITY METADATACONTENT STOREMINIMUM ACTION EVENTActor, versions, authority, approval, outcomeIdentifiers, timings, counts, referencesKept for the records-policy periodCONTENTPrompts, retrieved text, payloads, outputsCapture off by default; own access controlShort retention; case-hold when neededThe dashed link is a reference, not a copy.
A signal without an owner is a chart nobody reads. Metadata is cheap to keep and answers most forensic questions; content is fetched by reference for a specific case, under its own rules. CloudNala analysis.
SignalThe question it answersTypical owner
TracesWhat steps did this run take, in what order, through which tools?Platform team
Token usageHow much model work did each run consume, and is that changing?Platform team with FinOps
LatencyHow long did each step take, and where did time go?Platform team
Quality driftIs the agent's output getting worse on the same kinds of task?Product or process owner
ErrorsWhich tool calls, model calls or policy checks failed, and how often?Platform team
CostWhat did each run, each task type and each business unit cost in rand?FinOps or budget holder
User feedbackWhat do approvers and users say about the agent's work?Product or process owner
SafetyWhich actions were blocked, denied, escalated or flagged, and why?Security or risk owner

The owner column is the part most teams leave out. A signal nobody owns is a chart nobody reads. Duikerkloof's weekend incident had a safety signal: the second restart had hit a rate limit and been allowed by an emergency override. Nobody was assigned to look at overrides, so nobody did.

The minimum action event

Traces explain a run. An action event explains a change. For every action an agent takes or attempts outside "read", the harness should write one structured event with these fields.

FieldWhat to recordWhy it matters forensically
Request and session IDIdentifiers linking the action to its run and its triggerReconstructs the sequence
ActorThe agent identity, and the user if the action was delegatedAnswers "who acted?" (part 2)
Agent and model versionAgent release, model, instruction and policy versionsSeparates a model change from a behaviour change
ToolTool name and version calledShows which capability was used
AuthorityThe rule or approval tier that permitted the actionAnswers "under what authority?"
Input referenceA pointer to the stored inputs, not the inputs themselvesAllows lookup under access control without copying content
Output referenceA pointer to the result and the before and after stateShows what changed
ApprovalApprover, time, tier, and evidence version shown, or "none required"Answers "who approved, and what did they see?" (part 3)
Human overrideWhether a person edited, overrode or reversed the proposal or action, and whoShows where human judgement changed the outcome
Evidence methodHow the basis for the action was produced: a retrieved record, a tool result, a rule or a model inferenceSeparates checked facts from model output
DurationStart and end timeShows timing and overlap with other changes
CostTokens, tool charges and rand estimate for this actionTies spend to outcomes
OutcomeSucceeded, failed, blocked, denied, expired or rolled backMakes non-events visible

The event is deliberately small. It should be cheap to keep for as long as your records policy requires, because it is the spine of every later investigation. Heavier data, such as full traces and evaluation results, can be sampled and kept for shorter periods.

Two more uses of the event matter. Cost per accepted outcome, rather than cost per run, is the figure a budget holder needs: add up the cost fields across every run, retry and human review behind one outcome the business accepted. And failed handoffs, where an agent passes work to a person or another agent and nothing happens, need their own outcome value, so a review can reconstruct where the work stopped. Where should AI guardrails live? shows this evidence band running across the gateway, harness, workflow and assurance controls.

Open standards are forming here but are not finished. The OpenTelemetry project's semantic conventions for generative AI, including conventions for agent spans, were marked with "Development" status when checked on 24 November 2026, which means names and structure can still change. Use them where your tools support them, pin the version you emit, and keep your own action event as the stable record. The authority and approval fields are not part of those conventions, so you will need to add them yourself.

Metadata is not content

The most important design decision in AI observability is what the telemetry does not contain.

By default, the action event and the trace should hold metadata and references: identifiers, versions, timings, counts, outcomes and pointers. The content, meaning prompts, retrieved documents, transcripts, tool payloads and model outputs, should live in a store designed for content, with its own access control, retention period and deletion process. The reference in the event lets an authorised investigator retrieve the content for a specific case; it does not copy that content into every dashboard, export and vendor tool.

Four rules keep this boundary in place:

  1. Content capture is off unless a purpose turns it on. Debugging a specific failure or running an evaluation are purposes. "It might be useful" is not.
  2. Content capture has an expiry. Switch it on for a stated window, then off again.
  3. Every copy is in scope. Tracing tools, log exports and evaluation datasets all hold content once captured, and each needs a retention and deletion rule.
  4. Mask at the point of capture. When content must be captured, mask personal details and secrets before they reach a tracing tool. Masking reduces exposure; it does not make the content safe to keep forever.

Duikerkloof's 4,000-line export broke all three. After the review, the team switched content capture off by default, kept the action event for seven years under its records policy, and kept full traces for 30 days. These periods are illustrative and should be set with your own legal and records advisers. Part 6 of this series returns to retention when the provider keeps nothing.

What this means for South Africa

Under the Protection of Personal Information Act, copies of personal information in logs and traces are still personal information. They need a purpose, appropriate security and a retention period like any other record. Separating metadata from content makes that easier to show, and it keeps most telemetry outside the scope of the hardest questions. Cost telemetry should report in rand, because a token count in a dashboard means little to a budget holder working with exchange-rate exposure on cloud and model spend. This is general information, not legal advice.

Before you trust your agent telemetry

  1. Write the five forensic questions from part 1 and check that your telemetry answers each one from records.
  2. Assign an owner to each of the eight signals, with a review rhythm.
  3. Emit a minimum action event for every non-read action, including blocked and denied attempts.
  4. Store content separately, by reference, with capture off by default.
  5. Set retention separately for action events, traces and content.
  6. Pin the semantic convention version you emit, and add authority and approval fields yourself.

Next in the series: Agents across clouds: A2A, MCP and bounded collaboration. Previous: Part 3, Approval is a system, not a button. All parts are on the series page.

Sources and limits: the status of the OpenTelemetry generative AI conventions was checked on 24 November 2026 and is expected to change. Duikerkloof Mutual is fictional, and its incident, retention periods and figures are illustrative. Statements about POPIA are general information, not legal advice.

How CloudNala can help

CloudNala designs agent observability from the investigation backwards. We define the minimum action event for your agents, assign owners to each signal, separate observability metadata from content storage, set retention for each, and run a mock incident review to check that your records can answer who acted, under what authority and with what result.


Work with CloudNala

CloudNala helps organisations move from technology ambition to practical execution across cloud, AI, data, platform engineering and digital services.

Whether you are exploring AI, modernising your cloud environment, building a public-sector digital service, or turning an idea into a working MVP, we can help you shape the roadmap and deliver the next step.

Book an Agent Accountability and Forensic Readiness Assessment or write to us at consult@cloudnala.co.za

Found this useful?

Share