fix(burst): recognize native pressure units and separate isolation impact
This commit is contained in:
@@ -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": "节点覆盖示意",
|
||||
|
||||
Reference in New Issue
Block a user