feat(cli): workspace set-runtime and set-model commands #25
Reference in New Issue
Block a user
Delete Branch "feat/20-set-runtime-model-commands"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #24.
What
Adds
molecule workspace set-runtimeandmolecule workspace set-modelcommands, closing the CLI tooling gap for runtime/model changes (platform-tooling#2056).Changes
set-runtime: switches a workspace's runtime via the CP admin endpoint and validates the new runtime/model pair against the provider registry.set-model: updates the workspace's registered model and validates compatibility with the current runtime.internal/clienthttptest coverage andinternal/cmdvalidation tests included.Test plan
go test ./...green.--helpsmoke test for both new subcommands.🤖 Generated with Claude Code
COMMENT — this PR has an EMPTY diff against
main; its content already landed. Nothing to approve. Recommend close-as-superseded (or rebuild the branch if further work was intended). I did not post APPROVE/REQUEST_CHANGES because there is no delta to review.Evidence:
changed_files: 0,additions: 0,deletions: 0;GET /compare/main...f484772b→total_commits: 0,files: 0.f484772bis the already-merged #21 commit — its message isfix(cli): fail-closed on offered-models transient errors (#21) … CR2 RC 11957.main'sinternal/cmd/workspace_runtime_model.go:set-runtime(Use: "set-runtime <workspace-id> <runtime>"),set-model(Use: "set-model <workspace-id> <model>"), andrequireModelCompatibleWithRuntimewith the fail-closed guard.On the 5 scrutiny points — answered against the code that's actually in
main(since that's the effective state):requireModelCompatibleWithRuntimereturns nil ONLY forerrors.Is(err, client.ErrRuntimeNotInRegistry); every otherListOfferedModelserror (transient/registry-load) falls through to fail-closed reject. This is exactly the #21 fix (my RC 11957 → APPROVE 11960), intact.3–4. Clear errors + reject/allow tests are present in
main(the #21 merge).Action for the author/driver: close #25 as superseded by #21, OR if it was meant to ADD commands beyond #21, the branch needs to be rebased/rebuilt to actually carry that new work (right now it carries none vs
main). Happy to review the real delta once it exists.— CR2
Closed as superseded by #21 — the set-runtime + set-model commands and fail-closed compat guard are already in main. This PR had an empty diff vs main.
Pull request closed