fix(runtime): keep shared artifacts optional

This commit is contained in:
DCCONSTRUCTIONS
2026-07-30 23:14:50 +03:00
parent 8c91d40e2e
commit dee6d57133
7 changed files with 72 additions and 33 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
"""Operator commands for the Mission Core central artifact gateway."""
"""Operator commands for the optional Mission Core artifact gateway."""
from __future__ import annotations
+1 -1
View File
@@ -1,4 +1,4 @@
"""Content-addressed central artifacts with a bounded, offline-capable host cache."""
"""Optional content-addressed artifact exchange with a bounded local cache."""
from __future__ import annotations
+8 -11
View File
@@ -100,8 +100,9 @@ def build_runtime_readiness(
"central_available": None,
}
shared_artifacts_ready = False
shared_artifact_degraded = False
shared_artifacts_configured = False
else:
shared_artifacts_configured = True
try:
artifact = artifact_gateway.status()
cache = artifact.cache
@@ -127,7 +128,6 @@ def build_runtime_readiness(
},
}
shared_artifacts_ready = artifact.central_status == "ready"
shared_artifact_degraded = not shared_artifacts_ready
except (OSError, RuntimeError):
artifact_document = {
"mode": "shared",
@@ -135,7 +135,6 @@ def build_runtime_readiness(
"central_available": False,
}
shared_artifacts_ready = False
shared_artifact_degraded = True
media_tools_ready = ffmpeg_available and ffprobe_available
reconciler_document = reconciler.snapshot()
@@ -151,11 +150,7 @@ def build_runtime_readiness(
and media_tools_ready
and reconciler_failures < 3
)
degraded = (
shared_artifact_degraded
or reconciler_failures > 0
or not operational_ready
)
degraded = reconciler_failures > 0 or not operational_ready
status = (
"unavailable"
if not operational_ready
@@ -170,9 +165,11 @@ def build_runtime_readiness(
"version": version,
"readiness": {
"operational": operational_ready,
"production_shared_artifacts": (
operational_ready and shared_artifacts_ready
),
"optional_shared_artifacts": {
"required": False,
"configured": shared_artifacts_configured,
"ready": shared_artifacts_ready,
},
},
"plugin_runtimes": {
"ready": ready_runtime_count,