fix(cctv): raise the default catalog cap to 4,500 and enforce it over every pack

The per-pack defaults already summed to 4,054 before WSDOT (4,304 with
it), past the documented 4,000 cap, so a default install was trimming.
The existing sum check in the DriveBC test listed packs by hand and
missed Calgary and DelDOT. Replace it with a check in
cctvCatalogCap.test.mjs that sums every exported DEFAULT_*_MAX_SOURCES,
and drop the Calgary test that pinned the cap at exactly 4,000.
This commit is contained in:
bassem chagra committed 2026-09-27 12:20:45 +00:00
1 parent 5b2e160e54
commit c4f18169eb
7 files changed
+37 -53

No files matched your search

+5 -1
View File
@@ -7,7 +7,11 @@
diagonal, get a high-confidence heading; `BW` (Bothways) cameras use the
shared id-hash fallback at low confidence. By default the 250 cameras nearest
Seattle and Spokane load; `CCTV_WSDOT_MAX_SOURCES` sets the cap and
`CCTV_WSDOT_ENABLED=0` turns the pack off (bassem chagra, #644).
`CCTV_WSDOT_ENABLED=0` turns the pack off. The default catalog cap
(`CCTV_MAX_SOURCES`) rises from 4,000 to 4,500: the per-pack defaults already
summed to 4,054 before WSDOT, so a default install was being trimmed. A test
now sums every pack's default and fails if they exceed the cap
(bassem chagra, #644).
- CCTV cameras whose bearing is a guess now say so. Packs mark bearings derived
from a hash of the camera id as `headingConfidence: 'low'`, but nothing read the