feat(cli): expose per-app replica identities for stateful apps#244
Draft
feat(cli): expose per-app replica identities for stateful apps#244
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is a first, repo-scoped slice for #243.
It does not add new backend rollout semantics. Instead it exposes the per-replica shape that the current public API already returns, so operators can discover replica identity and target one replica intentionally from the CLI.
Included
phala cvms list --app <app_id>to list all CVMs for one app via the existing app-to-CVM APIvm_uuidandinstance_idin CVM list rows / JSON outputVM UUIDandInstance IDinphala cvms getDeferred
These appear to require backend/internal cloud-service work outside this repository:
update_policymax_unavailable, surge semantics, readiness gates)Open question for maintainers
dstack already persists instance identity on disk. Is that identity (
instance_id, disk attachment / preserved-state metadata) considered a stable first-class public contract that future provider/app-instance APIs should build on?Validation
bun run --cwd js testbun run --cwd cli type-checkbun dist/index.js cvms list --helpbun dist/index.js cvms get --helpRefs #243