{"record":{"id":"d57f4a1a7000e580","repo":"paperclipai/paperclip","slug":"adapter-adaptertype-is-not-in-the-configured","errorCode":null,"errorMessage":"Adapter \"${adapterType}\" is not in the configured adapter registry","messagePattern":"Adapter \"(.+?)\" is not in the configured adapter registry","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/sandbox-providers/kubernetes/src/adapter-defaults.ts","lineNumber":84,"sourceCode":"    allowFqdns: entry.allowFqdns ?? [],\n    probeCommand: entry.probeCommand ?? [],\n    defaultEnv: entry.defaultEnv,\n  };\n}\n\n/**\n * Resolve the runtime defaults for an adapter. When a `registry` is supplied it\n * is authoritative (replace semantics): the type MUST be present and complete,\n * else this throws. With no registry, falls back to the built-in REGISTRY.\n */\nexport function getAdapterDefaults(\n  adapterType: string,\n  registry?: readonly AdapterRegistryEntry[],\n): AdapterDefaults {\n  if (registry && registry.length > 0) {\n    const entry = registry.find((e) => e.adapterType === adapterType);\n    if (!entry) {\n      throw new Error(`Adapter \"${adapterType}\" is not in the configured adapter registry`);\n    }\n    return fromRegistryEntry(entry);\n  }\n  const defaults = REGISTRY[adapterType];\n  if (!defaults) {\n    throw new Error(`Unknown adapter type: ${adapterType}`);\n  }\n  return defaults;\n}\n\n/**\n * Resolve the adapter type for a single run: prefer the run's adapter (the agent's,\n * from the lease params) so one environment can serve mixed harnesses; fall back to\n * the environment's configured default adapter when the run does not specify one.\n */\nexport function resolveRunAdapterType(\n  runAdapterType: string | null | undefined,\n  configAdapterType: string,","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/packages/plugins/sandbox-providers/kubernetes/src/adapter-defaults.ts#L66-L102","documentation":"Error \"Adapter \"${adapterType}\" is not in the configured adapter registry\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/sandbox-providers/kubernetes/src/adapter-defaults.ts:84 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Register the adapter type in the adapter registry configuration."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}