Implement live-shaped readiness workplan

This commit is contained in:
tegwick 2026-05-19 01:06:41 +02:00
parent 3a52b3df41
commit 635d999621
21 changed files with 1507 additions and 54 deletions

View file

@ -335,6 +335,8 @@ def health_report(runtime: PhaseMemoryRuntime, *, config: RuntimeConfig | None =
class LocalServiceRunner:
"""Minimal optional service runner shape without web framework dependency."""
SUPPORTED_OPERATIONS = tuple(SERVICE_OPERATIONS)
def __init__(
self,
runtime: PhaseMemoryRuntime | None = None,
@ -345,6 +347,10 @@ class LocalServiceRunner:
self.config = config or RuntimeConfig.local_default()
self.runtime = runtime or runtime_from_config(self.config, external_adapters=external_adapters)
@classmethod
def supported_operations(cls) -> tuple[str, ...]:
return cls.SUPPORTED_OPERATIONS
def handle(self, operation: str, payload: dict[str, Any] | None = None) -> dict[str, Any]:
payload = payload or {}
if operation == "health.check":