fix: bound post-repair readwrite consent to proven local startup

This commit is contained in:
阿白叔 committed 2026-11-03 09:36:33 +08:00
1 parent 5a758ee3b6
commit aa6684b588
8 files changed
+500 -1

No files matched your search

+2
View File
@@ -65,6 +65,8 @@ def test_explicit_maintenance_enters_official_repair_once_without_lostsession_fa
{'safe_to_continue': True, 'native_exited': True, 'addresses': []})
def verify(req, **kwargs):
calls.append('verify')
from cbb_refresh_verify.post_repair_consent import PostRepairProof
assert isinstance(req.post_repair_proof, PostRepairProof)
assert not req.maintenance and not req.auto_repair
assert req.lmc_file == request.lmc_file and req.block_name == request.block_name
return runner.VerifyResult('PASS', library_flag='GREEN')