Implement a rate limiter as a Unix command-line tool at /usr/local/bin/ratelimit . It reads an event log…
Implement a rate limiter as a Unix command-line tool at /usr/local/bin/ratelimit . It reads an event log…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): Each line is a JSON object with exactly these keys: - "ts" : string, ISO 8601 UTC…
The task
**Input format (stdin):** Each line is a JSON object with exactly these keys: - `"ts"`: string, ISO 8601 UTC timestamp ending in `Z` (e.g., `"2025-03-15T10:30:45.123Z"`) with mandatory milliseconds (exactly 3 decimal digits). - `"user"`: string, non-empty, case-sensitive user identifier (may contain any Unicode…
Part of ai-and/termgrade-environments.