Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions agents/hermes/policy-additions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ network_policies:
- allow: { method: POST, path: "/v1/chat/completions" }
- allow: { method: POST, path: "/v1/messages" }
- allow: { method: POST, path: "/v1/responses" }
- allow: { method: POST, path: "/v1/audio/transcriptions" }
- allow: { method: POST, path: "/v1/audio/speech" }
- allow: { method: POST, path: "/v1/completions" }
- allow: { method: POST, path: "/v1/embeddings" }
- allow: { method: GET, path: "/v1/models" }
Expand Down
6 changes: 6 additions & 0 deletions test/validate-blueprint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ describe("permissive sandbox policy", () => {
describe("Hermes sandbox policy", () => {
const policy = loadYaml<SandboxPolicy>(HERMES_POLICY_PATH);

/**
* Verifies that Hermes managed inference keeps the same narrow allowlist
* shape as OpenClaw while including every sandbox-routed inference endpoint.
*/
function expectManagedInferenceSecurityShape(): void {
const np = policy.network_policies ?? {};
const managedInference = np.managed_inference;
Expand All @@ -534,6 +538,8 @@ describe("Hermes sandbox policy", () => {
{ allow: { method: "POST", path: "/v1/chat/completions" } },
{ allow: { method: "POST", path: "/v1/messages" } },
{ allow: { method: "POST", path: "/v1/responses" } },
{ allow: { method: "POST", path: "/v1/audio/transcriptions" } },
{ allow: { method: "POST", path: "/v1/audio/speech" } },
{ allow: { method: "POST", path: "/v1/completions" } },
{ allow: { method: "POST", path: "/v1/embeddings" } },
{ allow: { method: "GET", path: "/v1/models" } },
Expand Down