{"record":{"id":"95d79d510cb7c2be","repo":"vercel/ai","slug":"acp-lifecycle-state-was-produced-by-harness-json","errorCode":null,"errorMessage":"ACP lifecycle state was produced by harness ${JSON.stringify(lifecycleHarnessId)}, but this harness is ${JSON.stringify(harnessId)}.","messagePattern":"ACP lifecycle state was produced by harness (.+?), but this harness is (.+?)\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/harness-acp/src/v1/acp-v1-lifecycle.ts","lineNumber":65,"sourceCode":"}\n\nexport function validateACPLifecycleCompatibility({\n  harnessId,\n  lifecycleHarnessId,\n  implementationIdentity,\n  authenticationProfile,\n  lifecycleData,\n  sandboxId,\n}: {\n  harnessId: string;\n  lifecycleHarnessId: string;\n  implementationIdentity: string;\n  authenticationProfile: ACPAuthenticationProfileIdentity;\n  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;","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/harness-acp/src/v1/acp-v1-lifecycle.ts#L47-L83","documentation":"Error \"ACP lifecycle state was produced by harness ${JSON.stringify(lifecycleHarnessId)}, but this harness is ${JSON.stringify(harnessId)}.\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/harness-acp/src/v1/acp-v1-lifecycle.ts:65 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"}