Skip to content
GitHub (opens in a new tab)
AgentsBlock

Failure clusters

Failed runs across every agent, grouped by likely cause so you fix causes, not single runs.

What a block is

A block is a kit component for a whole area of a screen, built only from other kit components and tokens. You import it like any component; nothing is copied into your app. Put it inside your page’s <main>: it brings no header or nav of its own.

When to use

  • ops needs to see which causes break agent runs across many agents
  • a person decides whether a failure is known, should be muted or needs an issue
  • a fixed failure must show when it comes back (Regressed)

When not to use

  • a list of single failed runs to act on — AgentInbox
  • one run explained step by step — RunDetail
  • events and changes in general — ActivityFeed

Usage

The largest clusters lead, each with its status and its trend as counts; the selected cluster names the agents it hits, says the cause in a sentence, and shows when it started, a chart over time, a sample failing call opened to its error and the recent runs, with the actions last. Arrow keys move through the list.

import { FailureClusters } from "agentic-ds-kit";

export function FailuresPage({ clusters, window }) {
  return (
    <main className="layout-content">
      <FailureClusters
        clusters={clusters}          // { id, title, status, count, agents, trend, firstSeen, lastSeen, sample, runs }[]
        filters={{ time: window }}   // time is a label: pass the clusters for that window
        onFiltersChange={(next) => setWindow(next.time)}
        onMarkKnown={(id) => markKnown(id)}
        onMute={(id) => mute(id, "24h")}
        onOpenIssue={(id) => openIssue(id)}
      />
    </main>
  );
}

Layout

  • header, then the filtered cluster list beside the selected cluster in layout-split--secondary
  • the block is its own inline-size container and takes the full width; below --grid-breakpoint-md (64rem) of block width the list sits over the cluster

Props

NameTypeRequiredDefaultNotes
clustersarrayYes—{ id, title, status: "new" | "known" | "fixed" | "regressed", count, agents: { name, src? }[] (named as text; src is unused), trend: number[] (oldest first), trendLabels?, firstSeen, lastSeen, sample: { name, summary? (the cause in one sentence, shown under the h3), args?, error, duration? }, runs: { id, label, href?, agent, when, step }[], mutedUntil? }[]. Sorted largest first. A fixed cluster that comes back should be passed as regressed.
titlestringNoFailures—
selectedIdstringNo—Uncontrolled (the largest cluster) when omitted.
onSelectfunctionNo—(id) => void. Click, or Up / Down / Home / End in the list.
filtersobjectNo—{ time?, agent?, status? }. Uncontrolled when omitted. Agent and status filter the list; time is a label, so pass the clusters for that window.
onFiltersChangefunctionNo——
timeOptionsarrayNo["Last hour","Last 24 hours","Last 7 days"]—
onMarkKnownfunctionNo—(id) => void. Mark known, ghost neutral sm; hidden when already known.
onMutefunctionNo—(id) => void. Mute 24h, ghost neutral sm; shows mutedUntil while muted.
onOpenIssuefunctionNo—(id) => void. Open issue, the main action: outline neutral sm, last in the row.

Built from

  • Component
    →

    AgentInbox

    A queue of what agents need from you: approvals, questions, failed runs and finished recaps.

  • Block
    →

    Run detail

    One agent run on one screen: clock, cost, pending approval and every step, all following the step you pick.

  • Block
    →

    Activity feed

    What people and agents did across the workspace, newest first and grouped by day.

  • Component
    →

    FilterBar

    A row of filter chips with add, clear all, and an overflow menu when the row is too long.