Harden RC7 API response contracts
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-18 05:07:35 +02:00
parent 8e49b857dd
commit 0fae53a7de
36 changed files with 886 additions and 153 deletions
+13
View File
@@ -661,6 +661,19 @@ bash scripts/run_readiness_check.sh
That readiness gate also runs the API contract smoke check before backend/frontend compilation and tests.
The RC contract gate loads the generated FastAPI OpenAPI document and requires
every successful JSON operation to expose a concrete Pydantic response schema
inside the canonical `{"data": ...}` envelope. Run it directly with:
```bash
python scripts/audit_api_contracts.py
```
The only tracked non-envelope operations are the three health probes, the four
persisted raster PNG responses and the streamed export download. A newly added
free-form JSON response or undocumented exception fails both the focused RC-7
test and the repository readiness gate.
### Golden QA/QC benchmark
Sprint 12 includes a deterministic QA/QC regression benchmark using explicit fixture data: