openspec: archive poi-index; sync deltas into canonical specs
poi-index shipped and is live in production (self-hosted planet POI index, 8.4M rows serving /api/pois; Overpass removed from the Planner). Archive the change and apply its spec deltas: - new capability: poi-index - osm-poi-overlays: POIs from the instance index, not Overpass - rate-limiting: /api/pois limit replaces the Overpass proxy limit - infrastructure: POI extract (BRouter host) + import (flagship) components Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5539b34613
commit
8396041c26
12 changed files with 82 additions and 15 deletions
|
|
@ -18,9 +18,10 @@ The Planner SHALL limit route computations to 300 per session per hour (the `DEF
|
|||
- **WHEN** a session exceeds 300 BRouter calls in one hour
|
||||
- **THEN** the server responds with 429 and the client shows a "slow down" message
|
||||
|
||||
### Requirement: Overpass API rate limit
|
||||
The Planner SHALL limit Overpass API calls to 120 per IP per minute to protect the upstream service.
|
||||
### Requirement: POI API rate limit
|
||||
The Planner SHALL limit `/api/pois` requests to 120 per IP per minute to protect the instance's database from abusive clients.
|
||||
|
||||
#### Scenario: Overpass rate limit exceeded
|
||||
- **WHEN** a single IP exceeds 120 Overpass requests in one minute
|
||||
- **THEN** the `/api/overpass` proxy responds with 429 Too Many Requests
|
||||
#### Scenario: POI rate limit exceeded
|
||||
- **WHEN** a single IP exceeds 120 POI requests in one minute
|
||||
- **THEN** `/api/pois` responds with 429 Too Many Requests
|
||||
- **AND** no database query is executed for rejected requests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue