fix: harden PCB and iCDB verification lifecycle for beta release

This commit is contained in:
阿白叔 committed 2026-10-26 15:32:01 +08:00
1 parent 11a2b2e46e
commit a11eb3c766
33 files changed
+1226 -267

No files matched your search

+7
View File
@@ -51,6 +51,13 @@ def refresh_integration(pi, *, emit=lambda **event: None, settle_seconds=5, time
emit(stage='integration_status', statuses=state)
if green_entry is None:
green_entry = all(status == 2 for status in state.values())
if green_entry and not bool(value(pi, 'IsForwardAnnotationAllowed')):
# Verified blocks can forbid another ForwardAnnotate despite
# all four statuses being InSynch. Respect the native gate;
# the caller still requires Save/Close and authoritative READY.
emit(stage='integration_complete', statuses=state, actions=[],
policy='already_synchronized_native_action_disallowed')
return state
if previous_state is not None and state != previous_state and deadline is not None:
deadline.touch()
previous_state = state