claude-dev-env 1.12.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -83,6 +83,8 @@ def _check_checklist_container(assistant_message: str) -> dict | None:
|
|
|
83
83
|
)
|
|
84
84
|
|
|
85
85
|
def _check_missing_checklist_rows(assistant_message: str) -> dict | None:
|
|
86
|
+
if not has_checklist_container(assistant_message):
|
|
87
|
+
return None
|
|
86
88
|
missing_rows = missing_checklist_rows(assistant_message)
|
|
87
89
|
if not missing_rows:
|
|
88
90
|
return None
|
|
@@ -152,7 +154,6 @@ def _evaluate_workflow_gates(assistant_message: str) -> dict | None:
|
|
|
152
154
|
if not is_prompt_workflow_response(assistant_message):
|
|
153
155
|
return None
|
|
154
156
|
workflow_gate_checks: tuple[Callable[[str], dict | None], ...] = (
|
|
155
|
-
_check_checklist_container,
|
|
156
157
|
_check_missing_checklist_rows,
|
|
157
158
|
_check_missing_scope_anchors,
|
|
158
159
|
_check_missing_context_signals,
|
|
@@ -66,7 +66,7 @@ def test_blocks_missing_checklist_rows() -> None:
|
|
|
66
66
|
assert response["decision"] == "block"
|
|
67
67
|
assert "Deterministic checklist rows missing" in response["reason"]
|
|
68
68
|
|
|
69
|
-
def
|
|
69
|
+
def test_allows_prompt_workflow_output_without_checklist_container() -> None:
|
|
70
70
|
payload = {
|
|
71
71
|
"last_assistant_message": (
|
|
72
72
|
"overall_status: pass\n"
|
|
@@ -80,9 +80,7 @@ def test_blocks_missing_checklist_container_for_prompt_workflow_output() -> None
|
|
|
80
80
|
),
|
|
81
81
|
}
|
|
82
82
|
result = _run_hook(payload)
|
|
83
|
-
|
|
84
|
-
assert response["decision"] == "block"
|
|
85
|
-
assert "Deterministic checklist container missing" in response["reason"]
|
|
83
|
+
assert result.stdout.strip() == ""
|
|
86
84
|
|
|
87
85
|
def test_blocks_missing_context_control_signals() -> None:
|
|
88
86
|
payload = {
|