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

+4 -1
View File
@@ -196,8 +196,11 @@ def run_existing_address_maintenance(request, *, verify, progress=None):
owner_safe = safe and (confirmed or completed_failure)
if confirmed:
emit('repair_verify', detail='原生修复及释放已确认,重新打开同一工程校验')
from .post_repair_consent import PostRepairProof
owner_safe = False
verified = verify(replace(request, maintenance=False, auto_repair=False))
proof = PostRepairProof.create(request, target, recovery)
verified = verify(replace(request, maintenance=False, auto_repair=False,
post_repair_proof=proof, interactive_input=False, native_lm_verify=False))
owner_safe = verified.safe_to_continue
good = verified.status == 'PASS' and verified.library_flag == 'GREEN' and owner_safe
recovery.update(status='REPAIRED' if good else 'REPAIR_VALIDATION_FAILED',