{"record":{"id":"b3af678bc3f80b72","repo":"paperclipai/paperclip","slug":"paperclip-runner-claude-managed-profile-mismatch","errorCode":"paperclip_runner_claude_managed_profile_mismatch","errorMessage":"The qualified Claude Managed profile does not match the adapter selection.","messagePattern":"The qualified Claude Managed profile does not match the adapter selection\\.","errorType":"error_code","errorClass":"PaperclipRunnerProviderProfileError","httpStatus":null,"severity":"error","filePath":"server/src/services/native-runtime/provider-profile.ts","lineNumber":491,"sourceCode":"      provider: \"acpx\",\n      model: profile.model,\n      acpxAgent: profile.acpxAgent,\n      acpxPermissionMode: resolvePaperclipRunnerPermissionMode(\n        \"acpx\",\n        config.acpxPermissionMode,\n      ) as \"approve-all\" | \"approve-reads\" | \"deny-all\",\n    };\n  }\n  if (profile.provider === \"claude_managed\") {\n    const stored = input.managedProfile;\n    if (\n      !stored\n      || (\n        profile.managedProfileId !== stored.id\n        && profile.managedProfileId !== stored.profileKey\n      )\n    ) {\n      throw new PaperclipRunnerProviderProfileError(\n        \"paperclip_runner_claude_managed_profile_mismatch\",\n        \"The qualified Claude Managed profile does not match the adapter selection.\",\n      );\n    }\n    if (stored.betaVersion !== CLAUDE_MANAGED_BETA_VERSION) {\n      throw new PaperclipRunnerProviderProfileError(\n        \"paperclip_runner_claude_managed_beta_unqualified\",\n        \"The Claude Managed profile beta version is not qualified.\",\n      );\n    }\n    const model = profile.model ?? optionalString(stored.defaultModel);\n    const maxSessionListCostUsd = profile.maxSessionListCostUsd\n      ?? stored.defaultMaxListCostCents / 100;\n    if (!model) {\n      throw new PaperclipRunnerProviderProfileError(\n        \"paperclip_runner_claude_managed_model_invalid\",\n        \"The Claude Managed profile requires a model.\",\n      );","sourceCodeStart":473,"sourceCodeEnd":509,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/services/native-runtime/provider-profile.ts#L473-L509","documentation":"Guard in resolvePaperclipRunnerNativeProviderInput for claude_managed: the stored managedProfile (from the company's qualified profiles) must exist and its id or profileKey must match config.managedProfileId; otherwise a 'paperclip_runner_claude_managed_profile_mismatch' error is thrown. The adapter selection references a managed profile that no longer exists or was renamed/deleted.","triggerScenarios":"Thrown at server/src/services/native-runtime/provider-profile.ts:485 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Point managedProfileId at an existing qualified managed-agent profile for the company.","Re-create/qualify the referenced profile if it was deleted or renamed.","Refresh adapterConfig from the current profile list so ids align."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-09-02T18:44:00.616Z","contentChangedAt":"2026-09-02T18:44:00.616Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}