Evaluates request traffic for a given subject key and returns the required tarpit delay or blocking decision.
Unique identifier for the subject (e.g. user:123, agent:curator-bot, ip:192.168.1.1).
Optionalconfig: TarpitRuleConfigTarpit configuration rules.
An object containing the delay to sleep (in ms) and throttling flags.
Resets traffic history for a specific subject or clears all records.
OptionalsubjectKey: stringOptional subject key to reset.
Injects an intentional asynchronous delay into the execution loop (tarpitting).
Duration in milliseconds to delay.
TarpitManager manages rate limiting, anomaly throttling, and intentional latency injection (tarpitting). Designed to neutralize aggressive scraping, brute-force attempts, and runaway AI agent loops.