feat(cli): describe an unsubmitted manifest with -f - #328
Draft
rogirun wants to merge 1 commit into
Draft
Conversation
rogirun
force-pushed
the
feat/cli-describe-file-mode
branch
from
September 6, 2026 12:59
a9e1563 to
c17c138
Compare
rogirun
force-pushed
the
feat/cli-describe-command
branch
2 times, most recently
from
September 7, 2026 10:43
1ec50de to
8209d30
Compare
rogirun
force-pushed
the
feat/cli-describe-file-mode
branch
from
September 7, 2026 10:43
c17c138 to
a7e281c
Compare
kli describe -f jobset.yaml answers what a workload would look like before it is submitted: the same view, built from the manifest alone, with no cluster needed. The kind comes from the manifest, so -f accepts no TYPE/NAME and says so when given one. File mode and live mode share one struct rather than growing a second shape: the structure and desired scale are real, and everything live - pods, ready counts, phase - is left empty and marked as absent. The tree reports the desired scale instead of a "0/9 ready" that would read as nine pods failing to start. The no-definition failure is emitted as a parseable object on stdout when a machine format was asked for, and stays the plain message on stderr for a reader. That case alone gets the treatment: an agent's fallback for a type Karta does not cover - inspect the object raw, or author a definition - is unlike its fallback for any other failure, so it is worth more than a distinct exit code. Refs #206 Signed-off-by: Roee Gil <roee.gil@run.ai>
rogirun
force-pushed
the
feat/cli-describe-file-mode
branch
from
September 7, 2026 12:20
a7e281c to
e93d041
Compare
rogirun
force-pushed
the
feat/cli-describe-command
branch
from
September 7, 2026 12:20
8209d30 to
3daa6b6
Compare
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.
What does this PR do?
Adds -f, building the same view from a manifest alone with no cluster and no pods. The no-definition failure is emitted as a parseable object on stdout under a machine format, because an agent's fallback there differs from its fallback for any other failure.
Part of a seven-PR stack implementing
kli describe(#206). Targetsfeat/cli-describe-command, which must merge first.Related issue(s)
Refs #206
Checklist
git commit -s)make check)🤖 Generated with Claude Code