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.
@@ -1,34 +1,34 @@
1
- # Upstream Attribution
2
-
3
- This skill is derived from the `geomaster` skill in `K-Dense-AI/scientific-agent-skills`.
4
-
5
- - **Upstream repository:** https://github.com/K-Dense-AI/scientific-agent-skills
6
- - **Upstream path:** `skills/geomaster/`
7
- - **License:** MIT (see [third_party/kdense-scientific-agent-skills/LICENSE](../../third_party/kdense-scientific-agent-skills/LICENSE))
8
- - **Imported commit:** `390f5146bf3c1877cf15636a3dd7b775e4f0f185`
9
- - **Import date:** 2026-08-25
10
- - **Local path:** `skills/geomaster/`
11
-
12
- ## Imported Files
13
-
14
- - `SKILL.md`
15
-
16
- ## Local modifications
17
-
18
- Initial import:
19
- - Local behavioral modifications: none (faithful vendoring, byte-for-byte identical to upstream).
20
-
21
- 2026-10-24, terrain slope correctness fix (Terraproof):
22
- - `SKILL.md`, section "Terrain Analysis": `terrain_metrics()` is rewritten. The upstream version called
23
- `np.gradient(dem)` with no spacing, so it assumed 1-unit square pixels and equal vertical and horizontal
24
- units, and its hillshade swapped the sine and cosine of the slope. The local version uses the signed pixel
25
- size from the transform, converts the band's vertical unit to metres (or a given `z_factor`), refuses
26
- geographic, non-metre, rotated or sheared grids, masks nodata as NaN, leaves flat cells without aspect, and
27
- uses the standard hillshade formula. A short checklist follows the code.
28
- - `references/code-examples.md`, example 68: the same `np.gradient(dem)` example is replaced by a pointer to
29
- `terrain_metrics()` and the reason.
30
- - Found by an independent review (Codex, 2026-10-24) while authoring the `terrain-slope-map` eval task.
31
- Covered by `tests/python/test_skill_snippets.py`, which runs the snippet on synthetic DEMs.
32
- - All other content is unchanged from upstream.
33
-
34
- Any future modifications must be documented here.
1
+ # Upstream Attribution
2
+
3
+ This skill is derived from the `geomaster` skill in `K-Dense-AI/scientific-agent-skills`.
4
+
5
+ - **Upstream repository:** https://github.com/K-Dense-AI/scientific-agent-skills
6
+ - **Upstream path:** `skills/geomaster/`
7
+ - **License:** MIT (see [third_party/kdense-scientific-agent-skills/LICENSE](../../third_party/kdense-scientific-agent-skills/LICENSE))
8
+ - **Imported commit:** `390f5146bf3c1877cf15636a3dd7b775e4f0f185`
9
+ - **Import date:** 2026-08-25
10
+ - **Local path:** `skills/geomaster/`
11
+
12
+ ## Imported Files
13
+
14
+ - `SKILL.md`
15
+
16
+ ## Local modifications
17
+
18
+ Initial import:
19
+ - Local behavioral modifications: none (faithful vendoring, byte-for-byte identical to upstream).
20
+
21
+ 2026-10-24, terrain slope correctness fix (Terraproof):
22
+ - `SKILL.md`, section "Terrain Analysis": `terrain_metrics()` is rewritten. The upstream version called
23
+ `np.gradient(dem)` with no spacing, so it assumed 1-unit square pixels and equal vertical and horizontal
24
+ units, and its hillshade swapped the sine and cosine of the slope. The local version uses the signed pixel
25
+ size from the transform, converts the band's vertical unit to metres (or a given `z_factor`), refuses
26
+ geographic, non-metre, rotated or sheared grids, masks nodata as NaN, leaves flat cells without aspect, and
27
+ uses the standard hillshade formula. A short checklist follows the code.
28
+ - `references/code-examples.md`, example 68: the same `np.gradient(dem)` example is replaced by a pointer to
29
+ `terrain_metrics()` and the reason.
30
+ - Found by an independent review (Codex, 2026-10-24) while authoring the `terrain-slope-map` eval task.
31
+ Covered by `tests/python/test_skill_snippets.py`, which runs the snippet on synthetic DEMs.
32
+ - All other content is unchanged from upstream.
33
+
34
+ Any future modifications must be documented here.
@@ -372,3 +372,21 @@ In 0.2.0 the project was refocused as Terraproof and these off-scope skills were
372
372
  - **Import Date:** 2026-08-26
373
373
  - **Former Local Paths:** `skills/ai-sdk/` (`SKILL.md`, `UPSTREAM.md`)
374
374
  - **Modification Status:** Faithful vendoring of the official Vercel AI SDK skill.
375
+
376
+
377
+ ## Native raster source-contract references
378
+
379
+ The `terrain.slope_formula` and `raster.source_identity` implementations are
380
+ original Terraproof/Geova code under this repository's MIT license. No upstream
381
+ implementation or prose is vendored. Technical references for reader semantics
382
+ and COG scope are the [Rasterio nodata-mask documentation](https://rasterio.readthedocs.io/en/stable/topics/masks.html)
383
+ and [GDAL COG driver documentation](https://gdal.org/en/stable/drivers/raster/cog.html).
384
+ The [versioned contract guide](https://github.com/esmailhussien/terraproof/blob/v0.7.3/docs/RASTER_CONTRACTS.md) describes the implemented
385
+ mathematics, tolerances, validity policy and limits.
386
+
387
+ ## Exhaustive processing checks
388
+
389
+ The full calibration/QA checks (`src/terraproof/checks/processing_full.py`) and the offline
390
+ checker scorecard (`tests/checker_scorecard.py`) are original Terraproof/Geova MIT code. No
391
+ external implementation is vendored. Raster validity follows the
392
+ [Rasterio mask API](https://rasterio.readthedocs.io/en/stable/topics/masks.html).