{"record":{"id":"e135feb0ee0ed0a3","repo":"JuliusBrussee/caveman","slug":"probe-returned-false","errorCode":null,"errorMessage":"probe returned false","messagePattern":"probe returned false","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/agent/src/cli.ts","lineNumber":152,"sourceCode":"async function doctor(args: string[]): Promise<void> {\n  if (args.some((value) => value !== \"--json\")) {\n    throw new Error(\"usage: caveman-agent doctor [--json]\");\n  }\n  const json = args.includes(\"--json\");\n  const root = process.cwd();\n  const checks: DoctorCheck[] = [];\n  const node = process.versions.node;\n  checks.push(compareNodeVersion(node, \"22.19.0\") >= 0\n    ? { id: \"node\", status: \"pass\", detail: `Node ${node}` }\n    : {\n      id: \"node\",\n      status: \"fail\",\n      detail: `Node ${node}; framework requires >=22.19.0`,\n      fix: \"install Node 22.19 or newer\",\n    });\n\n  try {\n    if (!await verifySandboxConformance()) throw new Error(\"probe returned false\");\n    checks.push({ id: \"sandbox\", status: \"pass\", detail: \"tool sandbox containment probe passed\" });\n  } catch (error) {\n    checks.push({\n      id: \"sandbox\",\n      status: \"fail\",\n      detail: `tool sandbox containment unavailable: ${safeDiagnostic(error)}`,\n      fix: process.platform === \"win32\"\n        ? \"run sandbox-required agents in WSL2; native Windows host-mode agents work, but required containment stays fail-closed\"\n        : \"use supported Node runtime and OS; do not run production tools with sandbox fixture\",\n    });\n  }\n\n  // Missing engine and missing runtime are WARN, not FAIL: without them runs\n  // still reach a real model response in observe-only mode (no transform or\n  // gateway telemetry; provider usage and local context estimates remain). Only conditions that make even an\n  // observe-only run untrustworthy fail this command.\n  try {\n    const registry = await loadTransformRegistry();","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/3ee70a102609e550bd2e68004bf5990a9341c851/packages/agent/src/cli.ts#L134-L170","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","solutions":["Run on a supported platform with standard Node 22.19+ (unmodified official build).","Check the check's `detail` field after the probe for the underlying diagnostic via safeDiagnostic.","Run doctor outside restrictive containers or grant the environment the capabilities the sandbox needs.","Update Node to the required version (>=22.19.0)."],"exampleFix":"// before (in restricted container)\n$ caveman-agent doctor\n// sandbox: fail\n// after: run on host or with sandbox-capable container\n$ docker run --security-opt seccomp=unconfined ... caveman-agent doctor","handlingStrategy":"try-catch","validationCode":"const [major, minor] = process.versions.node.split(\".\").map(Number);\nconst supportedNode = major > 22 || (major === 22 && minor >= 19);\nconst isPlainNode = process.release?.name === \"node\"; // reject exotic builds before probing\nif (!supportedNode || !isPlainNode) skipSandboxProbe();","typeGuard":null,"tryCatchPattern":"try {\n  const result = await runDoctor();\n  const sandbox = result.checks.find((c) => c.id === \"sandbox\");\n  if (sandbox.status === \"fail\") console.warn(\"sandbox unavailable:\", sandbox.detail);\n} catch (e) {\n  if (String(e.message).includes(\"probe returned false\")) {\n    console.error(\"Tool sandbox containment failed; run on a supported platform with Node 22.19+\");\n  } else throw e;\n}","preventionTips":["Run doctor on standard official Node builds (>=22.19.0)","Avoid hardened/minimal containers that block worker_threads","Check the sandbox check's detail field for the underlying diagnostic","Treat doctor sandbox failure as blocking for runs that require containment"],"tags":["sandbox","diagnostics","containment","environment"],"backgroundTag":"unsupported-platform","analyzedSha":"3ee70a102609e550bd2e68004bf5990a9341c851","analyzedAt":"2026-09-20T15:53:39.229Z","contentChangedAt":"2026-09-20T15:53:39.229Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}