Skip to content

refactor: remove compatibility code for earlier formats - #12601

Merged
cv merged 3 commits into
v1from
refactor/drop-legacy-support
Oct 3, 2026
Merged

cv merged 3 commits into
v1from
refactor/drop-legacy-support

Conversation

@cv

@cv cv commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Removes compatibility code that v1 doesn't owe: docs/design/scope.md says earlier schemas, SDK APIs and state formats needn't be supported. Three commits, separate from #12598.

1. refactor(images): drop the bridge input_sources flag

  • Images advertised input_sources: ["file", "stdin"] so the SDK could fall back to staged files for images without stdin support. The provider stopped staging files in 952a00bbc2, so the flag only rejected images built before 28c6edf4b6.
  • Nothing has been published, so interface version 1 changes in place. BridgeCapabilities rejects unknown fields again, which makes version 1 one exact shape.
  • Effect: images built before this commit fail at plan time and must be rebuilt.

2. refactor(build): require the nextest and platform pins

  • The build tool accepted versions.json without these pins, for older pin files. Only a test fixture lacked them; it now includes nextest.

3. refactor: remove code and tests for earlier formats

  • Production code removed:
    • the provider routed inference_service, ollama_service and ollama_proxy (now owned by the Docker provider) to a specific error;
    • the proxy backend did the same for its container kind;
    • model snapshots checked for an old .nemoclaw-complete.json marker.
  • Tests removed: about a dozen that only checked old shapes fail: agents lists, agent-level harness selection, the type field, inline installers, gateway management values, old profile annotations, completion files, and v0 exports. Tests that also cover current rules keep those parts.
  • Kept: checks of the current format: the state version, the runtime spec label, and gateway processes requiring layout 2. Old inputs still fail, as ordinary unknown fields, kinds or incomplete state.
  • Docs: docs/provider.md and docs/inference.md drop notes about legacy bindings and former images; REFERENCE.md describes the current layouts.
  • No test failed first, since this removes behaviour rather than adding it.

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.
  • Image stages: lint, unit and reference stages pass. A rebuilt dummy image advertises only the three bridge fields and passes the command contract.
  • Docs check: passes.

Interaction with #12598

  • Both PRs touch crates/nemoclaw-build, but git merge-tree merges them without conflicts in either order.

cv added 3 commits October 3, 2026 13:00
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.
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 7da9a23 into v1 Oct 3, 2026
19 checks passed
@cv
cv deleted the refactor/drop-legacy-support branch October 3, 2026 20:53
@wscurran wscurran added area: architecture Architecture, design debt, major refactors, or maintainability area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance labels Oct 6, 2026
@cv cv added the v1 NemoClaw v1 branch label Oct 12, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: architecture Architecture, design debt, major refactors, or maintainability area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants