Skip to content

i18n(platform): the Guardrails overview cards show raw tokens (input, output, tokenize, custom_jsonpath) and "1 categories" #4891

Closed

Description

@yannickmonney

Problem

The Guardrails overview cards (Settings › Governance › Guardrails) print internal tokens and an unpluralized count in every locale. main c94f1fd84, services/platform/app/features/settings/governance/components/guardrails-overview.tsx; catalog keys guardrailsOverview.statusCards.* (messages/en/governance.yml:670-685).

Card Code What it shows
Content safety :159-162: count: …categories?.length, targets: (…appliesTo ?? ['input']).join(', '), into '{count} categories · {targets}' "1 categories · input, output". In German: "1 Kategorien · input, output". In French: "1 catégories · input, output". The message has no plural branch, and the targets are raw enum values
PII detection :170-173: mode: piiConfig?.mode ?? 'mask', into 'Mode: {mode}' "Modus: tokenize", "Mode : block": the stored mode id, not the label the PII editor shows for it
Moderation provider :183-186: value: …responseShape?.type ?? 'custom_jsonpath', into '{value}' "custom_jsonpath": the schema discriminator, not a provider name

Expected

  • {count, plural, one {# category} other {# categories}} in all three locales.
  • Map appliesTo, the PII mode and the response shape through the same localized labels their editors use. Don't interpolate raw values.
  • Regression: a guardrails-overview test in German with one category, appliesTo: ['input','output'], mode tokenize and a custom JSONPath shape. No raw token renders. On c94f1fd84 all three do.

Severity and owner

  • Severity: low. It's the governance summary admins read first, in every locale.
  • Owner: platform (governance).
  • Found by: Review A (TALE-358), 2026-10-12 20:15 Zurich occurrence. A worker raised it as lead G4 at 08:15; I verified it at c94f1fd84. This is static reading; I didn't run it.

Activity

  1. added
    agent-ready
    on Oct 29, 2026
  2. added a commit that references this issue on Oct 30, 2026
    402c2b0
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

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions