2525 DELIVERY_OUTCOME_NOT_CONFIGURED ,
2626 PROGRESS_DELIVERY_OUTCOMES ,
2727 delivery_turn_kind_for_run ,
28- normalize_delivery_outcome ,
2928)
3029from .doctor import (
3130 PROMOTION_READINESS_CLASSIFICATIONS ,
112111)
113112from .control_plane .work_items .autonomous_replan_ack import (
114113 AUTONOMOUS_REPLAN_ACK_MATERIAL_RUN_WINDOW ,
115- autonomous_replan_ack_recorded ,
116114 compact_autonomous_replan_ack ,
117- latest_autonomous_replan_ack_for_projection as _latest_autonomous_replan_ack_for_projection_read_model ,
118115)
119116from .control_plane .work_items .autonomous_replan_obligation import (
120117 AUTONOMOUS_REPLAN_STALL_THRESHOLD as _AUTONOMOUS_REPLAN_STALL_THRESHOLD_READ_MODEL ,
121118 AUTONOMOUS_REPLAN_TRIGGER_PATTERNS as _AUTONOMOUS_REPLAN_TRIGGER_PATTERNS_READ_MODEL ,
122119 MAX_AUTONOMOUS_REPLAN_TRIGGERS as _MAX_AUTONOMOUS_REPLAN_TRIGGERS_READ_MODEL ,
123120 autonomous_replan_obligation_from_state as _autonomous_replan_obligation_from_state_read_model ,
124- autonomous_replan_obligation_from_runs as _autonomous_replan_obligation_from_runs_read_model ,
125- autonomous_replan_periodic_review_from_runs as _autonomous_replan_periodic_review_from_runs_read_model ,
126- build_autonomous_replan_obligation as _build_autonomous_replan_obligation_read_model ,
127- run_history_monitor_wait_already_acknowledged as _run_history_monitor_wait_already_acknowledged_read_model ,
128- run_history_stall_signal as _run_history_stall_signal_read_model ,
129121)
130122from .control_plane .work_items .backlog_hygiene import (
131123 MAX_BACKLOG_HYGIENE_EVIDENCE_ITEMS as _MAX_BACKLOG_HYGIENE_EVIDENCE_ITEMS_READ_MODEL ,
@@ -2118,63 +2110,61 @@ def build_autonomous_replan_obligation(
21182110 * ,
21192111 agent_todos : dict [str , Any ] | None ,
21202112) -> dict [str , Any ] | None :
2121- return _build_autonomous_replan_obligation_read_model (
2113+ from .control_plane .status .autonomous_replan_projection import (
2114+ build_autonomous_replan_obligation as _build_autonomous_replan_obligation ,
2115+ )
2116+
2117+ return _build_autonomous_replan_obligation (
21222118 evidence ,
21232119 agent_todos = agent_todos ,
2124- public_safe_compact_text = public_safe_compact_text ,
2125- autonomous_replan_schema_version = AUTONOMOUS_REPLAN_SCHEMA_VERSION ,
2126- autonomous_replan_stall_threshold = AUTONOMOUS_REPLAN_STALL_THRESHOLD ,
2127- dead_monitor_repeat_threshold = DEAD_MONITOR_REPEAT_THRESHOLD ,
2128- dead_monitor_repeat_schema_version = DEAD_MONITOR_REPEAT_SCHEMA_VERSION ,
21292120 )
21302121
21312122
21322123def _run_history_stall_signal (run : dict [str , Any ]) -> dict [str , Any ] | None :
2133- return _run_history_stall_signal_read_model (
2134- run ,
2135- autonomous_replan_ack_recorded = autonomous_replan_ack_recorded ,
2136- neutral_classifications = AUTONOMOUS_RUN_HISTORY_NEUTRAL_CLASSIFICATIONS ,
2137- progress_outcomes = AUTONOMOUS_RUN_HISTORY_PROGRESS_OUTCOMES ,
2138- stall_pattern = AUTONOMOUS_RUN_HISTORY_STALL_PATTERN ,
2139- public_safe_compact_text = public_safe_compact_text ,
2140- normalize_delivery_outcome = normalize_delivery_outcome ,
2124+ from .control_plane .status .autonomous_replan_projection import (
2125+ _run_history_stall_signal as _run_history_stall_signal_projection ,
21412126 )
21422127
2128+ return _run_history_stall_signal_projection (run )
2129+
21432130
21442131def run_history_monitor_wait_already_acknowledged (
21452132 latest_runs : list [dict [str , Any ]] | None ,
21462133 * ,
21472134 signal_count : int ,
21482135) -> bool :
2149- return _run_history_monitor_wait_already_acknowledged_read_model (
2136+ from .control_plane .status .autonomous_replan_projection import (
2137+ run_history_monitor_wait_already_acknowledged as _run_history_monitor_wait_already_acknowledged ,
2138+ )
2139+
2140+ return _run_history_monitor_wait_already_acknowledged (
21502141 latest_runs ,
21512142 signal_count = signal_count ,
2152- autonomous_replan_ack_recorded = autonomous_replan_ack_recorded ,
2153- neutral_classifications = AUTONOMOUS_RUN_HISTORY_NEUTRAL_CLASSIFICATIONS ,
21542143 )
21552144
21562145
21572146def latest_autonomous_replan_ack_for_projection (
21582147 latest_runs : list [dict [str , Any ]] | None ,
21592148) -> dict [str , Any ] | None :
2160- return _latest_autonomous_replan_ack_for_projection_read_model (
2161- latest_runs ,
2162- neutral_classifications = AUTONOMOUS_RUN_HISTORY_NEUTRAL_CLASSIFICATIONS ,
2149+ from .control_plane .status .autonomous_replan_projection import (
2150+ latest_autonomous_replan_ack_for_projection as _latest_autonomous_replan_ack_for_projection ,
21632151 )
21642152
2153+ return _latest_autonomous_replan_ack_for_projection (latest_runs )
2154+
21652155
21662156def autonomous_replan_periodic_review_from_runs (
21672157 latest_runs : list [dict [str , Any ]] | None ,
21682158 * ,
21692159 agent_todos : dict [str , Any ] | None ,
21702160) -> dict [str , Any ] | None :
2171- return _autonomous_replan_periodic_review_from_runs_read_model (
2161+ from .control_plane .status .autonomous_replan_projection import (
2162+ autonomous_replan_periodic_review_from_runs as _autonomous_replan_periodic_review_from_runs ,
2163+ )
2164+
2165+ return _autonomous_replan_periodic_review_from_runs (
21722166 latest_runs ,
21732167 agent_todos = agent_todos ,
2174- autonomous_replan_ack_recorded = autonomous_replan_ack_recorded ,
2175- neutral_classifications = AUTONOMOUS_RUN_HISTORY_NEUTRAL_CLASSIFICATIONS ,
2176- periodic_run_threshold = AUTONOMOUS_REPLAN_PERIODIC_RUN_THRESHOLD ,
2177- build_autonomous_replan_obligation = build_autonomous_replan_obligation ,
21782168 )
21792169
21802170
@@ -2184,21 +2174,14 @@ def autonomous_replan_obligation_from_runs(
21842174 agent_todos : dict [str , Any ] | None ,
21852175 agent_id : str | None = None ,
21862176) -> dict [str , Any ] | None :
2187- return _autonomous_replan_obligation_from_runs_read_model (
2177+ from .control_plane .status .autonomous_replan_projection import (
2178+ autonomous_replan_obligation_from_runs as _autonomous_replan_obligation_from_runs ,
2179+ )
2180+
2181+ return _autonomous_replan_obligation_from_runs (
21882182 latest_runs ,
21892183 agent_todos = agent_todos ,
21902184 agent_id = agent_id ,
2191- autonomous_replan_ack_recorded = autonomous_replan_ack_recorded ,
2192- neutral_classifications = AUTONOMOUS_RUN_HISTORY_NEUTRAL_CLASSIFICATIONS ,
2193- progress_outcomes = AUTONOMOUS_RUN_HISTORY_PROGRESS_OUTCOMES ,
2194- stall_pattern = AUTONOMOUS_RUN_HISTORY_STALL_PATTERN ,
2195- public_safe_compact_text = public_safe_compact_text ,
2196- normalize_delivery_outcome = normalize_delivery_outcome ,
2197- build_autonomous_replan_obligation = build_autonomous_replan_obligation ,
2198- autonomous_replan_stall_threshold = AUTONOMOUS_REPLAN_STALL_THRESHOLD ,
2199- dead_monitor_repeat_threshold = DEAD_MONITOR_REPEAT_THRESHOLD ,
2200- dead_monitor_repeat_schema_version = DEAD_MONITOR_REPEAT_SCHEMA_VERSION ,
2201- periodic_run_threshold = AUTONOMOUS_REPLAN_PERIODIC_RUN_THRESHOLD ,
22022185 )
22032186
22042187
0 commit comments