{"record":{"id":"2c90f10e2a840ef6","repo":"vercel/ai","slug":"acp-lifecycle-state-is-incompatible-with-the-confi-2c90f1","errorCode":null,"errorMessage":"ACP lifecycle state is incompatible with the configured authentication profile.","messagePattern":"ACP lifecycle state is incompatible with the configured authentication profile\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/harness-acp/src/v1/acp-v1-lifecycle.ts","lineNumber":79,"sourceCode":"  lifecycleData: ACPLifecycleData;\n  sandboxId: string | undefined;\n}): void {\n  if (lifecycleHarnessId !== harnessId) {\n    throw new Error(\n      `ACP lifecycle state was produced by harness ${JSON.stringify(\n        lifecycleHarnessId,\n      )}, but this harness is ${JSON.stringify(harnessId)}.`,\n    );\n  }\n  if (lifecycleData.implementationIdentity !== implementationIdentity) {\n    throw new Error(\n      'ACP lifecycle state is incompatible with the configured implementation.',\n    );\n  }\n  if (\n    lifecycleData.authenticationProfile?.digest !== authenticationProfile.digest\n  ) {\n    throw new Error(\n      'ACP lifecycle state is incompatible with the configured authentication profile.',\n    );\n  }\n  const expectedSandboxId = lifecycleData.bridge?.sandboxId;\n  if (\n    expectedSandboxId != null &&\n    sandboxId != null &&\n    expectedSandboxId !== sandboxId\n  ) {\n    throw new Error(\n      `ACP lifecycle state belongs to sandbox ${JSON.stringify(\n        expectedSandboxId,\n      )}, not ${JSON.stringify(sandboxId)}.`,\n    );\n  }\n}\n","sourceCodeStart":61,"sourceCodeEnd":96,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/harness-acp/src/v1/acp-v1-lifecycle.ts#L61-L96","documentation":"Error \"ACP lifecycle state is incompatible with the configured authentication profile.\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/harness-acp/src/v1/acp-v1-lifecycle.ts:79 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"}