AIOps Peach

AIOps: AI for IT Operations · Module 07

Evaluating and Securing Ops Agents

Making ops agents trustworthy: evaluation sets from open incident datasets and our own, replaying incidents safely, agent metrics that a replay can measure, tracing the agent with the OpenTelemetry GenAI conventions, and prompt injection through telemetry.

Học tương tác →

Học xong bạn làm được

Bài học

  1. Evaluation sets from incidents

    An ops agent is only as trustworthy as the incidents it has been tested on. An evaluation case is an incident with labels - the cause (service and fault), the evidence that proves it, and the fix - built from your own postmortems and replays, and from open benchmarks such as ITBench's SRE scenarios and RCAEval's labelled failure cases. Keep a held-out set you never tune on.

  2. Replaying incidents

    To evaluate an agent repeatedly, the incident has to happen the same way every time. Three ways to replay one - switch the fault on again in the lab (realistic, slow, varies run to run), feed recorded telemetry from a snapshot (repeatable, fast), or mock the tools so every call returns recorded answers (fastest, fully deterministic) - and the safety rule that holds for all three: writes go to a fake.

  3. Agent metrics

    A replayed incident is graded on more than "right or wrong" - root-cause top-1 and top-3 accuracy, time (or steps) to the first right hypothesis, evidence validity (every cited query or log line exists and re-running it returns the same thing), cost in tokens and tool calls, unsafe actions (any write without an approval is a hard fail), and abstention (a justified "not enough evidence" beats a wrong answer).

  4. Tracing the agent

    An ops agent should be observable like any service. The OpenTelemetry GenAI semantic conventions name the spans and attributes of agent runs, model calls and tool calls (invoke_agent, chat, execute_tool; gen_ai.request.model, gen_ai.tool.name, token usage), and they are still in development, so pin the version you follow. Send the agent's spans over OTLP to the lab's Tempo, or to an LLM-focused backend such as Arize Phoenix or Langfuse.

  5. Security of ops agents

    An ops agent reads text that attackers can write - log lines, error messages, ticket comments, runbooks. Indirect prompt injection hides instructions in that text. Defences come in layers - treat telemetry as data (delimit and label it), give the agent least privilege (read-only tools, scoped credentials, approvals for every write), detect and flag injection attempts, and keep secrets out of prompts and traces.