tenseleyflow/loader / 89dbb36

Browse files

Lean child handoffs

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
89dbb361657a7a97ba84fb4bcacbe993eeeada8f
Parents
a1cd87d
Tree
8ea86e7

2 changed files

StatusFile+-
M src/loader/runtime/tool_batches.py 3 9
M tests/test_tool_batches.py 3 3
src/loader/runtime/tool_batches.pymodified
@@ -1370,7 +1370,7 @@ class ToolBatchRunner:
13701370
                 (resume_target, False),
13711371
                 project_root=self.context.project_root,
13721372
                 messages=session_messages,
1373
-                encourage_initial_version=not has_substantive_file_artifact_progress,
1373
+                encourage_initial_version=False,
13741374
             )
13751375
             if compact_resume:
13761376
                 queue_message(
@@ -1388,7 +1388,7 @@ class ToolBatchRunner:
13881388
                 missing_artifact,
13891389
                 project_root=self.context.project_root,
13901390
                 messages=session_messages,
1391
-                encourage_initial_version=True,
1391
+                encourage_initial_version=False,
13921392
             )
13931393
             if compact_handoff:
13941394
                 queue_message(
@@ -1531,12 +1531,6 @@ class ToolBatchRunner:
15311531
             )
15321532
             return
15331533
 
1534
-        has_substantive_file_artifact_progress = (
1535
-            _has_confirmed_substantive_file_artifact_progress(
1536
-                dod,
1537
-                project_root=self.context.project_root,
1538
-            )
1539
-        )
15401534
         todo_refresh = _todo_refresh_guidance(
15411535
             dod,
15421536
             project_root=self.context.project_root,
@@ -1563,7 +1557,7 @@ class ToolBatchRunner:
15631557
                 (resume_target, False),
15641558
                 project_root=self.context.project_root,
15651559
                 messages=session_messages,
1566
-                encourage_initial_version=not has_substantive_file_artifact_progress,
1560
+                encourage_initial_version=False,
15671561
             )
15681562
             if compact_resume:
15691563
                 self.context.queue_steering_message(
tests/test_tool_batches.pymodified
@@ -2475,7 +2475,7 @@ async def test_tool_batch_runner_first_chapter_handoff_stays_persistent_until_su
24752475
         f"Prefer one `write(file_path=..., content=...)` call for `{(chapters / '01-introduction.html').resolve(strict=False)}` now."
24762476
         in message
24772477
     )
2478
-    assert "Write a compact but real initial version of that file now" in message
2478
+    assert "Write a compact but real initial version of that file now" not in message
24792479
     assert "Do not reread reference material or spend the next turn on bookkeeping." in message
24802480
 
24812481
 
@@ -2808,7 +2808,7 @@ async def test_tool_batch_runner_softens_first_file_handoff_after_recovery_promp
28082808
     assert ephemeral_messages
28092809
     message = ephemeral_messages[-1]
28102810
     assert "Next step: create `01-introduction.html`." in message
2811
-    assert "Write a compact but real initial version of that file now" in message
2811
+    assert "Write a compact but real initial version of that file now" not in message
28122812
 
28132813
 
28142814
 @pytest.mark.asyncio
@@ -3267,7 +3267,7 @@ async def test_tool_batch_runner_mutation_handoff_points_at_next_missing_artifac
32673267
     assert ephemeral_messages == []
32683268
     message = persistent_messages[-1]
32693269
     assert "Next step: create `01-getting-started.html`." in message
3270
-    assert "Write a compact but real initial version of that file now" in message
3270
+    assert "Write a compact but real initial version of that file now" not in message
32713271
     assert "refresh `TodoWrite`" not in message
32723272
     assert "Do not reread reference material or spend the next turn on bookkeeping." in message
32733273