Skip to content

Verify provider profile imports for the OpenShell upgrade #12940

Closed as not planned

Description

@rsliter

Problem

The intended OpenShell upgrade uses an import-only provider-profile catalog. A fresh gateway starts with an empty catalog and requires an explicit profile import before a provider can use that profile. NemoClaw already imports and verifies several checked-in profiles, but an overlooked onboarding, credential, or sandbox path could still depend on an OpenShell built-in profile or alias.

Parent epic: #12558. This ticket prepares the existing provider workflows for the import-only catalog. The OpenShell pin change remains outside this ticket.

Outcome

Every supported NemoClaw provider path has an explicit, owned profile definition before it creates or attaches a provider. Repeated setup verifies the existing profile. A conflicting profile fails before provider or sandbox mutation.

Scope

  • Inventory profile IDs used by supported onboarding, credential, inference-selection, restart, rebuild, and sandbox-creation paths. Include the paths delivered by Slice 2: Move remaining fixed hosted providers to native inference #12589 and Slice 3: Move user-supplied hosted endpoints to native inference #12636 when they land.
  • Map each used ID to a NemoClaw-owned definition and its import point. Remove any reliance on built-in catalogs, implicit aliases, or command-based provider selection.
  • Reuse the existing import, export, and contract-check mechanisms. Ensure import precedes provider creation or attachment for each path.
  • Keep profiles in the accepted NemoClaw workspace scope. Preserve endpoint, executable, and credential restrictions.
  • Report a missing or conflicting profile with a bounded action message. Do not replace an operator-owned profile or expose credential values.
  • After provider creation or attachment, re-export the profile on a best-effort basis. If a successful export differs from the definition verified before mutation, warn that the catalog changed and NemoClaw cannot confirm which definition was used at bind time. If the export fails or times out, warn that post-mutation verification did not complete and ask the gateway operator to inspect the profile. Keep warnings free of credential values and continue setup without rollback solely because of a post-mutation warning. Keep pre-mutation mismatches blocking.

Acceptance evidence

  • A fresh gateway with an empty profile catalog can set up one representative existing provider and attach it to the intended sandbox after importing its profile.
  • A repeat setup with the same profile definition succeeds by checking the existing definition.
  • A profile ID collision with different contents stops before provider or sandbox mutation and preserves the existing profile.
  • A missing profile or failed import cannot be reported as successful provider setup.
  • Focused tests cover the import ordering, repeat run, collision, and failure behavior. One disposable smoke run on the selected target OpenShell release verifies import, provider creation, and attachment without changing the repository pin.
  • The inventory records each supported profile ID, its checked-in definition, the path that imports it, and any remaining gap.
  • A focused test shows that a detected post-mutation mismatch produces the warning without changing the operation's result. The warning contains no credential values and does not claim atomic protection.
  • A focused test shows that a failed or timed-out post-mutation export produces a credential-free recovery warning without changing the operation's result.

Boundaries

Use #12558's accepted provider scope and security rules. Coordinate with #12589 and #12636 so this ticket checks their completed paths rather than duplicating their profile implementation. Do not add providers, a bulk profile manager, an OpenShell dependency update, or automatic migration of existing beta sandboxes. If a required path lacks an owned profile or needs broader access, stop and resolve that scope decision before implementation.

OpenShell change: ai-openshell/openshell#3383

Delivery status

Merged work covers the fixed hosted profiles (#12886), runtime identity import verification (#12947), post-bind warnings in the shared provider adapter (#12985), the advisory attach timeout (#13033), and the owned Hermes tool gateway profile (#13102). #13102 also preserves reuse of an existing Hermes generic provider only when its non-secret binding matches the former setup. #13136 repaired the test-owned extra-provider fixtures, and #13189 covered direct sandbox creation profile checks and post-attachment warnings. The import-only inventory predates #13102 and remains a record of the paths that still need classification, not completion evidence.

Remaining work before closing this issue (status 2026-10-14)

  1. Pending; dependencies open. Reconcile the inventory after the custom-hosted provider path in feat(inference): [slice 3] bind custom hosted providers to native sandbox authority #12889 merges. Recheck any gateway provider paths delivered by the separate native-local work in feat(inference): attach native local providers for OpenClaw and DCode #12977 and feat(pi): support native local inference #13007 after those PRs merge. All three PRs are open as of this update. Record each supported profile ID, owned definition, import point, and remaining gap. Do not duplicate those PRs' provider implementations here.
  2. Partly complete. fix(hermes): import owned tool gateway profile #13102 covered the Hermes tool gateway broker's owned profile and narrow legacy-provider reuse. Classify the remaining uncovered create paths before changing the shared helper: the missing-provider create fallback in config-rotate-token, credentials add types without a bundled profile, messaging's generic fallback, and other callers of upsertProvider. For a supported NemoClaw path, import and verify its owned definition before creation. For an operator-supplied type, record its catalog dependency and resolve whether that path is supported before claiming import-only coverage. Do not invent a broad generic or openai profile.
  3. Complete in fix(onboard): warn on direct create profile drift #13189. Direct sandbox creation now verifies attached NemoClaw-owned profiles before mutation. After verified creation and attachment, profile drift or a failed or timed-out export gives a credential-free warning without changing the completed result. Pre-mutation conflicts still block. Resume does not claim bind-time verification.
  4. Complete in test(e2e): import owned extra-provider fixture profile #13136. The onboard-repair and onboard-resume fixtures now import and verify a test-owned profile before creating their extra provider. The experimental direct blueprint inference runner retains its existing behavior under the recorded parity decision; its catalog dependency remains an explicit gap outside supported provider setup. provider update retains its existing behavior.
  5. Partly complete. test(e2e): import owned extra-provider fixture profile #13136 adds focused fixture tests for import ordering, matching-profile reuse, collision, import and export failures, provider-create failure, and credential isolation. fix(onboard): warn on direct create profile drift #13189 adds focused direct-create tests for owned-profile verification, post-attachment drift and export warnings, conflict rejection, and resume. Add focused ordering, repeat-run, collision, import-failure, and warning evidence for each remaining repaired path. Run one disposable smoke on the selected OpenShell release with an empty catalog: import a representative owned profile, create and attach its provider, repeat setup, and confirm that a conflicting profile stops before provider or sandbox mutation. Link the results before closing this issue. The OpenShell pin change remains separate.

Separate follow-up

#13196 tracks shared Hermes tool gateway profile validation across broker registration and direct sandbox creation. Rebecca waived that maintainability finding for #13189. The follow-up does not replace the import-only acceptance evidence above.

Activity

  1. added
    area: providers
    on Oct 9, 2026
  2. changed the title [-]Verify provider profile import coverage for OpenShell 0.1.2[/-] [+]Verify provider profile imports for the OpenShell upgrade[/+] on Oct 9, 2026
  3. rsliter commented on Oct 13, 2026

    @rsliter
    CollaboratorAuthor

    Import-only provider inventory (main 19d994a0086c59e945a2456b1264ca1444a37fc7)

    This is a source inventory for #12940, not a claim that every path works with an empty OpenShell catalog. I found 16 checked-in profile definitions and one endpoint-bound profile generated from a checked-in definition.

    Profile ID NemoClaw definition Import before create or attach
    nemoclaw-nvidia-inference-v1 managed-inference/provider-profiles/nemoclaw-nvidia-inference-v1.yaml src/lib/inference/native-provider/index.ts via the native NVIDIA lifecycle; also credentials add via src/lib/actions/credentials-add.ts
    nemoclaw-openai-inference-v1 managed-inference/provider-profiles/nemoclaw-openai-inference-v1.yaml Native hosted lifecycle in src/lib/inference/native-provider/index.ts
    nemoclaw-anthropic-inference-v1 managed-inference/provider-profiles/nemoclaw-anthropic-inference-v1.yaml Same native hosted lifecycle
    nemoclaw-gemini-inference-v1 managed-inference/provider-profiles/nemoclaw-gemini-inference-v1.yaml Same native hosted lifecycle
    nemoclaw-openrouter-inference-v1 managed-inference/provider-profiles/nemoclaw-openrouter-inference-v1.yaml Same native hosted lifecycle
    nemoclaw-hermes-inference-v1 managed-inference/provider-profiles/nemoclaw-hermes-inference-v1.yaml Same native hosted lifecycle
    nemoclaw-hermes-inference-<endpoint-hash>-v1 Generated from managed-inference/provider-profiles/nemoclaw-hermes-inference-v1.yaml with the validated endpoint binding in src/lib/inference/native-provider/hosted.ts Native hosted lifecycle imports the temporary bound definition
    brave nemoclaw-blueprint/provider-profiles/brave.yaml src/lib/messaging/applier/openshell-provider.ts; credentials add also imports the bundled definition
    tavily nemoclaw-blueprint/provider-profiles/tavily.yaml Same messaging and credential paths
    tavily-hermes-v1 nemoclaw-blueprint/provider-profiles/tavily-hermes-v1.yaml Same messaging and credential paths
    langfuse-hermes-v1 nemoclaw-blueprint/provider-profiles/langfuse-hermes-v1.yaml Bundled credentials add import in src/lib/actions/credentials-add.ts
    nemoclaw-mcp-v1 nemoclaw-blueprint/provider-profiles/nemoclaw-mcp-v1.yaml Messaging applier, MCP bridge mutation in src/lib/actions/sandbox/mcp-bridge-provider-mutation.ts, and sandbox-create preparation in src/lib/onboard/sandbox-create/provider-publication.ts
    google-chat-bridge src/lib/messaging/channels/googlechat/provider-profile/openclaw.yaml Messaging applier
    google-chat-hermes-bridge src/lib/messaging/channels/googlechat/provider-profile/hermes.yaml Messaging applier
    discord-hermes-static-v1 src/lib/messaging/channels/discord/provider-profile/hermes.yaml Messaging applier
    okta-runtime-v1 nemoclaw-blueprint/provider-profiles/okta-runtime-v1.yaml is a reference template nemoclaw/src/blueprint/runtime-identity.ts validates the configured profile_path, imports a private snapshot, exports and compares the registered profile, then creates the runtime provider
    entra-runtime-v1 nemoclaw-blueprint/provider-profiles/entra-runtime-v1.yaml is a reference template Same runtime-identity path

    The native lifecycle imports again before sandbox attachment (src/lib/onboard/sandbox-create/provider-publication.ts, called by orchestration.ts). Onboarding and rebuild apply channel and search profiles through the messaging applier. credentials add imports only when the requested type resolves to a bundled definition. These paths use the existing import/export contract; the import and provider commands are separate, so post-mutation checks warn about observed drift without claiming an atomic bind.

    Remaining gaps on this main commit

    1. src/lib/onboard/providers.ts can create via the shared upsertProvider helper without importing a profile. Callers include local Ollama/vLLM, routed and compatible inference, Bedrock/OpenRouter runtime adapters, Hermes inference registration, and the Hermes tool gateway broker. Their --type values include openai, anthropic, and generic; onboarding metadata also retains nvidia. None has a checked-in profile with that ID. Classify each caller before changing the shared helper; the open custom hosted endpoint work is Slice 3: Move user-supplied hosted endpoints to native inference #12636 / PR feat(inference): [slice 3] bind custom hosted providers to native sandbox authority #12889.
    2. src/lib/sandbox/config-rotate-token.ts tries provider update, then recreates a missing provider with its recorded providerType and no profile import. The create fallback depends on a catalog entry for that type. A successful update does not create a provider and has different behavior.
    3. src/lib/actions/credentials-add.ts accepts types without a bundled file. bundledProviderProfile() returns null, ensureBundledProviderProfile() then succeeds without import, and provider creation uses the requested catalog type. This is an operator-supplied catalog path, not evidence of a NemoClaw-owned definition.
    4. src/lib/messaging/applier/provider-application.ts defaults a token definition without providerType to generic; unknown types also receive no profile path. prepareProfiles() imports only definitions that have a path. The normal prepared channel definitions have explicit types, but the fallback remains an unowned create path if reachable.
    5. The experimental direct blueprint inference runner in nemoclaw/src/blueprint/runner.ts defaults to openai and can create that provider without importing an inference profile. Its runtime-identity branch is separately covered by the two reference templates above.
    6. The live onboard-repair and onboard-resume fixtures use upsertGenericGatewayProvider with generic. They are test fixtures, not a supported user path, but they must change before an import-only gateway can run those selectors.

    Disposition: The profile-ID mapping is complete for the checked-in definitions on this commit. #12940's broader import-only acceptance is still open: the create paths above need an owned definition or an explicit operator-supplied-profile contract, then focused ordering/collision tests and the selected OpenShell smoke. Do not add a broad generic or openai profile by inference; first decide ownership and restrictions for each active path. The OpenShell pin remains separate.

  4. added theissue type on Oct 27, 2026
  5. added
    area: security
    and removed on Oct 29, 2026
  6. rsliter commented on Nov 18, 2026

    @rsliter
    CollaboratorAuthor

    Superseded by OpenShell upgrade PR #12603, per the maintainer decision to consolidate epic #12558 and its remaining work into that PR.

    Provider-profile import ordering, owned definitions, repeat setup, collision refusal, and selected-release qualification now follow #12603. Completed inventory and repair work remains recorded here.

    Closing this tracker as superseded. Outstanding requirements and evidence remain obligations of #12603; this closure does not claim qualification passed or approve merge or release.

    Consolidated obligations: #12603 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: providersarea: security

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions