{"record":{"id":"ce86ef3cec9d3d11","repo":"paperclipai/paperclip","slug":"filesystemextrapaths-index-must-use-access-ro","errorCode":null,"errorMessage":"filesystemExtraPaths[${index}] must use access \"ro\" or \"rw\" and an absolute path.","messagePattern":"filesystemExtraPaths\\[(.+?)\\] must use access \"ro\" or \"rw\" and an absolute path\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/adapter-utils/src/local-process-sandbox.ts","lineNumber":505,"sourceCode":"  }\n\n  args.push(\"--chdir\", cwd, \"--\", executable, ...executableArgs);\n  return { command: bwrapCommand, args, cwd: \"/\", env, cleanup };\n}\n\nexport function parseLocalProcessSandboxExtraPaths(value: unknown): LocalProcessSandboxPath[] {\n  if (!Array.isArray(value)) return [];\n  return value.map((entry, index) => {\n    if (typeof entry === \"string\") {\n      return { path: normalizeAbsolutePath(entry, `filesystemExtraPaths[${index}]`), access: \"ro\" };\n    }\n    if (!entry || typeof entry !== \"object\" || Array.isArray(entry)) {\n      throw new Error(`filesystemExtraPaths[${index}] must be an absolute path or { path, access } object.`);\n    }\n    const raw = entry as Record<string, unknown>;\n    const access = raw.access === \"rw\" ? \"rw\" : raw.access === \"ro\" || raw.access == null ? \"ro\" : null;\n    if (!access || typeof raw.path !== \"string\") {\n      throw new Error(`filesystemExtraPaths[${index}] must use access \"ro\" or \"rw\" and an absolute path.`);\n    }\n    return { path: normalizeAbsolutePath(raw.path, `filesystemExtraPaths[${index}].path`), access };\n  });\n}\n","sourceCodeStart":487,"sourceCodeEnd":510,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/packages/adapter-utils/src/local-process-sandbox.ts#L487-L510","documentation":"A filesystemExtraPaths object entry failed validation: access is not 'ro'/'rw' or the path is not absolute after normalization.","triggerScenarios":"Thrown at packages/adapter-utils/src/local-process-sandbox.ts:505 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set access to \"ro\" or \"rw\" and use an absolute path for filesystemExtraPaths[${index}]."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}