|
275 | 275 | from .control_plane.runtime.stale_latest_run import ( |
276 | 276 | stale_latest_run_projection_warning as _stale_latest_run_projection_warning_read_model, |
277 | 277 | ) |
278 | | -from .control_plane.work_items.status_contract import ( |
279 | | - build_contract_health_projection as _build_contract_health_projection_read_model, |
280 | | - build_status_contract as _build_status_contract_read_model, |
281 | | -) |
282 | 278 | from .control_plane.todos.todo_summary import ( |
283 | 279 | MAX_DEFERRED_TODO_VISIBILITY_ITEMS as _TODO_SUMMARY_MAX_DEFERRED_TODO_VISIBILITY_ITEMS, |
284 | 280 | MAX_DEPENDENCY_BLOCKERS as _TODO_SUMMARY_MAX_DEPENDENCY_BLOCKERS, |
@@ -2941,19 +2937,20 @@ def compact_run(run: dict[str, Any]) -> dict[str, Any]: |
2941 | 2937 |
|
2942 | 2938 |
|
2943 | 2939 | def build_status_contract() -> dict[str, Any]: |
2944 | | - return _build_status_contract_read_model( |
2945 | | - schema_version=STATUS_CONTRACT_SCHEMA_VERSION, |
2946 | | - minimum_dashboard_schema_version=MINIMUM_DASHBOARD_STATUS_CONTRACT_SCHEMA_VERSION, |
2947 | | - reload_hint=STATUS_CONTRACT_RELOAD_HINT, |
| 2940 | + from .control_plane.status.contract_projection import ( |
| 2941 | + build_status_contract as _build_status_contract, |
2948 | 2942 | ) |
2949 | 2943 |
|
| 2944 | + return _build_status_contract() |
| 2945 | + |
2950 | 2946 |
|
2951 | 2947 | def build_contract_health_projection(contract: dict[str, Any]) -> dict[str, Any]: |
2952 | | - return _build_contract_health_projection_read_model( |
2953 | | - contract, |
2954 | | - signal_limit=STATUS_CONTRACT_SIGNAL_LIMIT, |
| 2948 | + from .control_plane.status.contract_projection import ( |
| 2949 | + build_contract_health_projection as _build_contract_health_projection, |
2955 | 2950 | ) |
2956 | 2951 |
|
| 2952 | + return _build_contract_health_projection(contract) |
| 2953 | + |
2957 | 2954 |
|
2958 | 2955 | def build_status_runtime_summary_context() -> StatusRuntimeSummaryContext: |
2959 | 2956 | return StatusRuntimeSummaryContext( |
|
0 commit comments