Skip to content

fix(images): manage the Hermes tools browser backend in the policy - #80

Merged
derekhsu merged 2 commits into
feat/image-only-clifrom
issue/79-hermes-tools-dashboard
Nov 19, 2026
Merged

derekhsu merged 2 commits into
feat/image-only-clifrom
issue/79-hermes-tools-dashboard

Conversation

@derekhsu

@derekhsu derekhsu commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

The Hermes tools image (tools.2) set browser.backend: "off" only in config.yaml. The dashboard config seeder copies the gateway config only when each managed section equals the managed policy, so it refused the config and the Dashboard had no model (No inference provider configured). The tools image now writes the same value into the managed policy and makes it a managed path, so the Dashboard gets the model and browser.backend: "off".

Related Issue

Closes #79

Changes

  • agents/hermes-01x/configure-tools-browser.py: also updates /usr/local/share/nemoclaw/hermes-managed-policy.json. It adds config.browser.backend: "off" and the managed path browser.backend (after browser.restrict_evaluate). It keeps the generator's JSON layout. It refuses a policy that already sets the backend, and writes neither file when either one is invalid.
  • agents/hermes-01x/Dockerfile.tools: checks the policy file stays root:root 444, then reruns the base image's dashboard policy probe as the sandbox user. The seeder must accept the gateway config and produce model:, and image-build-probes.py dashboard-policy must match every managed path, browser.backend included.
  • tools/openclaw-tools-image/fixtures/run-phase2.sh: new Hermes check hermes_dashboard_seed. It runs the seeder with the image's policy and config.yaml, and requires a model and browser.backend = off.
  • test/hermes-tools-browser-config.test.ts: covers the policy change, policies that the script refuses (both files stay unchanged), and the two-argument usage.
  • Separate commit 81e0de5097: Debian removed LibreOffice 4:25.2.3-2+deb13u9 from trixie-security, so the tools image builds failed (E: Version '4:25.2.3-2+deb13u9' for 'libreoffice-core' was not found). tools/openclaw-tools-image/apt-packages.txt now pins libreoffice-calc, -core, -impress and -writer to 4:25.2.3-2+deb13u12, and docs/modification/2026-10-31-openclaw-tools-image.md shows the new version.
  • Docs: agents/hermes-01x/README.md and docs/modification/2026-11-17-hermes-tools-image.md. They now describe the cause, the fix from tools.3, the API profile, and named profiles that have no config.yaml.

Notes from checking the other policy readers:

  • managed_policy.py accepts the new managed path.
  • runtime-config-guard.py builds the API profile's managed sections from the policy, so the API profile's browser section also gets backend: "off". Its tool policy still denies browser tools.
  • patch-profile-policy-defaults.py (base build) patches only fixed keys and does not change browser.backend. Hermes reads that value from the profile's config.yaml, so named profiles without a config.yaml still have it unset, as in tools.2. No check in the tools build fails. The base build's profile-policy probe would flag this path if rerun on the tools image. The doc records this. No base image change is needed.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification:
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: the change adds one managed policy value (browser.backend: "off") in the tools image only. It does not weaken a managed value: the seeder's exact match check stays, and the build reruns it on the changed files. Awaiting maintainer review.
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Documentation Writer Review

  • Documentation writer subagent reviewed the completed changes
  • Result: docs-updated
  • Evidence: agents/hermes-01x/README.md, docs/modification/2026-11-17-hermes-tools-image.md, docs/modification/2026-10-31-openclaw-tools-image.md. The review checked both against the writing rules and against seed-dashboard-config.py, patch-profile-policy-defaults.py, image-build-probes.py, and runtime-config-guard.py. I applied both wording fixes it found. A second review covered the LibreOffice commit and passed with no changes.
  • Agent: Claude Code

DGX Station Hardware Evidence

  • Tested on DGX Station
  • Tested commit:
  • Station profile/scenario:
  • Result:
  • Supporting evidence:

Verification

  • PR description includes a Signed-off-by: line and every commit appears as Verified in GitHub
  • Normal pre-commit, commit-msg, and pre-push hooks passed, or npm run validate:pr passed after refreshing origin/main when hooks were skipped or unavailable
  • Targeted behavior tests pass for the current change set, or tests are marked not applicable above — command/result or justification: npx vitest run test/hermes-tools-browser-config.test.ts test/hermes-image-build-probes.test.ts test/hermes-managed-policy.test.ts test/hermes-tools-image-release.test.ts: 4 files, 49 tests passed
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — command/result:
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Local image evidence:

  • The arm64 image built locally with OrbStack (65 layers). The in-build dashboard probe passed: [dashboard] seeded model routing and reviewed policy.
  • Before the build, I ran the change against the published base image's policy and config.yaml. With the tools.2 config, the seeder refused (Refusing to seed dashboard config because gateway policy is invalid). After the change, it wrote model: and browser.backend: 'off', and dashboard-policy passed.
  • check-image.sh and run-fixtures.sh did not run locally. OrbStack's VM disk reported BTRFS metadata corruption during that step. CI's Images / Hermes Tools Verify (amd64, arm64) runs these checks, including the new hermes_dashboard_seed.
  • OpenShell 0.1.7 sandbox acceptance happens after tools.3 is published. It covers Dashboard CHAT with default and dashboard-home, browser.backend in profiles/dashboard-home/config.yaml, and the ClawShell API browser tests.

🤖 Generated with Claude Code


Signed-off-by: Derek Hsu derekhsu@hotmail.com

derekhsu and others added 2 commits November 19, 2026 15:26
The Hermes tools image set browser.backend "off" only in config.yaml. The
dashboard config seeder copies the gateway config only when each managed
section equals the managed policy, so tools.2 Dashboards got no model.

configure-tools-browser.py now also sets browser.backend "off" in the
managed policy and adds it to the managed paths, and writes neither file
when either is invalid. Dockerfile.tools reruns the base image's dashboard
policy probe as the sandbox user, and the Hermes fixtures add a dashboard
seed check.

Closes #79

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Derek Hsu <derekhsu@hotmail.com>
Debian removed LibreOffice 4:25.2.3-2+deb13u9 from trixie-security, so the
tools image builds fail with "Version '4:25.2.3-2+deb13u9' for
'libreoffice-core' was not found". Pin libreoffice-calc, -core, -impress
and -writer to 4:25.2.3-2+deb13u12, which trixie-security has on amd64 and
arm64, and update the OpenClaw tools image doc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Derek Hsu <derekhsu@hotmail.com>
@derekhsu
derekhsu merged commit 187b5a3 into feat/image-only-cli Nov 19, 2026
61 of 63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(images): Hermes tools.2 讓 Dashboard 拿不到模型設定

1 participant