feat(gis): implement chronic burn recurrence spatial detector engine #119
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/burn-recurrence"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Executed playbook:
skill://poteto-mode/playbooks/feature.mdPrinciples applied
HistoricalBurnScar,BurnRecurrenceResult) rather than ad-hoc nested arrays.anytypes.Impact
For the consumer: Enables instant detection and urgent warning alerts for recurring peatland burn hotspots ("Titik Langganan Karhutla") across multi-decadal fire seasons.
For the maintainer: High-performance, self-contained geospatial query function in
src/lib/gis/burn-recurrence.tswith comprehensive unit tests and zero external runtime dependencies.Verification
pnpm test).pnpm exec tsc --noEmitpassed with 0 errors.pnpm exec vp checkpassed cleanly across 284 files.Closes #68
565b3bb437c463f64db3Code Review & Ponytail Audit Summary: Chronic Burn Recurrence Spatial Detector Engine
1. Mechanical Verification Gate (
scripts/verify-pr.mjs)2. Ponytail Audit (Zero Bespoke Bloat)
src/lib/gis/burn-recurrence.tsutilizing bounding-box pre-filtering followed by ray-casting point-in-polygon tests. Zero heavy dependencies, spatial containers, or external services.Lean already. Ship.3. Subsystem Boundary & Discipline
src/lib/gis/burn-recurrence.ts,src/lib/gis/__tests__/burn-recurrence.test.ts). Zero frontend UI leakage.4. Verification & Test Proofs
vp check: Passed 100% (288 files formatted, 0 warnings/lint errors in 125 files).pnpm test: All 247 tests passed across 33 test suites.next build: Next.js Turbopack build succeeded cleanly.5. Acceptance Criteria
Decision: APPROVED for squash merge into
main.