Skip to content

TerraKeep: global discovery (549 places), sharded quota-capped runner, plain-language site - #6

Merged
marcoloco23 merged 11 commits into
mainfrom
worktree-earth-watch-m3
Sep 26, 2026
Merged

marcoloco23 merged 11 commits into
mainfrom
worktree-earth-watch-m3

Conversation

@marcoloco23

Copy link
Copy Markdown
Owner
  • earthdeck discover: watchlists generated from data — 303 deforestation-hotspot tiles (GFW adm2 summaries), 60 flare fields (VNF), 40 methane basins (Climate TRACE), 126 protected-area tiles (WDPA), 20 intact-forest controls
  • Runner: --shard i/n, --time-budget, per-day quota governor (CDSE 40 / GFW 400 / FIRMS 3000 / analyst 10 cases, $3), confirm-only providers defer confirmation instead of skipping detection; 8 shards per 6-h window
  • Measured on Lambda (shard 0/8 dry run): 82 pairs, 47 in budget, 39 candidates, 13 confirmations
  • Site: TerraKeep — 'Keeping Earth within its limits'; 'False alarms we caught'; anonymous
  • Queue: backtest harness, coral-bleaching rule, extreme-fire rule, radiation networks

🤖 Generated with Claude Code

https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D

marcoloco23 and others added 11 commits September 26, 2026 22:16
…d were stopped before publication

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…ed AOIs

- kernel: --shard i/n (sha256(aoi.id, rule) mod n), least-recently-swept ordering,
  deadline-based budget stop ('budget exhausted: k of n pairs done', exit 0)
- quota.ts: per-UTC-day caps (EARTHDECK_MAX_{CDSE,GFW,FIRMS}_CALLS, analyst cases/USD)
  persisted in watch/quota.json; skips as quota:<provider>; 429/403-quota marks provider
  exhausted for the run; ToolError carries upstream status/body
- analyst: --max defaults from EARTHDECK_MAX_ANALYST_CASES (daily cap), analyst_spend
  journal records, stops at EARTHDECK_MAX_ANALYST_USD per day
- runner: watchlist all-generated | all-handwritten | generated/<name>, shard,
  timeBudgetSec; sweeps get --time-budget = remaining - 90 s, SIGTERM backstop at -60 s
- infra: 8 shard schedules per 6 h window + analyst/export/hand-written; caps in env;
  README schedule + quota tables; run-job.sh --shard/--time-budget

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…se; served at vitalearth.io for now)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
`earthdeck discover --out watchlists/generated [--max-per-list N] [--only …] [--budget 200]`
writes five validated watchlists + _summary.json from ~19 requests (no CDSE):
- forest-hotspots: top 150 GADM-2 areas by GFW integrated alerts (high+, primary
  forest, 30 d) from the precomputed adm2 table, tiled <= 4 deg²; minHa scales the
  control noise floor (100 ha/deg²) to the tile, floor 25 ha
- flaring-fields: EOG VNF annual sites chained within 15 km, ranked by BCM
- methane-basins: Climate TRACE v7 oil & gas CH4 sources chained within 50 km
- protected-fires: largest forested tropical WDPA areas, IUCN Ia-IV first
- controls-generated: 0.5° cores at IFL maximum-inscribed-circle centres, clear
  of hotspot tiles

Ids derive from dataset ids; output is deterministic. loadWatchlists skips _*.json;
doctor reports the generated lists and flags them stale after 14 days. Live run
committed: 549 AOIs (303/60/40/126/20).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…ire rule, radiation networks

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
… the pair (forest detection must always run)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
… 10k PU/month)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
@marcoloco23
marcoloco23 merged commit 5ee9d79 into main Sep 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant