Skip to content

refactor(config)!: spell networkCIDR one way in service placement - #13636

Merged
cv merged 3 commits into
v1from
refactor/13080-network-cidr-spelling
Oct 23, 2026
Merged

cv merged 3 commits into
v1from
refactor/13080-network-cidr-spelling

Conversation

@gaveezy

@gaveezy gaveezy commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Failure

The gateway spells its Docker subnet networkCIDR, but a placed model service spelled the same value networkCidr: ServicePlacement took serde's camelCase. Authors had to remember which object used which spelling. #13080 lists this as shape change 5.

Decision

spec.services.<name>.placement.networkCIDR replaces networkCidr, matching the gateway, the guides, and most examples. There is no alias, so networkCidr is now an unknown field.

flowchart LR
    Y["Authored YAML<br/>gateway.networkCIDR<br/>services.NAME.placement.networkCIDR"] --> P["Parser and JSON Schema<br/>networkCidr is unknown"]
    P --> D["Document"]
    D --> I["Saved intent<br/>old networkCidr no longer loads"]
    D --> C["compile"] --> S["Managed service spec<br/>network_cidr, unchanged"]
    S --> R["Provider input and state<br/>unchanged"]
Loading
  • Provider inputs and provider state don't change: the SDK compiles placement into the managed service spec's own network_cidr.
  • Saved deployment intent holds the authored document, so intent saved with networkCidr no longer loads. v1 does not carry earlier formats.
  • The three examples with a placed service, the onboarding label, and the tests that author a placement use the new spelling. The schema and the configuration reference are regenerated.

Validation

  • New test config_schema::service_placement_spells_network_cidr_like_the_managed_gateway failed before the rename, because ServicePlacement had only networkCidr. It checks that the parser and the JSON Schema both accept networkCIDR and reject networkCidr, and that a parsed document writes networkCIDR back.
  • A temporary test showed that a saved document with networkCidr fails to deserialize: unknown field `networkCidr`, expected `engine` or `networkCIDR` .
  • cargo ci --full passed on v1 be5f3800c (linux_arm64): 1,610 unit and 156 lifecycle tests, within budget.

Part of #13080.

The gateway spells its Docker subnet `networkCIDR`, but a placed model
service spelled the same value `networkCidr`, from serde's camelCase on
ServicePlacement. #13080 lists this as shape change 5.

`spec.services.<name>.placement.networkCIDR` replaces `networkCidr`,
matching the gateway, the guides, and most examples. There is no alias,
so `networkCidr` is now an unknown field.

The SDK compiles placement into the managed service spec's own
`network_cidr`, so provider inputs and provider state don't change.
Saved deployment intent holds the authored document, so intent saved
with `networkCidr` no longer loads; v1 does not carry earlier formats.

Update the three examples, the onboarding label, and the tests that
author a placement, and regenerate the schema and the reference.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

@wscurran wscurran added area: architecture Architecture, design debt, major refactors, or maintainability bug-fix PR fixes a bug or regression labels Oct 22, 2026
@cv
cv enabled auto-merge (squash) October 23, 2026 08:08
@cv
cv merged commit a3fbd35 into v1 Oct 23, 2026
52 checks passed
@cv
cv deleted the refactor/13080-network-cidr-spelling branch October 23, 2026 08:19
@wscurran wscurran added the v1 NemoClaw v1 branch label Oct 27, 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 bug-fix PR fixes a bug or regression v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants