danvinci commited on
Commit
04c77f7
·
verified ·
1 Parent(s): 203669c

add 7 schema contracts

Browse files
schemas/construction_progress.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_id": "ConstructionProgress",
3
+ "version": "0.1",
4
+ "description": "Detect newly cleared greenfield land, earthworks, or progressing construction sites between before/after Sentinel-2 tiles.",
5
+ "class_match": "GF",
6
+ "bands_required": ["B02", "B03", "B04", "B08"],
7
+ "band_rationale": "RGB for bare earth / construction surfaces; NIR to track vegetation loss on cleared plots.",
8
+ "predicate": "Has previously vegetated or greenfield land been cleared, graded, or begun construction between the before and after tiles?",
9
+ "fields": {
10
+ "severity": {"type": "enum", "values": ["low", "moderate", "high", "extreme"]},
11
+ "stage": {"type": "enum", "values": ["clearing", "grading", "foundation", "vertical_build", "mixed"]},
12
+ "area_fraction": {"type": "number", "range": [0.0, 1.0]},
13
+ "vlm_explanation": {"type": "string"},
14
+ "confidence": {"type": "number", "range": [0.0, 1.0]}
15
+ },
16
+ "negative_output": null,
17
+ "negative_instruction": "If no land clearing or construction activity is visible, return null."
18
+ }
schemas/flood_extent_change.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_id": "FloodExtentChange",
3
+ "version": "0.1",
4
+ "description": "Detect new standing water — river overflow, inundated fields, lake expansion — between before/after Sentinel-2 tiles.",
5
+ "class_match": "FL",
6
+ "bands_required": ["B03", "B08", "B11"],
7
+ "band_rationale": "MNDWI (Green - SWIR1) and NDWI (Green - NIR) enhance water contrast; visible RGB provides context.",
8
+ "predicate": "Has new standing water appeared or existing water expanded between the before and after tiles (river overflow, flooded fields, lake expansion, coastal inundation)?",
9
+ "fields": {
10
+ "severity": {"type": "enum", "values": ["low", "moderate", "high", "extreme"]},
11
+ "area_fraction": {"type": "number", "range": [0.0, 1.0]},
12
+ "source": {"type": "enum", "values": ["river_overflow", "coastal", "lake_expansion", "field_inundation", "unknown"]},
13
+ "vlm_explanation": {"type": "string"},
14
+ "confidence": {"type": "number", "range": [0.0, 1.0]}
15
+ },
16
+ "negative_output": null,
17
+ "negative_instruction": "If no new water or water expansion is visible, return null."
18
+ }
schemas/ice_extent_change.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_id": "IceExtentChange",
3
+ "version": "0.1",
4
+ "description": "Detect changes in glacier or ice-sheet margins, seasonal snow cover, or ice-shelf calving between before/after Sentinel-2 tiles.",
5
+ "class_match": "GL",
6
+ "bands_required": ["B03", "B04", "B11"],
7
+ "band_rationale": "Visible (B03/B04) separates snow/ice albedo from bare ground; SWIR1 (B11) discriminates snow from cloud and ice from water.",
8
+ "predicate": "Have glacier, ice-sheet, snow-cover, or ice-shelf boundaries changed (retreat, advance, calving, seasonal melt) between the before and after tiles?",
9
+ "fields": {
10
+ "severity": {"type": "enum", "values": ["low", "moderate", "high", "extreme"]},
11
+ "direction": {"type": "enum", "values": ["retreat", "advance", "calving", "seasonal_melt", "seasonal_accumulation"]},
12
+ "area_fraction": {"type": "number", "range": [0.0, 1.0]},
13
+ "vlm_explanation": {"type": "string"},
14
+ "confidence": {"type": "number", "range": [0.0, 1.0]}
15
+ },
16
+ "negative_output": null,
17
+ "negative_instruction": "If ice/snow boundaries look unchanged, return null."
18
+ }
schemas/thermal_hotspot.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_id": "ThermalHotspot",
3
+ "version": "0.1",
4
+ "description": "Detect new thermal anomalies — wildfire burn scars, active fire fronts, or industrial heat signatures — emerging between before/after Sentinel-2 tiles via SWIR false-colour reasoning.",
5
+ "class_match": "WF",
6
+ "bands_required": ["B08", "B11", "B12"],
7
+ "band_rationale": "SWIR2+SWIR1+NIR false-colour (B12/B11/B08) shows burned area as red/pink vs healthy vegetation as green.",
8
+ "predicate": "Has a new thermal anomaly — such as a wildfire burn scar, active fire, or industrial heat signature — emerged or expanded between the before and after tiles?",
9
+ "fields": {
10
+ "severity": {"type": "enum", "values": ["low", "moderate", "high", "extreme"]},
11
+ "area_fraction": {"type": "number", "range": [0.0, 1.0], "description": "Fraction of the scene affected"},
12
+ "plume_direction": {"type": "string", "nullable": true, "description": "Compass direction of visible smoke plume, or null if none."},
13
+ "vlm_explanation": {"type": "string", "description": "One-sentence natural-language description of the detected change."},
14
+ "confidence": {"type": "number", "range": [0.0, 1.0]}
15
+ },
16
+ "negative_output": null,
17
+ "negative_instruction": "If no such anomaly is present, return null for the event payload."
18
+ }
schemas/urban_change_delta.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_id": "UrbanChangeDelta",
3
+ "version": "0.1",
4
+ "description": "Detect new buildings, roads, or other built-up features appearing between before/after Sentinel-2 tiles.",
5
+ "class_match": "UR",
6
+ "bands_required": ["B02", "B03", "B04", "B08"],
7
+ "band_rationale": "RGB for human-legible buildings; NIR helps separate bare construction surfaces from vegetation.",
8
+ "predicate": "Have new buildings, roads, or other built-up features appeared, or existing ones been demolished, between the before and after tiles?",
9
+ "fields": {
10
+ "severity": {"type": "enum", "values": ["low", "moderate", "high", "extreme"]},
11
+ "change_type": {"type": "enum", "values": ["new_construction", "expansion", "demolition", "mixed"]},
12
+ "area_fraction": {"type": "number", "range": [0.0, 1.0]},
13
+ "vlm_explanation": {"type": "string"},
14
+ "confidence": {"type": "number", "range": [0.0, 1.0]}
15
+ },
16
+ "negative_output": null,
17
+ "negative_instruction": "If the urban footprint looks unchanged, return null."
18
+ }
schemas/vegetation_stress.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_id": "VegetationStress",
3
+ "version": "0.1",
4
+ "description": "Detect agricultural or forest vegetation changes — planting, harvest, drought, irrigation shift — between before/after Sentinel-2 tiles via NDVI.",
5
+ "class_match": "AG",
6
+ "bands_required": ["B04", "B08"],
7
+ "band_rationale": "NDVI = (B08 - B04) / (B08 + B04). Healthy vegetation has high NDVI; stressed / harvested / replanted land drops.",
8
+ "predicate": "Has agricultural or vegetated land changed — planting, harvest, irrigation change, drought, or field pattern shift — between the before and after tiles?",
9
+ "fields": {
10
+ "severity": {"type": "enum", "values": ["low", "moderate", "high", "extreme"]},
11
+ "change_type": {"type": "enum", "values": ["planting", "harvest", "drought_stress", "irrigation_shift", "replanting", "mixed"]},
12
+ "area_fraction": {"type": "number", "range": [0.0, 1.0]},
13
+ "vlm_explanation": {"type": "string"},
14
+ "confidence": {"type": "number", "range": [0.0, 1.0]}
15
+ },
16
+ "negative_output": null,
17
+ "negative_instruction": "If vegetation signature is unchanged, return null."
18
+ }
schemas/wetland_change.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_id": "WetlandChange",
3
+ "version": "0.1",
4
+ "description": "Detect changes in wetland extent, marsh vegetation state, or shallow-water inundation between before/after Sentinel-2 tiles.",
5
+ "class_match": "WET",
6
+ "bands_required": ["B03", "B08", "B11"],
7
+ "band_rationale": "Green + NIR + SWIR1 captures wetland vegetation state and shallow-water contrast better than RGB alone.",
8
+ "predicate": "Has a wetland, marsh, or shallow-water area changed extent or vegetation state between the before and after tiles?",
9
+ "fields": {
10
+ "severity": {"type": "enum", "values": ["low", "moderate", "high", "extreme"]},
11
+ "direction": {"type": "enum", "values": ["expansion", "contraction", "vegetation_shift", "drying", "inundation"]},
12
+ "area_fraction": {"type": "number", "range": [0.0, 1.0]},
13
+ "vlm_explanation": {"type": "string"},
14
+ "confidence": {"type": "number", "range": [0.0, 1.0]}
15
+ },
16
+ "negative_output": null,
17
+ "negative_instruction": "If the wetland looks unchanged, return null."
18
+ }