HF RL Explorer

Implement a rate limiter that uses a hybrid token-bucket/sliding-window algorithm to enforce per-client…

Implement a rate limiter that uses a hybrid token-bucket/sliding-window algorithm to enforce per-client…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal: Accept a stream of request events (one JSON object per line on stdin) and emit a stream of JSON decision…

The task

**Goal:** Accept a stream of request events (one JSON object per line on stdin) and emit a stream of JSON decision objects (one per line on stdout). Each decision must state whether the request is ALLOWED or DENIED based on the current client's state and the configured limits.

Part of ai-and/termgrade-environments.