"""A live run's coverage is computed in code from the critic's own listing (ADR 0017); the model judges the rest.""" from typing import Any, Optional from kyndryl_agent_runtime.tools import call_tool from app import coverage def pre_process(payload: dict) -> Optional[Any]: if payload.get("provider", "sample") not in ("azure", "gcp"): return None # the Meridian sample estate: alz-scope is the authoritative scope, unchanged payload["live_scope"] = coverage.live_scope(payload, call_tool) payload["live_dependencies"] = coverage.live_dependencies(payload) # ADR 0019 return payload