fix(burst): recognize native pressure units and separate isolation impact
Generic Container CI/CD / test-build-publish (push) Successful in 4m37s
Server CI/CD v2 / build-test-publish-and-deploy (push) Successful in 4m37s

This commit is contained in:
2026-11-14 23:45:25 +08:00
parent b45c5c6f46
commit 11eb09fe8f
12 changed files with 87 additions and 11 deletions
+9
View File
@@ -580,6 +580,15 @@ async def test_saved_mcp_coverage_envelope_publishes_groups_without_agent_geomet
}}),
)
evidence, _ = await service.record_data_snapshot(task["task_id"], snapshot)
with pytest.raises(DomainError) as error:
await service.publish_presentation_event(task["task_id"], TaskPresentationEventCommand(
request_id=uuid4(), run_id=repository.run["run_id"], source_session_id="session-1",
command={"action": "set_overlay", "overlay_id": "wrong-impact", "title": "事件影响",
"mode": "geometry", "evidence_id": evidence.evidence_id},
narration={"stage": "event_impact", "summary": "预计影响范围,现场待核实。",
"evidence_refs": [evidence.evidence_id]},
))
assert error.value.code == "OVERLAY_IMPACT_PHASE_MISMATCH"
await service.publish_presentation_event(task["task_id"], TaskPresentationEventCommand(
request_id=uuid4(), run_id=repository.run["run_id"], source_session_id="session-1",
command={"action": "set_overlay", "overlay_id": "isolation-coverage", "title": "节点覆盖示意",