吸收数字员工技能远端策略下发
This commit is contained in:
@@ -525,10 +525,12 @@ describe("AcpEngine.handlePermissionRequest(strict)", () => {
|
||||
};
|
||||
mockDigitalEmployee.settings.set("digital_employee_skill_policies_v1", {
|
||||
version: 1,
|
||||
skills: {
|
||||
remote_skills: {
|
||||
"qimingclaw-mcp-tool-crm-crm-delete": {
|
||||
enabled: false,
|
||||
updatedAt: "2026-06-07T08:00:00.000Z",
|
||||
source: "remote",
|
||||
reason: "management_disabled",
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -558,6 +560,14 @@ describe("AcpEngine.handlePermissionRequest(strict)", () => {
|
||||
decision: "rejected",
|
||||
reasonCodes: ["skill_disabled"],
|
||||
sessionId,
|
||||
policySnapshot: expect.objectContaining({
|
||||
matched_policy_source: "remote",
|
||||
matched_policy_disabled_by: "remote",
|
||||
matched_remote_policy: expect.objectContaining({
|
||||
enabled: false,
|
||||
reason: "management_disabled",
|
||||
}),
|
||||
}),
|
||||
}));
|
||||
expect(JSON.stringify(mockDigitalEmployee.recordSkillCallAudit.mock.calls[0][0])).not.toContain("secret-customer");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user