Fix governed runtime model registration
GeoIntel release gates / Compile, test, contracts and builds (push) Failing after 20s
GeoIntel release gates / Python and npm vulnerability policy (push) Failing after 24s
GeoIntel release gates / GIS image, SBOM and container scan (push) Failing after 2m43s

This commit is contained in:
Jens
2026-08-23 23:31:42 +02:00
parent 73228259a0
commit 36a3c84699
4 changed files with 73 additions and 9 deletions
@@ -243,15 +243,6 @@ def migrate(args: argparse.Namespace) -> tuple[int, dict[str, Any]]:
created_manifest = False
try:
source = SourceRegistryService.ensure_server_owned_source(db, RuntimeModelProvenanceService.SOURCE_REGISTRY_KEY)
source.ingest_status = "configured"
source.freshness_status = "current"
registry_metadata = dict(source.registry_metadata_json or {})
registry_metadata["runtime_model_contract"] = {
"key": PYTORCH_MODEL_CONTRACT_KEY,
"version": PYTORCH_MODEL_CONTRACT_VERSION,
"claim_boundary": CLAIM_BOUNDARY,
}
source.registry_metadata_json = registry_metadata
snapshot = SourceRegistryService.record_snapshot(
db,