A cached answer or a malformed request costs OpenSky nothing, so neither
is charged to the 30/min window. During a /tracks cooldown only a cached
track is replayed; an old cached error gives way to the cooldown refusal.
The 429 that arms the cooldown is no longer cached, so it and its repeats
carry Retry-After. No token is minted unless the upstream is called.
Upstream retired the ADSB.lol trace behind /api/military/track: the route
now answers a fixed 503 without contacting any upstream. The limiter this
branch put on that route guarded an adsb.lol call that no longer happens,
so it is dropped, and the limiter, its test, the changelog entry and
CURRENT-STATE now describe /api/flights/track alone. The military layer
backfills through its source's getTrack, so the demand note names only
the flights layer.
The branch read the /states/all cooldown from /api/flights and never set
one from /tracks/all, which is backwards for an API that meters the two
separately: a flights cooldown blocked backfill that still had credits,
and a /tracks 429 left every other icao24 free to ask again.
tracks.js now keeps a cooldown for the /tracks bucket, armed by a 429
from /tracks/all with OpenSky's retry-after (opensky.js exports its
existing parser so both buckets read the header the same way). The two
routes get separate limiters, and a limiter refusal sends Retry-After 60,
the window, rather than 10.
Main now takes pending entries as changelog.d/<pr>-<slug>.md
files (#787), so the entry leaves CHANGELOG.md for changelog.d/685-opensky-track-credit-governor.md.