{"record":{"id":"1dd8f128530ecae7","repo":"vercel/ai","slug":"invalid-acp-skill-file-path-json-stringify-filep","errorCode":null,"errorMessage":"Invalid ACP skill file path ${JSON.stringify(filePath)} for skill ${JSON.stringify(skillName)}: expected a relative POSIX path without traversal.","messagePattern":"Invalid ACP skill file path (.+?) for skill (.+?): expected a relative POSIX path without traversal\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/harness-acp/src/v1/acp-v1-skills.ts","lineNumber":169,"sourceCode":"  filePath: string;\n}): string {\n  const containsTraversal = filePath\n    .split(/[\\\\/]/)\n    .some(segment => segment === '..');\n  const normalizedPath = path.posix.normalize(filePath);\n  const invalid =\n    filePath.length === 0 ||\n    filePath.endsWith('/') ||\n    filePath.includes('\\\\') ||\n    path.posix.isAbsolute(filePath) ||\n    path.win32.isAbsolute(filePath) ||\n    containsTraversal ||\n    normalizedPath === '.' ||\n    normalizedPath.startsWith('../') ||\n    normalizedPath.includes('/../') ||\n    normalizedPath.endsWith('/..');\n  if (invalid) {\n    throw new Error(\n      `Invalid ACP skill file path ${JSON.stringify(filePath)} for skill ${JSON.stringify(\n        skillName,\n      )}: expected a relative POSIX path without traversal.`,\n    );\n  }\n  return normalizedPath;\n}\n\nfunction assertOutsideSessionWorkDir({\n  rootDir,\n  sessionWorkDir,\n}: {\n  rootDir: string;\n  sessionWorkDir: string;\n}): void {\n  const relative = path.posix.relative(sessionWorkDir, rootDir);\n  const isInside =\n    relative === '' ||","sourceCodeStart":151,"sourceCodeEnd":187,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/harness-acp/src/v1/acp-v1-skills.ts#L151-L187","documentation":"Error \"Invalid ACP skill file path ${JSON.stringify(filePath)} for skill ${JSON.stringify(skillName)}: expected a relative POSIX path without traversal.\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/harness-acp/src/v1/acp-v1-skills.ts:169 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"69428b1f8b037e4d118fb4853428d5c4e620493c","analyzedAt":"2026-08-30T12:32:21.016Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}