{"record":{"id":"2092846df5fd1641","repo":"paperclipai/paperclip","slug":"claude-managed-requested-model-does-not-match-its","errorCode":null,"errorMessage":"Claude Managed requested model does not match its qualified profile","messagePattern":"Claude Managed requested model does not match its qualified profile","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/paperclip-runner/src/live/runnerd-codex-transport.ts","lineNumber":4301,"sourceCode":"        ? unboundBaseInstructions.replaceAll(\n            sourceRuntimeContext.instructions.bundle.rootPath,\n            runtimeContext.instructions.bundle.rootPath,\n          )\n        : unboundBaseInstructions;\n    const acpxProfile =\n      provider === \"acpx\"\n        ? resolveQualifiedAcpxProfile(acpxAgent!, requestedModel)\n        : null;\n    const managedProfile = this.options.managedProfile;\n    const agentCoreProfile = this.options.agentCoreProfile;\n    if (provider === \"claude_managed\") {\n      if (!managedProfile) {\n        throw new Error(\n          \"Claude Managed runner transport requires a qualified managed profile\",\n        );\n      }\n      if (requestedModel !== managedProfile.model) {\n        throw new Error(\n          \"Claude Managed requested model does not match its qualified profile\",\n        );\n      }\n    }\n    if (provider === \"aws_agentcore\") {\n      if (!agentCoreProfile) {\n        throw new Error(\n          \"AWS AgentCore runner transport requires a qualified AgentCore profile\",\n        );\n      }\n      if (requestedModel !== agentCoreProfile.model) {\n        throw new Error(\n          \"AWS AgentCore requested model does not match its qualified profile\",\n        );\n      }\n    }\n    const completionContract = record(params.completionContract);\n    const runAttachTemplate = {","sourceCodeStart":4283,"sourceCodeEnd":4319,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/packages/paperclip-runner/src/live/runnerd-codex-transport.ts#L4283-L4319","documentation":"Guard in the runnerd Claude Managed transport: the requested model for the run must equal managedProfile.model exactly; any divergence throws because Claude Managed only accepts the qualified model bound to the profile. Fires when adapter config or migration metadata changed the model after the profile was qualified.","triggerScenarios":"Thrown at packages/paperclip-runner/src/live/runnerd-codex-transport.ts:1731 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the run's requested model to the profile's qualified model string.","Re-qualify or update the managed profile if a different model is genuinely required.","Clear stale model overrides in adapterConfig so the profile default applies."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-09-10T03:14:50.855Z","contentChangedAt":"2026-09-10T03:14:50.855Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}