Explain Network Policy to Agents
Use policy explain to give a sandbox agent a compact, redacted view of its active network policy. The summary helps the agent distinguish policy denials, missing credentials, unsupported capabilities, and upstream failures.
Print the Policy Context
Print the redacted summary:
Pass --json when a tool needs a structured object:
For Hermes, use the printed Markdown or JSON through an operator-controlled prompt or file workflow.
NemoClaw does not write /sandbox/.openclaw/workspace/POLICY.md in Hermes sandboxes during onboarding, after policy add or policy remove, or for --write.
The --write target is the OpenClaw workspace and is not a Hermes agent-context integration.
Older NemoClaw versions could leave /sandbox/.openclaw/workspace/POLICY.md in an existing Hermes sandbox.
Upgrading NemoClaw does not remove that file.
A rebuild preserves the native sandbox home, including this file.
An operator can inspect the sandbox and remove only a confirmed obsolete OpenClaw POLICY.md file after backing up needed data.
Hermes detects the /sandbox/.openclaw directory itself, so inspect and remove /sandbox/.openclaw/workspace and then /sandbox/.openclaw only if each directory is empty.
Removing the file and empty directories does not repair Hermes integrity metadata.
If inference set reports Hermes integrity metadata is not ready after a Hermes CLI session, back up needed Hermes data before recovery.
Restore matching Hermes configuration and integrity files from a trusted backup or create a fresh Hermes sandbox.
Do not copy the obsolete OpenClaw file or mismatched Hermes configuration and integrity files into the fresh sandbox.
Retry inference set only after Hermes starts with valid integrity metadata.
Understand Redaction
The summary includes the inferred tier when available, applied presets, allowed host categories, known presets that are not applied, and policy management commands. It also explains the support boundaries between NemoClaw, OpenShell, and the agent.
The output omits network rule bodies, credential metadata, and binary allowlists. It includes only host stems and category-level summaries. NemoClaw drops private, loopback, link-local, metadata, unique-local, reserved, CGNAT, benchmarking, and internal-suffix hosts from allowedHostCategories. It reports their count in redactedHostCount.
Interpret Verification Status
Each active preset includes a verification value:
Classify a Failed Request
The classifier evaluates conditions in this order:
unsupportedmeans the active agent does not offer the asserted capability. Surface the limitation without retrying.missing-approvalwith high confidence means a host on an applied preset returned HTTP 401. The network path is open, but credentials are missing or invalid.missing-approvalwith low confidence means a host on an applied preset returned HTTP 403. Confirm credentials, then inspect the effective policy for a method, path, protocol, or binary denial.blocked-by-policymeans no applied preset allows the host or the request returned a network-block error. Apply an applicable preset or create a custom preset.unknownmeans no classification matched. Surface the underlying error.
Network-block error codes include EHOSTUNREACH, ENETUNREACH, ENOTFOUND, ECONNREFUSED, ETIMEDOUT, and EAI_AGAIN. A block code while the OpenShell policy is unavailable produces a low-confidence policy verdict. A block code for an entry verified in the current OpenShell policy stays unknown with high confidence because policy presence alone does not distinguish credential and application failures.
Each verdict includes confidence set to high or low. Low confidence means the agent must report multiple possibilities instead of treating one next step as authoritative.
For blocked-by-policy, run nemohermes <name> policy add <preset> or follow Custom Preset Files. For missing-approval, confirm the API token and scopes. For unsupported, surface the limitation without retrying.
Related Topics
- Apply Policy Presets changes the current OpenShell policy.
- Create Custom Policy Presets adds a reviewed custom destination.
- Network Policies explains policy enforcement and tiers.