diff --git a/scripts/consistency_check.py b/scripts/consistency_check.py index 11dc4e1..fbe0c9c 100644 --- a/scripts/consistency_check.py +++ b/scripts/consistency_check.py @@ -2040,8 +2040,15 @@ def check_repo( fixable=False, ) - if t_sh_id and task_dep_targets: + if ( + t_sh_id + and task_dep_targets + and normalised_file_status not in CLOSED_WORKSTREAM_STATUSES + and t_status not in ("done", "cancel") + ): # C-20 for task blocks: the waiting task is the from side. + # Closed workplans and closed tasks are not indexed — their + # ordering is history, not a live commitment. for target in task_dep_targets: target_hub_id, _target_status = _resolve_dependency_target(target) is_task_target = bool(_TASK_RECORD_ID_RE.search(target))