Repository navigation
refactor(sdk): read managed-model settings through ServiceDefinition - #13105
Merged
Merged
Conversation
Move the OpenClaw and Hermes context advisory out of Deployment::run into deployment::context_advisory, which returns the warnings for a validated document. Unit tests call it directly; one test still checks that plan and apply report the same warnings before creating state or starting a mutation.
Add ServiceDefinition::context_tokens, update_policy, and model_address so the context advisory and Docker model preservation no longer match on vLLM and Ollama themselves. model_address uses each installer's own address helper, so preservation can no longer drift from the compiled resource address.
…nto refactor/sdk-context-advisory
cv
enabled auto-merge (squash)
October 13, 2026 18:46
…cessors # Conflicts: # crates/nemoclaw-sdk/src/deployment/context_advisory.rs
Contributor
|
v1 documentation preview: https://nvidia-preview-nemoclaw-v1-pr-13105.docs.buildwithfern.com/nemoclaw |
This was referenced Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
ServiceDefinitionaccessors for managed-model settings, so code outside the registry stops matching on vLLM and Ollama itself.Why
Two places matched
ServiceDefinition::Vllm(s) | Ollama(s)outsideregistry.rs:serving.context_tokens;preserve_docker_models, to readupdate_policy.preserve_docker_modelsalso rebuilt each model container's address withformat!("nemoclaw_inference_service.inference_{name}")andformat!("nemoclaw_ollama_service.{name}"). Those strings copy the installers' privateaddresshelpers. If the installers' naming changed, the update protection would stop finding the container, and nothing would report it.Change
ServiceDefinition::context_tokens,update_policy, andmodel_addressreturnNonefor an Ollama proxy.model_addresscalls the newinstallers::{vllm, ollama}::service_address, which use the installers' ownaddresshelpers.preserve_docker_modelsstill skips onlyRecreate; every other policy protects the container.Validation
cargo test -p nemoclaw-sdk --lib: 210 passed, includingdocker_model_updates_preserve_running_containers_unless_recreation_is_explicit, which finds the protected vLLM and Ollama addresses among the compiled targets.cargo cion linux_arm64: all steps passed.