# SinkAlert MVP Staff — data provenance and limitations FINAL v1.0.3 UPDATE (supersedes the generic second-anchor description and 506-camera count below): visual inspection of the actual public approved queue found citizen claim bd56c389193b dated 2 October 2026 at 13.7867,100.4728. Charan/Sirindhorn now uses this SOURCE-IDENTIFIED claim as its second window reference, not the previous generic point. This is NOT independent verification and does not change 4/7 matching events in the two mandated catalogs. Both named-road windows remain provisional, 1000 m each; May9 source coordinate is 983.76 m from named Charan geometry, while the citizen claim is 224.74 m from Sirindhorn geometry. BMA must confirm both event coordinates and contiguous versus split scope. Recomputed camera proximity gives 511 catalog cameras. Full nationwide union remains 113 records /102 markers /11 merges. v1.0.3 query-versioning bypasses Cloudflare's four-hour stale JS/data cache. Shared popup chrome is suppressed while staff popups are open to prevent mobile overlap. This additive demo is a cut-down fork of `/var/www/sinkalert/pages/dashboard-original.html`. Original visual tokens, brand, layer-switch styles and command-map shell were retained; the original file is unchanged. Only the 9 agreed MVP functions remain. All review/work-order state is browser-local demo state, not backend approval, dispatch or multi-user persistence. `/mvp/staff/` is intentionally public for demonstration, not an authenticated production staff system. ## Canonical overlays shared with the citizen fork - `pilot-districts.geojson`: 7 MultiPolygon features; WGS84 longitude/latitude. Properties: `id` (string OSM relation ID), `name_th`, `name_en`, `osm_id` (integer), `admin_level`, `source`, `licence`. - `pilot-corridors.geojson`: 4 MultiLineString features. Properties: `id` (`samsen`, `phetchaburi`, `charan`, `latphrao`), `name_th`, `districts[]`, `proposal_dates[]` (ISO Gregorian), `proposal_count` (3,2,2,null), `candidate`, `matched_event_ids[]`, `missing_dates[]`, `source`, `licence`, `osm_way_ids[]`, `length_m`, `clip_note`, `clip_anchors[]`, `scope_status`. - `pilot-events.json`: exact road + date matches only, including source catalog for each record. Original database is copied unchanged as `collapse_database.json`. ## District boundary source and licence Source: OpenStreetMap contributors, local `/root/sinkalert/data/osm/thailand-latest.osm.pbf` (325259467 bytes), SHA-256 `179a0cd43082130c7bfa048bfad96e6dca9879596558763b81c4c6fa1a376d6c`. Extracted 27 November 2026 using pyosmium 4.3.2; source snapshot date is not asserted to equal extraction date. The requested named Bangkok districts are OSM `admin_level=6`, not 8. Level 8 would select subdistricts; we used actual district relations by exact Thai name rather than fabricating admin_level 8 district boundaries: - Dusit / ดุสิต: relation 92069 - Ratchathewi / ราชเทวี: relation 92064 - Bang Phlat / บางพลัด: relation 2942281 - Bangkok Noi / บางกอกน้อย: relation 2942282 - Lat Phrao / ลาดพร้าว: relation 2938034 - Bang Kapi / บางกะปิ: relation 2939952 - Wang Thonglang / วังทองหลาง: relation 2939956 Relations were read from the local PBF, full referenced ways/nodes extracted with BackReferenceWriter, then assembled into real multipolygons. No boxes, circles or hand-drawn district stand-ins. Primary and alternate Overpass access failed (HTTP 406 and 429), so no successful Overpass provenance is claimed. Licence: Open Database License (ODbL) 1.0, https://opendatacommons.org/licenses/odbl/1-0/ . Attribution: © OpenStreetMap contributors, https://www.openstreetmap.org/copyright . These OSM-derived district/corridor overlays remain under ODbL. Basemap: OpenStreetMap raster tiles with visible attribution; CARTO was rejected after visual QA found an HTTP-200 API-key-required watermark. ## Corridors and exact 2 km measurement Source `/root/sinkalert/data/osm/bangkok_roads.geojson`. Exact named main-road matches (not every soi containing a name), intersected with the requested districts. Feature properties preserve OSM way IDs. Distances are computed in EPSG:32647 (UTM zone 47N) with pyproj/Shapely, then returned to WGS84. Samsen: Dusit. Phetchaburi: Ratchathewi. Lat Phrao: Lat Phrao / Bang Kapi / Wang Thonglang, additional candidate without a claimed event count. IMPORTANT UNRESOLVED ACCEPTANCE ITEM: Charan/Sirindhorn totals exactly 2000.00 m as TWO 1 km named-road windows, NOT a confirmed contiguous 2 km event-defined pilot stretch. The first window uses the nearest named OSM road to the existing news catalog's 9 May 2026 coordinates (13.756,100.479); the source event coordinate is approximately 984 m from the closest named Charan OSM segment and must itself be checked. The 2 October 2026 event is absent from both available catalogs; the second window uses a provisional reference point (13.792,100.493) projected to named Sirindhorn road geometry, NOT an actual event location or a verified junction coordinate. Geometry is dashed, explicitly provisional, and no fake event pin is added. BMA must supply/confirm both event locations and whether one contiguous 2 km or two 1 km windows are intended. `clip_anchors.role` makes this machine-readable (`catalog_event_2026-05-09` and `provisional_reference_NOT_event`). Do not treat either reference anchor as a surveyed incident coordinate. ## Proposal versus recorded events Proposal dates/counts are displayed verbatim, separately from matched catalog evidence: - Samsen: 24 Sep 2025, 7 Sep 2026, 9 Nov 2026 (3). First match from collapse_database.json, two from existing verified news catalog. - Phetchaburi: 10 May 2026, 20 Nov 2026 (2). Neither has an exact matching record in supplied catalogs. No invented pins. - Charan/Sirindhorn: 9 May 2026, 2 Oct 2026 (2). May match from existing verified news catalog; October missing. - Lat Phrao–Bang Kapi: additional candidate, no claimed collapse total. `collapse_database.json` v3 says updated 2026-07-26, so cannot supply the later proposal events. Existing `/var/www/sinkalert/data/news-sinkholes-2024-2026.json` provides three exact, high-coordinate-confidence supplements, copied into `pilot-events.json` with original IDs, source URLs and source_catalog. Four of seven proposal events are source-backed; three dates remain unresolved. The original database is never rewritten. Administrative report-release records are excluded from physical-collapse history, as explicitly marked in the source. All map pins originate from catalog coordinates. No inference that missing evidence means no risk. Original collapse catalog coordinates themselves have known accuracy limitations; this demo does not reverify every historical record. ## Citizen reports and evidence Four existing public approved Bangkok reports copied from `/pages/approved/approved_list.json`, with their local photo files. No fake citizen submissions. `image_sha256` supports file-integrity comparison but does NOT prove truth, capture date or authorship. Source approval and this browser's demo evidence check are distinct labels. Two required checkboxes (image and location/date) gate the local reviewed status. Local notes and statuses persist in localStorage only. Photo/source content remains subject to its original owner's rights; no new image licence is asserted. ## ThaiWater Copied retained dependencies `thaiwater/rain_24h.json` and `thaiwater/waterlevel.json` from the existing same-site cache. Source strings preserve official HII public API URLs: https://api-v3.thaiwater.net/api/v1/thaiwater30/public/rain_24h https://api-v3.thaiwater.net/api/v1/thaiwater30/public/waterlevel https://www.thaiwater.net/ Observation times, fetched_at and stale/future-time labels are visible. These are snapshots, not continuously streamed updates; reload rereads the published snapshot, not a new HII fetch. Site cache refresh/redeployment is needed for a newer snapshot. Nearby display uses lat 13.55–13.98, lon 100.3–100.85. Rain is observed 24-hour accumulation, not a forecast. Water values are source-reported and must not be compared across stations without datum confirmation. No new licence/redistribution entitlement is invented for HII data. ## Public cameras Source `/data/cameras.json`, generated_at retained. 506 catalog cameras have point-to-corridor distance <= 2000 m. Distances use UTM47N and the published (including provisional) pilot geometry. Map and searchable panel expose locations, providers and public source/HLS links. No autoplay, proxying or guaranteed current availability; catalog probe status is not a present-time stream health claim. Provider rights and access conditions continue to apply. This is a public-camera access panel, not an archive or a computer-vision detection service. ## Risk Signal Exact label: จัดลำดับการตรวจ ไม่ใช่การทำนาย. Deterministic inspection ranking: 10 × exact matched proposal events + 5 × matched events within 90 days + 3 × local public reports inside padded corridor bounding rectangle. The bounding-rectangle proxy is disclosed; it is not an exact point-to-road distance and not a prediction. Rain, water and cameras are contextual evidence, not fabricated risk probabilities. No Phase B RF, NVIDIA, InSAR, 3D twin, earthquake, fire, national pins, impact rings or unrelated menus are loaded. ## Export / retained dependencies PDF uses print-specific report layout and the browser print / Save as PDF flow, not a fake download. Excel is an actual 7-sheet .xlsx workbook via vendored SheetJS 0.18.5. Both carry evidence discrepancies and local-only state labels. No personal reporter fields are exported. Vendored dependencies (all originally downloaded successfully): Leaflet 1.9.4 (BSD-2-Clause), Lucide 0.468.0 (ISC), SheetJS CE/xlsx 0.18.5 (Apache-2.0). Exact upstream downloads are in build_data.py. Leaflet image assets are copied too. Original extra visualization/model dependencies are removed, not hidden. ## Commander addendum: every nationwide source incident `all-incidents.json` unions 31 collapse records and 82 news records: 113 input records, 102 date/place markers, 11 reviewed bilingual/romanized same-place merges. Every input is represented exactly once in a marker's `source_records[]`; coordinate discrepancies are retained and flagged. Generic/unspecified places are NOT merged by date alone. The explicit alias table and reproducible builder are included in the handoff. All records are retained, including administrative/low-quality/province-geocoded records, so the popup explicitly distinguishes original catalog data from independently verified physical events. The addendum supersedes the earlier physical-history exclusion: nationwide history now displays the entire requested union. Shared `/mvp/shared/pilot-layers.js` is the sole constructor for both overlays. `SinkAlertPilotLayers.attach(map, options)` returns a controller with `ready` promise, `pilotLayer`, `incidentsLayer`, `districtLayer`, `corridorLayers`, `markers`, `counts`, `fitPilot()` and `setVisible()`. Defaults: both layers ON, named checkbox control and fit to pilot districts. Options: `controls`, `fitOnLoad`, `interactive`, optional preloaded `data:{districts,corridors,incidents}`. It never binds the map click handler or changes citizen form/pin state. The staff page uses this module; applying it to the report page is dependency-gated follow-up t_76b0f06c, not falsely claimed done in this phase. Nationwide incident colors are orange within a documented 250 m point-to-road buffer of published corridor geometry, otherwise grey-blue. This is not whole-district containment; provisional Charan geometry remains provisional. Source photos are used only when a real file already exists under `/mvp/img/news/`; source links and full Buddhist Era dates are in each popup. The fit-all button reveals nationwide pins without changing the initial pilot fit. No incident is removed merely because outside the pilot. Predeploy overlay/module snapshot was pushed and verified at cfoth-ai commit `e47d6e560524b7f7878d71a8e3ec42a725d42b86` before updating published corridor metadata. An independent mobile task changed dashboard-original.html during this run; this worker never wrote that file. Final deploy before/after original checksums are recorded separately instead of pretending the initial source hash stayed globally unchanged. ## Backup and rollback Before any live writes, original dashboard and collapse database snapshot was pushed to private `auttapongb/cfoth-ai`, branch `backup/sinkalert-mvp-staff-20261127`, commit `d2e30ffbd6b93634931fff881d7693ca23cb5bcd`, verified via git ls-remote through OLD Contabo. SinkAlert's own HTTPS and SSH pushes failed; no credential changes were made. A local backup also exists in the isolated task/sinkalert-mvp-staff-20261127 worktree. Original dashboard SHA-256 is in baseline.json. This task only adds `/mvp/staff/`; it never edits `/pages/dashboard-original.html` or MVP root/menu files. Menu changes belong to the separate menu/reconciliation tasks. Reverting the staff deployment commit in the backup/deploy branch supplies a rollback patch; remove only the newly added staff subtree under approved rollback, not the original or sibling report files.