Skip to content

Make smart-routing reasons easier to read - #1177

Merged
JJ27 merged 3 commits into
mainfrom
JJ27/readable-routing-reasons
Oct 16, 2026
Merged

JJ27 merged 3 commits into
mainfrom
JJ27/readable-routing-reasons

Conversation

@JJ27

@JJ27 JJ27 commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

What did you change, and why?

Translate existing task profiles into short routing explanations, addressing this review feedback. For example, Routed to Low because its task-only profile is low: ... becomes This task has a clear target and limited scope. Preserve availability and fallback explanations, custom gateway notices, and unrecognized responses. Diagnostic records keep the displayed explanation in rationale and the original gateway text in raw_rationale.

How do you know it works?

Two direct formatter tests cover readable wording and preservation of unknown responses. All 217 focused routing and integration-contract tests pass. A direct filesystem check verifies both diagnostic fields for summarized, unchanged, and empty reasons. Ruff lint, formatting, and type checks pass. The live integration checks will rerun in CI.

@JJ27
JJ27 marked this pull request as ready for review October 16, 2026 22:49
Copilot AI balanced review requested due to automatic review settings October 16, 2026 22:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@arnavsinghvi11 arnavsinghvi11 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@JJ27
JJ27 force-pushed the JJ27/readable-routing-reasons branch from 6da31c4 to 7164168 Compare October 16, 2026 22:59
Copilot AI balanced review requested due to automatic review settings October 16, 2026 22:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@JJ27
JJ27 enabled auto-merge October 16, 2026 23:05
@JJ27
JJ27 added this pull request to the merge queue Oct 16, 2026
Merged via the queue into main with commit ca0804b Oct 16, 2026
52 checks passed
@JJ27
JJ27 deleted the JJ27/readable-routing-reasons branch October 16, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants