Skip to content

Alternative Slice 4 plan: preserve local inference through three stacked PRs #12975

Closed as not planned

Description

@rsliter

Outcome

Preserve existing local-inference functionality while moving current supported agent/provider combinations to sandbox-attached native providers on the current OpenShell pin. Deliver the minimum complete behavior through three stacked PRs, rather than one broad Slice 4 PR.

Competing proposal and authority

This issue is a competitor to the original Slice 4 plan in #12558 and its implementation PR #12777. Slice 4 is currently a section of the epic; no separate original host-local Slice 4 issue was identified. This proposal does not supersede or close either item automatically. The maintainer must select the delivery plan before implementation resumes.

Rebecca requested this alternative after reassessing the original requirements and discoveries in #12777. The epic's accepted compatibility-preservation outcome remains the scope authority. Accountable maintainer: @rsliter. Implementation owner: unassigned.

Ready to implement: no. Resolve the rollout decision below first. Filing this proposal does not authorize new PRs, source changes, availability reductions, or restarting the paused #12777 lifecycle. #12921 remains a deferred issue until its concrete implementation plan is accepted.

Why split

The original requirement was to preserve existing Ollama, vLLM and llama.cpp workflows while changing inference transport, including qualified host addresses, authenticated and credentialless profiles, runtime/GPU ownership, cleanup and actual agent requests.

Work on #12777 exposed distinct agent credential consumers:

  • DCode generated the intended credential configuration, but its actual Python consumer selected a fixed managed-route token. The scoped repair has lower-test and CI evidence; successful live qualification remains outstanding.
  • OpenClaw requires positive evidence from its actual agent process, plus startup and switching credential behavior. Creating a sibling sandbox or making a curl request is insufficient.
  • Pi still generates the fixed managed-route token while the candidate admits it to native-local setup. Rejecting every Pi local selection would reduce existing availability and is not an accepted correction.
  • Hermes requires guarded projection into its managed configuration slots. Defer Hermes native-local credential projection from Slice 4 #12921 already owns that deferred work. Its previously accepted temporary denial should be reconsidered explicitly under this compatibility-preserving proposal.

Passing configuration tests or managed-image checks does not establish successful native inference.

Recommended stacked PRs

PR 1: OpenClaw and DCode native-local inference

Base on current main. Reuse only the necessary implementation and evidence from #12777.

  • Deliver the minimum shared profile, provider attachment, ownership and gateway prerequisite behavior used by these agents.
  • Correct their actual credential consumers and preserve fresh startup, supported inference switching, restart/rebuild behavior, status and owned cleanup.
  • Prove real requests to the selected endpoint/model and sibling isolation through existing test owners.
  • Include focused deterministic failure, ambiguity, credential and lifecycle regressions, plus owning guidance.

Exclude Pi/Hermes implementation, optional refactors, new providers/platforms and managed-route retirement.

PR 2: Pi native-local compatibility

Stack on PR 1 and reuse its provider lifecycle.

  • Preserve Pi's existing local selections instead of disabling them.
  • Supply the correct issued native credential through Pi's actual consumer for the selected endpoint.
  • Cover existing startup and switching behavior and prove that onboarding does not leave an unusable sandbox.
  • Use consumer-level regression tests and the shortest justified real-process evidence.

Exclude new Pi features, generic credential infrastructure and blanket rejection of existing selections.

PR 3: Hermes native-local compatibility

Stack on PR 2. Refine and reuse #12921 rather than creating a duplicate Hermes issue.

  • Preserve issued credential identity across all managed slots, startup and switching.
  • Retain guarded writes, schema/digest/inode/permission checks, sanitized privileged execution and unrelated configuration.
  • Reject malformed, missing, wrong-key or raw-secret inputs without exposing their values.
  • Include consumer and guarded-write tests plus explicitly selected runtime qualification.

Exclude generic Hermes migration, a new broker, resolver relaxation or new recovery protocols.

Rollout decision

Before implementation, establish whether unmigrated agents can retain their current route through existing owners without introducing a new compatibility mechanism.

  • If yes, choose the route deterministically before mutation and migrate only completed agents. A failed native operation must never fall back to the managed route.
  • If no, keep the three PRs independently reviewable but plan a coordinated release with no intermediate user-facing availability regression. Identify the existing release mechanism before accepting this option; do not invent a feature gate or compatibility framework solely to enable stacking.

Stacking is a review and dependency recommendation, not permission to merge an intermediate state that removes supported behavior. Do not disable Pi or extend the Hermes availability reduction by implication.

Minimum acceptance and validation

Each PR owns its complete implementation, tests and applicable guidance. Do not defer security-critical switching or cleanup as later hardening.

  • The selected sandbox's real agent reaches the selected endpoint with the selected model and valid scoped authentication.
  • Raw credentials remain inside OpenShell's credential boundary; agent configuration receives only authorized opaque references.
  • Invalid endpoints, profile collisions and ownership mismatches fail before mutation.
  • Ambiguous mutations trigger observation before another mutation; failed native requests never become success or fallback.
  • Switching preserves committed state or reports an explicit recoverable failure. Cleanup proves removal of owned resources or retains authority and reports incomplete cleanup.
  • Existing unmigrated functionality remains available under the accepted rollout decision.
  • Reuse current test owners and select evidence for distinct credential, protocol and runtime boundaries, not every agent/provider/platform permutation. Changes to the approved live-assertion budget require explicit disposition.

Resolve the trusted inference-routing controller's 75-minute limit versus the candidate's 340-minute aggregate budget only to the extent needed for valid qualification. Determine justified containment first; 340 minutes is not preapproved by this proposal. If a trusted-main prerequisite PR is unavoidable, accept that narrow dependency separately. Preserve credential isolation, cleanup time and individual failure deadlines.

No separate parity project or broad qualification framework is needed. Track completion in this issue and #12558; keep all required exact-commit CI, reviews and runtime evidence with the owning PR.

Dependencies, exclusions and completion

Coordinate shared native-provider work with #12886 and #12889. Inspect #12934's OpenClaw handle lifecycle where relevant without treating NVIDIA evidence as local-provider proof. Leave profile-import verification to #12940 and Dockerfile image handoff to #12942.

Exclude the OpenShell dependency upgrade, new supported combinations, GPU/runtime ownership changes, automatic migration of existing sandboxes, broad retries and unrelated cleanup. Retiring the managed route remains Slice 5 and stays blocked until every existing supported selection has a qualified native path.

Keep #12777 paused as reusable implementation/evidence until the maintainer selects a plan and approves an extraction map. Do not close, discard, force-push or mechanically split its history as part of this issue.

Activity

  1. rsliter commented on Oct 10, 2026

    @rsliter
    CollaboratorAuthor

    Decision: Accept the three-PR delivery plan in this issue for the accepted native-inference outcome in #12558.

    Reason: Preserve current local-inference availability while giving each actual agent credential consumer a complete, reviewable migration. Placement: core onboarding, inference selection, native-provider lifecycle, agent configuration, status, and owned cleanup. Accountable maintainer: @rsliter.

    Rollout decision for PR 1: select the route before any provider or gateway mutation. OpenClaw and DCode use sandbox-attached native-local providers. Pi and Hermes retain their current shared route until their own accepted and qualified slices. A failed native operation must fail visibly and must never fall back to the shared route. If existing owners cannot preserve unmigrated behavior without a new compatibility mechanism, stop and return for a coordinated-release decision before publishing PR 1.

    PR 1 extraction boundary: start from current main. Reuse only #12777's OpenClaw/DCode local profile, attachment and ownership, gateway prerequisites, credential consumers, switching, restart/rebuild, status, cleanup, focused tests, and owning guidance. Exclude Pi/Hermes native implementation, managed-route retirement, new providers or platforms, dependency changes, and optional refactors. Keep #12777 intact as a reference.

    Validation: prove both real agent requests reach their selected endpoint and model; prove sibling isolation with real OpenShell; preserve unmigrated-agent selections with focused tests; test invalid input, credential identity, ambiguous mutation, failed switching, and owned cleanup. Reuse existing E2E owners and resolve the trusted controller timeout mismatch with justified containment. Do not treat lower-level or configuration-only evidence as native agent qualification.

  2. added
    area: local-models
    area: providers
    integration: dcode
    integration: hermes
    integration: openclaw
    provider: ollama
    provider: vllm
    on Oct 13, 2026
  3. added theissue type on Oct 13, 2026
  4. rsliter commented on Oct 14, 2026

    @rsliter
    CollaboratorAuthor

    Decision: Accept the amendment to four agent-complete PR slices for the native-local outcome in #12558. This supersedes the three-PR delivery order recorded above; it does not approve or close PR #12977.

    Reason: PR #12977 exposed distinct Deep Agents Code and OpenClaw credential and lifecycle consumers. Deep Agents Code has no runtime inference set path, so delivering it first yields the smallest complete agent outcome while preserving existing availability.

    Delivery order: (1) Deep Agents Code in #13197; (2) OpenClaw, including live switching and gateway credential behavior; (3) Pi; (4) Hermes. Each slice includes its complete onboarding, supported selection changes, restart/rebuild, status, cleanup, security controls, tests, and owning guidance. Later slices reuse only proven shared provider behavior. Do not publish a shared infrastructure-only slice.

    Rollout: Select the route before provider or gateway mutation. In Slice 1, new Deep Agents Code local selections use sandbox-attached native providers. OpenClaw, Pi, and Hermes retain their current shared route until their own accepted and qualified slices. Local NVIDIA NIM retains its accepted shared route under #13116. A failed native operation fails visibly and never falls back to the shared route. Existing Deep Agents Code local sandboxes without native attachments stop before unsafe resume or rebuild; owners use the recorded manual backup and fresh recreation path, which can entail downtime. No automatic migration is included.

    Placement: Core onboarding, inference selection, provider profile and attachment lifecycle, Deep Agents Code runtime configuration, state/readback, status, and owned cleanup. Accountable maintainer: @rsliter.

    Validation for Slice 1: Prove a real Deep Agents Code request to the selected endpoint and model with representative authenticated and credentialless profiles. Prove owning-sandbox success and sibling denial through real OpenShell. Cover invalid input, profile collision, ownership and persisted-attachment validation, ambiguous mutation observation, failed selection changes, restart/rebuild, legacy preflight, credential redaction, and owned cleanup with focused tests and existing E2E owners. Preserve every unmigrated selection. Resolve trusted E2E timing and credential constraints without broadening the product slice.

    Exclusions: OpenClaw, Pi, and Hermes native implementation in Slice 1; native NIM support; managed-route retirement; provider lifecycle consolidation; new providers or platforms; OpenShell dependency changes; GPU/runtime ownership changes; and broad retries. If existing owners cannot preserve unmigrated routes without a new compatibility mechanism, stop for a coordinated-release decision.

  5. rsliter commented on Oct 15, 2026

    @rsliter
    CollaboratorAuthor

    Decision: Accept the combined Deep Agents Code and OpenClaw scope in PR #12977 for the native-local outcome in #12558. This supersedes the previous four-slice amendment where it excluded OpenClaw from the first slice and withheld approval of #12977. The accepted scope of #12977 includes both agents together.

    Reason: Qualify the existing combined implementation as one reviewable native-local route and attachment contract, while proving each agent's distinct credential and lifecycle consumer. Shared implementation or tests do not substitute for real-agent evidence for either agent.

    Placement: Core onboarding, inference selection, native-local profiles and provider attachments, OpenClaw live inference switching and gateway credential handling, Deep Agents Code runtime configuration, state/readback, status and health, restart/rebuild, and owned cleanup. Accountable maintainer: @rsliter.

    Rollout: Select the route before provider or gateway mutation. Supported OpenClaw and Deep Agents Code local selections use sandbox-attached native providers. Pi, Hermes, and Local NVIDIA NIM retain their accepted shared routes. Failed native operations fail visibly and never fall back to the shared route. Preserve the manual backup and fresh recreation boundary for legacy sandboxes that cannot safely resume or rebuild; automatic migration is excluded. If preserving unmigrated routes requires a new compatibility mechanism, return for a coordinated-release decision.

    Validation: Prove real OpenClaw and Deep Agents Code requests reach each selected endpoint and model, including representative authenticated and credentialless flows. Prove owning-sandbox success and sibling denial through real OpenShell, credential custody and redaction, invalid-input and profile-collision rejection before mutation, attachment ownership and identity, observation after ambiguous mutations, committed-state preservation after failed selection changes, OpenClaw switching and gateway credential behavior, restart/rebuild, legacy preflight, and owned cleanup. Preserve unmigrated-agent and NIM behavior. Use focused source tests and existing E2E owners, and evaluate CI, Images, Advisor findings, and applicable E2E recommendations for the final exact commit. Configuration-only and lower-level HTTP probes are not real-agent qualification.

    Exclusions remain: Pi/Hermes native migration, native NIM support and NIM storage repair, managed-route retirement, provider lifecycle consolidation already deferred to Slice 5, new providers or platforms, dependency upgrades, GPU/runtime ownership changes, and broad retries. The staging Brev Launchable credential-exposure waiver remains in place; no unsafe staging run is authorized.

    This scope approval does not waive validation or review requirements. Classify the remaining Advisor findings, merge conflicts, and E2E failures before repair or dispatch. It does not close or change the disposition of #13197 or any competing implementation.

  6. rsliter commented on Oct 16, 2026

    @rsliter
    CollaboratorAuthor

    Issue #12975: Host-local native inference delivery after #13203

    Requested outcome, confirmed scope, and current owner

    Related work and delivery constraints

    Current state and decisions

    • Existing structure to extend: merged DCode attachment/profile/ownership lifecycle and the existing OpenClaw configuration, gateway restart, switch, rebuild, status, and cleanup owners.
    • Candidate inspected: feat(inference): attach OpenClaw local providers #13293 commit 88afa697e3a22edb01ef6a90453d770fe83a901a against main 876e20ef733444b3a9c141242c84e1f16b6a7722.
    • Candidate scope: new OpenClaw Ollama, standalone vLLM, and llama.cpp selections; same-provider model changes; leaving the native route; current gateway credentials; restart/rebuild; status and owned cleanup. Custom compatible endpoints and Local NIM stay shared in this candidate.
    • Unresolved product decision: confirm the treatment of qualifying local compatible endpoints before declaring the entire OpenClaw migration complete. The current PR excludes them. Preserve their existing availability and do not count them as native-qualified for route retirement.
    • Operation and failure class: sandbox-scoped provider selection and credential activation across initial creation, live switching, recreation, and cleanup.
    • Sibling paths checked: DCode native-local remains enabled; Pi/Hermes and NIM remain unchanged by this slice; hosted OpenClaw must retain its independent provider/credential path; published legacy shared rows need explicit supported switching and safe resume/rebuild behavior.
    • Sensitive-workflow states: invalid input or ownership fails before mutation; explicit mutation failure preserves committed state; transport ambiguity requires readback before another mutation; failed activation must not publish success; cleanup verifies identity and absence or retains authority with an actionable failure. No broad retries.
    • Security boundaries: OpenShell holds upstream credentials for the provider lifetime; the selected sandbox receives only an issued opaque reference. Detachment/deletion removes owned access. Logs, arguments, registry, backups, exports, and artifacts must not contain raw upstream credentials. Preserve endpoint/executable restrictions, SSRF checks, profile collision refusal, and sibling denial. No dependency, platform, or cryptographic changes are planned.

    Observable acceptance examples

    • Allowed: fresh OpenClaw selects an authenticated or credentialless local profile -> its real agent reaches the selected endpoint/model through its owned attachment -> existing runtime test owner plus focused configuration tests.
    • Allowed: live model switch, route change, and restart/rebuild -> correct model and current issued reference, responsive gateway, unchanged sibling sandbox -> existing OpenClaw switching and lifecycle owners.
    • Denied: malformed endpoint, conflicting profile, wrong sandbox/gateway identity, missing or stale reference -> fail before unsafe mutation and expose no raw credential -> focused source/consumer tests; real OpenShell sibling denial for enforcement.
    • Ambiguous: create/attach/retire loses its transport answer -> observe actual identity and attachment before another write -> adapter/selection regressions.
    • Failure or recovery: failed activation or source backup -> committed route/source remains valid or explicit retained recovery state -> existing switch/rebuild tests. Legacy unsafe resume/rebuild -> backup and explicit fresh recreation guidance, without automatic migration.
    • Cleanup: retire only the selected sandbox's proven resources -> confirmed absence, or retained authority and reported incomplete cleanup -> deterministic ownership tests and runtime cleanup evidence.

    Capability slices

    Slice 1: Complete the existing OpenClaw native-local outcome

    • Outcome: deliver feat(inference): attach OpenClaw local providers #13293 as one agent-complete change on current main, after reconciling its scope and evidence.
    • Acceptance evidence: CI, CodeQL, Images activation/cleanup, CodeRabbit, all nine Advisor findings/recommendations, real OpenClaw agent authentication, sibling isolation, switching, and lifecycle evidence for the final commit.
    • Dependencies and decisions: retain DCode behavior; reconcile Pi/Hermes bases; settle the compatible-endpoint boundary and any current assertion-growth decision. A historical growth approval does not authorize a different digest.
    • Test plan: first use the existing source tests for contract/configuration/switch rollback/identity and rebuild behavior. Reuse inference-routing, openclaw-inference-switch, and the existing real-agent llama.cpp owner where applicable. Collect current Advisor selections before dispatch. Do not add selectors, assertions, or GPU runs through this planning record.
    • Deferred scope: Pi/Hermes implementation, native NIM, route retirement, lifecycle consolidation, speculative recovery retries, new providers/platforms, automatic migration, and the OpenShell upgrade.

    Delivery order

    GitHub writes

  7. 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.

    The staged host-local delivery plan is superseded by the integrated upgrade in #12603. The merged DCode, OpenClaw, Pi, and Hermes slices remain historical implementation evidence; remaining per-agent compatibility and qualification follow that PR.

    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.

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: local-modelsarea: providersintegration: dcodeintegration: hermesintegration: openclawprovider: ollamaprovider: vllm

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions