Files
geointel/prompts/codex/module-contracts/QAQC_MODULE_CONTRACT.md
T
Jens faeb58ef6d
GeoIntel release gates / Compile, test, contracts and builds (push) Successful in 1m49s
GeoIntel release gates / Python and npm vulnerability policy (push) Successful in 21s
GeoIntel release gates / Production AI image, SBOM and container scan (push) Successful in 5m39s
GeoIntel release gates / Deploy exact gated revision to Unraid (push) Failing after 58m43s
Initial public release
2026-08-31 21:56:53 +02:00

972 B

Codex Module Contract — QA/QC Foundation

Build deterministic QA/QC using fixture GeoJSON files before real AI integration.

Input

  • predicted polygon layer
  • reference polygon layer
  • IoU threshold, default 0.5

Required Metrics

  • true positives
  • false positives
  • false negatives
  • precision
  • recall
  • f1
  • mean_iou for matched pairs

Required Outputs

  • summary metrics JSON
  • matched pairs list
  • false positives GeoJSON
  • false negatives GeoJSON

Required Backend

  • QA service with pure functions
  • API endpoint to run QA for two stored layers or fixture mode
  • persisted quality_check record

Required Frontend

  • QA run form
  • threshold input
  • metrics cards
  • map layers for FP/FN
  • explanation of IoU threshold

Required Tests

  • golden fixture test with deterministic counts
  • zero denominator test
  • invalid geometry test

Forbidden

  • presenting confidence as accuracy
  • changing IoU formula
  • computing area in EPSG:4326 degrees