Repository navigation
TerraKeep: global discovery (549 places), sharded quota-capped runner, plain-language site - #6
Merged
Merged
Conversation
…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
…atch-m3 # Conflicts: # infra/earthdeck.yaml
Co-Authored-By: Claude Fable 5.1 <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
…atch-m3 # Conflicts: # src/cli.ts
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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--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🤖 Generated with Claude Code
https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D