Kkarthik.dev
Back to projects
Infrastructure

RunbookAI

Turns operational runbooks into evidence-gated agent workflows: the model proposes, policy authorizes

TypeScriptNode.js 22VitestDockerTrueFoundry

Overview

RunbookAI lets an agent work through an incident runbook on its own while it is safe, and stop for a human the moment acting becomes dangerous.

Problem

Ops agents either run arbitrary commands against production or ask for approval at every step. Asking an LLM whether its own command is safe doesn't work: it can be persuaded or injected through logs.

Solution

A deterministic, no-LLM policy engine computes blast radius, checks where evidence came from and gates every action. Read-only diagnostics and sandbox reproduction run automatically; external changes need approval; a model's claim that tests passed never counts as evidence.

Architecture

  1. 1Runbook compiler that turns docs into controlled steps
  2. 2Evidence-gated agent loop (diagnose, reproduce in a sandbox, propose a fix)
  3. 3Policy engine: blocks secret exposure, unknown scope and forbidden actions; requires approval above a blast-radius threshold
  4. 4Immutable, auto-redacted audit timeline

Technical Challenges

  • Separating tool-derived evidence from model hypotheses so a model can't fake a passing test.

Results

  • 191 passing tests across 15 test files.
  • Demo incident: a checkout-api 500 spike reproduced, patched and verified.