Skip to content

bug(platform): Guardrails overview hides a failed recent-events read as “No events yet” #3874

Closed

Description

@yannickmonney

Bug: Guardrails overview hides a failed recent-events read as “No events yet”

  • Classification: P2 confirmed product defect (Governance / Guardrails)
  • Source SHA: 9ea5972
  • Replay: /Users/yannick/.codex/notes/tale-1000-additional/guardrails-events-read-error-probe.log
  • Scope: isolated local jsdom/Vitest component probe; no production network or writes.

Reproduction

Render GuardrailsOverview with the policy cards settled and chat_filter_events/queries:listRecent settled with data: undefined, isLoading: false, and a 503 error. The actual page renders the section heading and the normal No events yet empty state. It renders no alert, error copy, or Retry button. The probe passed one test against source SHA 9ea59724df24d62729a9360f3902d964dab39b3e.

Root cause and impact

RecentEvents destructures only data: events and isLoading from the list query. Its branch treats !events || events.length === 0 as a successful empty response and never consumes the query's error or retry capability. Because guardrail events are security telemetry, an outage or permission failure can be mistaken for a clean organization with no detections, blocks, or circuit events. Changing filters simply issues another silent request.

Expected behavior is a failed-list state with an error explanation and Retry while preserving the policy status cards. The existing empty copy should only render after a successful empty response; this is distinct from policy configuration read failures and from the Chat Health guardrail metrics candidate.

Activity

  1. yannickmonney commented on Sep 29, 2026

    @yannickmonney
    ContributorAuthor

    Current-main source clarification (b7f8ca02ec249c004652b1ee52e112d9cdfa53ea): the recent-events query now consumes isError to keep Filter usable, so the blanket wording that it never consumes an error flag is too broad for this source. It still does not display the failed-events state or Retry; the reported “No events yet” failure remains. This update is source/history triage, not a fresh UI replay, and adds no finding. Retained comparison: settings-triage/report.md and triage.json in the audit notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions