Back to work
AI / MLCase study

Fleet Copilot

A LangGraph agent for IT admins that answers fleet-health questions and only acts after human approval.

Stack

LangGraphClaudePythonSQLiteEvals

Highlights

  • Every action held for human approval
  • Deterministic eval suite, no API key needed
View source

An agentic copilot over device-fleet telemetry. It answers fleet-health and compliance questions with device-level citations, surfaces trends such as battery end-of-life and compliance drift, and proposes actions that run only after explicit human approval. Tenant isolation, evidence-gated actions and an append-only audit trail are enforced in code, not in the prompt.

The problem

An assistant with access to a company's device fleet can do real damage: cite devices that do not exist, leak data across tenants, or act without sign-off.

Approach

  1. Built an explicit LangGraph agent (plan, act, verify, approve, audit) instead of a free-running loop.

  2. Read tools run deterministic SQL, and a grounding verifier rejects any device ID the evidence does not support, so every claim is cited to a device and timestamp.

  3. Four action tools (upgrade order, remediation ticket, replacement flag, employee notice) are held for approval with LangGraph interrupt(), and every step is written to an append-only audit log.

  4. Enforced tenant isolation and evidence gating at the data layer, and wrote a deterministic evaluation suite that runs offline without an API key.

Outcome

A copilot whose safety rules hold even when the model misbehaves, with an offline test suite that checks them.