{"record":{"id":"71ca4955fcf631e6","repo":"paperclipai/paperclip","slug":"aws-agentcore-requested-model-does-not-match-its-q","errorCode":null,"errorMessage":"AWS AgentCore requested model does not match its qualified profile","messagePattern":"AWS AgentCore 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":4313,"sourceCode":"      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 = {\n      authorizedTools: this.#authorizedTools,\n      ...(completionContract.revision &&\n      Array.isArray(completionContract.criterionIds)\n        ? { completionContract }\n        : {}),\n      provider:\n        provider === \"acpx\"\n          ? {\n              kind: \"acpx\",\n              provider: \"acpx\",\n              driver: \"acpx_runtime\",\n              providerVersion: acpxProfile!.acpxVersion,","sourceCodeStart":4295,"sourceCodeEnd":4331,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/packages/paperclip-runner/src/live/runnerd-codex-transport.ts#L4295-L4331","documentation":"Guard in the runnerd AWS AgentCore transport: the requested model must exactly match agentCoreProfile's qualified model; a mismatch throws because the AgentCore harness is versioned for one specific model. Usually caused by adapter config drift or a profile re-qualification after the run was created.","triggerScenarios":"Thrown at packages/paperclip-runner/src/live/runnerd-codex-transport.ts:1739 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Align the requested model with the AgentCore profile's qualified model.","Re-qualify the AgentCore profile for the newly requested model before retrying.","Remove stale model overrides from adapterConfig."],"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"}