Repository navigation
refactor: remove compatibility code for earlier formats - #12601
Merged
Merged
Conversation
Images advertised input_sources ["file", "stdin"] so the SDK could tell whether an image accepted stdin and fall back to staged files otherwise. The provider stopped staging files in 952a00b, so the flag only rejected images built before 28c6edf, and the SDK accepted unknown bridge fields to make room for it. Nothing has been published, so interface version 1 can change in place. The image bridge no longer reports the flag, and BridgeCapabilities rejects unknown fields again, so version 1 is one exact shape. The planner test failed first: a bridge without the flag was reported as unsupported. Validation: the sdk, authoring, provider and e2e tests pass (782). The image lint, unit and reference stages pass. A rebuilt dummy image advertises only the three fields and passes the command contract.
The build tool accepted versions.json without a nextest pin or platform list, so runtime builds could read older pin files. versions.json is the only pin file and has both; the one file without them was the runtime builder test's fixture. Both pins are now required, and cargo ci reads the nextest version directly instead of checking for it. The runtime builder test failed on the missing pin first; its fixture now includes nextest. Validation: the nemoclaw-build tests pass (43), clippy passes with and without the sdk feature, and cargo ci tools still verifies the installed tools.
The scope does not require compatibility with earlier schemas, SDK APIs, or state formats, but some code still recognized them: the provider routed the three compute kinds moved to the Docker provider to a specific error, the proxy backend did the same for its container kind, and model snapshots looked for an old completion marker. About a dozen tests checked that old shapes fail: agents lists, agent-level harness selection, the type field, inline installers, gateway management values, profile annotations, completion files, and v0 exports. The special cases are gone; those inputs now fail like any other unsupported input, as unknown fields, unknown kinds or incomplete state. The tests for them are removed, and tests that also covered current rules keep those parts. Checks of the current format stay: the state version, the runtime spec label, and gateway processes requiring layout 2. The provider and inference docs drop notes about legacy bindings and former images, and the managed fixture notes describe the current layouts. No test failed first: this removes behavior instead of adding it. Validation: cargo ci passes every step (983 tests, then 90 lifecycle tests), clippy is clean, and the docs check passes.
Contributor
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.
Summary
Removes compatibility code that v1 doesn't owe:
docs/design/scope.mdsays earlier schemas, SDK APIs and state formats needn't be supported. Three commits, separate from #12598.1.
refactor(images): drop the bridge input_sources flaginput_sources: ["file", "stdin"]so the SDK could fall back to staged files for images without stdin support. The provider stopped staging files in952a00bbc2, so the flag only rejected images built before28c6edf4b6.BridgeCapabilitiesrejects unknown fields again, which makes version 1 one exact shape.2.
refactor(build): require the nextest and platform pinsversions.jsonwithout these pins, for older pin files. Only a test fixture lacked them; it now includes nextest.3.
refactor: remove code and tests for earlier formatsinference_service,ollama_serviceandollama_proxy(now owned by the Docker provider) to a specific error;.nemoclaw-complete.jsonmarker.typefield, inline installers, gatewaymanagementvalues, old profile annotations, completion files, and v0 exports. Tests that also cover current rules keep those parts.docs/provider.mdanddocs/inference.mddrop notes about legacy bindings and former images;REFERENCE.mddescribes the current layouts.Net: 18 files in commit 3, +17/−211; the PR overall is mostly deletions.
Validation (Linux ARM64)
cargo ci: passes every step: 983 tests, then 90 lifecycle tests.Interaction with #12598
crates/nemoclaw-build, butgit merge-treemerges them without conflicts in either order.