add ZREMRANGEBYSCORE
Required by docket's promote_due.lua to clear the queue ZSET after
moving due tasks into the stream. Without this command the script
EVALs hit "unknown command" mid-flight and the post-XADD cleanup is
skipped — the queue grows unbounded while docket still functions
(because XADD already landed) but the script returns an error each
tick.
Implementation: linear pass over by_score (it's sorted), bail when
score > max, remove from both by_score and by_member, free the owned
member bytes. Empties drop the key.
Also surfaces the offending command name on the unknown-command path
so we don't have to instrument the dep again next time.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>