fix: admit explicit ICDB maintenance with preserved address evidence

This commit is contained in:
阿白叔 committed 2026-11-03 09:13:32 +08:00
1 parent 4f741cd176
commit e39dc63ded
10 files changed
+691 -25

No files matched your search

+2 -2
View File
@@ -112,7 +112,7 @@ def _without_authorized_checkpoint_cleanup(text):
"""Exempt exact protocol-checkpoint callsites, never the whole module."""
tree = ast.parse(text)
parents = {child: parent for parent in ast.walk(tree) for child in ast.iter_child_nodes(parent)}
allowed = {('LibraryLock', '__exit__'): 'marker', ('release_retained_library',): 'checkpoint'}
allowed = {('LibraryLock', '_exit_owned'): 'marker', ('release_retained_library',): 'checkpoint'}
used, spans = set(), []
for call in ast.walk(tree):
if not (isinstance(call, ast.Call) and isinstance(call.func, ast.Attribute)
@@ -160,7 +160,7 @@ def test_verification_never_deletes_or_moves_library_files():
def test_checkpoint_cleanup_exception_does_not_allow_other_deletions():
source = '''
class LibraryLock:
def __exit__(self):
def _exit_owned(self):
marker.unlink(missing_ok=True)
self.path.unlink()
def release_retained_library():