Repository navigation
Description
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
rsliter commentedon Oct 10, 2026
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.
rsliter commentedon Oct 14, 2026
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 setpath, 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.
rsliter commentedon Oct 15, 2026
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.
feat(inference): attach Deep Agents Code local providers (#13203)
rsliter commentedon Oct 16, 2026
Issue #12975: Host-local native inference delivery after #13203
Requested outcome, confirmed scope, and current owner
src/lib/inference/native-local/,src/lib/actions/inference-set*, managed OpenClaw startup/configuration, sandbox lifecycle, and their existing tests.Related work and delivery constraints
a304c5bd67fb0badff1fd5b256dc09d1a1268e1c. Qualification remains open until the approved runtime evidence is complete.Current state and decisions
88afa697e3a22edb01ef6a90453d770fe83a901aagainst main876e20ef733444b3a9c141242c84e1f16b6a7722.Observable acceptance examples
Capability slices
Slice 1: Complete the existing OpenClaw native-local outcome
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.Delivery order
GitHub writes
feat(inference): attach OpenClaw local providers (#13293)
feat(pi): support native local inference (#13007)
fix(onboard): show native local policy fix and rerun inference on res…
fix(onboard): verify the selected native GPU inference route (#14098)
rsliter commentedon Nov 18, 2026
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.