terraproof 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,223 +1,280 @@
1
- # Terraproof
2
-
3
- > Evidence-graded skills, tools, and checks for mapping and remote-sensing AI agents. *By Geova.*
4
-
5
- [![npm](https://img.shields.io/npm/v/terraproof)](https://www.npmjs.com/package/terraproof) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
6
-
7
- Terraproof helps AI coding agents do geospatial work they can prove. It gives an agent three things:
8
-
9
- - **Skills.** 24 focused guides (GDAL, CRS and units, satellite preprocessing, SAR, spectral indices, time series, accuracy assessment, and more), split into sections an agent can load one at a time.
10
- - **A router.** It picks the smallest useful set of skills for a task, in English or Arabic, and explains why.
11
- - **Checks with an evidence grade.** They inspect the real datasets an agent produced (CRS, nodata, value ranges, geometry, COG layout, provenance) and grade the result as decision-grade (only against a declared verification contract), checks passed, review required, or advisory only. Every report lists the applicable checks that did not run.
12
-
13
- Everything runs locally and offline. No model API key is needed.
14
-
15
- **Status:** experimental (v0.12.0). See [Evaluation status](#evaluation-status) for what has and has not been measured.
16
-
17
- ---
18
-
19
- ## Quick start
20
-
21
- Route a task with the published CLI (Node.js 20+):
22
-
23
- ```bash
24
- npx terraproof route "Reproject a GeoTIFF to EPSG:3857 and build a COG with GDAL"
25
- npx terraproof route "Download Sentinel-2 from a STAC catalog, compute NDVI, and map the change with MapLibre" --format json
26
- ```
27
-
28
- Then check the data the work produced with the Python package (Python 3.10+). Since 0.8.0 it installs from PyPI with `pip`:
29
-
30
- ```bash
31
- pip install "terraproof[mcp]"
32
- ```
33
-
34
- Until then, install it from a clone:
35
-
36
- ```bash
37
- git clone https://github.com/esmailhussien/terraproof.git
38
- cd terraproof
39
- python -m venv .venv
40
- .venv/bin/python -m pip install -e ".[mcp]" # Windows: .venv\Scripts\python -m pip install -e ".[mcp]"
41
-
42
- python -m terraproof check ndvi.tif --expect index --format md
43
- python -m terraproof check outputs/clip.gpkg --compare-to data/parcels.gpkg --format md --lang ar --out report_ar.md
44
- ```
45
-
46
- The exit code is the grade: `0` decision-grade or checks passed, `2` review required, `3` advisory only, `1` usage error. Without a contract, a clean run is **checks passed**, not decision-grade: read the report's coverage section for what was not checked.
47
-
48
- ---
49
-
50
- ## Python checks
51
-
52
- `python -m terraproof` reads local vector, raster and STAC Item files and makes no network calls.
53
-
54
- | Command | What it does |
55
- |---|---|
56
- | `inspect PATH` | Profile one dataset: CRS and units, schema or bands, dtype, nodata, extent, counts. |
57
- | `check PATHS` | Run the applicable checks and write a JSON or Markdown evidence report (English or Arabic). |
58
- | `preflight PATHS --plan plan.json` | Check a declared processing plan against the real inputs before running it. |
59
- | `manifest write` / `manifest verify` | Record and verify a deterministic run manifest (inputs, outputs, parameters). |
60
- | `route "TASK" [--data PATH]` | Retrieve the skill sections worth reading, using the task text and inspected datasets. |
61
-
62
- Checks cover CRS and units, geometry validity and GeoJSON winding, record counts, raster nodata and valid support, vertical units, resampling, grid alignment and COG layout, reflectance and index ranges, scale/offset applied once, cloud masking, temporal scope, SAR domain, area-adjusted accuracy, and STAC provenance. A check that does not apply is left out; one that applies but cannot run is reported as `not-run`.
63
-
64
- | Grade | Arabic label | Meaning |
65
- |---|---|---|
66
- | Decision-grade | جاهز للقرار | A declared verification contract was fully verified, and every check that ran passed. |
67
- | Checks passed | الفحوصات نجحت (التغطية غير مُقيَّمة) | Every check that ran passed, but no contract was declared, so coverage was not assessed. The report lists applicable checks that did not run and what enables them. |
68
- | Review required | يحتاج مراجعة | At least one check warned; none failed or could not run. |
69
- | Advisory only | استرشادي فقط | At least one check failed or could not run, or no check ran. |
70
-
71
- The grade describes the data path and the checks that ran. It is not a certification of survey, engineering, legal, or safety fitness.
72
-
73
- For explicit task requirements, add `--contract contract.json` (MCP: `contract`).
74
- The contract's outcome becomes the report's grade: it is decision-grade only when every
75
- required check on every required output ran and passed with its declared sources and
76
- parameters, and any other failure or warning still counts. `propose --profile NAME`
77
- (MCP: `propose_contract`) drafts such a contract, filling bindings only from explicit
78
- file or STAC metadata and listing what you still need to declare. See
79
- [verification contracts, diagnostics and unsigned evidence bundles](docs/VERIFICATION_CONTRACTS.md).
80
-
81
- ### Verify a spectral index against its source bands
82
-
83
- ```bash
84
- python -m terraproof check outputs/ndvi.tif --index-formula ndvi --nir inputs/nir.tif --red inputs/red.tif
85
- ```
86
-
87
- This opt-in check compares every output cell with `(NIR-red)/(NIR+red)`, using each
88
- raster's own scale/offset metadata. Supply single-band rasters on the same grid;
89
- source-band roles and calibration must be declared correctly. Missing source data
90
- and a zero denominator cannot become valid output values. Extra output masking
91
- warns because its QA policy is not verified here. Source files are included in the
92
- evidence report and must be covered when a provenance manifest is supplied.
93
- See [the full contract and limits](docs/INDEX_FORMULA.md).
94
-
95
- The same check covers NBR, dNBR (pre minus post), McFeeters NDWI, MNDWI, Gao's NDMI, SAVI
96
- and EVI. Name each source band by its role; a multi-band source also needs its band number:
97
-
98
- ```bash
99
- python -m terraproof check outputs/evi.tif --index-formula evi --band blue=inputs/bands.tif --band-number blue=1 \
100
- --band red=inputs/bands.tif --band-number red=2 --band nir=inputs/bands.tif --band-number nir=3
101
- ```
102
-
103
- ### Verify a composite, an accumulation or a trend against its input stack
104
-
105
- ```bash
106
- python -m terraproof check outputs/storm_total.tif --stack-reduction weighted-sum \
107
- --stack inputs/rate1.tif --stack-weight 1 --stack inputs/rate2.tif --stack-weight 4.5
108
- ```
109
-
110
- `--stack-reduction` is `median`, `count`, `weighted-sum` (for example rate x hours),
111
- `mean-power-db` (dB averaged in linear power) or `ols-slope` (against `--stack-weight`
112
- times, with `--stack-min-count`). Every output cell is compared with that reduction of the
113
- ordered layers; a cell without enough valid inputs must be nodata. The check does not
114
- verify how the input layers were made, so pair it with the calibration and QA checks.
115
-
116
- ### Verify slope and lossless raster delivery
117
-
118
- ```bash
119
- python -m terraproof check outputs/result.tif --dem inputs/elevation.tif --slope-method central-difference
120
- python -m terraproof check outputs/delivery.tif --compare-to inputs/analysis.tif --raster-identity
121
- ```
122
-
123
- The explicit slope method checks all required values, flat cells, stencil masks
124
- and nodata edges. Raster identity checks every band's valid samples, complete
125
- validity masks and grid/band metadata against the declared source. Full COG
126
- conformance remains separate from this data comparison and the existing layout
127
- screen. See [supported contracts and limits](docs/RASTER_CONTRACTS.md).
128
- For final calibration/QA audits, `--processing-full-scan` checks every corresponding
129
- band and pixel in bounded windows; see [scope, examples and measured controls](docs/PROCESSING_FULL_SCAN.md).
130
-
131
-
132
- ---
133
-
134
- ## Use it from your agent
135
-
136
- ### MCP server
137
-
138
- ```bash
139
- python -m terraproof.mcp # stdio server; needs the `mcp` extra
140
- ```
141
-
142
- It is read-only and offline, with seven tools: `preflight`, `inspect_dataset`, `run_checks`, `propose_contract`, `list_skills`, `load_section`, and `find_guidance`. CLI and MCP return the same reports.
143
-
144
- ### Install into a project
145
-
146
- ```bash
147
- python -m terraproof.install --agent claude --task "NDVI change for 2020-2024" --target DIR --with-mcp
148
- python -m terraproof.install --agent cursor --skills gdal,crs-and-units --target DIR --dry-run
149
- ```
150
-
151
- | `--agent` | Skills are written to | MCP config (`--with-mcp`) |
152
- |---|---|---|
153
- | `antigravity` | `.agents/skills/<skill>/` and `AGENTS.md` | `.agents/mcp_config.json` |
154
- | `claude` | `.claude/skills/<skill>/` | `.mcp.json` |
155
- | `codex` | `.agents/skills/<skill>/` and `AGENTS.md` | `.codex/config.toml` |
156
- | `cursor` | `.cursor/rules/terraproof-<skill>.mdc` | `.cursor/mcp.json` |
157
- | `gemini` | `GEMINI.md` | `.gemini/settings.json` |
158
- | `copilot` | `.github/instructions/terraproof-<skill>.instructions.md` | `.vscode/mcp.json` |
159
- | `opencode` | `AGENTS.md` | `opencode.json` |
160
-
161
- The installer only writes inside `--target`, merges existing configs, and is idempotent. Some hosts need you to approve or trust the project before its MCP server connects (Claude Code shows it as "Pending approval"; Codex and Gemini load project config only in trusted folders). Writing the files does not prove the agent loaded or followed them.
162
-
163
- ### Route and export with the Node CLI
164
-
165
- ```bash
166
- npx terraproof route "Design a PostGIS schema for GPS tracks" --collection gis --dry-run
167
- npx terraproof bundle "TASK" --out context.md # one reviewable context file
168
- npx terraproof apply "TASK" --target ./demo/.agents/skills --dry-run # export skill folders
169
- npx terraproof validate
170
- ```
171
-
172
- `apply` and `bundle --out` overwrite files without asking, so start in a disposable folder. Routing is deterministic keyword and section scoring, not semantic understanding; review the selection before you use it. Details: [`router/README.md`](router/README.md) and [`routing/ROUTER_DESIGN.md`](routing/ROUTER_DESIGN.md).
173
-
174
- ---
175
-
176
- ## Skills
177
-
178
- | Area | Skills |
179
- |---|---|
180
- | Process | `brainstorming`, `writing-plans`, `systematic-debugging`, `verification` |
181
- | Mapping and GIS | `gdal`, `crs-and-units`, `raster-processing`, `vector-quality`, `geopandas`, `design-postgis-tables`, `geoparquet-validation`, `geospatial-frontend`, `networkx` |
182
- | Remote sensing | `satellite-preprocessing`, `spectral-indices`, `sar-basics`, `time-series-and-change`, `accuracy-assessment`, `geomaster`, `geozarr` |
183
- | Data access | `geospatial-data-discovery`, `stac-and-cloud-access` |
184
- | Analysis and figures | `statistical-analysis`, `scientific-visualization` |
185
-
186
- Skills are **unmeasured**: no study has separated their effect from the MCP checks, and in the Phase 5 Claude Code runs no skill file was read. Their content is frozen during Phase 6 (factual fixes only, no new skills) until the skills decision in the [Phase 6 plan](docs/plans/Terraproof_Phase6_PLAN.md).
187
-
188
- Each skill lives in `skills/<name>/` with a `SKILL.md`, references, and a `skill.json` routing manifest. Preset collections (`gis`, `remote-sensing`, `data-analysis`, `production`) are in [`routing/collections.json`](routing/collections.json).
189
-
190
- ---
191
-
192
- ## Evaluation status
193
-
194
- - **Checks:** 33 executable eval tasks with independent oracles pass with 0 false passes. The benchmark runs from a clone; the Python package does not include it. Of 50 seeded wrong outputs, production checks reject 25; the other 25 are caught only by the independent oracle (declared blind spots). Passing the benchmark does not mean the production checks catch every wrong output. See [`evals/README.md`](evals/README.md).
195
- - **Routing:** an independent, frozen 160-item set (v5) passed once in both languages: English recall 0.97 with 3.75 wrong picks per 100, Arabic recall 0.96 with 2.5. Earlier independent sets (v3, v4) failed and stay on record. The v5 set was written by an AI agent, not reviewed by an expert.
196
- - **Agent lift:** in a 54-run Claude Code comparison on 9 tasks, runs with Terraproof passed 27/27 and runs without it 21/27. The pre-specified test is **not significant** (p = 0.125), and five tasks passed either way, so no lift is claimed. The clearest single result is Landsat QA masking (3/3 with, 0/3 without). See [`docs/plans/Terraproof_Phase5_PLAN.md`](docs/plans/Terraproof_Phase5_PLAN.md).
197
- - **Harder cohort:** a one-repeat Claude Code screen passed all six tasks both with and without Terraproof. That small screen shows no observed benefit and is separate from the original nine-task study. API pilots are exploratory and do not establish lift.
198
- - **Real data (Phase 8):** on 34 sealed cases built from public Sentinel-2, Copernicus DEM, 3DEP and Natural Earth data, declared checks caught 7 of 7 covered wrong outputs with no false assurance and no false alarm. 20 of the 34 deliverables (validity masks, slope in percent, JSON reports) are forms no check covers yet. Contracts proposed from metadata alone did not meet acceptance. In a 10-run agent measurement, the agent rarely declared a goal, and the `s2-l2a` preset certified two wrong decodes; that preset now requires `--decode-offset`. See [`docs/plans/Terraproof_Phase8_PLAN.md`](docs/plans/Terraproof_Phase8_PLAN.md).
199
- - **Real deliverables (Phase 9):** validity masks, slopes in percent and JSON summaries are now checkable. On 36 fresh sealed real-data cases, 33 deliverables got a declared requirement, and declared checks caught 12 of 15 wrong outputs with no false assurance or false alarm. In a 10-run agent measurement, 8 runs declared their goal (every offered `next_step` was followed), all 10 deliverables were correct, and no wrong output was certified. There was no comparison run, so no lift is claimed.
200
- - **QA masks and reprojected slopes (Phase 10):** a declared validity mask is checked against the QA layer's own no-data, a slope on another grid than its DEM is checked after resampling (in ground metres on projections such as Web Mercator), and every number of a JSON report can be declared. A first measurement certified one wrong Web Mercator slope, and that was fixed. On 45 fresh sealed real-data cases, declared checks then caught every wrong mask (5 of 5) and 5 of 6 wrong reprojected slopes, verified all 6 correct ones, and certified no wrong output. Multi-value reports did not meet their bar: 4 of 6 wrong reports failed, and the other two held only numbers the check cannot express (NDVI, joint band selections), so they were not certified either. No agent run was measured for this release.
201
- - **Real hosts:** tool use through MCP has been verified with Codex, Claude Code, Antigravity (Gemini) and OpenCode (Phase 8 P4, ten runs with real tool calls). Cursor and Copilot are unit-tested against their documented layouts only.
202
-
203
- ---
204
-
205
- ## Repository
206
-
207
- | Path | Contents |
208
- |---|---|
209
- | `skills/` | The 24 skills |
210
- | `routing/` | Generated skill registry, check catalog, rules, and collections |
211
- | `router/` | TypeScript router and CLI (the npm package) |
212
- | `src/terraproof/` | Python package: inspectors, checks, reports, router, MCP server, installers, evals |
213
- | `evals/` | Eval task specs and routing sets |
214
- | `tests/` | Router, Python, package, and release-validation tests |
215
- | `instructions/` | Universal engineering rules shipped with the skills |
216
- | `docs/` | [Release checklist](docs/RELEASE_CHECKLIST.md) and [design plans](docs/plans/) |
217
- | `sources/`, `third_party/` | Upstream attribution and licenses |
218
-
219
- To contribute, see [`CONTRIBUTING.md`](CONTRIBUTING.md). Changes are listed in [`CHANGELOG.md`](CHANGELOG.md).
220
-
221
- ## License
222
-
223
- [MIT](LICENSE). Vendored and adapted components keep their upstream licenses (MIT, Apache-2.0, 3-clause BSD), documented in `third_party/` and [`sources/SOURCES.md`](sources/SOURCES.md).
1
+ # Terraproof
2
+
3
+ > Evidence-graded skills, tools, and checks for mapping and remote-sensing AI agents. *By Geova.*
4
+
5
+ [![npm](https://img.shields.io/npm/v/terraproof)](https://www.npmjs.com/package/terraproof) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
6
+
7
+ Terraproof helps AI coding agents do geospatial work they can prove. It gives an agent three things:
8
+
9
+ - **Skills.** 24 focused guides (GDAL, CRS and units, satellite preprocessing, SAR, spectral indices, time series, accuracy assessment, and more), split into sections an agent can load one at a time.
10
+ - **A router.** It picks the smallest useful set of skills for a task, in English or Arabic, and explains why.
11
+ - **Checks with an evidence grade.** They inspect the real datasets an agent produced (CRS, nodata, value ranges, geometry, COG layout, provenance) and grade the result as decision-grade (only against a declared verification contract), checks passed, review required, or advisory only. Every report lists the applicable checks that did not run.
12
+
13
+ Routing, local inspection and checks run offline. No model API key is needed.
14
+
15
+ **Status:** experimental (v0.13.0). See [Evaluation status](#evaluation-status) for what has and has not been measured.
16
+
17
+ **Scientific workflow core (experimental):** [scientific workflows](docs/SCIENTIFIC_WORKFLOWS.md)
18
+ adds a Landsat surface-temperature route from reviewed intent through local processing,
19
+ verification, repair and map/report outputs, plus optional [public source discovery/acquisition](docs/SCIENTIFIC_SOURCE_RECOVERY.md)
20
+ that accesses the network only when invoked. [Separate-context acceptance](docs/SCIENTIFIC_WORKFLOW_INDEPENDENT_ACCEPTANCE_2026-11-03.md)
21
+ passed three prior targets across five fixed variants; human scientific suitability and absolute accuracy
22
+ remain unestablished.
23
+
24
+ ---
25
+
26
+ ## Quick start
27
+
28
+ Route a task with the published CLI (Node.js 20+):
29
+
30
+ ```bash
31
+ npx terraproof route "Reproject a GeoTIFF to EPSG:3857 and build a COG with GDAL"
32
+ npx terraproof route "Download Sentinel-2 from a STAC catalog, compute NDVI, and map the change with MapLibre" --format json
33
+ ```
34
+
35
+ Then check the data the work produced with the Python package (Python 3.10+). Since 0.8.0 it installs from PyPI with `pip`:
36
+
37
+ ```bash
38
+ pip install "terraproof[mcp]"
39
+ ```
40
+
41
+ Until then, install it from a clone:
42
+
43
+ ```bash
44
+ git clone https://github.com/esmailhussien/terraproof.git
45
+ cd terraproof
46
+ python -m venv .venv
47
+ .venv/bin/python -m pip install -e ".[mcp]" # Windows: .venv\Scripts\python -m pip install -e ".[mcp]"
48
+
49
+ python -m terraproof check ndvi.tif --expect index --format md
50
+ python -m terraproof check outputs/clip.gpkg --compare-to data/parcels.gpkg --format md --lang ar --out report_ar.md
51
+ ```
52
+
53
+ The exit code is the grade: `0` decision-grade or checks passed, `2` review required, `3` advisory only, `1` usage error. Without a contract, a clean run is **checks passed**, not decision-grade: read the report's coverage section for what was not checked.
54
+
55
+ ---
56
+
57
+ ## Python checks
58
+
59
+ `python -m terraproof` reads local vector, raster, STAC Item and Python files and makes no network calls.
60
+
61
+ | Command | What it does |
62
+ |---|---|
63
+ | `inspect PATH` | Profile one dataset: CRS and units, schema or bands, dtype, nodata, extent, counts (`--layer` for a GeoPackage layer). |
64
+ | `check PATHS` | Run the applicable checks and write a JSON, Markdown or offline HTML evidence report (English or Arabic). |
65
+ | `verify [terraproof.toml]` | Check every deliverable a project file declares, in one run with one exit code (`--plan` checks the declarations only). |
66
+ | `preflight PATHS --plan plan.json` | Check a declared processing plan against the real inputs before running it. |
67
+ | `manifest write` / `manifest verify` | Record and verify a deterministic run manifest (inputs, outputs, parameters). |
68
+ | `route "TASK" [--data PATH]` | Retrieve the skill sections worth reading, using the task text and inspected datasets. |
69
+ | `audit [PATHS]` | Find the datasets and Python scripts under PATHS and run the checks that need no declaration. |
70
+ | `lint PATHS` | Scan Python scripts statically (never run) for silent geospatial mistakes. |
71
+ | `demo` | Write a small workspace of deliberate mistakes, audit it, and save the reports. |
72
+
73
+ Checks cover CRS and units (Web Mercator fails metric operations), geometry validity and GeoJSON winding, record counts, raster nodata and valid support, vertical units, resampling, grid alignment and COG layout, reflectance and index ranges, scale/offset applied once, cloud masking, temporal scope, SAR domain, area-adjusted accuracy, and STAC provenance. A check that does not apply is left out; one that applies but cannot run is reported as `not-run`. Opt-in screens check bounds against the CRS area of use, vector topology, extensive-quantity totals, SAR orbits and Sentinel-2 processing baselines across STAC Items, and train/test spatial leakage; see [opt-in screens, `audit`, `lint` and HTML reports](docs/FRONTIER_CHECKS_AND_AUDIT.md).
74
+
75
+ | Grade | Arabic label | Meaning |
76
+ |---|---|---|
77
+ | Decision-grade | جاهز للقرار | A declared verification contract was fully verified, and every check that ran passed. |
78
+ | Checks passed | الفحوصات نجحت (التغطية غير مُقيَّمة) | Every check that ran passed, but no contract was declared, so coverage was not assessed. The report lists applicable checks that did not run and what enables them. |
79
+ | Review required | يحتاج مراجعة | At least one check warned; none failed or could not run. |
80
+ | Advisory only | استرشادي فقط | At least one check failed or could not run, or no check ran. |
81
+
82
+ The grade describes the data path and the checks that ran. It is not a certification of survey, engineering, legal, or safety fitness.
83
+
84
+ For explicit task requirements, add `--contract contract.json` (MCP: `contract`).
85
+ The contract's outcome becomes the report's grade: it is decision-grade only when every
86
+ required check on every required output ran and passed with its declared sources and
87
+ parameters, and any other failure or warning still counts. `propose --profile NAME`
88
+ (MCP: `propose_contract`) drafts such a contract, filling bindings only from explicit
89
+ file or STAC metadata and listing what you still need to declare. See
90
+ [verification contracts, diagnostics and unsigned evidence bundles](docs/VERIFICATION_CONTRACTS.md).
91
+
92
+ ### Verify a whole pipeline from one project file
93
+
94
+ Declare what each deliverable is meant to be once, in `terraproof.toml` next to your pipeline, and check
95
+ them all with one command, locally or in CI:
96
+
97
+ ```toml
98
+ schema = "terraproof.project/1"
99
+
100
+ [[deliverables]]
101
+ name = "usable-pixel mask"
102
+ outputs = ["out/mask.tif"]
103
+ goals = ["qa-masked"]
104
+ qa_path = "data/SCL_20m.tif"
105
+ qa_kind = "keep-codes"
106
+ qa_keep_codes = [4, 5, 6, 7, 11]
107
+ output_form = "validity-mask"
108
+
109
+ [[deliverables]]
110
+ name = "slope"
111
+ outputs = ["out/slope_utm.tif"]
112
+ goals = ["slope-from-dem"]
113
+ dem = "data/dem.tif"
114
+ dem_vertical_unit = "metre"
115
+ slope_unit = "percent"
116
+ ```
117
+
118
+ ```bash
119
+ python -m terraproof verify # every deliverable; exit 0, 2 or 3 as for check
120
+ python -m terraproof verify --plan # before outputs exist: what each declaration still lacks
121
+ ```
122
+
123
+ Each deliverable is graded on its declaration, so a correct one is decision-grade and a wrong one fails
124
+ with its finding. Bindings use the same names as `run_checks`, and paths are relative to the file. See
125
+ [project verification](docs/PROJECT_VERIFICATION.md) for every field and a GitHub Actions example.
126
+
127
+ ### Verify a spectral index against its source bands
128
+
129
+ ```bash
130
+ python -m terraproof check outputs/ndvi.tif --index-formula ndvi --nir inputs/nir.tif --red inputs/red.tif
131
+ ```
132
+
133
+ This opt-in check compares every output cell with `(NIR-red)/(NIR+red)`, using each
134
+ raster's own scale/offset metadata. Supply single-band rasters on the same grid;
135
+ source-band roles and calibration must be declared correctly. Missing source data
136
+ and a zero denominator cannot become valid output values. Extra output masking
137
+ warns because its QA policy is not verified here. Source files are included in the
138
+ evidence report and must be covered when a provenance manifest is supplied.
139
+ See [the full contract and limits](docs/INDEX_FORMULA.md).
140
+
141
+ The same check covers NBR, dNBR (pre minus post), McFeeters NDWI, MNDWI, Gao's NDMI, SAVI
142
+ and EVI. Name each source band by its role; a multi-band source also needs its band number:
143
+
144
+ ```bash
145
+ python -m terraproof check outputs/evi.tif --index-formula evi --band blue=inputs/bands.tif --band-number blue=1 \
146
+ --band red=inputs/bands.tif --band-number red=2 --band nir=inputs/bands.tif --band-number nir=3
147
+ ```
148
+
149
+ ### Verify a composite, an accumulation or a trend against its input stack
150
+
151
+ ```bash
152
+ python -m terraproof check outputs/storm_total.tif --stack-reduction weighted-sum \
153
+ --stack inputs/rate1.tif --stack-weight 1 --stack inputs/rate2.tif --stack-weight 4.5
154
+ ```
155
+
156
+ `--stack-reduction` is `median`, `count`, `weighted-sum` (for example rate x hours),
157
+ `mean-power-db` (dB averaged in linear power) or `ols-slope` (against `--stack-weight`
158
+ times, with `--stack-min-count`). Every output cell is compared with that reduction of the
159
+ ordered layers; a cell without enough valid inputs must be nodata. The check does not
160
+ verify how the input layers were made, so pair it with the calibration and QA checks.
161
+
162
+ ### Verify slope and lossless raster delivery
163
+
164
+ ```bash
165
+ python -m terraproof check outputs/result.tif --dem inputs/elevation.tif --slope-method central-difference
166
+ python -m terraproof check outputs/delivery.tif --compare-to inputs/analysis.tif --raster-identity
167
+ ```
168
+
169
+ The explicit slope method checks all required values, flat cells, stencil masks
170
+ and nodata edges. Raster identity checks every band's valid samples, complete
171
+ validity masks and grid/band metadata against the declared source. Full COG
172
+ conformance remains separate from this data comparison and the existing layout
173
+ screen. See [supported contracts and limits](docs/RASTER_CONTRACTS.md).
174
+ For final calibration/QA audits, `--processing-full-scan` checks every corresponding
175
+ band and pixel in bounded windows; see [scope, examples and measured controls](docs/PROCESSING_FULL_SCAN.md).
176
+
177
+ ### Verify bathymetry against reference depths
178
+
179
+ ```bash
180
+ python -m terraproof check outputs/depth.tif --bathymetry bathymetry.json --format md
181
+ ```
182
+
183
+ The audit checks declared vertical conventions, depth error and coverage by reference depth.
184
+ Optional operands check the shallow-water mask, training and holdout overlap, and repeat-run stability.
185
+ See the [configuration and evidence contract](docs/BATHYMETRY.md).
186
+
187
+
188
+ ---
189
+
190
+ ## Use it from your agent
191
+
192
+ ### MCP server
193
+
194
+ ```bash
195
+ python -m terraproof.mcp # stdio server; needs the `mcp` extra
196
+ ```
197
+
198
+ It is read-only and offline, with eight tools: `preflight`, `inspect_dataset`, `run_checks`, `propose_contract`, `verify_project`, `list_skills`, `load_section`, and `find_guidance`. CLI and MCP return the same reports.
199
+
200
+ ### Install into a project
201
+
202
+ ```bash
203
+ python -m terraproof.install --agent claude --task "NDVI change for 2020-2024" --target DIR --with-mcp
204
+ python -m terraproof.install --agent cursor --skills gdal,crs-and-units --target DIR --dry-run
205
+ ```
206
+
207
+ | `--agent` | Skills are written to | MCP config (`--with-mcp`) |
208
+ |---|---|---|
209
+ | `antigravity` | `.agents/skills/<skill>/` and `AGENTS.md` | `.agents/mcp_config.json` |
210
+ | `claude` | `.claude/skills/<skill>/` | `.mcp.json` |
211
+ | `codex` | `.agents/skills/<skill>/` and `AGENTS.md` | `.codex/config.toml` |
212
+ | `cursor` | `.cursor/rules/terraproof-<skill>.mdc` | `.cursor/mcp.json` |
213
+ | `gemini` | `GEMINI.md` | `.gemini/settings.json` |
214
+ | `copilot` | `.github/instructions/terraproof-<skill>.instructions.md` | `.vscode/mcp.json` |
215
+ | `opencode` | `AGENTS.md` | `opencode.json` |
216
+
217
+ `--with-hooks` also writes `.terraproof/verify_hook.py`, which runs `verify` on the project file in the target (for `claude`, as a Stop hook in `.claude/settings.json` that blocks stopping when a deliverable failed or is incomplete, or the file is invalid; review-required does not block). The installer only writes inside `--target`, merges existing configs, and is idempotent. Some hosts need you to approve or trust the project before its MCP server connects (Claude Code shows it as "Pending approval"; Codex and Gemini load project config only in trusted folders). Writing the files does not prove the agent loaded or followed them.
218
+
219
+ ### Route and export with the Node CLI
220
+
221
+ ```bash
222
+ npx terraproof route "Design a PostGIS schema for GPS tracks" --collection gis --dry-run
223
+ npx terraproof bundle "TASK" --out context.md # one reviewable context file
224
+ npx terraproof apply "TASK" --target ./demo/.agents/skills --dry-run # export skill folders
225
+ npx terraproof validate
226
+ ```
227
+
228
+ `apply` and `bundle --out` overwrite files without asking, so start in a disposable folder. Routing is deterministic keyword and section scoring, not semantic understanding; review the selection before you use it. Details: [`router/README.md`](router/README.md) and [`routing/ROUTER_DESIGN.md`](routing/ROUTER_DESIGN.md).
229
+
230
+ ---
231
+
232
+ ## Skills
233
+
234
+ | Area | Skills |
235
+ |---|---|
236
+ | Process | `brainstorming`, `writing-plans`, `systematic-debugging`, `verification` |
237
+ | Mapping and GIS | `gdal`, `crs-and-units`, `raster-processing`, `vector-quality`, `geopandas`, `design-postgis-tables`, `geoparquet-validation`, `geospatial-frontend`, `networkx` |
238
+ | Remote sensing | `satellite-preprocessing`, `spectral-indices`, `sar-basics`, `time-series-and-change`, `accuracy-assessment`, `geomaster`, `geozarr` |
239
+ | Data access | `geospatial-data-discovery`, `stac-and-cloud-access` |
240
+ | Analysis and figures | `statistical-analysis`, `scientific-visualization` |
241
+
242
+ Skills are **unmeasured**: no study has separated their effect from the MCP checks, and in the Phase 5 Claude Code runs no skill file was read. Their content is frozen during Phase 6 (factual fixes only, no new skills) until the skills decision in the [Phase 6 plan](docs/plans/Terraproof_Phase6_PLAN.md).
243
+
244
+ Each skill lives in `skills/<name>/` with a `SKILL.md`, references, and a `skill.json` routing manifest. Preset collections (`gis`, `remote-sensing`, `data-analysis`, `production`) are in [`routing/collections.json`](routing/collections.json).
245
+
246
+ ---
247
+
248
+ ## Evaluation status
249
+
250
+ - **Checks:** 33 executable eval tasks with independent oracles pass with 0 false passes. The benchmark runs from a clone; the Python package does not include it. Of 50 seeded wrong outputs, production checks reject 25; the other 25 are caught only by the independent oracle (declared blind spots). Passing the benchmark does not mean the production checks catch every wrong output. See [`evals/README.md`](evals/README.md).
251
+ - **Routing:** an independent, frozen 160-item set (v5) passed once in both languages: English recall 0.97 with 3.75 wrong picks per 100, Arabic recall 0.96 with 2.5. Earlier independent sets (v3, v4) failed and stay on record. The v5 set was written by an AI agent, not reviewed by an expert.
252
+ - **Agent lift:** in a 54-run Claude Code comparison on 9 tasks, runs with Terraproof passed 27/27 and runs without it 21/27. The pre-specified test is **not significant** (p = 0.125), and five tasks passed either way, so no lift is claimed. The clearest single result is Landsat QA masking (3/3 with, 0/3 without). See [`docs/plans/Terraproof_Phase5_PLAN.md`](docs/plans/Terraproof_Phase5_PLAN.md).
253
+ - **Harder cohort:** a one-repeat Claude Code screen passed all six tasks both with and without Terraproof. That small screen shows no observed benefit and is separate from the original nine-task study. API pilots are exploratory and do not establish lift.
254
+ - **Real data (Phase 8):** on 34 sealed cases built from public Sentinel-2, Copernicus DEM, 3DEP and Natural Earth data, declared checks caught 7 of 7 covered wrong outputs with no false assurance and no false alarm. 20 of the 34 deliverables (validity masks, slope in percent, JSON reports) are forms no check covers yet. Contracts proposed from metadata alone did not meet acceptance. In a 10-run agent measurement, the agent rarely declared a goal, and the `s2-l2a` preset certified two wrong decodes; that preset now requires `--decode-offset`. See [`docs/plans/Terraproof_Phase8_PLAN.md`](docs/plans/Terraproof_Phase8_PLAN.md).
255
+ - **Real deliverables (Phase 9):** validity masks, slopes in percent and JSON summaries are now checkable. On 36 fresh sealed real-data cases, 33 deliverables got a declared requirement, and declared checks caught 12 of 15 wrong outputs with no false assurance or false alarm. In a 10-run agent measurement, 8 runs declared their goal (every offered `next_step` was followed), all 10 deliverables were correct, and no wrong output was certified. There was no comparison run, so no lift is claimed.
256
+ - **QA masks and reprojected slopes (Phase 10):** a declared validity mask is checked against the QA layer's own no-data, a slope on another grid than its DEM is checked after resampling (in ground metres on projections such as Web Mercator), and every number of a JSON report can be declared. A first measurement certified one wrong Web Mercator slope, and that was fixed. On 45 fresh sealed real-data cases, declared checks then caught every wrong mask (5 of 5) and 5 of 6 wrong reprojected slopes, verified all 6 correct ones, and certified no wrong output. Multi-value reports did not meet their bar: 4 of 6 wrong reports failed, and the other two held only numbers the check cannot express (NDVI, joint band selections), so they were not certified either. No agent run was measured for this release.
257
+ - **New screens and bathymetry (Phase 12):** four sealed real-data sets from independent authors measured the checks added after 0.12.0, each set fixing what the previous one found. On the last (62 cases), no wrong output was certified, and CRS area of use, topology, spatial leakage, mass conservation, SAR orbit and Sentinel-2 baseline each caught every wrong case and accepted every correct one. Bathymetry caught every wrong map but rejected 5 of 6 correct ones, so it stays experimental. See [`docs/plans/Terraproof_Phase12_PLAN.md`](docs/plans/Terraproof_Phase12_PLAN.md).
258
+ - **Real hosts:** tool use through MCP has been verified with Codex, Claude Code, Antigravity (Gemini) and OpenCode (Phase 8 P4, ten runs with real tool calls). Cursor and Copilot are unit-tested against their documented layouts only.
259
+
260
+ ---
261
+
262
+ ## Repository
263
+
264
+ | Path | Contents |
265
+ |---|---|
266
+ | `skills/` | The 24 skills |
267
+ | `routing/` | Generated skill registry, check catalog, rules, and collections |
268
+ | `router/` | TypeScript router and CLI (the npm package) |
269
+ | `src/terraproof/` | Python package: inspectors, checks, reports, router, MCP server, installers, evals |
270
+ | `evals/` | Eval task specs and routing sets |
271
+ | `tests/` | Router, Python, package, and release-validation tests |
272
+ | `instructions/` | Universal engineering rules shipped with the skills |
273
+ | `docs/` | [Release checklist](docs/RELEASE_CHECKLIST.md) and [design plans](docs/plans/) |
274
+ | `sources/`, `third_party/` | Upstream attribution and licenses |
275
+
276
+ To contribute, see [`CONTRIBUTING.md`](CONTRIBUTING.md). Changes are listed in [`CHANGELOG.md`](CHANGELOG.md).
277
+
278
+ ## License
279
+
280
+ [MIT](LICENSE). Vendored and adapted components keep their upstream licenses (MIT, Apache-2.0, 3-clause BSD), documented in `third_party/` and [`sources/SOURCES.md`](sources/SOURCES.md).
package/package.json CHANGED
@@ -1,67 +1,67 @@
1
- {
2
- "name": "terraproof",
3
- "version": "0.12.0",
4
- "description": "evidence-graded skills, tools, and checks for mapping and remote-sensing AI agents. By Geova.",
5
- "type": "module",
6
- "main": "./dist/router/index.js",
7
- "exports": {
8
- ".": "./dist/router/index.js",
9
- "./router": "./dist/router/index.js",
10
- "./routing": "./routing/registry.json"
11
- },
12
- "bin": {
13
- "terraproof": "bin/terraproof.js"
14
- },
15
- "scripts": {
16
- "build": "tsc -p tsconfig.build.json",
17
- "prepack": "npm run build",
18
- "route": "node router/index.ts route",
19
- "validate": "node router/index.ts validate",
20
- "registry:build": "node router/build-registry.ts",
21
- "registry:check": "node router/build-registry.ts --check",
22
- "test:router": "node tests/router/run.ts",
23
- "test:validate": "python tests/validate_repo.py",
24
- "test:package": "node tests/package/smoke.mjs",
25
- "test": "node tests/router/run.ts",
26
- "typecheck": "tsc --noEmit"
27
- },
28
- "repository": {
29
- "type": "git",
30
- "url": "git+https://github.com/esmailhussien/terraproof.git"
31
- },
32
- "homepage": "https://github.com/esmailhussien/terraproof#readme",
33
- "bugs": {
34
- "url": "https://github.com/esmailhussien/terraproof/issues"
35
- },
36
- "engines": {
37
- "node": ">=20"
38
- },
39
- "files": [
40
- "bin",
41
- "dist",
42
- "routing",
43
- "skills",
44
- "instructions",
45
- "third_party",
46
- "sources",
47
- "README.md",
48
- "LICENSE"
49
- ],
50
- "keywords": [
51
- "ai",
52
- "agent",
53
- "skills",
54
- "router",
55
- "geospatial",
56
- "gis",
57
- "remote-sensing",
58
- "earth-observation",
59
- "mapping"
60
- ],
61
- "author": "Terraproof Contributors",
62
- "license": "MIT",
63
- "devDependencies": {
64
- "typescript": "^5.7.0",
65
- "@types/node": "^22.0.0"
66
- }
67
- }
1
+ {
2
+ "name": "terraproof",
3
+ "version": "0.13.0",
4
+ "description": "evidence-graded skills, tools, and checks for mapping and remote-sensing AI agents. By Geova.",
5
+ "type": "module",
6
+ "main": "./dist/router/index.js",
7
+ "exports": {
8
+ ".": "./dist/router/index.js",
9
+ "./router": "./dist/router/index.js",
10
+ "./routing": "./routing/registry.json"
11
+ },
12
+ "bin": {
13
+ "terraproof": "bin/terraproof.js"
14
+ },
15
+ "scripts": {
16
+ "build": "tsc -p tsconfig.build.json",
17
+ "prepack": "npm run build",
18
+ "route": "node router/index.ts route",
19
+ "validate": "node router/index.ts validate",
20
+ "registry:build": "node router/build-registry.ts",
21
+ "registry:check": "node router/build-registry.ts --check",
22
+ "test:router": "node tests/router/run.ts",
23
+ "test:validate": "python tests/validate_repo.py",
24
+ "test:package": "node tests/package/smoke.mjs",
25
+ "test": "node tests/router/run.ts",
26
+ "typecheck": "tsc --noEmit"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/esmailhussien/terraproof.git"
31
+ },
32
+ "homepage": "https://github.com/esmailhussien/terraproof#readme",
33
+ "bugs": {
34
+ "url": "https://github.com/esmailhussien/terraproof/issues"
35
+ },
36
+ "engines": {
37
+ "node": ">=20"
38
+ },
39
+ "files": [
40
+ "bin",
41
+ "dist",
42
+ "routing",
43
+ "skills",
44
+ "instructions",
45
+ "third_party",
46
+ "sources",
47
+ "README.md",
48
+ "LICENSE"
49
+ ],
50
+ "keywords": [
51
+ "ai",
52
+ "agent",
53
+ "skills",
54
+ "router",
55
+ "geospatial",
56
+ "gis",
57
+ "remote-sensing",
58
+ "earth-observation",
59
+ "mapping"
60
+ ],
61
+ "author": "Terraproof Contributors",
62
+ "license": "MIT",
63
+ "devDependencies": {
64
+ "typescript": "^5.7.0",
65
+ "@types/node": "^22.0.0"
66
+ }
67
+ }
@@ -1,6 +1,26 @@
1
1
  {
2
2
  "version": "1.0.0",
3
3
  "checks": {
4
+ "bathymetry.vertical_reference": {
5
+ "family": "bathymetry",
6
+ "description": "Declared vertical datums agree, or differ by a declared offset of the output datum above the reference datum, before units and positive directions are normalized."
7
+ },
8
+ "bathymetry.reference_agreement": {
9
+ "family": "bathymetry",
10
+ "description": "Depth raster samples are compared with held-out point depths and declared error limits, including an optional per-point a + b x depth vertical accuracy share overall and by depth band."
11
+ },
12
+ "bathymetry.coverage": {
13
+ "family": "bathymetry",
14
+ "description": "Coverage and errors by reference depth band include cells without a prediction in the coverage denominator."
15
+ },
16
+ "bathymetry.holdout_independence": {
17
+ "family": "bathymetry",
18
+ "description": "Reference points that duplicate training points (same location within 0.01 m and same value) or share declared group IDs fail; shared raster cells are reported, not failed."
19
+ },
20
+ "bathymetry.repeatability": {
21
+ "family": "bathymetry",
22
+ "description": "Two co-registered depth rasters are compared for footprint overlap and depth differences on common cells."
23
+ },
4
24
  "crs.defined": {
5
25
  "family": "crs",
6
26
  "description": "Each georeferenced input declares a CRS."
@@ -11,7 +31,7 @@
11
31
  },
12
32
  "crs.metric_operation": {
13
33
  "family": "crs",
14
- "description": "A distance, area, or buffer operation runs in a projected horizontal CRS with metre or foot units, not in degrees or geocentric coordinates.",
34
+ "description": "A distance, area, or buffer operation runs in a projected horizontal CRS with metre or foot units, not in degrees, geocentric coordinates, or Web Mercator (EPSG:3857), whose scale grows with latitude; with metric_basis geodesic, any CRS with an ellipsoid passes.",
15
35
  "applies_to": [
16
36
  "raster",
17
37
  "vector"
@@ -20,6 +40,18 @@
20
40
  "operation"
21
41
  ]
22
42
  },
43
+ "crs.area_of_use": {
44
+ "family": "crs",
45
+ "description": "Opt-in: each dataset's bounds are valid degrees for a geographic CRS, do not collapse at Null Island (0, 0), touch a declared AOI, and lie inside the CRS's declared area of use (extending past it warns; wholly outside fails, with a swapped-axes hint; a transverse Mercator CRS accepts 3 degrees of longitude past it); a vector coordinate at Null Island fails unless the AOI contains (0, 0).",
46
+ "applies_to": [
47
+ "raster",
48
+ "vector"
49
+ ],
50
+ "enabled_by": [
51
+ "check_area_of_use",
52
+ "aoi"
53
+ ]
54
+ },
23
55
  "geometry.valid": {
24
56
  "family": "geometry",
25
57
  "description": "Every geometry is valid (no self-intersections or invalid rings)."
@@ -36,6 +68,26 @@
36
68
  "family": "geometry",
37
69
  "description": "GeoJSON polygon rings follow the RFC 7946 right-hand rule: counterclockwise exteriors, clockwise holes."
38
70
  },
71
+ "geometry.duplicates": {
72
+ "family": "geometry",
73
+ "description": "Opt-in layer topology: no two valid features are topologically equal, whatever their vertex order or start vertex.",
74
+ "applies_to": [
75
+ "vector"
76
+ ],
77
+ "enabled_by": [
78
+ "topology"
79
+ ]
80
+ },
81
+ "geometry.overlaps": {
82
+ "family": "geometry",
83
+ "description": "Opt-in layer topology: no two valid polygon features share a positive area; shared edges are allowed. Omitted for a layer without polygons.",
84
+ "applies_to": [
85
+ "vector"
86
+ ],
87
+ "enabled_by": [
88
+ "topology"
89
+ ]
90
+ },
39
91
  "scope.record_count": {
40
92
  "family": "scope",
41
93
  "description": "The output feature count is compared with a reference dataset's count.",
@@ -79,6 +131,16 @@
79
131
  "family": "raster",
80
132
  "description": "Heuristic layout screen for GeoTIFFs: tiled, with internal overviews unless the raster fits in one block, and not lossy JPEG; not COG validation."
81
133
  },
134
+ "raster.mass_conservation": {
135
+ "family": "raster",
136
+ "description": "Opt-in: an extensive raster (counts, emissions, volume per cell) moved to another grid keeps the total of its declared source: area-weighted over the output's valid cells on the same north-up CRS, the whole source total otherwise; with several declared sources (daily rasters of a monthly total), the sum of their totals.",
137
+ "applies_to": [
138
+ "raster"
139
+ ],
140
+ "enabled_by": [
141
+ "mass_source"
142
+ ]
143
+ },
82
144
  "rs.reflectance_range": {
83
145
  "family": "rs",
84
146
  "description": "Sampled plausibility screen: reflectance values lie within [-0.5, 1.5]; non-finite scale, offset, or values fail. Not a calibration check.",
@@ -135,6 +197,17 @@
135
197
  "time_range"
136
198
  ]
137
199
  },
200
+ "rs.baseline_consistency": {
201
+ "family": "rs",
202
+ "description": "Opt-in: Sentinel-2 STAC items do not mix processing baselines across 04.00 (the -0.1 BOA_ADD_OFFSET change), or all lie on the side a declared baseline_rule names, read from s2:processing_baseline or reflectance band offsets, never from dates.",
203
+ "applies_to": [
204
+ "stac"
205
+ ],
206
+ "enabled_by": [
207
+ "check_baseline",
208
+ "baseline_rule"
209
+ ]
210
+ },
138
211
  "terrain.slope_consistent": {
139
212
  "family": "terrain",
140
213
  "description": "A slope-in-degrees raster matches central differences on its DEM (passed with --dem) using the DEM's declared vertical unit and real pixel spacing; matching the slope with vertical units ignored or square pixels assumed fails, matching neither warns, and geographic or unaligned grids are not-run.",
@@ -178,6 +251,29 @@
178
251
  "sar_expect"
179
252
  ]
180
253
  },
254
+ "sar.orbit_consistency": {
255
+ "family": "sar",
256
+ "description": "Opt-in: multi-date SAR STAC items state one sat:orbit_state and one sat:relative_orbit, or the declared orbit_direction and relative_orbit (an orbit number or any), so differencing does not map viewing-geometry change as surface change.",
257
+ "applies_to": [
258
+ "stac"
259
+ ],
260
+ "enabled_by": [
261
+ "check_orbit",
262
+ "orbit_direction",
263
+ "relative_orbit"
264
+ ]
265
+ },
266
+ "geoai.spatial_leakage": {
267
+ "family": "geoai",
268
+ "description": "Opt-in: no test-split feature intersects, or lies within the declared buffer of, a training-split feature, measured in metres; with no buffer, tightly interleaved splits warn.",
269
+ "applies_to": [
270
+ "vector"
271
+ ],
272
+ "enabled_by": [
273
+ "train_split",
274
+ "test_split"
275
+ ]
276
+ },
181
277
  "accuracy.sample_design": {
182
278
  "family": "accuracy",
183
279
  "description": "Every map class in the reference-sample CSV has at least min_per_class samples (default 50, a configurable rule of thumb); missing class areas when area estimates are requested are warned."
@@ -332,6 +428,14 @@
332
428
  "summary_source",
333
429
  "summaries"
334
430
  ]
431
+ },
432
+ "lint.static_analysis": {
433
+ "family": "lint",
434
+ "description": "Static (AST-only, never executed) scan of Python scripts found by audit for metric operations in EPSG:4326 or 3857, continuous resampling of class or QA data, set_crs overrides, dB means and credential-bearing URLs."
435
+ },
436
+ "audit.discovery": {
437
+ "family": "audit",
438
+ "description": "Every file audit discovered was inspected: an unreadable one fails, and files past max_files are not-run."
335
439
  }
336
440
  }
337
441
  }
@@ -1,55 +1,63 @@
1
- {
2
- "version": "1.0.0",
3
- "note": "A goal profile names the checks a declared goal requires. Each check still needs its own declared bindings; a missing one makes the requirement incomplete. Nothing is inferred from task text.",
4
- "profiles": {
5
- "vertical-units": {
6
- "description": "A height, depth or elevation-change output made from sources with declared vertical units.",
7
- "checks": [
8
- "raster.vertical_units"
9
- ]
10
- },
11
- "nodata-support": {
12
- "description": "An output whose valid cells must follow its sources' declared fill and support rule.",
13
- "checks": [
14
- "raster.nodata_support"
15
- ]
16
- },
17
- "qa-masked": {
18
- "description": "An optical output that must exclude cells flagged by a declared QA layer.",
19
- "checks": [
20
- "rs.cloud_mask_applied"
21
- ]
22
- },
23
- "scaled-reflectance": {
24
- "description": "Surface reflectance decoded once from a declared integer product encoding.",
25
- "checks": [
26
- "rs.reflectance_range",
27
- "rs.scale_applied_once"
28
- ]
29
- },
30
- "metric-operation": {
31
- "description": "A dataset about to be used for a distance, area, length or buffer operation must be in a metric CRS. For measurements already delivered, use metric-values.",
32
- "checks": [
33
- "crs.metric_operation"
34
- ]
35
- },
36
- "slope-from-dem": {
37
- "description": "A slope-in-degrees output derived from a declared DEM.",
38
- "checks": [
39
- "terrain.slope_consistent"
40
- ]
41
- },
42
- "metric-values": {
43
- "description": "Vector measurements already delivered (area or length properties, or a buffer), in any CRS.",
44
- "checks": [
45
- "geometry.metric_values"
46
- ]
47
- },
48
- "summary-value": {
49
- "description": "A JSON report delivering one statistic (mean, count, sum, min, max, area or length) of a declared raster or vector source.",
50
- "checks": [
51
- "report.summary_value"
52
- ]
53
- }
54
- }
55
- }
1
+ {
2
+ "version": "1.0.0",
3
+ "note": "A goal profile names the checks a declared goal requires. Each check still needs its own declared bindings; a missing one makes the requirement incomplete. Nothing is inferred from task text.",
4
+ "profiles": {
5
+ "vertical-units": {
6
+ "description": "A height, depth or elevation-change output made from sources with declared vertical units.",
7
+ "checks": [
8
+ "raster.vertical_units"
9
+ ]
10
+ },
11
+ "nodata-support": {
12
+ "description": "An output whose valid cells must follow its sources' declared fill and support rule.",
13
+ "checks": [
14
+ "raster.nodata_support"
15
+ ]
16
+ },
17
+ "qa-masked": {
18
+ "description": "An optical output that must exclude cells flagged by a declared QA layer.",
19
+ "checks": [
20
+ "rs.cloud_mask_applied"
21
+ ]
22
+ },
23
+ "scaled-reflectance": {
24
+ "description": "Surface reflectance decoded once from a declared integer product encoding.",
25
+ "checks": [
26
+ "rs.reflectance_range",
27
+ "rs.scale_applied_once"
28
+ ]
29
+ },
30
+ "metric-operation": {
31
+ "description": "A dataset about to be used for a distance, area, length or buffer operation must be in a metric CRS. For measurements already delivered, use metric-values.",
32
+ "checks": [
33
+ "crs.metric_operation"
34
+ ]
35
+ },
36
+ "slope-from-dem": {
37
+ "description": "A slope-in-degrees output derived from a declared DEM.",
38
+ "checks": [
39
+ "terrain.slope_consistent"
40
+ ]
41
+ },
42
+ "metric-values": {
43
+ "description": "Vector measurements already delivered (area or length properties, or a buffer), in any CRS.",
44
+ "checks": [
45
+ "geometry.metric_values"
46
+ ]
47
+ },
48
+ "summary-value": {
49
+ "description": "A JSON report delivering one statistic (mean, count, sum, min, max, area or length) of a declared raster or vector source.",
50
+ "checks": [
51
+ "report.summary_value"
52
+ ]
53
+ },
54
+ "bathymetry-holdout": {
55
+ "description": "A depth raster graded against independent held-out soundings declared in a bathymetry audit file: vertical reference, depth error and coverage by depth band.",
56
+ "checks": [
57
+ "bathymetry.vertical_reference",
58
+ "bathymetry.reference_agreement",
59
+ "bathymetry.coverage"
60
+ ]
61
+ }
62
+ }
63
+ }
@@ -179,9 +179,12 @@ python -m terraproof check parcels_geographic.gpkg --operation buffer
179
179
  `crs.defined` checks presence, not whether the label is true. `crs.consistent`
180
180
  compares multiple positional datasets with the first; it does not reproject them.
181
181
  `crs.metric_operation` fails for a geographic or geocentric CRS with the declared
182
- operation. It passes only a projected horizontal CRS (including a compound CRS whose
182
+ operation, and for Web Mercator (EPSG:3857), whose scale grows with latitude. It passes
183
+ only a projected horizontal CRS (including a compound CRS whose
183
184
  horizontal part is projected) in metre- **or foot-based** units, and warns when the
184
- units cannot be confirmed. The last command
185
+ units cannot be confirmed. With `--metric-basis geodesic` (the measurement is made on the
186
+ ellipsoid) it instead passes any CRS that defines an ellipsoid; it does not check the measured
187
+ values. The last command
185
188
  is an intentional negative preflight, not a recipe for a geographic buffer.
186
189
 
187
190
  Projection distortion, unit conversion in your arithmetic, axis order, control
@@ -6,6 +6,29 @@ This file tracks upstream repositories, specifications, and references evaluated
6
6
 
7
7
  ## Sources
8
8
 
9
+ ### Scientific workflow core: native Landsat surface temperature
10
+
11
+ New implementation authored for Terraproof under MIT; no upstream processing code is vendored. The experimental local workflow uses the existing checks and evidence formats. Product interpretation references:
12
+
13
+ - [USGS Landsat Collection 2 Surface Temperature](https://www.usgs.gov/landsat-missions/landsat-collection-2-surface-temperature): existing retrieval and temperature conversion, not a new atmospheric-correction method.
14
+ - [USGS Landsat Collection 2 Quality Assessment Bands](https://www.usgs.gov/landsat-missions/landsat-collection-2-quality-assessment-bands): QA_PIXEL flag meanings and ST_QA interpretation. Quality exclusions remain an explicitly reviewed user policy.
15
+ - [USGS Landsat 8–9 Collection 2 Level-2 Data Format Control Book, version 7](https://d9-wret.s3.us-west-2.amazonaws.com/assets/palladium/production/s3fs-public/media/files/LSDS-1328_Landsat8-9_OLI-TIRS-C2-L2_DFCB-v7.pdf): MTL asset field names, native data types, fill and ST_QA scaling.
16
+ - [USGS missing Surface Temperature data](https://www.usgs.gov/faqs/why-does-my-landsat-collection-2-surface-temperature-product-have-missing-data): missing upstream emissivity can leave missing ST; the route does not fill it invisibly.
17
+
18
+ Reviewed 2026-11-03. These references support the adapter's product semantics, not a guarantee of absolute physical accuracy. See [Scientific workflows](../docs/SCIENTIFIC_WORKFLOWS.md).
19
+
20
+ Real-scene engineering validation on 2026-11-03 used native USGS Landsat 9 product `LC09_L2SP_175042_20230731_20230802_02_T1` (MTL TXT, ST_B10, QA_PIXEL, ST_QA), acquired 2023-07-31 near Luxor, Egypt. Attribution: USGS Landsat Collection 2 Level-2 Surface Temperature; Microsoft Planetary Computer provided the catalog and public distribution. Original metadata, bytes and source URLs are retained externally; no raster data are vendored in this repository. The derived map is attributed to that USGS product. See the [experiment record](../docs/SCIENTIFIC_WORKFLOW_REAL_SCENE_2026-11-03.md), [catalog item](https://planetarycomputer.microsoft.com/api/stac/v1/collections/landsat-c2-l2/items/LC09_L2SP_175042_20230731_02_T1), [Planetary Computer documentation](https://planetarycomputer.microsoft.com/docs/) and [official SDK access implementation](https://github.com/microsoft/planetary-computer-sdk-for-python). Anonymous access tokens are transient and not part of retained evidence.
21
+
22
+ The additional 2026-11-03 boundary batch used USGS Landsat 8 product `LC08_L2SP_199023_20230715_20230724_02_T1`, acquired 2023-07-15, intersecting the Netherlands AOI. The same four original asset types, USGS attribution and public Planetary Computer distribution apply; 127,455,522 bytes are retained outside the repository. Dataset citation: Earth Resources Observation and Science (EROS) Center (2020), Landsat 8-9 OLI/TIRS Level-2, Collection 2, U.S. Geological Survey, [doi:10.5066/P9OGBGM6](https://doi.org/10.5066/P9OGBGM6). The [boundary review](../docs/SCIENTIFIC_WORKFLOW_BOUNDARY_REVIEW_2026-11-03.md) also consulted [USGS Collection 2 known issues](https://www.usgs.gov/landsat-missions/landsat-collection-2-known-issues) for emissivity/blockiness limitations; no claim is made that Terraproof corrected those upstream issues.
23
+
24
+ The experimental [source-selection extension](../docs/SCIENTIFIC_SOURCE_RECOVERY.md) is authored for Terraproof under MIT; it vendors no SDK processing code. Its one-provider public metadata and transient container-token access flow follows the [Planetary Computer STAC documentation](https://planetarycomputer.microsoft.com/docs/quickstarts/reading-stac/) and [official SDK SAS implementation](https://github.com/microsoft/planetary-computer-sdk-for-python/blob/main/planetary_computer/sas.py), reviewed 2026-11-03. STAC footprints/cloud percentages are proposals, not independent thermal or AOI-quality validation.
25
+
26
+ The [source-recovery demonstration](../docs/SCIENTIFIC_SOURCE_RECOVERY_RESULT_2026-11-03.md) acquired USGS Landsat 8 product `LC08_L2SP_198024_20230708_20230718_02_T1` (2023-07-08, Netherlands AOI), native MTL TXT/ST_B10/QA_PIXEL/ST_QA, 120,640,169 bytes, from the same public distribution. Original assets/hashes remain external; no raster data are vendored. Attribution: USGS Landsat Collection 2 Level-2, EROS Center dataset [doi:10.5066/P9OGBGM6](https://doi.org/10.5066/P9OGBGM6); Microsoft Planetary Computer catalog/access service. It is a different acquisition from the earlier July 15 scene, not a correction of that observation.
27
+
28
+ The reviewer-driven [acquisition/uncertainty correction](../docs/SCIENTIFIC_ACQUISITION_UNCERTAINTY.md) reuses those original assets. It distinguishes QA_PIXEL bit-0 nonfill support from raster bounds, following the [USGS QA band definitions](https://www.usgs.gov/landsat-missions/landsat-collection-2-quality-assessment-bands) and native DFCB v7 cited above (QA fill and signed ST_QA hundredths of kelvin). No new raster sources or upstream processing code are introduced. Diagnostic cutoffs are explicit caller choices, not USGS recommendations or accuracy guarantees.
29
+
30
+ ### Existing source registry
31
+
9
32
  | Source | Area | Status |
10
33
  |---|---|---|
11
34
  | Agent Skills specification | Skill format | Research |
@@ -530,3 +553,220 @@ SHA-256 of every fetched file is recorded in the bundle's cache manifest.
530
553
  FGDC sidecar; public domain (sidecar statement).
531
554
  - **Natural Earth 110m admin-0 countries** - GeoJSON at tag v5.1.2; public
532
555
  domain.
556
+
557
+ ## Phase 12 T0 (verification-heldout-t0) data sources
558
+
559
+ The bundle `evals/verification-heldout-t0/` fetches the following public
560
+ sources with fixed URLs (no account, API key, requester-pays bucket or
561
+ expiring signed URL) into a local cache outside the repository; binaries are
562
+ never committed. The SHA-256 of every fetched file is pinned in `fetch.py` and
563
+ recorded in the cache manifest.
564
+
565
+ - **NOAA NOS hydrographic surveys (NCEI)** - GEODAS digital soundings of
566
+ surveys H12100 (Virginia inner shelf), H12047 (approaches to Honolulu),
567
+ H11952 (Point Conception, California) and H10950 (northern Clarence Strait,
568
+ Alaska), plus the HYD93 header page of H10950, from
569
+ `data.ngdc.noaa.gov/platforms/ocean/nos/coast/`. Licence: US Government work,
570
+ public domain. Attribution (requested citation): *"NOAA National Centers for
571
+ Environmental Information, NOS Hydrographic Survey Data."*
572
+ - **NOAA CO-OPS tidal datums** - datums and station records of stations
573
+ 8632200 (Kiptopeke, VA) and 9412110 (Port San Luis, CA) from the CO-OPS
574
+ metadata API (`api.tidesandcurrents.noaa.gov/mdapi/prod/webapi/`). Licence:
575
+ US Government work, public domain; attribution *"NOAA/NOS/CO-OPS"*.
576
+ - **US Census Bureau cartographic boundary file** - `cb_2023_us_county_5m.zip`
577
+ (counties, 1:5,000,000) with its ISO metadata, from `www2.census.gov`.
578
+ Licence: US Government work, public domain; attribution *"Source: U.S.
579
+ Census Bureau, 2023 Cartographic Boundary Files"*.
580
+ - **Natural Earth 10m populated places (simple) and 10m rivers and lake
581
+ centerlines** - GeoJSON pinned at tag v5.1.2 of
582
+ `https://github.com/nvkelso/natural-earth-vector`. Licence: public domain (no
583
+ attribution required; *"Made with Natural Earth"* given as courtesy).
584
+ - **WorldPop 2020 1 km unconstrained population counts** - Rwanda, Burundi and
585
+ Eswatini (`*_ppp_2020_1km_Aggregated.tif`) from `data.worldpop.org`.
586
+ Licence: CC BY 4.0. Required attribution: *"WorldPop (www.worldpop.org -
587
+ School of Geography and Environmental Science, University of Southampton;
588
+ Department of Geography and Geosciences, University of Louisville; Departement
589
+ de Geographie, Universite de Namur) and Center for International Earth Science
590
+ Information Network (CIESIN), Columbia University (2018). Global
591
+ High Resolution Population Denominators Project - Funded by The Bill and
592
+ Melinda Gates Foundation (OPP1134076). https://dx.doi.org/10.5258/SOTON/WP00671"*.
593
+ - **Copernicus DEM GLO-30** - 300 x 300 pixel windows of tiles N64 W022
594
+ (Reykjavik), N55 E012 (Copenhagen), N42 E001 (Andorra) and N61 E008
595
+ (Jotunheimen) from the AWS Open Data bucket `copernicus-dem-30m`. Licence:
596
+ Copernicus DEM licence (free use with attribution). Required attribution:
597
+ *"(c) DLR e.V. 2010-2014 and (c) Airbus Defence and Space GmbH 2014-2018
598
+ provided under COPERNICUS by the European Union and ESA; all rights
599
+ reserved."*
600
+ - **Sentinel-1 GRD STAC items (Earth Search)** - 36 items over Lake Balaton
601
+ (June-July 2025) and Dhaka (March-May 2025) from element84's Earth Search
602
+ STAC API v1, collection `sentinel-1-grd` (item JSON only; the pixel assets are
603
+ requester-pays and are not fetched). Licence: Copernicus Sentinel data terms
604
+ (Sentinel Data Legal Notice), free of charge. Required attribution:
605
+ *"Contains modified Copernicus Sentinel data 2025."*
606
+ - **Sentinel-2 L2A (Earth Search)** - 20 STAC items and 100 x 100 pixel B04
607
+ windows (plus one B08 window) over the Donana marshes (MGRS 29SQB, 2021-2023)
608
+ and Lake Naivasha (MGRS 36MZE, 2021-2024), from collections `sentinel-2-l2a`
609
+ and `sentinel-2-c1-l2a` (public `sentinel-cogs` and
610
+ `e84-earth-search-sentinel-data` buckets). Licence: Copernicus Sentinel data
611
+ terms, free of charge. Required attribution: *"Contains modified Copernicus
612
+ Sentinel data 2021-2024."*
613
+ - **Not used:** WorldPop Malawi (its server refuses HTTP range requests and
614
+ the whole file exceeds the window limit) and NCEI's ISO survey metadata
615
+ records (HTTP 403 for automated clients).
616
+
617
+ ## Phase 12 T1 (verification-heldout-t1) data sources
618
+
619
+ All fetched by `evals/verification-heldout-t1/fetch.py` from fixed public URLs (no account,
620
+ key, requester-pays bucket or signed URL); no raster binary is committed.
621
+
622
+ - **NOAA NCEI NOS hydrographic surveys** - GEODAS CSV soundings and HYD93 headers for surveys
623
+ H10420, H10450, H10520, H10580, H10610, H10640, H10670, H10700, H10760, H10790, H10870 and
624
+ H10880 (`data.ngdc.noaa.gov/platforms/ocean/nos/coast/`), plus the GEODAS HYD93 format
625
+ specification (`www.ngdc.noaa.gov/mgg/dat/geodas/docs/hyd93.htm`). Licence: U.S. Government
626
+ work, public domain. Attribution (requested): *"NOAA National Centers for Environmental
627
+ Information, NOS Hydrographic Survey Data."*
628
+ - **NOAA CO-OPS tidal datums** - station 9455760 Nikiski, AK, datums and station record from
629
+ the CO-OPS Metadata API (`api.tidesandcurrents.noaa.gov/mdapi/prod/webapi/stations/`).
630
+ Licence: U.S. Government work, public domain. Attribution (requested): *"NOAA Center for
631
+ Operational Oceanographic Products and Services."*
632
+ - **Copernicus DEM GLO-30** - windows of tiles N47 E013 (Dachstein), N43 E041 and N43 E042
633
+ (western Caucasus, across 42 E), S33 W070 (Aconcagua), N35 E138 (Mount Fuji) and N61 W150
634
+ (Chugach Mountains) from the public AWS Open Data bucket
635
+ (`copernicus-dem-30m.s3.amazonaws.com`). Licence: free use with attribution under the
636
+ Copernicus DEM licence; *"© DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018
637
+ provided under COPERNICUS by the European Union and ESA; all rights reserved."*
638
+ Attribution: *"Contains Copernicus DEM data"*.
639
+ - **Sentinel-2 L2A** - Earth Search v1 (`earth-search.aws.element84.com/v1`) STAC items and B04/B08
640
+ COG windows of MGRS tiles 50HLK (Perth, Dec 2021 - Feb 2022, collections `sentinel-2-l2a` and
641
+ `sentinel-2-c1-l2a`), 19HCC (Santiago, Dec 2021 - Feb 2022) and 34TFS (Cluj-Napoca, Jan 2022),
642
+ COGs from the public `sentinel-cogs` and `e84-earth-search-sentinel-data` buckets. Licence:
643
+ Copernicus Sentinel data terms (free, full and open); attribution *"Contains modified
644
+ Copernicus Sentinel data 2021-2022."* STAC metadata by Element 84 (Earth Search).
645
+ - **Sentinel-1 GRD** - Earth Search v1 `sentinel-1-grd` STAC items only (the GRD assets are
646
+ requester-pays and were not fetched) over the Dead Sea (June-July 2025), the Po delta
647
+ (April 2025) and the Mekong delta at Can Tho (September 2021 and April 2025). Licence:
648
+ Copernicus Sentinel data terms; attribution *"Contains modified Copernicus Sentinel data
649
+ 2021-2025."*
650
+ - **WorldPop 2020 population counts** - unconstrained 100 m `ppp` rasters for São Tomé and
651
+ Príncipe (STP) and Comoros (COM) (`data.worldpop.org/GIS/Population/Global_2000_2020/2020/`),
652
+ downloaded whole and cut to island windows, with the WorldPop REST metadata
653
+ (`hub.worldpop.org/rest/data/pop/wpgp?iso3=...`) and licence text
654
+ (`hub.worldpop.org/data/licence.txt`). Licence: Creative Commons Attribution 4.0
655
+ International. Attribution: *"WorldPop (www.worldpop.org - School of Geography and
656
+ Environmental Science, University of Southampton; Department of Geography and Geosciences,
657
+ University of Louisville; Departement de Geographie, Universite de Namur) and Center for
658
+ International Earth Science Information Network (CIESIN), Columbia University (2018). Global
659
+ High Resolution Population Denominators Project - Funded by The Bill and Melinda Gates
660
+ Foundation (OPP1134076)."* DOI 10.5258/SOTON/WP00645 (STP and COM entries as served).
661
+ - **CHIRPS v2.0** - daily and monthly COG windows for southern Malawi (March 2023) and central
662
+ Kerala (July 2023), and the README (`data.chc.ucsb.edu/products/CHIRPS/v2.0/`). Licence:
663
+ public domain - the CHC data page states that copyright and related rights have been waived
664
+ and *"CHIRPS data is in the public domain as registered with Creative Commons."* Citation
665
+ (requested): Funk, C. et al. (2015), *The climate hazards infrared precipitation with
666
+ stations*, Scientific Data 2, 150066.
667
+ - **Natural Earth v5.1.2** - `ne_50m_admin_1_states_provinces`, `ne_10m_lakes`,
668
+ `ne_10m_airports` and `ne_10m_ports` GeoJSON pinned at tag v5.1.2 of
669
+ `https://github.com/nvkelso/natural-earth-vector`. Licence: public domain (no attribution
670
+ required); *"Made with Natural Earth."*
671
+
672
+ ## Phase 12 T2 (verification-heldout-t2) data sources
673
+
674
+ All fetched by `evals/verification-heldout-t2/fetch.py` from fixed public URLs (no account, key,
675
+ requester-pays bucket or signed URL); no raster binary is committed.
676
+
677
+ - **NOAA NCEI NOS hydrographic surveys** - GEODAS CSV soundings of surveys H11269 (Rosario Strait,
678
+ WA), H11417 (St. Simons Sound approaches, GA), H11565 (southwest Puerto Rico), H11639 (central San
679
+ Francisco Bay, CA), H11750 (Strait of Juan de Fuca off Port Angeles, WA), H11861 (Charleston
680
+ Harbor, SC) and H11972 (off Shelter Cove, CA), the HYD93 header page of H11269
681
+ (`data.ngdc.noaa.gov/platforms/ocean/nos/coast/H10001-H12000/`) and the GEODAS HYD93 format
682
+ specification (`www.ngdc.noaa.gov/mgg/dat/geodas/docs/hyd93.htm`). Licence: U.S. Government work,
683
+ public domain. Attribution (requested): *"NOAA National Centers for Environmental Information, NOS
684
+ Hydrographic Survey Data."*
685
+ - **NOAA CO-OPS tidal datums** - station 8665530 Charleston, Cooper River Entrance, SC: datums and
686
+ station record from the CO-OPS Metadata API
687
+ (`api.tidesandcurrents.noaa.gov/mdapi/prod/webapi/stations/8665530`). Licence: U.S. Government
688
+ work, public domain. Attribution (requested): *"NOAA Center for Operational Oceanographic Products
689
+ and Services."*
690
+ - **U.S. Census Bureau** - 2023 cartographic boundary census tracts of Montana and Maine
691
+ (`cb_2023_30_tract_500k.zip`, `cb_2023_23_tract_500k.zip`, `www2.census.gov/geo/tiger/GENZ2023/shp/`)
692
+ and 2023 TIGER/Line roads of Gallatin County, MT and Aroostook County, ME
693
+ (`tl_2023_30031_roads.zip`, `tl_2023_23003_roads.zip`, `www2.census.gov/geo/tiger/TIGER2023/ROADS/`),
694
+ each with its ISO metadata inside the zip. Licence: U.S. Government work, public domain.
695
+ Attribution: *"Source: U.S. Census Bureau, 2023 Cartographic Boundary Files and 2023 TIGER/Line
696
+ Shapefiles."*
697
+ - **WorldPop 2020 1 km unconstrained population counts** - Lesotho (LSO), Bhutan (BTN) and The
698
+ Gambia (GMB) `*_ppp_2020_1km_Aggregated.tif`
699
+ (`data.worldpop.org/GIS/Population/Global_2000_2020_1km/2020/`), with the WorldPop REST metadata
700
+ (`hub.worldpop.org/rest/data/pop/wpic1km?iso3=...`). Licence: Creative Commons Attribution 4.0
701
+ International. Attribution: *"WorldPop (www.worldpop.org - School of Geography and Environmental
702
+ Science, University of Southampton; Department of Geography and Geosciences, University of
703
+ Louisville; Departement de Geographie, Universite de Namur) and Center for International Earth
704
+ Science Information Network (CIESIN), Columbia University (2018). Global High Resolution
705
+ Population Denominators Project - Funded by The Bill and Melinda Gates Foundation (OPP1134076)."*
706
+ DOI 10.5258/SOTON/WP00670 (as served for these entries).
707
+ - **Copernicus DEM GLO-30** - 300 x 300 pixel windows of tiles N45 W110 (Beartooth Plateau, MT),
708
+ N39 W107 (Elk Mountains, CO) and S02 W079 (Chimborazo, Ecuador) from the public AWS Open Data
709
+ bucket (`copernicus-dem-30m.s3.amazonaws.com`). Licence: free use with attribution under the
710
+ Copernicus DEM licence; *"© DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018
711
+ provided under COPERNICUS by the European Union and ESA; all rights reserved."*
712
+ - **Sentinel-2 L2A** - Earth Search v1 (`earth-search.aws.element84.com/v1`) STAC items and
713
+ 100 x 100 pixel B04 windows (one B08 window) of MGRS tiles 12TVR (Bozeman, MT), 55HFB (Canberra)
714
+ and 19LDC (Lake Titicaca near Puno), December 2021 - February 2022, collections `sentinel-2-l2a`
715
+ and `sentinel-2-c1-l2a` (COGs in the public `sentinel-cogs` and `e84-earth-search-sentinel-data`
716
+ buckets). Licence: Copernicus Sentinel data terms (free, full and open); attribution *"Contains
717
+ modified Copernicus Sentinel data 2021-2022."* STAC metadata by Element 84 (Earth Search).
718
+ - **Sentinel-1 GRD** - Earth Search v1 `sentinel-1-grd` STAC items only (the GRD assets are
719
+ requester-pays and were not fetched) over the Camargue (Rhône delta), the Danube delta and the
720
+ Albufera de Valencia, July-August 2025. Licence: Copernicus Sentinel data terms; attribution
721
+ *"Contains modified Copernicus Sentinel data 2025."*
722
+
723
+ ## Phase 12 T3 (verification-heldout-t3) data sources
724
+
725
+ All fetched by `evals/verification-heldout-t3/fetch.py` from fixed public URLs (no account,
726
+ key, requester-pays bucket or signed URL); no raster binary is committed. Reviewed 2026-11-30.
727
+
728
+ - **NOAA NCEI NOS hydrographic surveys** - GEODAS CSV soundings of surveys H11018, H11190,
729
+ H11548, H11605, H11827, H12024, H12025 and H12216 (Puget Sound, Washington), the HYD93 header
730
+ of H11190 (`data.ngdc.noaa.gov/platforms/ocean/nos/coast/`) and the GEODAS HYD93 format
731
+ specification (`www.ngdc.noaa.gov/mgg/dat/geodas/docs/hyd93.htm`). Licence: U.S. Government
732
+ work, public domain. Attribution (requested): *"NOAA National Centers for Environmental
733
+ Information, NOS Hydrographic Survey Data."*
734
+ - **NOAA CO-OPS tidal datums** - station 9447130 Seattle, WA, metric datums and station record
735
+ from the CO-OPS Metadata API (`api.tidesandcurrents.noaa.gov/mdapi/prod/webapi/stations/`).
736
+ Licence: U.S. Government work, public domain. Attribution (requested): *"NOAA Center for
737
+ Operational Oceanographic Products and Services."*
738
+ - **Copernicus DEM GLO-30** - windows (at most 288 x 288 pixels) of tiles N37 E014 (Etna),
739
+ N27 E086 (Everest), S04 E037 (Kilimanjaro), S44 E170 (Aoraki / Mount Cook), N19 W157 and
740
+ N19 W156 (Keahole Point, Hawai'i) and each tile's metadata XML, from the public AWS Open Data
741
+ bucket (`copernicus-dem-30m.s3.amazonaws.com`). Licence: free use with attribution under the
742
+ Copernicus DEM licence; *"(c) DLR e.V. 2010-2014 and (c) Airbus Defence and Space GmbH
743
+ 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved."*
744
+ Attribution: *"Contains Copernicus DEM data"*.
745
+ - **WorldPop 2020 unconstrained population counts (ppp, 3 arc-second)** - Andorra, Barbados,
746
+ Malta, Singapore, Liechtenstein and Aruba (`data.worldpop.org/GIS/Population/Global_2000_2020/2020/`).
747
+ Licence: Creative Commons Attribution 4.0 International. Citation: *WorldPop
748
+ (www.worldpop.org - School of Geography and Environmental Science, University of Southampton;
749
+ Department of Geography and Geosciences, University of Louisville; Departement de Geographie,
750
+ Universite de Namur) and Center for International Earth Science Information Network (CIESIN),
751
+ Columbia University (2018). Global High Resolution Population Denominators Project - Funded
752
+ by The Bill and Melinda Gates Foundation (OPP1134076).
753
+ https://dx.doi.org/10.5258/SOTON/WP00645*
754
+ - **US Census Bureau cartographic boundary files** - `cb_2023_us_county_20m`,
755
+ `cb_2023_41_tract_500k` and `cb_2019_41_tract_500k` (`www2.census.gov/geo/tiger/`). Licence:
756
+ U.S. Government work, public domain. Attribution (requested): *"Source: U.S. Census Bureau,
757
+ Cartographic Boundary Files."*
758
+ - **Natural Earth v5.1.2** - `ne_10m_rivers_lake_centerlines` and
759
+ `ne_10m_populated_places_simple` GeoJSON pinned at tag v5.1.2 of
760
+ `https://github.com/nvkelso/natural-earth-vector`. Licence: public domain (no attribution
761
+ required); *"Made with Natural Earth."*
762
+ - **Sentinel-1 GRD STAC items** - 28 Earth Search v1 (`earth-search.aws.element84.com/v1`)
763
+ `sentinel-1-grd` items of May-June 2025 over the Volga delta, Lake Geneva, the Sundarbans and
764
+ the Okavango delta (metadata only; no SAR pixels are fetched).
765
+ - **Sentinel-2 L2A STAC items and COG windows** - 28 Earth Search v1 items of MGRS tiles 33UXP
766
+ (Vienna), 18TWL (New York) and 54SUE (Tokyo), October 2021 - March 2022, from collections
767
+ `sentinel-2-l2a` and `sentinel-2-c1-l2a`, with 64 x 64 windows of their B08 (nir) COGs and
768
+ 200 x 200 B04/B08 windows of one Collection 1 scene (`sentinel-cogs` and
769
+ `e84-earth-search-sentinel-data` public buckets).
770
+ Sentinel data licence: free and open under the Legal Notice on the use of Copernicus Sentinel
771
+ Data and Service Information. Attribution: *"Contains modified Copernicus Sentinel data
772
+ 2021-2025."* STAC metadata and COG conversion by Element 84 (Earth Search).