Merge 05f35a2af8c0780b739fe00426805e7b8c547e7a into 9fb78453e088cd7b553d7779faa0de5c83708e70

This commit is contained in:
Dinakar Sarbada 2026-03-20 22:19:12 -07:00 committed by GitHub
commit 84a2e837ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3639,4 +3639,27 @@ description: test skill
expect(warning?.detail).toContain("gateway.auth.token");
});
});
it("identifies claude-opus-4-6 as a strong model (>= 4.5)", async () => {
const cfg: OpenClawConfig = {
agents: {
defaults: {
model: {
primary: "anthropic/claude-opus-4-6",
},
},
},
};
const res = await runSecurityAudit({
config: cfg,
includeFilesystem: false,
includeChannelSecurity: false,
});
const weakFinding = res.findings.find(
(f) => f.checkId === "models.hygiene" && f.detail.includes("Below Claude 4.5"),
);
expect(weakFinding).toBeUndefined();
});
});