fix: bind manual recovery entries and current native diagnostics

This commit is contained in:
阿白叔 committed 2026-11-16 20:38:17 +08:00
1 parent 8374cabe5c
commit 601dd7b6b2
14 files changed
+694 -69

No files matched your search

+5 -5
View File
@@ -54,7 +54,7 @@ def test_preflight_rejects_pcb_junction_outside_current_block(tmp_path):
preflight(VerifyRequest(library, 'CBB', tmp_path/'evidence'))
def test_serial_guard_covers_preflight_and_content_check(tmp_path, monkeypatch):
def test_nonnative_preparation_leaves_real_host_channel_available(tmp_path, monkeypatch):
from cbb_refresh_verify import verify_runner as runner
entered, release = Event(), Event()
calls, results = [], []
@@ -70,14 +70,14 @@ def test_serial_guard_covers_preflight_and_content_check(tmp_path, monkeypatch):
thread.start()
assert entered.wait(3)
try:
second = runner.run_verify(VerifyRequest(tmp_path/'lib.lmc', 'second', tmp_path/'evidence'))
assert second.status == 'BLOCKED'
assert second.safe_to_continue
assert second.error_category == 'NATIVE_CHANNEL_BUSY'
from cbb_refresh_verify.operation_queue import native_channel
with native_channel():
pass
assert calls == ['first']
finally:
release.set()
thread.join(6)
assert results[0].status == 'PASS'
def test_recovery_retains_temporary_network_mapping():