# Delivery bounds and polygons Scope: region bound CRUD, geographic resolution, active-bound selection and bound-specific settings. Fixtures A1/A2, B1, overlaps and border coordinates. | ID | Priority | Action / input | Expected result | |---|---|---|---| | BOUND-01 | P0 | Create valid Polygon bound with unique priority. | Stored under correct region; interior resolves correctly. | | BOUND-02 | P1 | Valid MultiPolygon/multiple supported features. | Every supported component resolves; unrelated exterior does not. | | BOUND-03 | P1 | Edit name/priority/polygon, reload map/list. | Exact geometry/priority retained and published. | | BOUND-04 | P1 | Malformed GeoJSON, empty features, unclosed/invalid coordinates. | Clear rejection; no half-saved geometry. | | BOUND-05 | P1 | Longitude/latitude swapped, out-of-range/nonfinite values. | Invalid geographic input rejected; no accidental huge service area. | | BOUND-06 | P1 | Priority 1/2/10, duplicate priority, invalid negative/fractional value. | Numeric ordering and approved uniqueness/value constraints. | | BOUND-07 | P0 | Point in two same-region bounds. | Deterministic agreed lowest-priority resolution. | | BOUND-08 | P1 | Exact edge/vertex, just inside/outside, polygon hole. | Agreed boundary semantics stable across API/map. | | BOUND-09 | P1 | Cross-region overlap. | Agreed tie rule; mark BLOCKED: POLICY until documented. | | BOUND-10 | P0 | Delete sole bound. | Refused; region always retains serviceable bound. | | BOUND-11 | P0 | Delete bound referenced by address; delete unreferenced extra bound. | Referenced deletion refused; allowed delete persists safely. | | BOUND-12 | P0 | Admin A reads/updates B1 settings/geometry by ID. | No foreign read/write; superadmin authorized path succeeds. | | BOUND-13 | P1 | U1 addresses in A1/A2/B1, change A priorities. | Active A bound comes from eligible A addresses, then effective fallback. | | BOUND-14 | P1 | Remove/replace polygon while checkout already open. | Address serviceability policy enforced; no stale bound fee misuse. | | BOUND-15 | P1 | Concurrent delete/address attachment or priority edits. | Referential integrity and deterministic active selection preserved. | | BOUND-16 | P1 | Bound constants removed/null; legacy address with no stored bound. | Bound re-derived from the address coordinates; defined fallback; never a foreign region's bound. | | BOUND-17 | P2 | Pan/zoom/draw/cancel form/resize map. | Geometry only saved on confirmation; usable controls. | | BOUND-18 | P1 | Geo resolver timeout/no match. | Explicit no-service/retry response; no arbitrary region. | Do not use region deletion as cleanup. See [addresses](addresses.md) and [constants](constants-configuration.md).