Back to All Projects & Case Studies
AI SystemsProduction Engineering Case Study

SentinelDesk — AI Incident Triage & Automation Console

Multilingual Incident Triage, Escalation Gates & Precedent-Grounded Reply Drafting

React 19Go GatewayPythonVertex AIRedis Vector DBTailwind CSS v4ViteRecharts

Type Macro-F1

0.894

89.1% Acc

Incident Recall

87.0%

93.4% Tuned

Inference Latency

9.0 ms

p50 Offline

Grounding Accuracy

100%

Zero Hallucination

1. Problem Statement & Business Objective

Enterprise support operations face mounting backlogs of unstructured, multilingual incident tickets. Manual triage introduces critical response delays, inconsistent routing, and missed high-severity outages. Typical LLM solutions suffer from hallucinations—inventing corporate policies or citing non-existent ticket numbers. SentinelDesk guarantees zero-hallucination precedent grounding, automated PII sanitization, and strict escalation gates.

End-to-End Pipeline & System Architecture

STAGE 01

Ingestion & PII Masking

Go Gateway

Sanitizes emails, phones, IPs, and credentials in < 2ms before model exposure.

STAGE 02

Hybrid Classification

DistilBERT + k-NN Vote

Blends neural transformer embeddings with 5 nearest solved precedent votes to lift accuracy.

STAGE 03

Policy & Escalation Gate

Confidence & Safety Rules

Enforces 9 reason codes to escalate severe incidents or prompt injections to human on-call.

STAGE 04

Precedent Grounding

Redis Vector Store

Hierarchically searches routed queues to retrieve exact historical precedent tickets.

STAGE 05

Citation Validator & UI

React 19 / Vite / Recharts

Validates all [TKT-xxxxx] citations in the draft against evidence and displays in Kanban console.

Phase-by-Phase Engineering Lifecycle

1

Phase 1: Hybrid Classification & Calibration Pipeline

PythonPyTorchHugging FaceTemperature ScalingECE

Objective: Train multi-head classifier and calibrate confidence probabilities to eliminate overconfident misclassifications.

Key Deliverables & Implementations

  • Engineered hybrid classifier blending neural logits with 5 nearest neighbour votes (0.5 weight).
  • Reduced Expected Calibration Error (ECE) to 0.008 on Type and 0.015 on Priority via isotonic calibration.
  • Attained 87.0% high-priority incident recall on the 20% unseen holdout dataset (8,034 tickets).
2

Phase 2: Hierarchical Vector Retrieval & Grounding Validator

Redis Vector SearchVertex AI / GeminiPydanticPython

Objective: Index historical knowledge base and enforce strict zero-hallucination citation checks on generated drafts.

Key Deliverables & Implementations

  • Implemented hierarchical two-stage KNN search in Redis (queue routing first, then intra-queue KNN).
  • Built AST citation validator rejecting any draft quoting unretrieved tickets or ungrounded claims.
  • Enabled cross-lingual evidence synthesis: multilingual embeddings with automated translation into customer language.
3

Phase 3: Go Gateway & Reactive Incident Console

GoReact 19Tailwind CSS v4RechartsVite

Objective: Architect low-latency reverse proxy gateway with streaming telemetry and interactive Kanban UI.

Key Deliverables & Implementations

  • Engineered Go proxy handling PII tokenization and burst rate-limiting in sub-millisecond execution.
  • Constructed responsive React 19 triage dashboard, SLA counters, Kanban board, and outage burst simulator.
  • Shipped dual-role portal: self-service ticket status tracking for end-users, and analytical funnel for incident managers.

Precedent Grounding Citation & Validation Guardrail (PYTHON)

def validate_grounded_draft(draft: str, retrieved_precedents: list[Precedent]) -> ValidationResult:
    # Extract all cited ticket tokens, e.g. [TKT-10492]
    cited_ids = set(re.findall(r"\[(TKT-\d+)\]", draft))
    valid_ids = {p.ticket_id for p in retrieved_precedents}

    # Zero-hallucination check: every citation must exist in retrieved evidence
    hallucinated = cited_ids - valid_ids
    if hallucinated:
        return ValidationResult(
            is_valid=False,
            reason=f"Hallucinated precedent citation detected: {hallucinated}",
            action="FALLBACK_TO_EXTRACTIVE"
        )
    return ValidationResult(is_valid=True, action="APPROVE_DRAFT")

Quantifiable Impact & Verified Outcomes

  • Achieved 0.894 Macro-F1 across 4 incident types and 87.0% recall on high-priority incidents.
  • 100% citation verification pass rate: zero hallucinated policies or ungrounded ticket IDs displayed to operators.
  • Sub-10ms classification latency enabling real-time triage before ticket reaches human agent queues.