Keep populate todos off reads
- SHA
76195cc1fe81ae7df8fd61b70bd4637960edac0d- Parents
-
107ddd4 - Tree
2e0a112
76195cc
76195cc1fe81ae7df8fd61b70bd4637960edac0d107ddd4
2e0a112| Status | File | + | - |
|---|---|---|---|
| M |
src/loader/runtime/workflow.py
|
2 | 0 |
| M |
tests/test_workflow.py
|
33 | 0 |
src/loader/runtime/workflow.pymodified@@ -118,6 +118,8 @@ _MUTATION_STEP_HINTS = ( | ||
| 118 | 118 | "creating", |
| 119 | 119 | "develop", |
| 120 | 120 | "developing", |
| 121 | + "populate", | |
| 122 | + "populating", | |
| 121 | 123 | "build", |
| 122 | 124 | "building", |
| 123 | 125 | "update", |
tests/test_workflow.pymodified@@ -964,6 +964,39 @@ def test_advance_todos_from_tool_call_does_not_complete_develop_step_from_refere | ||
| 964 | 964 | assert "Develop the main index.html file for the nginx guide" in dod.pending_items |
| 965 | 965 | |
| 966 | 966 | |
| 967 | +def test_advance_todos_from_tool_call_does_not_complete_populate_step_from_reference_read() -> None: | |
| 968 | + dod = create_definition_of_done("Create a multi-file nginx guide.") | |
| 969 | + sync_todos_to_definition_of_done( | |
| 970 | + dod, | |
| 971 | + [ | |
| 972 | + { | |
| 973 | + "content": "First, examine the existing fortran guide structure and content", | |
| 974 | + "active_form": "Working on: First, examine the existing fortran guide structure and content", | |
| 975 | + "status": "pending", | |
| 976 | + }, | |
| 977 | + { | |
| 978 | + "content": "Populate content for each chapter", | |
| 979 | + "active_form": "Working on: Populate content for each chapter", | |
| 980 | + "status": "pending", | |
| 981 | + }, | |
| 982 | + ], | |
| 983 | + ) | |
| 984 | + | |
| 985 | + assert advance_todos_from_tool_call( | |
| 986 | + dod, | |
| 987 | + ToolCall( | |
| 988 | + id="read-reference-chapter", | |
| 989 | + name="read", | |
| 990 | + arguments={"file_path": "~/Loader/guides/fortran/chapters/01-introduction.html"}, | |
| 991 | + ), | |
| 992 | + ) | |
| 993 | + assert ( | |
| 994 | + "First, examine the existing fortran guide structure and content" | |
| 995 | + in dod.completed_items | |
| 996 | + ) | |
| 997 | + assert "Populate content for each chapter" in dod.pending_items | |
| 998 | + | |
| 999 | + | |
| 967 | 1000 | def test_advance_todos_from_tool_call_does_not_complete_linking_step_from_glob() -> None: |
| 968 | 1001 | dod = create_definition_of_done("Create a multi-file nginx guide.") |
| 969 | 1002 | sync_todos_to_definition_of_done( |