Repository navigation
fix(images): manage the Hermes tools browser backend in the policy - #80
Merged
Merged
Conversation
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>
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Hermes tools image (
tools.2) setbrowser.backend: "off"only inconfig.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 andbrowser.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 addsconfig.browser.backend: "off"and the managed pathbrowser.backend(afterbrowser.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 staysroot:root 444, then reruns the base image's dashboard policy probe as the sandbox user. The seeder must accept the gateway config and producemodel:, andimage-build-probes.py dashboard-policymust match every managed path,browser.backendincluded.tools/openclaw-tools-image/fixtures/run-phase2.sh: new Hermes checkhermes_dashboard_seed. It runs the seeder with the image's policy andconfig.yaml, and requires a model andbrowser.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.81e0de5097: Debian removed LibreOffice4:25.2.3-2+deb13u9from 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.txtnow pinslibreoffice-calc,-core,-impressand-writerto4:25.2.3-2+deb13u12, anddocs/modification/2026-10-31-openclaw-tools-image.mdshows the new version.agents/hermes-01x/README.mdanddocs/modification/2026-11-17-hermes-tools-image.md. They now describe the cause, the fix fromtools.3, the API profile, and named profiles that have noconfig.yaml.Notes from checking the other policy readers:
managed_policy.pyaccepts the new managed path.runtime-config-guard.pybuilds the API profile's managed sections from the policy, so the API profile'sbrowsersection also getsbackend: "off". Its tool policy still denies browser tools.patch-profile-policy-defaults.py(base build) patches only fixed keys and does not changebrowser.backend. Hermes reads that value from the profile'sconfig.yaml, so named profiles without aconfig.yamlstill have it unset, as intools.2. No check in the tools build fails. The base build'sprofile-policyprobe would flag this path if rerun on the tools image. The doc records this. No base image change is needed.Type of Change
Quality Gates
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.Documentation Writer Review
docs-updatedagents/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 againstseed-dashboard-config.py,patch-profile-policy-defaults.py,image-build-probes.py, andruntime-config-guard.py. I applied both wording fixes it found. A second review covered the LibreOffice commit and passed with no changes.DGX Station Hardware Evidence
Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailablenpx 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 passednpm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result:npm run docsbuilds without warnings (doc changes only)Local image evidence:
[dashboard] seeded model routing and reviewed policy.config.yaml. With thetools.2config, the seeder refused (Refusing to seed dashboard config because gateway policy is invalid). After the change, it wrotemodel:andbrowser.backend: 'off', anddashboard-policypassed.check-image.shandrun-fixtures.shdid not run locally. OrbStack's VM disk reported BTRFS metadata corruption during that step. CI'sImages / Hermes Tools Verify(amd64, arm64) runs these checks, including the newhermes_dashboard_seed.tools.3is published. It covers Dashboard CHAT withdefaultanddashboard-home,browser.backendinprofiles/dashboard-home/config.yaml, and the ClawShell API browser tests.🤖 Generated with Claude Code
Signed-off-by: Derek Hsu derekhsu@hotmail.com