Repository navigation
Service: name the stations behind out-of-range positions - #44
Conversation
Health gains coverage.outOfRangeStations: the 20 stations with the most discarded out-of-range positions since start, split near/far, with the furthest distance seen. In production 5% of positions are discarded this way, almost all AIS beyond twice the limit, and the per-family totals cannot say whether that is a few mislocated stations or many. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PS44Q7WRmAzMJLhi44dzdo
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Deploying airframes-coverage with
|
| Latest commit: |
e408526
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://23af1867.airframes-coverage.pages.dev |
| Branch Preview URL: | https://claude-project-thread-xlxhmp.airframes-coverage.pages.dev |
Requested by Kevin · project thread
Why
Twelve minutes after the 2026-11-21 00:48 UTC deploy, production had discarded 27,742 positions as out of range, 5.3% of events. By radio family (near / far, where far is beyond twice the limit):
So almost all of it is AIS far outside any plausible VHF range, and it is not the imported area feeds:
NCT,FINTRAFFICandAISSTREAMrecord no range at all. A receiver cannot hear a vessel 200 km away, so the likely causes are stations placed in the wrong spot (GeoIP) or stations that relay someone else's feed. The per-family totals cannot tell a handful of such stations from a general problem.What changes
/api/v1/healthgainscoverage.outOfRangeStations: the 20 stations with the most out-of-range discards since the service started, worst first.{ "stationId": 22, "ident": "TEST-22", "sourceType": "ais", "near": 1, "far": 1, "maxDistanceKm": 6034 }It carries the station ident and counts only, no coordinates. Nothing about which positions are kept or discarded changes, and
getStats()(which the Prometheus metrics read) is untouched.Cost: one small map entry per station that has had a discard.
After deploy
Read the list. A few stations with large
farcounts means fixing those stations' locations, or adding relays toAREA_FEED_STATIONS. A long flat list would point at the vessel position pairing instead.Testing
npm run typecheckandnpm testpass (48 tests); the out-of-range test now also checks the station entry.No screenshots: health output only, no UI change.
Generated by Claude Code
Summary by CodeRabbit