tenseleyflow/loader / a41b947

Browse files

Keep content study pending

Authored by espadonne
SHA
a41b947b77c359a147b02b36864c1542dd988328
Parents
2e86586
Tree
1c0257c

2 changed files

StatusFile+-
M src/loader/runtime/workflow.py 1 16
M tests/test_workflow.py 12 9
src/loader/runtime/workflow.pymodified
@@ -194,17 +194,6 @@ _CONTENT_EVIDENCE_HINTS = (
194194
     "thorough",
195195
     "thoroughness",
196196
 )
197
-_DEEP_CONTENT_EVIDENCE_HINTS = (
198
-    "organization",
199
-    "cadence",
200
-    "depth",
201
-    "writing style",
202
-    "thorough",
203
-    "thoroughness",
204
-    "same structure",
205
-    "same style",
206
-    "same pattern",
207
-)
208197
 _BROAD_SETUP_HINTS = (
209198
     "directory structure",
210199
     "directories",
@@ -1293,7 +1282,7 @@ def _todo_progress_score(item: str, tool_call: ToolCall) -> int:
12931282
         score += 1
12941283
 
12951284
     if name == "read":
1296
-        if _todo_requires_deep_content_evidence(text) and _is_summary_artifact_name(
1285
+        if _todo_requires_content_level_evidence(text) and _is_summary_artifact_name(
12971286
             basename
12981287
         ):
12991288
             return 0
@@ -1350,10 +1339,6 @@ def _todo_requires_content_level_evidence(text: str) -> bool:
13501339
     return _contains_any(text, _CONTENT_EVIDENCE_HINTS)
13511340
 
13521341
 
1353
-def _todo_requires_deep_content_evidence(text: str) -> bool:
1354
-    return _contains_any(text, _DEEP_CONTENT_EVIDENCE_HINTS)
1355
-
1356
-
13571342
 def _is_summary_artifact_name(name: str) -> bool:
13581343
     normalized = name.lower()
13591344
     return normalized in {
tests/test_workflow.pymodified
@@ -974,7 +974,7 @@ def test_advance_todos_from_tool_call_tracks_bash_directory_creation_progress()
974974
     assert "Create index.html for nginx guide" in dod.pending_items
975975
 
976976
 
977
-def test_advance_todos_from_tool_call_does_not_complete_develop_step_from_reference_read() -> None:
977
+def test_advance_todos_from_tool_call_does_not_complete_content_study_from_root_index_read() -> None:
978978
     dod = create_definition_of_done("Create a multi-file nginx guide.")
979979
     sync_todos_to_definition_of_done(
980980
         dod,
@@ -992,17 +992,20 @@ def test_advance_todos_from_tool_call_does_not_complete_develop_step_from_refere
992992
         ],
993993
     )
994994
 
995
-    assert advance_todos_from_tool_call(
996
-        dod,
997
-        ToolCall(
998
-            id="read-reference-index",
999
-            name="read",
1000
-            arguments={"file_path": "~/Loader/guides/fortran/index.html"},
1001
-        ),
995
+    assert (
996
+        advance_todos_from_tool_call(
997
+            dod,
998
+            ToolCall(
999
+                id="read-reference-index",
1000
+                name="read",
1001
+                arguments={"file_path": "~/Loader/guides/fortran/index.html"},
1002
+            ),
1003
+        )
1004
+        is False
10021005
     )
10031006
     assert (
10041007
         "First, examine the existing fortran guide structure and content"
1005
-        in dod.completed_items
1008
+        in dod.pending_items
10061009
     )
10071010
     assert "Develop the main index.html file for the nginx guide" in dod.pending_items
10081011