Skip to content

fix(config): use one portable pattern anchor and accept uppercase metadata.uid - #13701

Merged
cv merged 5 commits into
v1from
fix/13080-schema-patterns
Oct 26, 2026
Merged

cv merged 5 commits into
v1from
fix/13080-schema-patterns

Conversation

@gaveezy

@gaveezy gaveezy commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Failure

Two schema defects that #13080's review asked to settle: six patterns end in $(?![\s\S]), which RE2 validators such as Go tools can't compile, and metadata.uid rejects the uppercase UUIDs that uuidgen prints on macOS.

Decision

flowchart LR
    Y["Authored YAML"] --> S["Input schema"]
    S -->|"patterns end in $,<br/>no lookaround"| P["ECMA, RE2 and Rust<br/>validators compile every pattern"]
    S -->|"uid in either case"| D["defaults() stores<br/>the uid lowercase"]
    D --> O["Owners, names and subnet<br/>derive from one uid"]
Loading
  • Anchor: patterns end in $, with no lookaround and no \u escapes. In ECMA-262 and the SDK's Rust validator, $ ends the input, so the SDK still rejects a trailing newline. Python's re lets $ match before a final newline even when the character classes exclude newlines (^[^\n]+$ accepts "abc\n"); only a lookahead stops that, and RE2 can't compile one.
  • uid: either case is accepted, as RFC 4122 allows. defaults() lowercases it before owners, names and the default subnet derive from it, so one deployment keeps one identity; the normalized schema still requires lowercase.

Validation

  • New tests: every input-schema pattern compiles under RE2's syntax limits without \u, and an uppercase uid parses to the same document and workspace as the lowercase one. Both failed before the fix. A third keeps a trailing newline rejected for the six fields.
  • cargo ci --full passed with v1 4f1c8db72 merged in (1,689 unit, 156 lifecycle tests). After dropping the image-reference grammar, cargo ci test passed (1,688). Python isn't in the repo's test toolchain; its $ behavior was checked by hand.

Part of #13080.

gaveezy and others added 2 commits October 22, 2026 16:01
…D rules

## Failure

#13080 lists three pattern defects in the configuration schema:

- Six patterns ended in `$(?![\s\S])`, which RE2-based validators such as
  Go tools cannot compile, and two used `\u` escapes that RE2 lacks. The
  other patterns end in a plain `$`.
- The image-reference pattern accepted uppercase repository paths and
  empty path components, which registries reject only at pull time.
- `metadata.uid` accepted only lowercase hex, but the get-started guide
  runs `uuidgen`, which prints uppercase on macOS.

## Decision

- One pattern rule: use syntax that ECMA-262 and RE2 share. Patterns end
  with `$`, with no lookaround and no `\u` escapes. The SDK's validator
  treats `$` as the end of input, so the six fields still reject a
  trailing newline. Some Python, Java, and .NET validators let `$` match
  before a final newline; the contributing guide says so.
- Image references follow the registry reference grammar: an optional
  registry host that has a dot or a port or is `localhost`, lowercase path
  components joined by `.`, `_`, `__`, or dashes, an optional tag, and the
  SHA-256 digest.
- `metadata.uid` accepts either case in authored input, as RFC 4122
  allows. `Document::defaults` lowercases it first, because owners,
  names, and the default subnet derive from it. The normalized schema
  still requires lowercase, so a value built in Rust is checked after
  defaults.

## Validation

- Three new tests in `config_schema` failed before the change: every
  input-schema pattern compiles with the regex crate (RE2's syntax limits)
  and has no `\u` escape; image references are accepted or rejected as
  registries do, by both the parser and the JSON Schema; and an uppercase
  `metadata.uid` parses to the same lowercase document and workspace as the
  lowercase one, while a Rust-built uppercase value fails validation until
  defaults run.
- A fourth test, which already passed, checks that a trailing newline is
  still rejected for the fields that used the lookahead.
- `cargo ci --full` passed on v1 `be5f3800c` (linux_arm64): 1,613 unit and
  156 lifecycle tests.

Part of #13080.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bring the branch up to date with v1 df88a97, including #13636, which renamed ServicePlacement.networkCidr to networkCIDR. Git merged every file without conflicts, and the regenerated schema and reference match the merged files.

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

Copy link
Copy Markdown
Contributor

@gaveezy gaveezy closed this Oct 25, 2026
Bring the branch up to date with v1 4f1c8db, which now keys
inference providers (#13703) and sandboxes (#13705) by name. Git merged
every file without conflicts.

- config_schema.rs: the image-reference test set a sandbox image by
  list index; it now uses the openclaw example's `assistant` key.

The regenerated schema and reference match the merged files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@gaveezy gaveezy reopened this Oct 26, 2026
gaveezy and others added 2 commits October 26, 2026 08:50
Reopening the pull request started checks for both the previous head and
this branch's merge with v1; the older run cancelled the newer one in
their shared concurrency group. This empty commit starts the checks
for the current code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The registry reference grammar copied Docker's reference format, which
the engine and registry already enforce when they pull an image.
docs/design/scope.md asks NemoClaw to rely on that component and check
only what it needs to proceed; the existing pattern already requires
the SHA-256 digest NemoClaw needs. This change now covers only the two
defects #13080's review asked to settle: the pattern anchor and
`metadata.uid` case.

Restore the v1 pattern, drop its test, and regenerate the schema and
the reference.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@gaveezy gaveezy changed the title fix(config): make schema patterns portable and match registry and UUID rules fix(config): use one portable pattern anchor and accept uppercase metadata.uid Oct 26, 2026
@cv
cv merged commit 3102084 into v1 Oct 26, 2026
57 checks passed
@cv
cv deleted the fix/13080-schema-patterns branch October 26, 2026 11:34
@wscurran wscurran added v1 NemoClaw v1 branch bug-fix PR fixes a bug or regression area: docs Documentation, examples, guides, or docs build labels Oct 27, 2026
cv added a commit that referenced this pull request Nov 11, 2026
…ms (#14413)

The release notes now list every user-visible change on `v1` since the
`v0.1.0-rc9` tag, including the breaking ones, and four example pages
drop claims that later changes made false.

## Problem

`docs/about/release-notes.md` listed three breaking changes and none of
the features, fixes, and onboarding changes that reached `v1` after
`v0.1.0-rc9`; it didn't name the configuration shapes the parser now
rejects or the intent record version `v0.1.0-rc9` writes.
Some example claims went stale:

- `examples/spark/README.md` said the pinned OpenShell has the Podman
TLS initialization blocker, ai-openshell/openshell#3427; its fix merged before
OpenShell 0.1.0, and `v1` pins 0.1.7.
- `examples/station/README.md` and `examples/gtc-dc/README.md` required
exactly one visible GPU on the host; since #13929,
`container.gpuDevices` lets a service on a host with more GPUs request
one.
- `examples/hcl/travel-team` said Fabric's Deep Agents adapter can't
turn reasoning off, NVIDIA/NeMo-Fabric#433; NVIDIA/NeMo-Fabric#439 fixed
that, and the pinned catalog's Deep Agents `reasoning_effort` accepts
`none`.
- The travel team cited #13313 for the booking key its service doesn't
receive, but #13313 closed when `openshell_api` landed.

## Change

- `docs/about/release-notes.md` gains "Changes Since v0.1.0-rc9",
grouped by area, from the commits in `v0.1.0-rc9..origin/v1`; where a
later commit changed an earlier one, the entry describes the current
code, and changes added and removed after the tag aren't listed:
- Agents and interfaces: #14037, #14038, #14269, #13981, #14024, #14186,
#14052, #14385, #13971, #13858, #13947, #14039, #14042, #14044, #14343.
- Inference: #13929, #14391, #14396, #14398, #14400, #13963, #13912,
#13964, #14388, #14390, #14397.
- Gateways and Kubernetes: #13909, #13970, #13922 (an existing
namespace, refused at plan by #13756, is now bound; cluster-wide reads
dropped), #14014, #14169, #13921.
- Plan, apply, and diagnostics: #14224, #13756, #14141, #14133, #14135,
#13775, #13744, #13701.
- Onboarding: #13693, #13695, #13741, #13757, #13851, #13978, #14228,
#14233, #14334, #14336.
- Examples and builds: #14166, #14184, #14188, #14191, #14192, #14200,
#13889, #14267, #14312, #14315, #14355, b30e9b4, #13781, #13813,
#14246, and the pins in `versions.json` and `image/fabric/Dockerfile`.
- Its breaking changes since the tag:
- the intent record moving from 15, which `v0.1.0-rc9` writes, through
16 (#14266), 17 (#14343), 18 (#13929), 19 (#14391) and 20 (#14394);
  - name-keyed `sandboxes` and `inferenceProviders` (#13703, #13705);
- a recipe `compatibility.gpu` outside every hardware profile (#13912);
- model tuning the adapter doesn't accept (#14111), and Hermes's
`max_tokens` losing its default (#14296);
  - `skills.paths` resolution (#14296);
  - endpoint and `networkCIDR` validation (#13847, #14081);
- the HCL `gateway_values` attribute (#14014), and Kubernetes ownership
receipts from before #13922 and #14014.
  The two earlier items stay, under their own heading.
- `examples/spark/README.md` replaces the closed OpenShell#3427 blocker
with the Podman and remote-model limits in `docs/resources/limits.md`.
- `examples/station/README.md` and `examples/gtc-dc/README.md` require
one GPU visible in the model container, and point to
`container.gpuDevices` for a host with more.
- `examples/hcl/travel-team/README.md` and `WALKTHROUGH.md` drop the
NeMo-Fabric#433 limitation, and the travel team's booking-key statements
link #14417 instead of #13313.

Not listed, because both changes landed after the tag: Deep Agents Code
(#14043, #14250), `compatibility.gpuCount` (#14391, #14394), and the
"Creating infrastructure state" progress step (#14169, #14248).

Checked and left unchanged: the root `README.md`,
`crates/nemoclaw-onboarding/README.md`,
`crates/nemoclaw-cli/assets/README.md`, `internal-docs/README.md`, the
other example READMEs, and every example YAML header comment. The GPU
autoscaling README and `load.sh` read the JSON fields `OperationResult`
serializes, and ai-openshell/openshell#4287 is fixed only after the pinned
0.1.7. The two pre-tag release-note items still match the schema and
SDK. `docs/README.md` is left to #14412, which retires the stale field
reference snapshot it describes.

Not verified: whether Hermes sends the booking key's placeholder to MCP
servers; #14417 tracks the live check.

## Beyond CI

Each relative link and anchor in the changed files resolves to an
existing file and heading.
@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: docs Documentation, examples, guides, or docs build 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