Skip to main content
Multi-recorder = one sandbox session per Record. Junnu and Laddu each get a distinct sandboxId.

Overview

Drive each brother’s traffic with his own x-alibi-sandbox-id. After Junnu saves a case, Laddu can list/run it project-wide. Pool APIs: GET/POST /api/projects/:id/sandboxes, POST .../sandboxes/warm, POST .../sandboxes/pool, POST .../sandboxes/reap.

Mode 4 — docker_session

Requires Docker socket + Compose plugin in the CP image, and:
so sandbox bind mounts resolve on the host. Without Docker, Session Start fails for this mode (no soft-PASS).

Mode 5 — k8s_job

Per session the control plane renders k8s/sandbox/sandbox-job.yaml (Pod + NodePort Service) and runs kubectl apply. Session Stop deletes the Pod/Service. CI / no cluster: Start still succeeds with a logical binding (k8s.status explains the skip), unless fail-closed is on.

Mode 6 — branch_db

Branchable Postgres plus a dedicated Redis key prefix (alibi:br_<slot>:). local (CI-friendly): CREATE DATABASE alibi_br_* TEMPLATE <template> via psql. If the template stays busy, falls back to an empty DB (branch.status=local:empty-fallback). neon: Creates a branch via Neon API. Default soft-falls back to local when credentials/API fail; set ALIBI_BRANCH_FAIL_CLOSED=1 to refuse instead.

Smoke