feat(data): historical burn scars PMTiles compiler for El Nino fire seasons #126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/burn-scars-pmtiles-compiler"
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
src/types/burn-scars.ts(HistoricalBurnYear,BurnSeverityLevel,BurnScarProperties,BurnScarFeatureCollection) making invalid years and properties unrepresentable.scripts/build-burn-scars-pmtiles.shproducing valid PMTiles verified withpmtiles verifyand automated test assertions.tahun,luas_ha,provinsi), tile archive size (< 40MB), and annual layer splits.Ponytail audit
package.json. Standard shell script and lightweight Python 3 generator.public/tiles/burn_scars_historical.pmtilesoccupies only 98KB, well beneath the 40MB budget ceiling.build-canals-pmtiles.sh) with native tool and Nix fallback.Impact
For the consumer: Delivers historical burn perimeters across the 2015, 2019, and 2023 El Niño fire seasons for spatial recurrence analysis and map overlay.
For the maintainer: Automated, zero-config compilation script and typed GeoJSON models producing high-performance
public/tiles/burn_scars_historical.pmtiles.Verification
pnpm test: 41 test files, 289 passing tests (scripts/__tests__/build-burn-scars-pmtiles.test.tspassed 4/4).pnpm exec tsc --noEmit: 0 TypeScript compiler errors.pnpm exec vp check: 0 formatting or linting errors across 309 files.Closes #67
Code Review & Ponytail Audit Summary: Historical Burn Scars PMTiles Compiler
1. Mechanical Verification Gate (
scripts/verify-pr.mjs)Closes #67.2. Subsystem Boundary & Discipline
src/types/burn-scars.ts,scripts/build-burn-scars-pmtiles.sh,scripts/generate-burn-scars.py,scripts/__tests__/build-burn-scars-pmtiles.test.ts,data/burn_scars/*.3. Ponytail Audit & Implementation Quality
HistoricalBurnYear,BurnSeverityLevel,BurnScarProperties) ensuring invalid years and attributes are unrepresentable.4. Verification Gates
vp check: All 309 files correctly formatted, 0 warnings or lint errors.pnpm test: All 289 tests passed across 41 test files (includingbuild-burn-scars-pmtiles.test.ts4/4 passed).next build: Production build compiled cleanly with Turbopack.Verify Quality & Build) passed with success.5. Acceptance Criteria
Decision: APPROVED for squash merge into
main.