fix(agent99): expose verified recovery lifecycle

This commit is contained in:
ogt
2026-07-11 20:19:21 +08:00
parent 244bad7259
commit 0a671bd46a
6 changed files with 203 additions and 33 deletions

View File

@@ -122,11 +122,13 @@ def test_live_preflight_rejects_fresh_but_unparseable_required_evidence() -> Non
preflight = read("scripts/reboot-recovery/agent99-live-preflight.ps1")
assert '$parsed = [bool]($file -and -not $parseError)' in preflight
assert '$usable = [bool]($fresh -and $parsed)' in preflight
assert '$usable = [bool]($fresh -and $parsed -and $contentHealthy)' in preflight
assert 'healthy = [bool](-not $Required -or $usable)' in preflight
assert '$_.required -and -not $_.healthy' in preflight
assert 'required_evidence_parse_failed' in preflight
assert 'requiredEvidenceParseFailureCount' in preflight
assert 'required_evidence_content_unhealthy' in preflight
assert 'requiredEvidenceContentFailureCount' in preflight
def test_live_preflight_adapts_inbox_evidence_without_raw_message_readback() -> None: