Preparing your design workspace

Loading the problem and your latest saved attempt…

Design Agentic Security Stream Detection

Design durable security-stream detection and bounded read-only agent triage at one terabyte per day.

Problem statement

Design an AI-agent system for security-stream processing and security-detection services handling one terabyte per day.

For this exercise, assume producers submit uniquely identified security events, deterministic versioned detectors group potentially suspicious events into candidate alerts, and an AI agent reviews bounded evidence to produce an inspectable triage explanation.

Agents have read-only evidence tools and cannot execute remediation, alter events or change detection rules. Accepted events remain durable and replayable; repeated delivery, detector replay and interrupted agent work must not silently duplicate alerts or overwrite newer results.

Explain ingestion, processing, alert identity, bounded agent execution, inspection and recovery under the declared practice constraints.

What to build

  1. A producer submits events and receives a durable admission receipt or an explicit rejection/overload outcome.
  2. Versioned detectors group candidate alerts and bounded read-only agents produce inspectable triage evidence.
  3. An analyst inspects alert evidence and delayed/failed progress while replay and retries preserve accepted event and alert identity.

At scale

  • The reported traffic is one terabyte per day. For this exercise, assume decimal terabytes and 2 KB average events, giving roughly 5800 events/s and 11.6 MB/s before replication.
  • For this exercise, assume tenfold bursts, a10 second p95 candidate-alert visibility target under normal load, and explicit backlog/delayed status during overload.
  • For this exercise, retain raw immutable events for seven days, around 7 TB before replication/overhead, and retain alert audit metadata for 30 days.
  • For this exercise, at most 10 agent jobs run concurrently; each has a30 second execution budget, at most 5 read-only evidence requests and a1 MB response budget. Agent latency must not block event admission.