吸收数字员工入口路由干预回写
This commit is contained in:
@@ -1024,6 +1024,19 @@ describe("digital employee sync service", () => {
|
||||
matched_intent: "schedule",
|
||||
},
|
||||
});
|
||||
insertEventEntity("event-route-intervention", "route_decision_intervention_resolved", {
|
||||
route_decision_id: "route-1",
|
||||
approval_id: "route-approval-1",
|
||||
route_kind: "PlanStepDispatch",
|
||||
intent_kind: "schedule",
|
||||
decision: "approved",
|
||||
status: "executed",
|
||||
policy_result: "approval_required",
|
||||
policy_source: "remote",
|
||||
created_command_id: "governance-command-restore",
|
||||
command_accepted: true,
|
||||
reason_codes: ["route_intent_requires_approval"],
|
||||
});
|
||||
insertEventEntity("event-approval", "approval_action_recorded", {
|
||||
approval_id: "approval-1",
|
||||
action: "mark_risk",
|
||||
@@ -1272,6 +1285,7 @@ describe("digital employee sync service", () => {
|
||||
success: true,
|
||||
acked: [
|
||||
{ entity_type: "event", entity_id: "event-route" },
|
||||
{ entity_type: "event", entity_id: "event-route-intervention" },
|
||||
{ entity_type: "event", entity_id: "event-approval" },
|
||||
{ entity_type: "event", entity_id: "event-approval-decision" },
|
||||
{ entity_type: "event", entity_id: "event-artifact" },
|
||||
@@ -1315,6 +1329,17 @@ describe("digital employee sync service", () => {
|
||||
matched_intent: "schedule",
|
||||
attention_level: "action",
|
||||
});
|
||||
expect(businessView("event-route-intervention")).toMatchObject({
|
||||
category: "route",
|
||||
route_decision_id: "route-1",
|
||||
approval_id: "route-approval-1",
|
||||
decision: "approved",
|
||||
status: "executed",
|
||||
created_command_id: "governance-command-restore",
|
||||
policy_source: "remote",
|
||||
command_accepted: true,
|
||||
attention_level: "action",
|
||||
});
|
||||
expect(businessView("event-approval")).toMatchObject({
|
||||
category: "approval",
|
||||
approval_id: "approval-1",
|
||||
|
||||
Reference in New Issue
Block a user