Repository navigation
Conversation
A named profile created with `hermes profile create` has no config.yaml.
Hermes reads browser.backend from the profile's own YAML without merging
DEFAULT_CONFIG, so the value was empty and, with uvx on PATH, Hermes used
the Browser Use CLI, which fetches an unpinned browser-use from PyPI. The
base image's profile-policy probe also failed on such a profile:
('browser.backend', '', 'off').
configure-tools-browser.py now takes the Hermes source directory and makes
two exact one-line edits: a missing browser.backend reads as "off" in
tools/browser_use_cli.py, and the browser.backend default in
hermes_cli/config_defaults.py becomes "off". A profile that sets
browser.backend keeps its value. Dockerfile.tools pins both source files to
their hashes in BASE_IMAGE, rewrites their bytecode, and runs the
profile-policy probe on a new named profile. The new phase 3 fixture
hermes_profile_browser checks the tools a named profile gets, opens a page,
and fails if uvx runs. The standard Hermes image is unchanged.
Closes #83
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Derek Hsu <derekhsu@hotmail.com>
This was referenced Nov 24, 2026
Bring in #86 so the image checks build on the current Debian pins. Signed-off-by: Derek Hsu <derekhsu@hotmail.com>
This branch has not been deployed
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
A named Hermes profile created with
hermes profile createhas noconfig.yaml. Hermes readsbrowser.backendfrom the profile's own YAML without mergingDEFAULT_CONFIG, so the tools image (tools.2,tools.3) gave such a profile an empty value. Becauseuvxis onPATH, Hermes then switched to the Browser Use CLI, which runsuvx browser-useand fetches an unpinned package from PyPI. The tools image now makes a missingbrowser.backendread asoff, so named profiles use the built-in browser tools and the image's Chromium.Related Issue
Closes #83
Changes
agents/hermes-01x/configure-tools-browser.py: takes a third argument, the Hermes source directory, and makes two exact one-line edits:tools/browser_use_cli.py:get_browser_backend()reads a missingbrowser.backendasoff(BACKEND_DISABLED).hermes_cli/config_defaults.py: theDEFAULT_CONFIGbrowser.backenddefault becomesoff, so code that merges the defaults (load_config_readonly(), theprofile-policyprobe) also readsoff. The web backend default is unchanged.Each edit fails if its line is missing or already changed. The script checks every file before it writes any. A profile that sets
browser.backenditself keeps its value.agents/hermes-01x/Dockerfile.tools:sha256sum -cpins both source files to their hashes inBASE_IMAGE. A new base image must be checked against the edits before the hashes change.py_compilerewrites the two modules' bytecode.config.yaml, runs the base image'simage-build-probes.py profile-policyon it, and assertsget_browser_backend() == "off". Hermes must also not be in Browser Use CLI mode.tools/openclaw-tools-image/fixtures/run-phase3.sh: new Hermes checkhermes_profile_browser. It puts auvxthat records its calls first onPATHand creates a named profile with noconfig.yaml. Then it requires all of the following:off, and Hermes not in Browser Use CLI mode;browser_navigateandbrowser_snapshotin the browser toolset, and nobrowser_exec;browser_navigate;uvxcall.test/hermes-tools-browser-config.test.ts: covers both source edits, sources that the script refuses (every file stays unchanged), and the three-argument usage.docs/modification/2026-11-17-hermes-tools-image.md: describes the cause, the fix fromtools.4(not yet published), and the base-update step. Section 6 no longer lists named profiles as an open limitation.Not changed: the standard Hermes image. NemoClaw managed startup (
installHermesManagedPolicy()) is out of scope, as the issue states.Type of Change
Quality Gates
uvx browser-usefrom PyPI) for named profiles in the tools image only. It does not widen network, file, or privilege settings. The source edits are bound to pinned hashes and exact lines, so a changed base fails the build. Awaiting maintainer review.Documentation Writer Review
docs-updateddocs/modification/2026-11-17-hermes-tools-image.md. The review also checked the changed comments, docstring, and test titles inDockerfile.tools,configure-tools-browser.py,run-phase3.sh, andtest/hermes-tools-browser-config.test.tsagainst the writing rules, and checked the doc's claims against the code. It found no blockers. I applied all seven wording suggestions before the commit.npm run docsdoes not apply:docs/modification/is not part of the Fern site.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-tools-image-release.test.ts: 2 files, 46 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 (arm64, OrbStack):
Dockerfile.toolsbuilt. The in-build named-profileprofile-policyprobe passed.run-fixtures.sh <image> <out> hermes: 30 PASS, 0 failed, includinghermes_profile_browser.hermes_profile_browserfails on the previous tools image withAssertionError: '', the empty backend.check-tools-start.sh:startup matches the base image.Images / Hermes Tools Verifycovers amd64 and arm64. OpenShell sandbox acceptance happens aftertools.4is published.🤖 Generated with Claude Code
Signed-off-by: Derek Hsu derekhsu@hotmail.com