|
91 | 91 | from .control_plane.work_items.attention_routing import ( |
92 | 92 | goal_attention as _goal_attention_read_model, |
93 | 93 | ) |
94 | | -from .control_plane.work_items.attention_fields import ( |
95 | | - operator_gate_attention_fields as _operator_gate_attention_fields_read_model, |
96 | | - readiness_attention_fields as _readiness_attention_fields_read_model, |
97 | | -) |
98 | 94 | from .control_plane.work_items.autonomous_replan_ack import ( |
99 | 95 | AUTONOMOUS_REPLAN_ACK_MATERIAL_RUN_WINDOW, |
100 | 96 | compact_autonomous_replan_ack, |
|
217 | 213 | from .control_plane.goals.goal_vision import ( |
218 | 214 | compact_goal_vision_packet as _compact_goal_vision_packet_read_model, |
219 | 215 | ) |
220 | | -from .control_plane.work_items.lifecycle import ( |
221 | | - goal_lifecycle_fields as _goal_lifecycle_fields_read_model, |
222 | | - ordered_lifecycle_flags as _ordered_lifecycle_flags_read_model, |
223 | | - primary_lifecycle_phase as _primary_lifecycle_phase_read_model, |
224 | | - run_lifecycle_flags as _run_lifecycle_flags_read_model, |
225 | | - run_lifecycle_phase as _run_lifecycle_phase_read_model, |
226 | | -) |
227 | 216 | from .control_plane.runtime.session_runtime import ( |
228 | 217 | compact_session_runtime_projection_from_run, |
229 | 218 | legacy_runtime_goal_attention as _legacy_runtime_goal_attention_read_model, |
@@ -2619,67 +2608,60 @@ def latest_run(goal: dict[str, Any]) -> dict[str, Any] | None: |
2619 | 2608 |
|
2620 | 2609 |
|
2621 | 2610 | def ordered_lifecycle_flags(flags: list[str]) -> list[str]: |
2622 | | - return _ordered_lifecycle_flags_read_model( |
2623 | | - flags, |
2624 | | - lifecycle_priority=LIFECYCLE_PRIORITY, |
| 2611 | + from .control_plane.status.lifecycle_projection import ( |
| 2612 | + ordered_lifecycle_flags as _ordered_lifecycle_flags, |
2625 | 2613 | ) |
2626 | 2614 |
|
| 2615 | + return _ordered_lifecycle_flags(flags) |
| 2616 | + |
2627 | 2617 |
|
2628 | 2618 | def primary_lifecycle_phase(flags: list[str], fallback: str = "registered") -> str: |
2629 | | - return _primary_lifecycle_phase_read_model( |
2630 | | - flags, |
2631 | | - lifecycle_priority=LIFECYCLE_PRIORITY, |
2632 | | - fallback=fallback, |
| 2619 | + from .control_plane.status.lifecycle_projection import ( |
| 2620 | + primary_lifecycle_phase as _primary_lifecycle_phase, |
2633 | 2621 | ) |
2634 | 2622 |
|
| 2623 | + return _primary_lifecycle_phase(flags, fallback=fallback) |
| 2624 | + |
2635 | 2625 |
|
2636 | 2626 | def run_lifecycle_flags(run: dict[str, Any] | None) -> list[str]: |
2637 | | - return _run_lifecycle_flags_read_model( |
2638 | | - run, |
2639 | | - lifecycle_priority=LIFECYCLE_PRIORITY, |
2640 | | - compact_human_reward=compact_human_reward, |
2641 | | - compact_operator_gate=compact_operator_gate, |
2642 | | - compact_controller_readiness=compact_controller_readiness, |
| 2627 | + from .control_plane.status.lifecycle_projection import ( |
| 2628 | + run_lifecycle_flags as _run_lifecycle_flags, |
2643 | 2629 | ) |
2644 | 2630 |
|
| 2631 | + return _run_lifecycle_flags(run) |
| 2632 | + |
2645 | 2633 |
|
2646 | 2634 | def run_lifecycle_phase(run: dict[str, Any] | None) -> str: |
2647 | | - return _run_lifecycle_phase_read_model( |
2648 | | - run, |
2649 | | - lifecycle_priority=LIFECYCLE_PRIORITY, |
2650 | | - compact_human_reward=compact_human_reward, |
2651 | | - compact_operator_gate=compact_operator_gate, |
2652 | | - compact_controller_readiness=compact_controller_readiness, |
| 2635 | + from .control_plane.status.lifecycle_projection import ( |
| 2636 | + run_lifecycle_phase as _run_lifecycle_phase, |
2653 | 2637 | ) |
2654 | 2638 |
|
| 2639 | + return _run_lifecycle_phase(run) |
| 2640 | + |
2655 | 2641 |
|
2656 | 2642 | def goal_lifecycle_fields(goal: dict[str, Any], current_run: dict[str, Any] | None) -> dict[str, Any]: |
2657 | | - return _goal_lifecycle_fields_read_model( |
2658 | | - goal, |
2659 | | - current_run, |
2660 | | - lifecycle_priority=LIFECYCLE_PRIORITY, |
2661 | | - connected_adapter_statuses=CONNECTED_ADAPTER_STATUSES, |
2662 | | - compact_human_reward=compact_human_reward, |
2663 | | - compact_operator_gate=compact_operator_gate, |
2664 | | - compact_controller_readiness=compact_controller_readiness, |
| 2643 | + from .control_plane.status.lifecycle_projection import ( |
| 2644 | + goal_lifecycle_fields as _goal_lifecycle_fields, |
2665 | 2645 | ) |
2666 | 2646 |
|
| 2647 | + return _goal_lifecycle_fields(goal, current_run) |
| 2648 | + |
2667 | 2649 |
|
2668 | 2650 | def readiness_attention_fields(run: dict[str, Any] | None) -> dict[str, Any]: |
2669 | | - return _readiness_attention_fields_read_model( |
2670 | | - run, |
2671 | | - compact_controller_readiness=compact_controller_readiness, |
| 2651 | + from .control_plane.status.lifecycle_projection import ( |
| 2652 | + readiness_attention_fields as _readiness_attention_fields, |
2672 | 2653 | ) |
2673 | 2654 |
|
| 2655 | + return _readiness_attention_fields(run) |
| 2656 | + |
2674 | 2657 |
|
2675 | 2658 | def operator_gate_attention_fields(run: dict[str, Any] | None) -> dict[str, Any]: |
2676 | | - return _operator_gate_attention_fields_read_model( |
2677 | | - run, |
2678 | | - compact_operator_gate=compact_operator_gate, |
2679 | | - normalize_operator_question=normalize_operator_question, |
2680 | | - default_operator_gate=DEFAULT_OPERATOR_GATE, |
| 2659 | + from .control_plane.status.lifecycle_projection import ( |
| 2660 | + operator_gate_attention_fields as _operator_gate_attention_fields, |
2681 | 2661 | ) |
2682 | 2662 |
|
| 2663 | + return _operator_gate_attention_fields(run) |
| 2664 | + |
2683 | 2665 |
|
2684 | 2666 | def compact_server_planning_contract(value: Any) -> dict[str, Any]: |
2685 | 2667 | return _compact_server_planning_contract_read_model( |
|
0 commit comments