Skip to content

[Bug]: Word Count Guardrail missing from the Add Guardrail list under the default category filter #3412

Description

@DakshithaS

Please select the area the issue is related to

AI Workspace

Please select the aspect the issue is related to

Aspect/API (API backends, definitions, contracts, interfaces, OpenAPI), Aspect/UI (Frontend layouts, components, styling)

Description

On an App LLM Proxy's Guardrails & Policies tab, clicking Add under Global Guardrails & Policies opens a catalog panel with a Categories filter (defaulting to AI). Under that default filter, Word Count Guardrail never appears — not by scrolling, and not by typing its name into the search box.

Root cause: the panel fetches the catalog with a hardcoded limit=40. The AI category currently has 43 policies, returned alphabetically, so the last 3 — Token Based Ratelimit, URL Guardrail, Word Count Guardrail — fall past the cutoff and are silently dropped. The search box only filters the already-fetched 40 items client-side, so it can never surface one that didn't make the batch, no matter what's typed.

Suggested fix:

  • Wire the search box to the catalog API's own search param (server-side), instead of filtering the already-fetched page client-side.
  • Add pagination: load the next page via the API's existing offset support as the user scrolls to the bottom of the list (infinite scroll), instead of a one-shot capped fetch — so no category is silently truncated regardless of how large it grows.

Steps to Reproduce

  1. On any App LLM Proxy, go to Guardrails & PoliciesAdd (under Global Guardrails & Policies).
  2. Leave Categories on the default AI filter.
  3. Search Word Count, or scroll the full list — no result; the list ends at "Time-Based Model Routing".
  4. Switch Categories to Guardrails instead — Word Count Guardrail now appears.

Severity Level of the Issue

Severity/Critical (Core functionality is broken but there is a workaround. Need urgent attention)

Environment Details (with versions)

  • AI Workspace console at ai-workspace.bijira.dev
  • Observed 2026-09-09

Activity

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

    Area/AIWorkspaceIssues related to AI WorkspaceAspect/APIAPI definitions, contracts, OpenAPI, interfacesAspect/UIFrontend, visual layouts, components, stylingSeverity/CriticalType/Bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions