Skip to content

Move DV validators under apivalidations. - #2007

Merged
Luiz Oliveira (laoj2) merged 1 commit into
agent-substrate:mainfrom
juli4n:apivalidations
Sep 30, 2026
Merged

Luiz Oliveira (laoj2) merged 1 commit into
agent-substrate:mainfrom
juli4n:apivalidations

Conversation

@juli4n

Copy link
Copy Markdown
Collaborator

Both Control and WorkerService APIs need to access them so moving it under a shared internal package.

This also aligns ate-apiserver with how atelet uses DV as serves as a prefactor for upcoming changes to the ServiceImpl type.

Fixes #1823

Both `Control` and `WorkerService` APIs need to access them so moving it
under a shared internal package.

This also aligns ate-apiserver with how atelet uses DV as serves
as a prefactor for upcoming changes to the `ServiceImpl` type.
@juli4n
Julian Gutierrez Oschmann (juli4n) marked this pull request as ready for review September 30, 2026 17:25
@bowei Bowei Du (bowei) added area/api User-facing API changes area/api-machinery kind/cleanup Small fixes that are not bugs, for example a typo in a code comment labels Sep 30, 2026
@laoj2
Luiz Oliveira (laoj2) added this pull request to the merge queue Sep 30, 2026
Merged via the queue into agent-substrate:main with commit 262af57 Sep 30, 2026
10 checks passed
Scott Funkenhauser (sfunkenhauser) pushed a commit to sfunkenhauser/substrate that referenced this pull request Oct 1, 2026
…#2023)

Follow up on agent-substrate#2007

This switches the remaining two `WorkerService` RPCs
(`RequestActorSuspend` and `SetWorkerCapacity`) to declarative
validation via `cmd/ateapi/internal/apivalidation`, completing
declarative request validation across `ateapi`.

Removes the hand-written checks in `workerservice` (`validateActorRef`,
`validateReportedCapacity`) and the now-unused
`resources.ValidateGlobalObjectRef`.


- [x] Tests pass
- [x] Appropriate changes to documentation are included in the PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api User-facing API changes area/api-machinery kind/cleanup Small fixes that are not bugs, for example a typo in a code comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move ateapi DV out of the controlapi package

4 participants