fix(agent99): recover external host through full closure chain

This commit is contained in:
ogt
2026-07-14 13:47:55 +08:00
parent abff2c89e0
commit 3b0d6a2ed3
8 changed files with 462 additions and 11 deletions

View File

@@ -18,6 +18,23 @@ def test_recover_requires_full_sop_coordinator_before_verified_resolution() -> N
assert 'schemaVersion = "agent99_recovery_slo_v2"' in control
assert 'scope = $recoveryScope' in control
assert 'rebootSloClaimed = $rebootSloClaimed' in control
assert 'New-AgentRecoveryPhase "external_host_recovery"' in control
assert 'New-AgentOutcomeCheck "external_hosts_recovered"' in control
def test_host111_is_in_recovery_executor_and_all_host_readiness_scope() -> None:
control = read("agent99-control-plane.ps1")
config = read("agent99.config.99.example.json")
deploy = read("agent99-deploy.ps1")
tasks = read("agent99-register-tasks.ps1")
assert '"host": "192.168.0.111"' in config
assert '"recoveryAction": "wake_on_lan"' in config
assert "Invoke-AgentExternalHostRecovery" in control
assert 'verifier = "icmp_and_required_tcp_ports"' in control
assert "host111_wol_executor" in deploy
assert '-Mode Recover -ControlledApply -RunNow' in tasks
assert '-Source agent99-startup-recovery' in tasks
def test_coordinator_covers_all_hosts_and_full_recovery_evidence() -> None: