JuliusBrussee/caveman · error

probe returned false

Error message

probe returned false

What it means

During `caveman-agent doctor`, the sandbox check runs verifySandboxConformance() and throws "probe returned false" when the containment probe completes but returns false, meaning the tool sandbox failed to contain an escape attempt. doctor records this as a failing sandbox check with a fix suggestion.

Solutions

  1. Run on a supported platform with standard Node 22.19+ (unmodified official build).
  2. Check the check's `detail` field after the probe for the underlying diagnostic via safeDiagnostic.
  3. Run doctor outside restrictive containers or grant the environment the capabilities the sandbox needs.
  4. Update Node to the required version (>=22.19.0).

Example fix

// before (in restricted container)
$ caveman-agent doctor
// sandbox: fail
// after: run on host or with sandbox-capable container
$ docker run --security-opt seccomp=unconfined ... caveman-agent doctor
Defensive patterns

Strategy: try-catch

Validate before calling

const [major, minor] = process.versions.node.split(".").map(Number);
const supportedNode = major > 22 || (major === 22 && minor >= 19);
const isPlainNode = process.release?.name === "node"; // reject exotic builds before probing
if (!supportedNode || !isPlainNode) skipSandboxProbe();

Try / catch

try {
  const result = await runDoctor();
  const sandbox = result.checks.find((c) => c.id === "sandbox");
  if (sandbox.status === "fail") console.warn("sandbox unavailable:", sandbox.detail);
} catch (e) {
  if (String(e.message).includes("probe returned false")) {
    console.error("Tool sandbox containment failed; run on a supported platform with Node 22.19+");
  } else throw e;
}

Prevention

When it happens

Trigger: doctor's sandbox probe executing in an environment where worker/worker_threads containment fails: restricted platforms, containers without required isolation features, or modified Node builds.

Common situations: Running doctor inside a minimal Docker image or CI runner where sandbox primitives are unavailable; Node version or platform lacking expected containment behavior; security-hardened environments blocking worker creation.

Understand the failure class

Background: "unsupported platform" / "not supported on this platform" errors: what they mean and how to fix them — this error's family across 47 libraries.

Related errors


AI-assisted analysis of JuliusBrussee/caveman@3ee70a1026 (2026-09-20). Data as JSON: /api/errors/e135feb0ee0ed0a3. Report an issue: GitHub.

Appendix: source

Thrown at packages/agent/src/cli.ts:152

async function doctor(args: string[]): Promise<void> {
  if (args.some((value) => value !== "--json")) {
    throw new Error("usage: caveman-agent doctor [--json]");
  }
  const json = args.includes("--json");
  const root = process.cwd();
  const checks: DoctorCheck[] = [];
  const node = process.versions.node;
  checks.push(compareNodeVersion(node, "22.19.0") >= 0
    ? { id: "node", status: "pass", detail: `Node ${node}` }
    : {
      id: "node",
      status: "fail",
      detail: `Node ${node}; framework requires >=22.19.0`,
      fix: "install Node 22.19 or newer",
    });

  try {
    if (!await verifySandboxConformance()) throw new Error("probe returned false");
    checks.push({ id: "sandbox", status: "pass", detail: "tool sandbox containment probe passed" });
  } catch (error) {
    checks.push({
      id: "sandbox",
      status: "fail",
      detail: `tool sandbox containment unavailable: ${safeDiagnostic(error)}`,
      fix: process.platform === "win32"
        ? "run sandbox-required agents in WSL2; native Windows host-mode agents work, but required containment stays fail-closed"
        : "use supported Node runtime and OS; do not run production tools with sandbox fixture",
    });
  }

  // Missing engine and missing runtime are WARN, not FAIL: without them runs
  // still reach a real model response in observe-only mode (no transform or
  // gateway telemetry; provider usage and local context estimates remain). Only conditions that make even an
  // observe-only run untrustworthy fail this command.
  try {
    const registry = await loadTransformRegistry();

View on GitHub (pinned to 3ee70a1026)