terraproof 0.7.2 → 0.8.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,165 +1,190 @@
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, review required, or advisory only.
12
-
13
- Everything runs locally and offline. No model API key is needed.
14
-
15
- **Status:** experimental (v0.7.2). 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+, from a clone):
29
-
30
- ```bash
31
- git clone https://github.com/esmailhussien/terraproof.git
32
- cd terraproof
33
- python -m venv .venv
34
- .venv/bin/python -m pip install -e ".[mcp]" # Windows: .venv\Scripts\python -m pip install -e ".[mcp]"
35
-
36
- python -m terraproof check ndvi.tif --expect index --format md
37
- python -m terraproof check outputs/clip.gpkg --compare-to data/parcels.gpkg --format md --lang ar --out report_ar.md
38
- ```
39
-
40
- The exit code is the grade: `0` decision-grade, `2` review required, `3` advisory only, `1` usage error.
41
-
42
- ---
43
-
44
- ## Python checks
45
-
46
- `python -m terraproof` reads local vector, raster and STAC Item files and makes no network calls.
47
-
48
- | Command | What it does |
49
- |---|---|
50
- | `inspect PATH` | Profile one dataset: CRS and units, schema or bands, dtype, nodata, extent, counts. |
51
- | `check PATHS` | Run the applicable checks and write a JSON or Markdown evidence report (English or Arabic). |
52
- | `preflight PATHS --plan plan.json` | Check a declared processing plan against the real inputs before running it. |
53
- | `manifest write` / `manifest verify` | Record and verify a deterministic run manifest (inputs, outputs, parameters). |
54
- | `route "TASK" [--data PATH]` | Retrieve the skill sections worth reading, using the task text and inspected datasets. |
55
-
56
- Checks cover CRS and units, geometry validity and GeoJSON winding, record counts, raster nodata, 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`.
57
-
58
- | Grade | Arabic label | Meaning |
59
- |---|---|---|
60
- | Decision-grade | جاهز للقرار | Every check that ran passed. |
61
- | Review required | يحتاج مراجعة | At least one check warned; none failed or could not run. |
62
- | Advisory only | استرشادي فقط | At least one check failed or could not run, or no check ran. |
63
-
64
- The grade describes the data path and the checks that ran. It is not a certification of survey, engineering, legal, or safety fitness.
65
-
66
- ### Verify NDVI against its source bands
67
-
68
- ```bash
69
- python -m terraproof check outputs/ndvi.tif --index-formula ndvi --nir inputs/nir.tif --red inputs/red.tif
70
- ```
71
-
72
- This opt-in check compares every output cell with `(NIR-red)/(NIR+red)`, using each
73
- raster's own scale/offset metadata. Supply single-band rasters on the same grid;
74
- source-band roles and calibration must be declared correctly. Missing source data
75
- and a zero denominator cannot become valid output values. Extra output masking
76
- warns because its QA policy is not verified here. Source files are included in the
77
- evidence report and must be covered when a provenance manifest is supplied.
78
- See [the full contract and limits](docs/INDEX_FORMULA.md).
79
-
80
- ---
81
-
82
- ## Use it from your agent
83
-
84
- ### MCP server
85
-
86
- ```bash
87
- python -m terraproof.mcp # stdio server; needs the `mcp` extra
88
- ```
89
-
90
- It is read-only and offline, with six tools: `preflight`, `inspect_dataset`, `run_checks`, `list_skills`, `load_section`, and `find_guidance`. CLI and MCP return the same reports.
91
-
92
- ### Install into a project
93
-
94
- ```bash
95
- python -m terraproof.install --agent claude --task "NDVI change for 2020-2024" --target DIR --with-mcp
96
- python -m terraproof.install --agent cursor --skills gdal,crs-and-units --target DIR --dry-run
97
- ```
98
-
99
- | `--agent` | Skills are written to | MCP config (`--with-mcp`) |
100
- |---|---|---|
101
- | `claude` | `.claude/skills/<skill>/` | `.mcp.json` |
102
- | `codex` | `.agents/skills/<skill>/` and `AGENTS.md` | `.codex/config.toml` |
103
- | `cursor` | `.cursor/rules/terraproof-<skill>.mdc` | `.cursor/mcp.json` |
104
- | `gemini` | `GEMINI.md` | `.gemini/settings.json` |
105
- | `copilot` | `.github/instructions/terraproof-<skill>.instructions.md` | `.vscode/mcp.json` |
106
- | `opencode` | `AGENTS.md` | `opencode.json` |
107
-
108
- 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.
109
-
110
- ### Route and export with the Node CLI
111
-
112
- ```bash
113
- npx terraproof route "Design a PostGIS schema for GPS tracks" --collection gis --dry-run
114
- npx terraproof bundle "TASK" --out context.md # one reviewable context file
115
- npx terraproof apply "TASK" --target ./demo/.agents/skills --dry-run # export skill folders
116
- npx terraproof validate
117
- ```
118
-
119
- `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).
120
-
121
- ---
122
-
123
- ## Skills
124
-
125
- | Area | Skills |
126
- |---|---|
127
- | Process | `brainstorming`, `writing-plans`, `systematic-debugging`, `verification` |
128
- | Mapping and GIS | `gdal`, `crs-and-units`, `raster-processing`, `vector-quality`, `geopandas`, `design-postgis-tables`, `geoparquet-validation`, `geospatial-frontend`, `networkx` |
129
- | Remote sensing | `satellite-preprocessing`, `spectral-indices`, `sar-basics`, `time-series-and-change`, `accuracy-assessment`, `geomaster`, `geozarr` |
130
- | Data access | `geospatial-data-discovery`, `stac-and-cloud-access` |
131
- | Analysis and figures | `statistical-analysis`, `scientific-visualization` |
132
-
133
- 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).
134
-
135
- ---
136
-
137
- ## Evaluation status
138
-
139
- - **Checks:** 33 executable eval tasks with independent oracles pass with 0 false passes. 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).
140
- - **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.
141
- - **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).
142
- - **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.
143
- - **Real hosts:** tool use through MCP has been verified with Codex and Claude Code. Cursor, Copilot and OpenCode are unit-tested against their documented layouts only.
144
-
145
- ---
146
-
147
- ## Repository
148
-
149
- | Path | Contents |
150
- |---|---|
151
- | `skills/` | The 24 skills |
152
- | `routing/` | Generated skill registry, check catalog, rules, and collections |
153
- | `router/` | TypeScript router and CLI (the npm package) |
154
- | `src/terraproof/` | Python package: inspectors, checks, reports, router, MCP server, installers, evals |
155
- | `evals/` | Eval task specs and routing sets |
156
- | `tests/` | Router, Python, package, and release-validation tests |
157
- | `instructions/` | Universal engineering rules shipped with the skills |
158
- | `docs/` | [Release checklist](docs/RELEASE_CHECKLIST.md) and [design plans](docs/plans/) |
159
- | `sources/`, `third_party/` | Upstream attribution and licenses |
160
-
161
- To contribute, see [`CONTRIBUTING.md`](CONTRIBUTING.md). Changes are listed in [`CHANGELOG.md`](CHANGELOG.md).
162
-
163
- ## License
164
-
165
- [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, review required, or advisory only.
12
+
13
+ Everything runs locally and offline. No model API key is needed.
14
+
15
+ **Status:** experimental (v0.8.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+). From the first PyPI release (0.8.0) it installs 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, `2` review required, `3` advisory only, `1` usage error.
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, 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 | جاهز للقرار | Every check that ran passed. |
67
+ | Review required | يحتاج مراجعة | At least one check warned; none failed or could not run. |
68
+ | Advisory only | استرشادي فقط | At least one check failed or could not run, or no check ran. |
69
+
70
+ The grade describes the data path and the checks that ran. It is not a certification of survey, engineering, legal, or safety fitness.
71
+
72
+ ### Verify NDVI against its source bands
73
+
74
+ ```bash
75
+ python -m terraproof check outputs/ndvi.tif --index-formula ndvi --nir inputs/nir.tif --red inputs/red.tif
76
+ ```
77
+
78
+ This opt-in check compares every output cell with `(NIR-red)/(NIR+red)`, using each
79
+ raster's own scale/offset metadata. Supply single-band rasters on the same grid;
80
+ source-band roles and calibration must be declared correctly. Missing source data
81
+ and a zero denominator cannot become valid output values. Extra output masking
82
+ warns because its QA policy is not verified here. Source files are included in the
83
+ evidence report and must be covered when a provenance manifest is supplied.
84
+ See [the full contract and limits](docs/INDEX_FORMULA.md).
85
+
86
+ ### Verify slope and lossless raster delivery
87
+
88
+ ```bash
89
+ python -m terraproof check outputs/result.tif --dem inputs/elevation.tif --slope-method central-difference
90
+ python -m terraproof check outputs/delivery.tif --compare-to inputs/analysis.tif --raster-identity
91
+ ```
92
+
93
+ The explicit slope method checks all required values, flat cells, stencil masks
94
+ and nodata edges. Raster identity checks every band's valid samples, complete
95
+ validity masks and grid/band metadata against the declared source. Full COG
96
+ conformance remains separate from this data comparison and the existing layout
97
+ screen. See [supported contracts and limits](docs/RASTER_CONTRACTS.md).
98
+ For final calibration/QA audits, `--processing-full-scan` checks every corresponding
99
+ band and pixel in bounded windows; see [scope, examples and measured controls](docs/PROCESSING_FULL_SCAN.md).
100
+
101
+
102
+ ---
103
+
104
+ ## Use it from your agent
105
+
106
+ ### MCP server
107
+
108
+ ```bash
109
+ python -m terraproof.mcp # stdio server; needs the `mcp` extra
110
+ ```
111
+
112
+ It is read-only and offline, with six tools: `preflight`, `inspect_dataset`, `run_checks`, `list_skills`, `load_section`, and `find_guidance`. CLI and MCP return the same reports.
113
+
114
+ ### Install into a project
115
+
116
+ ```bash
117
+ python -m terraproof.install --agent claude --task "NDVI change for 2020-2024" --target DIR --with-mcp
118
+ python -m terraproof.install --agent cursor --skills gdal,crs-and-units --target DIR --dry-run
119
+ ```
120
+
121
+ | `--agent` | Skills are written to | MCP config (`--with-mcp`) |
122
+ |---|---|---|
123
+ | `antigravity` | `.agents/skills/<skill>/` and `AGENTS.md` | `.agents/mcp_config.json` |
124
+ | `claude` | `.claude/skills/<skill>/` | `.mcp.json` |
125
+ | `codex` | `.agents/skills/<skill>/` and `AGENTS.md` | `.codex/config.toml` |
126
+ | `cursor` | `.cursor/rules/terraproof-<skill>.mdc` | `.cursor/mcp.json` |
127
+ | `gemini` | `GEMINI.md` | `.gemini/settings.json` |
128
+ | `copilot` | `.github/instructions/terraproof-<skill>.instructions.md` | `.vscode/mcp.json` |
129
+ | `opencode` | `AGENTS.md` | `opencode.json` |
130
+
131
+ 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.
132
+
133
+ ### Route and export with the Node CLI
134
+
135
+ ```bash
136
+ npx terraproof route "Design a PostGIS schema for GPS tracks" --collection gis --dry-run
137
+ npx terraproof bundle "TASK" --out context.md # one reviewable context file
138
+ npx terraproof apply "TASK" --target ./demo/.agents/skills --dry-run # export skill folders
139
+ npx terraproof validate
140
+ ```
141
+
142
+ `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).
143
+
144
+ ---
145
+
146
+ ## Skills
147
+
148
+ | Area | Skills |
149
+ |---|---|
150
+ | Process | `brainstorming`, `writing-plans`, `systematic-debugging`, `verification` |
151
+ | Mapping and GIS | `gdal`, `crs-and-units`, `raster-processing`, `vector-quality`, `geopandas`, `design-postgis-tables`, `geoparquet-validation`, `geospatial-frontend`, `networkx` |
152
+ | Remote sensing | `satellite-preprocessing`, `spectral-indices`, `sar-basics`, `time-series-and-change`, `accuracy-assessment`, `geomaster`, `geozarr` |
153
+ | Data access | `geospatial-data-discovery`, `stac-and-cloud-access` |
154
+ | Analysis and figures | `statistical-analysis`, `scientific-visualization` |
155
+
156
+ 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).
157
+
158
+ 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).
159
+
160
+ ---
161
+
162
+ ## Evaluation status
163
+
164
+ - **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).
165
+ - **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.
166
+ - **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).
167
+ - **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.
168
+ - **Real hosts:** tool use through MCP has been verified with Codex, Claude Code and Antigravity (Gemini). OpenCode's install format passes a no-model check with the real CLI, but no real tool call has been recorded yet. Cursor and Copilot are unit-tested against their documented layouts only.
169
+
170
+ ---
171
+
172
+ ## Repository
173
+
174
+ | Path | Contents |
175
+ |---|---|
176
+ | `skills/` | The 24 skills |
177
+ | `routing/` | Generated skill registry, check catalog, rules, and collections |
178
+ | `router/` | TypeScript router and CLI (the npm package) |
179
+ | `src/terraproof/` | Python package: inspectors, checks, reports, router, MCP server, installers, evals |
180
+ | `evals/` | Eval task specs and routing sets |
181
+ | `tests/` | Router, Python, package, and release-validation tests |
182
+ | `instructions/` | Universal engineering rules shipped with the skills |
183
+ | `docs/` | [Release checklist](docs/RELEASE_CHECKLIST.md) and [design plans](docs/plans/) |
184
+ | `sources/`, `third_party/` | Upstream attribution and licenses |
185
+
186
+ To contribute, see [`CONTRIBUTING.md`](CONTRIBUTING.md). Changes are listed in [`CHANGELOG.md`](CHANGELOG.md).
187
+
188
+ ## License
189
+
190
+ [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.7.2",
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.8.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
+ }
@@ -63,11 +63,11 @@
63
63
  },
64
64
  "rs.scale_applied_once": {
65
65
  "family": "rs",
66
- "description": "Sampled output pixels equal the input DN through the declared calibration (raster scale/offset metadata, or a product encoding such as s2-l2a or landsat-c2-l2) exactly once; raw DN or a twice-applied calibration fails. Comparison is on a fixed stride and says nothing about other processing steps."
66
+ "description": "Output pixels equal the input DN through the declared calibration exactly once. Default: sampled band-1 screen. processing_full_scan verifies every corresponding band/pixel, finite delivered values and source invalidity, in bounded windows. Additional output-mask policy and other processing steps are not verified."
67
67
  },
68
68
  "rs.cloud_mask_applied": {
69
69
  "family": "rs",
70
- "description": "Pixels flagged as cloud or shadow by an aligned QA raster (Sentinel-2 SCL classes 3, 8, 9, 10; Landsat QA_PIXEL bits 1-4) are nodata or NaN in the output; unaligned grids are not-run."
70
+ "description": "Pixels flagged as cloud or shadow by aligned Sentinel-2 SCL or Landsat QA_PIXEL are nodata or NaN. Default: sampled band-1 screen. processing_full_scan verifies all QA locations and output bands; missing or unsupported QA leaves verification not-run. Cloud detection quality and additional masking policy are not verified."
71
71
  },
72
72
  "rs.temporal_scope": {
73
73
  "family": "rs",
@@ -128,6 +128,14 @@
128
128
  "rs.index_formula": {
129
129
  "family": "rs",
130
130
  "description": "Opt-in NDVI comparison with declared red/NIR sources, their scale/offset and joint valid support; extra masking warns."
131
+ },
132
+ "terrain.slope_formula": {
133
+ "family": "terrain",
134
+ "description": "Opt-in calibrated central-difference slope comparison: every required value, complete center/four-neighbour support and nodata edges."
135
+ },
136
+ "raster.source_identity": {
137
+ "family": "raster",
138
+ "description": "Opt-in exact decoded valid-sample and full band-validity comparison with a declared raster source, including grid and band metadata; not COG conformance."
131
139
  }
132
140
  }
133
141
  }