"""Answers from pre_process: the review comes from app/waf.py, so no model is called (ADR 0014).""" import json from typing import Any, Optional from kyndryl_agent_runtime.request_cycle import Reply from kyndryl_agent_runtime.tools import call_tool from app import waf def pre_process(payload: dict) -> Optional[Any]: """Collect the evidence through the declared read-only tools, judge it, and render the review.""" return Reply(json.dumps(waf.review(payload, call_tool)))