HF RL Explorer

Implement a rate limiter as a standalone CLI tool that enforces a hybrid token-bucket + sliding-window limit…

Implement a rate limiter as a standalone CLI tool that enforces a hybrid token-bucket + sliding-window limit…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal: Read a stream of events from stdin (one JSON object per line, UTF-8), apply rate limiting, and write…

The task

**Goal:** Read a stream of events from stdin (one JSON object per line, UTF-8), apply rate limiting, and write ALLOW/DENY decisions to stdout (one per input line, same order). The limiter uses a *per-key* hybrid policy combining a sliding window count check and a token bucket depth check. A key is a string field…

Part of ai-and/termgrade-environments.