fix: address review 414 write consent and native ownership boundaries

This commit is contained in:
阿白叔 committed 2026-11-13 17:32:14 +08:00
1 parent 1572e2d8ca
commit fee4a67ff1
19 files changed
+1008 -64

No files matched your search

+2 -2
View File
@@ -140,7 +140,7 @@ def test_retained_export_registry_is_scoped_to_its_library(tmp_path, monkeypatch
with pytest.raises(LibraryBusy): assert_retained_exports_idle(library_a)
@pytest.mark.parametrize('created,blocked', [('new-process', False), ('original-process', True)])
@pytest.mark.parametrize('created,blocked', [('20261113120000.000000+480', False), ('20261112120000.000000+480', True)])
def test_recorded_export_pid_reuse_requires_matching_creation_identity(export_case, monkeypatch, created, blocked):
import cbb_refresh_verify.native_engineering_identity as identity
import cbb_refresh_verify.library_lock as locks
@@ -148,7 +148,7 @@ def test_recorded_export_pid_reuse_requires_matching_creation_identity(export_ca
library, root, *_ = export_case
path = root/'ascii-process.json'
record = json.loads(path.read_text('utf-8'))
record['process_identities'] = [{'pid': 123456, 'created': 'original-process', 'executable': 'native'}]
record['process_identities'] = [{'pid': 123456, 'created': '20261112120000.000000+480', 'executable': 'native'}]
path.write_text(json.dumps(record), encoding='utf-8')
monkeypatch.setattr(locks, '_supervisor_alive', lambda _: True)
monkeypatch.setattr(identity, '_process_snapshot', lambda: [