{"record":{"id":"3e572c84e54296ea","repo":"paperclipai/paperclip","slug":"invalid-managed-profile","errorCode":"invalid_managed_profile","errorMessage":"Claude Managed requires a qualified profile ID.","messagePattern":"Claude Managed requires a qualified profile ID\\.","errorType":"http","errorClass":"RouteError","httpStatus":400,"severity":"error","filePath":"packages/paperclip-runner/scripts/capability-issue-thread-server.mjs","lineNumber":246,"sourceCode":"    if (!(acpxAgent in ACPX_QUALIFIED_MODELS)) {\n      throw new RouteError(400, \"invalid_acpx_agent\", \"ACPX agent must be claude or codex.\");\n    }\n    if (model !== ACPX_QUALIFIED_MODELS[acpxAgent]) {\n      throw new RouteError(400, \"invalid_model\", `The qualified ACPX ${acpxAgent} profile requires exact model ${ACPX_QUALIFIED_MODELS[acpxAgent]}.`);\n    }\n  }\n  const requestedManagedProfileId = source.managedProfileId === undefined || source.managedProfileId === null\n    ? \"default\"\n    : String(source.managedProfileId).trim();\n  const configuredManagedProfileId = process.env.PAPERCLIP_CLAUDE_MANAGED_PROFILE_ID?.trim();\n  const managedProfileId = provider === \"claude_managed\" && requestedManagedProfileId === \"default\" && configuredManagedProfileId\n    ? configuredManagedProfileId\n    : requestedManagedProfileId;\n  const maxSessionListCostUsd = source.maxSessionListCostUsd === undefined || source.maxSessionListCostUsd === null\n    ? 1\n    : Number(source.maxSessionListCostUsd);\n  if (provider === \"claude_managed\" && !managedProfileId) {\n    throw new RouteError(400, \"invalid_managed_profile\", \"Claude Managed requires a qualified profile ID.\");\n  }\n  if (provider === \"claude_managed\" && (!Number.isFinite(maxSessionListCostUsd) || maxSessionListCostUsd <= 0)) {\n    throw new RouteError(400, \"invalid_spend_cap\", \"Claude Managed requires a positive session spend ceiling.\");\n  }\n  const requestedAgentCoreProfileId = source.agentCoreProfileId === undefined || source.agentCoreProfileId === null\n    ? \"default\"\n    : String(source.agentCoreProfileId).trim();\n  const configuredAgentCoreProfileId = process.env.PAPERCLIP_AWS_AGENTCORE_PROFILE_ID?.trim();\n  const agentCoreProfileId = provider === \"aws_agentcore\" && requestedAgentCoreProfileId === \"default\" && configuredAgentCoreProfileId\n    ? configuredAgentCoreProfileId\n    : requestedAgentCoreProfileId;\n  const maxEstimatedSessionCostUsd = source.maxEstimatedSessionCostUsd === undefined || source.maxEstimatedSessionCostUsd === null\n    ? 1\n    : Number(source.maxEstimatedSessionCostUsd);\n  if (provider === \"aws_agentcore\" && !agentCoreProfileId) {\n    throw new RouteError(400, \"invalid_agentcore_profile\", \"AWS AgentCore requires a qualified profile ID.\");\n  }\n  if (provider === \"aws_agentcore\" && (!Number.isFinite(maxEstimatedSessionCostUsd) || maxEstimatedSessionCostUsd <= 0)) {","sourceCodeStart":228,"sourceCodeEnd":264,"githubUrl":"https://github.com/paperclipai/paperclip/blob/5716fe907e596ce73501408fc6efdb19fb61edf2/packages/paperclip-runner/scripts/capability-issue-thread-server.mjs#L228-L264","documentation":"Guard in harnessConfiguration: a claude_managed provider request resolved to an empty managedProfileId — neither the payload's managedProfileId nor PAPERCLIP_CLAUDE_MANAGED_PROFILE_ID supplied a qualified profile — so RouteError(400,'invalid_managed_profile') is thrown. Claude Managed cannot launch without an identified managed-agent profile.","triggerScenarios":"Thrown at packages/paperclip-runner/scripts/capability-issue-thread-server.mjs:246 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a non-empty managedProfileId in the harness configuration payload.","Set the PAPERCLIP_CLAUDE_MANAGED_PROFILE_ID environment variable so the 'default' profile resolves.","Switch the provider to codex/opencode/acpx if no Claude Managed profile is available."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5716fe907e596ce73501408fc6efdb19fb61edf2","analyzedAt":"2026-09-02T18:44:00.616Z","contentChangedAt":"2026-09-02T18:44:00.616Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}