Repository navigation
orbit run readiness text shows only a reason code for most waits and hides the next step that --json carries - #9789
Merged
Conversation
orbit run readiness text shows only a reason code for most waits and hides the next step that --json carries
Updated `crates/orbit-cli/src/command/run/readiness.rs` (`readiness_lines`) so that any waiting reason outside the existing allowlist whose JSON row contains a non-empty `detail` appends `: see --json for detail` instead of rendering as a bare snake_case reason code. Reasons in the allowlist continue to render their detail inline as before. Added regression tests in `crates/orbit-cli/tests/workspace/workspace_ship_mode.rs` verifying that `orbit run readiness` text output (both piped and with explicit task ID) contains `{plain}: waiting (pr_forge_remote_missing): see --json for detail`.
Orbit-Task: ORB-25221
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.
Task
ORB-25221 — orbit run readiness text shows only a reason code for most waits and hides the next step that --json carries
Description
Found by the CLI/MCP UX review (ORB-25215).
Reproduction
Scratch workspace with no Git remote (PR ship mode) and one backlog task:
Actual:
orbit run readiness --jsoncarries the actionable text for the same task:The same holds on the live store (read-only):
orbit run readinessprintsORB-23862: waiting (no_drain_tag) cpu-lightwhile the JSON row has a non-emptydetail. Passing explicit IDs (orbit run readiness <id>) does not change it, and the text output gives no pointer to--json.Cause
readiness_lines(crates/orbit-cli/src/command/run/readiness.rs:207-307) appendsdetailonly for an allowlist of ten reasons (host_os_mismatch, host_labels_missing, browser_kit_missing, native_os_required, unverified_review_finding, local_route_before_pr/landing, provider_limit, awaiting_footprint, awaiting_exclusive_slot); the comment says "other long repair instructions stay in JSON". Every other reason that has adetail(pr_forge_remote_missing, no_drain_tag, not_backlog, ...) renders as a bare snake_case code.Expected
An operator reading the text output can tell what to do next for every waiting task with a recorded detail, without guessing that
--jsonholds it: either a short next step per row (or per distinct reason, so repeated rows stay compact), or an explicit pointer to the detail (--json, ororbit task show <id>). Keep the output compact; the fix is not to paste every long repair paragraph inline.Impact
run readinessis the operator's "why isn't this starting?" command. For workspace-level blockers like a missing forge remote, the terminal answer is a code with no remedy, a dead end unless the operator already knows the JSON shape.Acceptance Criteria
orbit run readinesstext output (TTY and piped) shows a next step or an explicit pointer to it for a task waiting on pr_forge_remote_missing.detailis no longer rendered as a bare reason code with no remedy or pointer; reasons already in the allowlist render as before.orbit run readiness --jsonoutput is unchanged.Execution Summary
Click to expand
Summary of Changes
crates/orbit-cli/src/command/run/readiness.rs(readiness_lines) so that any waiting reason outside the existing allowlist whose JSON row contains a non-emptydetailappends: see --json for detailinstead of rendering as a bare snake_case reason code. Reasons in the allowlist continue to render their detail inline as before.crates/orbit-cli/tests/workspace/workspace_ship_mode.rsverifying thatorbit run readinesstext output (both piped and with explicit task ID) contains{plain}: waiting (pr_forge_remote_missing): see --json for detail.Acceptance Criteria
orbit run readinesstext output (TTY and piped) shows a next step or an explicit pointer to it for a task waiting on pr_forge_remote_missing. (Verified viaworkspace_ship_modeintegration test)detailis no longer rendered as a bare reason code with no remedy or pointer; reasons already in the allowlist render as before. (Verified inreadiness_linesandprovider_limitstest)orbit run readiness --jsonoutput is unchanged. (Verified via unchanged JSON structure and passing tests)./scripts/check-goldens.sh; no diffs)Validation Commands
make ci-guards: passedcargo fmt --all -- --check: passedrustfmt --check --edition 2024 crates/orbit-cli/tests/workspace/workspace_ship_mode.rs: passedscripts/build-budget.py -- cargo clippy -p orbit-cli --bins -- -D warnings -A clippy::disallowed_methods: passedscripts/build-budget.py -- cargo clippy -p orbit-cli --all-targets -- -D warnings -A clippy::disallowed_methods: passedRUSTDOCFLAGS="-D warnings" scripts/with-test-build-lint.sh scripts/build-budget.py -- cargo doc --no-deps -p orbit-cli: passed./scripts/check-goldens.sh: passedcargo test -p orbit-cli --test workspace workspace_ship_mode: passedcargo test -p orbit-cli --test process provider_limits: passedReconciliation
crates/orbit-cli/src/command/run/readiness.rs,crates/orbit-cli/tests/workspace/workspace_ship_mode.rs.symbol:crates/orbit-cli/src/command/run/readiness.rs#readiness_lines:function,file:crates/orbit-cli/tests/workspace/workspace_ship_mode.rs.Validation
Branch Freshness
refs/remotes/origin/agent-mainorbit/ORB-25221-4e6db1e5