paperclipai/paperclip · error · PaperclipRunnerProviderProfileError

paperclip_runner_claude_managed_profile_mismatch

paperclip_runner_claude_managed_profile_mismatch

Error message

The qualified Claude Managed profile does not match the adapter selection.

What it means

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.

Source

Thrown at server/src/services/native-runtime/provider-profile.ts:491

      provider: "acpx",
      model: profile.model,
      acpxAgent: profile.acpxAgent,
      acpxPermissionMode: resolvePaperclipRunnerPermissionMode(
        "acpx",
        config.acpxPermissionMode,
      ) as "approve-all" | "approve-reads" | "deny-all",
    };
  }
  if (profile.provider === "claude_managed") {
    const stored = input.managedProfile;
    if (
      !stored
      || (
        profile.managedProfileId !== stored.id
        && profile.managedProfileId !== stored.profileKey
      )
    ) {
      throw new PaperclipRunnerProviderProfileError(
        "paperclip_runner_claude_managed_profile_mismatch",
        "The qualified Claude Managed profile does not match the adapter selection.",
      );
    }
    if (stored.betaVersion !== CLAUDE_MANAGED_BETA_VERSION) {
      throw new PaperclipRunnerProviderProfileError(
        "paperclip_runner_claude_managed_beta_unqualified",
        "The Claude Managed profile beta version is not qualified.",
      );
    }
    const model = profile.model ?? optionalString(stored.defaultModel);
    const maxSessionListCostUsd = profile.maxSessionListCostUsd
      ?? stored.defaultMaxListCostCents / 100;
    if (!model) {
      throw new PaperclipRunnerProviderProfileError(
        "paperclip_runner_claude_managed_model_invalid",
        "The Claude Managed profile requires a model.",
      );

View on GitHub (pinned to 01ad858492)

Solutions

  1. Point managedProfileId at an existing qualified managed-agent profile for the company.
  2. Re-create/qualify the referenced profile if it was deleted or renamed.
  3. Refresh adapterConfig from the current profile list so ids align.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at server/src/services/native-runtime/provider-profile.ts:485 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of paperclipai/paperclip@01ad858492 (2026-09-02). Data as JSON: /api/errors/b3af678bc3f80b72. Report an issue: GitHub.