Skip to main content

What Alibi is

Alibi records ordered inbound API calls plus in-span state mutations and selective reads (SQL, Redis, optional Kafka/S3/queue plugins), then verifies against that contract on a restored baseline.

Record

A Record session starts on a project, checks out an isolated sandbox, and collects steps while your app runs with ALIBI_MODE=record (or x-alibi-mode: record) and the sandbox marker header.
  • Live sessions stay private to the recorder (Laddu cannot open Junnu’s live session).
  • Each recorder gets a distinct sandboxId.
  • Steps attach mutations/reads observed by plugins in the request span.

Verify

Verify-live restores the case’s pinned baseline into a sandbox, replays the recorded HTTP steps against your target app with x-alibi-mode: verify, and diffs observed mutations/reads vs the case. Failures surface cross-team drift on state — not only response JSON.

Cases

A case is a saved recorded path: ordered steps, assertions, ignore rules, owner, case version, and baseline version.
  • After save-case, the case is project-shared (Laddu can list and verify Junnu’s case).
  • On failure: approve (update golden from a run), re-record, suppress a volatile field, or fix the code.

Baselines

A baseline is a versioned SQL + Redis (and plugin) snapshot. Verify restores it into the checked-out sandbox so runs start from a known data plane — not “whoever last polluted staging.”

Isolation modes (1–6)

See Isolation modes for honest requirements per mode.

Prerequisites

Compose (recommended) needs Docker installed and running. Without Docker, use local services: Node 20+ / pnpm 9+, Python 3.10+, Postgres 16, and Redis 7. Isolation extras: