Skip to content

Triage Engine & Forensic Analyzers

AgentV 1.5.0 transforms failure diagnosis from a monolithic heuristic engine into a High-Fidelity Forensic Pipeline.

Failure diagnosis is no longer a single “scan.” It is an ordered execution of Forensic Analyzers that operate on the Forensic Ledger.

StepLayerDescription
1PipelineDetects terminal outcomes (Success, Partial Pass).
2InfrastructureScans telemetry for simulator crashes, OOMs, and timeouts.
3ProtocolVerifies handshake sequences.
4BehavioralAnalyzes agent DNA for loops and hallucinations.
5CustomExecutes third-party analyzers registered via Plugins.
6DecisionFinalizes the Root Cause via the Weighted Evidence Model.

In AES v1.4, the triage engine no longer returns the first failure it finds. Instead, it collects Evidence from multiple analyzers and uses a weighted scoring system to resolve conflicts.

Each diagnostic trigger is assigned a Global Rank (0-10) and a Confidence Score.

  1. Primary Root Cause: The trigger with the highest combined Rank and Confidence.
  2. Contributing Factors: Secondary triggers that occurred but are ranked lower (e.g., an Infrastructure Timeout that was caused by an upstream Agent Stall).

Infrastructure and Policy violations (e.g., OOM or PII Leaks) are always weighted higher than behavioral symptoms (e.g., Stalls), as they represent deterministic execution boundaries.

The triage engine is refactored for Core Extensibility. Every diagnostic logic is encapsulated in an analyzer that implements the BaseForensicAnalyzer interface.

  • Core Analyzers: Baseline regex matching, cyclical loop detection, and basic protocol checks.
  • Enterprise Analyzers: High-fidelity semantic clustering (LLM), sustained resource gradient tracking, and state-action intent verification.

AgentV 1.5.0 distinguishes between the Root Cause (Trigger) and the Terminal Status (Symptom).

  • Trigger: The specific mistake or anomaly (e.g., “Semantic Loop detected”).
  • Symptom: The final state of the task (e.g., “INFRA_TIMEOUT”).

Every classification is documented in a Causal Chain, allowing auditors to trace the exact lineage of a failure from the first logic divergence to the final crash.


4. Forensic Affinity & Identity Authority (AES v1.4)

Section titled “4. Forensic Affinity & Identity Authority (AES v1.4)”

To maintain industrial-grade stability, all triage operations must be anchored to an identity:

  • Zero-Inference Resolution: The Triage Engine requires an explicit run_id to initialize diagnostics. Speculative inference from parent directories is prohibited to prevent forensic cross-contamination.
  • Vault Affinity: Diagnostics are only performed on traces within valid industrial vaults (runs/<run_id>/run.jsonl) or the master log. Traces in shared temporary space are ineligible for audit-grade triage.
  • Manifest Persistence: Root cause classifications are persisted directly into the run_manifest.json as signed evidence, creating an immutable link between the diagnostic outcome and the forensic identity.

The triage engine leverages three primary data sinks captured by the SessionManager:

  1. State Snapshots: Content-hashed fingerprints of the environment at each turn.
  2. Resource Telemetry: Real-time CPU, RAM, and Disk metrics.
  3. Protocol Trace: A sequence of FSM transitions recorded during execution.

For technical details on these fields, refer to the Forensic Ledger Specification.