# Codex Phase 3 Prompt — Detection + QA/QC Skeleton Read first: - `docs/DETECTION_PIPELINE_SPEC.md` - `docs/QA_QC_SPECIFICATION.md` - `docs/AI_PIPELINES.md` - `docs/DATABASE_SCHEMA.md` ## Mission Build the detection pipeline contracts and QA/QC engine foundation. ## Required features - Detection analysis run model/API. - Detection storage model/API. - Model registry skeleton. - Tile metadata structures. - Pixel bbox to geospatial polygon utility. - IoU calculation utility. - One-to-one polygon matching utility. - Precision/recall/F1 calculation. - GeoJSON export for detections and QA outputs. ## Rules - Do not fake YOLO inference if no model is available. - It is acceptable to implement the model adapter interface and readiness checks first. - QA/QC utilities must be testable with fixture polygons.