Commit Graph
2 Commits
Author SHA1 Message Date
Davanum SrinivasandClaude Fable 5.1 4409efc29b build: move the Go module paths and repository URLs to dsx-ai-factory/nvke (#1449)
The repository was renamed from dsx-ai-factory/nke to dsx-ai-factory/nvke
on 2026-10-10. Its id is unchanged, so guards, rulesets, environments and
the OIDC subject carried over, and GitHub redirects the old URLs. The
tree still named the old repository where the name is a contract rather
than a URL: the module lines of the 12 Go modules and about 1,700 import
lines, the proto go_package (embedded in node_agent.pb.go, regenerated
here), both THIRD_PARTY_NOTICES.md files (regenerated), the lint
local-prefix and depguard entries, ldflags, the go-licenses ignore lists,
the documented repository URLs and gh commands, and the
ghcr.io/dsx-ai-factory/nke image paths in workflows, the chart default
and the e2e defaults.

Only the organisation and repository segments change. Directories,
identifiers, binary, image, chart, package, label, namespace and
environment variable names, the CODEOWNERS team slugs and CHANGELOG.md
stay as they are.

Closes #1448

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-10 16:03:26 -04:00
Terry Howe c3984a2e4e feat(api): gate openapi.yaml on backward compatibility (#1249)
* feat(api): gate openapi.yaml on backward compatibility

`generate-check` proves the committed *.gen.go match api/openapi.yaml. It says
nothing about whether the specification change itself is safe. A removed field,
a narrowed type or a newly required property regenerates perfectly -- the
generated code matches the new spec exactly -- and breaks every client already
built against the old one. Regeneration correctness and compatibility are
different questions, and only the first was being asked.

Adds `make -C controller api-compat-check`, a member of the merge gate. It
compares the working-tree specification against the newest published
controller/api version tag and fails on any breaking change that is not waived.

The baseline is the tag, not the merge base. controller-api-tag.yml publishes
controller/api/vX.Y.Z on every main commit that touches the directory, and that
tag is what a consumer pins. It is also only ever a patch bump, so no tag has
ever signalled a break -- which is why the gate has to hold the contract that
the version number does not.

Breaking changes are waived one at a time in
controller/api/openapi-compat-waivers.yaml, each with a reason, a named person
and a review date, and a waiver that matches nothing fails the gate. That is the
rule GOVULNCHECK_WAIVED is already held to: an entry cannot outlive its reason.
Waivers match on change kind, JSONPath and property rather than on the engine's
changeHash, which covers the shape of a change and not its location -- in one
sample diff 89 of 91 breaking changes shared five hashes.

It fails closed throughout. A missing baseline (a shallow checkout has no tags),
an unparsable specification, an empty or unrecognized engine report, and a
missing waiver file are all errors. A gate that could not run has not found the
change compatible, and the workflow checks out with fetch-depth: 0 so the usual
cause cannot arise silently.

The change engine is pb33f/openapi-changes, pinned as OPENAPI_CHANGES_VERSION
and run with `go run` so nothing is installed. It is from the same author as
vacuum, over the same libopenapi parser already lints this specification, so the
gate and the linter agree on what the document says. Its breaking/additive
classification is used as-is; what this repository owns is what happens next.

Documents the versioning and deprecation behaviour in controller/api/README.md:
there is one unversioned /api surface, the Go module tag is the pinnable
artifact, and deprecation is additive while removal is the breaking step that
needs a waiver. Also separates the authored files in that directory from the
generated ones.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* feat(api): let a sunset deprecation discharge a removal

The gate landed with one route past it: every breaking change is waived,
including a removal. That makes the patient route -- announce it, wait,
then remove -- cost a reviewer exactly what the abrupt one costs, which
is the wrong incentive for the one operation a compatibility gate exists
to encourage.

So removal gets a second route. An operation marked `deprecated: true`,
carrying an `x-sunset` date, whose date has passed, may now be removed
with no waiver at all: the promise was made, kept and discharged, and
there is nothing left for anyone to sign. Removing it early, or without
having deprecated it, is unchanged -- still breaking, still waivable.

The price of offering that route is that the deprecation has to be real,
which is what the new rules enforce. `deprecated: true` with no
`x-sunset`, an `x-sunset` that is not a YYYY-MM-DD date, a date less
than 180 days out, and an `x-sunset` on an operation that is not marked
deprecated all fail. Each is a deprecation that announces nothing a
consumer can act on.

Every rule is scoped to what changed, never to the state of the
document. An operation whose deprecation fields are identical on both
sides is not examined at all, however they are set. A state rule would
fail a pull request that never touched the specification the moment some
older deprecation drifted out of compliance, and a gate that fails
unrelated work is a gate someone turns off.

The findings are plain `change` values, so everything already built for
the engine's findings works on them: the waiver file matches them the
same way, the failure message prints the same pasteable stub, and a
waiver for one goes stale the same way. They are deliberately not
emitted for removals, which the engine already reports -- two findings
for one edit would mean two waivers for one decision.

Discharge covers operations only. The engine reports a removed operation
as a single change naming it, which is what makes "this exact removal
was announced" decidable; a removed property or parameter is reported in
a shape where it is not. The two removal shapes were confirmed against
the engine rather than assumed.

--report now resolves both specifications too. It replaces the engine,
not the documents, and a mode that skipped them would be a mode in which
a removal looked sanctioned because nothing had checked.

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-08 07:33:09 -06:00