Enrich rwx results --json from the results details endpoint#534
Open
robinaugh wants to merge 2 commits into
Open
Enrich rwx results --json from the results details endpoint#534robinaugh wants to merge 2 commits into
robinaugh wants to merge 2 commits into
Conversation
26d9a50 to
be1514e
Compare
kylekthompson
previously approved these changes
Jun 5, 2026
kylekthompson
previously approved these changes
Jun 8, 2026
Fetch the curated payload from /mint/api/results/details and fold it into the base JSON output. Enriched snake_case keys are rewritten to PascalCase to match the existing output, and the enriched id is surfaced as ID alongside RunID/TaskID. An empty payload (enrichment not enabled for the org) leaves the base output unchanged. Task-scoped lookups stay task-scoped by passing the original run/task identifier rather than the resolved run ID.
22cad74 to
87268eb
Compare
kylekthompson
previously approved these changes
Jun 8, 2026
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.
Background
We want to expose more detailed information about runs and tasks via
rwx results --json. Before launch, a docs page at rwx.com/docs/results will list the available attributes, so the help text refers to that rather than baking the docs into the client.Problem
rwx results --jsonreturns a fixed shape focused on the actionable failure prompt. The new/mint/api/results/detailsendpoint returns a richer curated payload, but the CLI doesn't consume it.Solution
/mint/api/results/detailsand fold it into the base JSON output.idis surfaced asIDalongsideRunID/TaskID.The
--billing/--performanceaugmentation flags were descoped from this PR to keep it focused on the core enrichment. Their implementation is stashed in RWX-989 for re-add later.Example outputs
Help text:
Command task piped into jq (abridged):
Further confirmation needed
/mint/api/results/detailsendpoint once it ships (the merge is a no-op against the current empty response).