fix(agent99): polish recovery incident card

This commit is contained in:
ogt
2026-07-11 21:00:20 +08:00
parent aceedcc202
commit a1f87282ef
2 changed files with 19 additions and 7 deletions

View File

@@ -51,8 +51,8 @@ def test_agent99_recovery_completion_has_human_lifecycle_receipt() -> None:
assert '$EventType -in @("recovery_slo_result")' in source
assert 'schemaVersion = "agent99_incident_card_v5"' in source
assert '主機與服務已通過恢復驗證' in source
assert '本輪不是 fresh reboot drill不宣稱全主機 SLA' in source
assert 'Agent99 事故狀態 / INCIDENT STATUS' in source
assert '本輪不是新的全主機重啟演練,不宣稱 10 分鐘 SLA' in source
assert 'Agent99 事故狀態' in source
assert '使用者影響' in source
assert 'Agent99 實際動作' in source
assert '獨立驗證' in source
@@ -73,6 +73,8 @@ def test_agent99_telegram_v5_hides_raw_evidence_and_has_operator_fields() -> Non
assert "kmPath" not in formatter
assert "verifierName=" not in formatter
assert 'messageFormat = "incident_card_zh_tw_v5"' in source
for phase_label in ("VMware", "主機連線", "Kali 112", "公開網站", "Full SOP"):
assert f'{{ "{phase_label}" }}' in source
def test_agent99_v5_formatter_synthetic_gate_loads_model_dependencies() -> None: