feat: integrate native diagnostics and coordinated CBB transactions

This commit is contained in:
阿白叔 committed 2026-11-05 23:18:00 +08:00
1 parent 9e230e1a46
commit da67de026f
91 files changed
+14370 -435

No files matched your search

+9
View File
@@ -54,6 +54,15 @@ def test_missing_cert_cannot_block_saved_and_closed_worker(tmp_path, monkeypatch
assert any(e['stage'] == 'cert_diagnostics' and e['non_blocking'] for e in events)
def test_verify_does_not_create_automatic_project_backup(tmp_path, monkeypatch):
job, events, execute = exercise_worker(tmp_path, monkeypatch)
monkeypatch.setattr(adapter, 'best_effort_backup',
lambda *a, **kw: pytest.fail('automatic project backup must not run'))
assert execute()['status'] == 'PASS'
assert not (Path(job['root'])/'backup').exists()
assert any(e['stage'] == 'backup_skipped' and e['reason'] == 'manual_backup_policy' for e in events)
def test_cert_diagnostic_io_failure_is_nonblocking(tmp_path, monkeypatch):
from cbb_refresh_verify.mentor_adapter import collect_cert_evidence
original = Path.stat