TraceGuard
Causal multi-agent failure attribution (C³-Attributor), CaMeL-inspired prompt-injection capability firewall and time-travel counterfactual replay for OpenTelemetry GenAI traces.
Read case study
The problem
Multi-agent LLM pipelines fail silently across cascading tool calls and untrusted prompt inputs, making root-cause localization and security enforcement difficult with passive logs alone.
What it does
- C³-Attributor extracting 23 structural, graph, taint and semantic features from OpenTelemetry GenAI spans with HistGradientBoosting step-fault ranking and RandomForest MAST classification
- Deterministic counterfactual time-travel replay verifying whether patching a candidate step recovers a failed or compromised trace
- CaMeL-inspired prompt-injection classifier (TF-IDF + Logistic Regression) paired with a provenance taint lattice blocking tainted external sinks and human-in-the-loop policy approval
- React 19 + TypeScript forensic workstation, FastAPI WebSocket stream, MCP server and HMAC-SHA256 signed n8n webhook dispatcher
Architecture & decisions
A 4-agent diagnostic council (SecurityTaintAuditor, SpanIngestorAgent, CausalLocalizerAgent, CounterfactualVerifierAgent) runs under a supervisor with contradiction detection and fault isolation.
SQLite WAL persists traces, taint policies and audit records while an MCP server and SSRF-protected HMAC webhook layer integrate with external agents and automation workflows.
My contribution
Architected and built the C³-Attributor pipeline, CaMeL capability firewall, counterfactual replay engine, forensic React workstation, MCP server and evaluation suite.
Implementation & evidence
- 15 passing automated pytest tests and a held-out synthetic benchmark comparing C³-Attributor against rule, heuristic and ablation baselines.
- Indirect prompt-injection classifier evaluated on unseen test families (F1 = 0.8571, ROC-AUC = 0.9508 vs 0.5505 keyword baseline) with explicit synthetic-benchmark caveats documented.
Scope & limitations
- Local forensic workstation; benchmark scores are measured on structured synthetic multi-agent datasets documented in KNOWN_LIMITATIONS.md.
- Production deployment requires environment-specific OTel collector ingestion and enterprise identity integration.






