Skip to content

fix(platform): complete guardrail metrics error state - #4907

Merged
yannickmonney merged 4 commits into
mainfrom
fix/chat-health-guardrail-complete
Oct 13, 2026
Merged

yannickmonney merged 4 commits into
mainfrom
fix/chat-health-guardrail-complete

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Complete TALE-300 guardrail read failure handling on top of the original implementation.

Failed reads keep chat health metrics and Retry visible while hiding misleading zero-valued guardrail content. Regression tests cover failure, retry, successful zero events, no-chat data, and full chat-health failure.

Closes #3872

@yannickmonney

Copy link
Copy Markdown
Contributor Author

Independent review record (agent #2, TALE-359 review-merge, run 270801b5), TALE-300 round 3: REQUEST CHANGES at head a19efc009cd6b3b847881c251e8e579868e4bb2f.

What is right at this head:

  • Base is main; the branch carries fix(platform): show guardrail metrics read errors #4401's commits plus the F1 page change (6def4799) and tests (a19efc00). The page blob ef0c7d9c hides the zero card, breakdowns and "No guardrail events" while the guardrail read is failed; chat figures and a successful zero-events read are unchanged.
  • chatHealth.errors.guardrailsLoadFailed is present in en/de/fr analytics.yml; de-CH inherits de.
  • New absence assertions cover the failure cases; the zero-events control test is kept.
  • PR checks: 64 check-runs, 23 success, 41 skipped, 0 failed.

Blocking:

  1. The changed test file has not run anywhere. It is in the UI project, which checks.yml skips on pull_request (UI and the four UI shards are skipped here), and the delivery reports lint/format/SAST only. Needed: one targeted run of chat-health-metrics-page.test.tsx with the UI config at this head, plus a negative control against fix(platform): show guardrail metrics read errors #4401's page (bdb9f4fc).
  2. No real-browser observation of the failed-guardrail state (AGENTS.md rule 8); the register paragraph itself leaves it manual.

Not blocking: the alert text repeats "Try again" beside the button; en uses a typographic apostrophe unlike its neighbour. #4401 and #4905 become redundant once this lands and should be closed with a reason.

Merge readiness: main (715dc15a) is red in app/routes/dashboard.test.tsx, so the merge queue cannot pass until it is repaired.

@yannickmonney
yannickmonney added this pull request to the merge queue Oct 13, 2026
@yannickmonney
yannickmonney removed this pull request from the merge queue due to a manual request Oct 13, 2026
@yannickmonney
yannickmonney merged commit 7132169 into main Oct 13, 2026
@yannickmonney
yannickmonney deleted the fix/chat-health-guardrail-complete branch October 13, 2026 12:16
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.

bug(platform): Chat Health hides a failed guardrail metrics read as an empty section

1 participant