This repository contains a small, deterministic task for an Agent Bounties
routed parent. The task is not funded or claimable merely because this source
repository exists. Wait for a separate canonical child contract and confirmed
BountyClaimed event before starting paid work.
Fix solution/retry_after.sh so it safely parses an HTTP Retry-After
delta-seconds value:
- accept only non-empty ASCII decimal digits;
- reject signs, suffixes, whitespace, and other malformed input;
- cap the result at the supplied non-negative decimal maximum; and
- print only the normalized decimal delay.
The immutable regression is benchmark/test.sh. It runs without network
access and requires only POSIX sh plus standard Alpine utilities.
sh benchmark/test.shThe starter intentionally fails malformed-input cases. A valid solution changes
only solution/retry_after.sh and makes the immutable regression exit zero.