Skip to content

Drift Management & Edge-Case Triage

Industrial agent evaluation requires more than static datasets; it needs the ability to learn from real-world production “drift” and systematically classify why agents fail.

The Drift Importer (import-drift) allows you to convert production interaction logs into reusable evaluation scenarios. This enables the creation of a “regression suite” from actual edge cases encountered in the field.

Terminal window
agentv import-drift --input path/to/trace.json --industry telecom

The engine expects standard role-based interaction objects:

[
{"role": "user", "content": "I need help with my bill."},
{"role": "assistant", "content": "I can help with that. What is your account number?"}
]

Upon import, the engine generates a new AES v1.4 scenario file in industries/[industry]/scenarios/drift-[hash].json. The original conversation is stored as ground_truth_history for N-shot comparison.


The Triage Engine automatically inspects failed tasks and applies diagnostic tags based on the Failure Taxonomy.

TagDescription
CONNECTION_ERRORCommunication failure with the agent or LLM provider (e.g., 500 reset).
POLICY_VIOLATIONThe agent attempted an action forbidden by the Secure Sandbox.
TOOL_ERRORA World Shim returned an error status during tool execution.
STALLThe agent hit the turn limit without reaching a terminal final_answer.

After each run, the engine executes a heuristic pass over the trajectory.

Terminal window
Task: refund_processing [FAILURE [CONNECTION_ERROR]]
FAILED Metric: generic_accuracy | Score: 0.00 | Threshold: 0.80

While triage provides categorical tags, the explain command performs a deep forensic analysis of the execution trace to identify root causes.

Terminal window
agentv explain --run-id <id>
  • Tiered Confidence Scoring: Distinguishes between explicit violations (100%), induced system errors (85%), and heuristic fallbacks (50%).
  • Remediation Advice: Provides targeted prompts for refinement (e.g., “Refine sandbox policy for read_file to allow restricted access”).
  • Pinpoint Divergence: Identifies the exact turn index where the agent’s logic diverged from the Trust Protocol.