fix: reconcile batch scope, resource safety and durable receipts (#44)
Core regression / Python core, intervention UI and release configuration (push) Failing after 9m5s
Core regression / JavaScript syntax (push) Successful in 7s
Core regression / Python core, intervention UI and release configuration (pull_request) Failing after 8m0s
Core regression / JavaScript syntax (pull_request) Successful in 7s

This commit is contained in:
阿白叔 committed 2026-11-27 12:26:19 +08:00
1 parent 0b7f3e5c4a
commit 392ae365da
45 files changed
+2855 -305

No files matched your search

+6 -6
View File
@@ -70,11 +70,11 @@ def test_changed_confirmed_plan_is_rejected_before_any_executor(tmp_path):
assert not service.calls
def test_dispatched_error_isolates_the_project_after_its_owned_resources_exit(tmp_path):
def test_dispatched_error_with_no_no_write_proof_pauses_the_batch(tmp_path):
service = Service(tmp_path, {'A': TaskCenterError('quick_run_preflight', 'target absent')})
result = execute_task_queue(service, ('A', 'B'), stop_event=Event())
assert not result.paused and result.entries[0].state == 'blocked'
assert service.calls == [('start', 'A'), ('start', 'B'), ('end', 'B')]
assert result.paused and result.entries[0].state == 'blocked'
assert service.calls == [('start', 'A')]
def test_actual_read_phase_failure_allows_next_project(tmp_path):
@@ -93,12 +93,12 @@ def test_actual_read_phase_failure_allows_next_project(tmp_path):
assert service.calls == [('start', 'B'), ('end', 'B')]
def test_uncertain_result_is_quarantined_without_replaying_before_next_independent_task(tmp_path):
def test_uncertain_result_pauses_before_next_independent_task(tmp_path):
service = Service(tmp_path, {'A': TaskCenterError('quick_run_uncertain', 'unknown')})
result = execute_task_queue(service, ('A', 'B'), stop_event=Event())
assert not result.paused
assert result.paused
assert result.entries[0].state == 'blocked'
assert service.calls == [('start', 'A'), ('start', 'B'), ('end', 'B')]
assert service.calls == [('start', 'A')]
def test_pause_finishes_current_item_and_does_not_start_next_task(tmp_path):