Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

API Reliability Bounty

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.

Task

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.

Local check

sh benchmark/test.sh

The starter intentionally fails malformed-input cases. A valid solution changes only solution/retry_after.sh and makes the immutable regression exit zero.

About

Pinned API Retry-After reliability task for an Agent Bounties child

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages