@@ -831,7 +831,7 @@ def test_cli_dispatch_edge_is_split_by_command_domain():
831831 assert "dispatch_lifecycle(args, app)" in dispatch_root
832832 assert "dispatch_wiki(args, app)" in dispatch_root
833833 assert "dispatch_admin(args, app)" in dispatch_root
834- assert "RunIngestRequest " not in dispatch_root
834+ assert "IngestRequest " not in dispatch_root
835835 assert "SearchPagesRequest" not in dispatch_root
836836 assert "AutomationStatusRequest" not in dispatch_root
837837 assert "DoctorRequest" not in dispatch_root
@@ -972,23 +972,23 @@ def test_cli_lifecycle_dispatch_stays_split_by_command_family():
972972 lifecycle = (dispatch_path / "lifecycle.py" ).read_text (encoding = "utf-8" )
973973 module_expectations = {
974974 "build.py" : ("InitializeRepositoryRequest" , "def dispatch_build(" ),
975- "operations.py" : ("RunIngestRequest " , "def dispatch_ingest(" ),
976- "sync.py" : ("RunSyncRequest " , "def dispatch_sync(" ),
975+ "operations.py" : ("IngestRequest " , "def dispatch_ingest(" ),
976+ "sync.py" : ("SyncRequest " , "def dispatch_sync(" ),
977977 "worker.py" : ("DrainRunQueueRequest" , "def dispatch_run_worker(" ),
978978 }
979979 forbidden_lifecycle_fragments = (
980980 "InitializeRepositoryRequest" ,
981- "RunIngestRequest " ,
981+ "IngestRequest " ,
982982 "RunGardenRequest" ,
983- "RunSyncRequest " ,
984- "RunSyncStatusRequest " ,
983+ "SyncRequest " ,
984+ "SyncStatusRequest " ,
985985 "DrainRunQueueRequest" ,
986986 "TranscriptApp" ,
987987 "ValidationFailed" ,
988988 "load_cli_config" ,
989989 "resolve_harness" ,
990990 "parse_sync_apps" ,
991- "sync_execution " ,
991+ "sync_queue " ,
992992 "render_" ,
993993 )
994994 oversized = []
@@ -1651,13 +1651,13 @@ def test_sync_workflow_policy_stays_out_of_service_orchestration():
16511651 )
16521652
16531653
1654- def test_sync_execution_effects_stay_out_of_service_orchestration ():
1654+ def test_sync_queue_effects_stay_out_of_service_orchestration ():
16551655 sync_root = SRC_ROOT / "workflows/sync"
16561656 service_text = (sync_root / "service.py" ).read_text (encoding = "utf-8" )
16571657 evaluation_text = (sync_root / "evaluation.py" ).read_text (encoding = "utf-8" )
1658- execution_text = (sync_root / "execution .py" ).read_text (encoding = "utf-8" )
1658+ queue_text = (sync_root / "queue .py" ).read_text (encoding = "utf-8" )
16591659 forbidden_service_fragments = (
1660- "RunIngestRequest " ,
1660+ "IngestRequest " ,
16611661 "StartedIngestRequest" ,
16621662 "FinishRunRequest" ,
16631663 "RunStatus.FAILED" ,
@@ -1671,7 +1671,7 @@ def test_sync_execution_effects_stay_out_of_service_orchestration():
16711671 "run_started(" ,
16721672 )
16731673 forbidden_evaluation_fragments = (
1674- "RunIngestRequest " ,
1674+ "IngestRequest " ,
16751675 "StartedIngestRequest" ,
16761676 "FinishRunRequest" ,
16771677 "RunStatus.FAILED" ,
@@ -1680,7 +1680,7 @@ def test_sync_execution_effects_stay_out_of_service_orchestration():
16801680 "run_started(" ,
16811681 )
16821682
1683- assert (sync_root / "execution .py" ).is_file ()
1683+ assert (sync_root / "queue .py" ).is_file ()
16841684 assert len (service_text .splitlines ()) <= 120
16851685 assert [
16861686 fragment
@@ -1692,14 +1692,11 @@ def test_sync_execution_effects_stay_out_of_service_orchestration():
16921692 for fragment in forbidden_evaluation_fragments
16931693 if fragment in evaluation_text
16941694 ] == []
1695- assert "class SyncRunExecutor" in execution_text
1696- assert "RunIngestRequest" in execution_text
1697- assert "StartedIngestRequest" in execution_text
1698- assert "FinishRunRequest" in execution_text
1699- assert "pending_entry(" in execution_text
1700- assert "absorbed_entry(" in execution_text
1701- assert "queue_ingest(" in execution_text
1702- assert "spawn_worker(" in execution_text
1695+ assert "class SyncIngestQueue" in queue_text
1696+ assert "IngestRequest" in queue_text
1697+ assert "queue_ingest(" in queue_text
1698+ assert "spawn_worker(" in queue_text
1699+ assert "record_completed(" in queue_text
17031700
17041701
17051702def test_viewer_jobs_surface_stays_read_only ():
0 commit comments