Repository navigation
feat(images): add opt-in Hermes tools image for OpenShell 0.1.x - #75
Merged
Merged
Conversation
Add agents/hermes-01x/Dockerfile.tools, which layers the OpenClaw tools image's document, PDF/OCR, media, browser, and workspace tools onto a digest-pinned Hermes image. The Python packages go into the system interpreter and run as /usr/bin/python3, so PATH and the Hermes virtual environment stay unchanged. The shared tools fixtures take an agent argument; OpenClaw stays the default. check-image.sh now compares the agent version and rejects setuid, setgid, or file-capability files that the tools layer adds outside privileged-files-added.txt. base_security_checks fails when dpkg --audit fails (#30). New workflows verify the image on amd64 and arm64 and publish <base tag>-tools.<n> from feat/image-only-cli without overwriting tags. The Hermes browser tool is configured in a later change. Refs #74 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Trivy gate of both tools image verify workflows rejects soupsieve 3.0.4 (HIGH, fixed in 4.0.0). Update only soupsieve in requirements.lock to 4.1.1; beautifulsoup4 4.15.0 and markitdown 0.1.9 work with it. Refs #74 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 17, 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
新增可選用的 Hermes tools 映像(OpenShell 0.1.x):把 OpenClaw tools 映像的文件、PDF/OCR、影音、瀏覽器與 workspace 工具疊在以 digest 固定的 Hermes 映像上,並加上 amd64/arm64 驗證與 fork 發布流程。部署端要明確選用才會改用;既有 Hermes 映像與 OpenClaw tools 映像的行為不變。
Related Issue
Refs #74(第一階段。Hermes browser 工具的啟用與網路政策是下一階段,issue 保持開啟。)
Changes
agents/hermes-01x/Dockerfile.tools:base 為openshell01x-hermes-0.21.3-2026.11.13,以 tag 加 index digest 固定。共用tools/openclaw-tools-image/的套件清單,不含 OpenClaw 的 himalaya skill 與openclaw.json設定。Python 套件裝在系統 Python,以/usr/bin/python3執行。映像的PATH把 Hermes venv 放在前面,改PATH會讓Env與 base 不同;裝進 Hermes venv 又會和 Hermes 鎖定的套件版本衝突。run-fixtures.sh IMAGE OUT [openclaw|hermes],預設openclaw)。需求來源是兩個映像共用同一套工具與檢查;不加參數的話,要複製約 600 行 fixture。Hermes 模式:himalaya_skill_override、browser_config記為SKIP。libexpat1=2.8.3-1,由controlled_packages檢查。hermes_python檢查(python3仍是 Hermes venv,且 venv 匯入不到 tools 套件)與agent_browser檢查(base 的 agent-browser 能用/usr/lib/chromium/chromium開頁並讀取內容)。check-image.sh:版本比對依 agent 執行(openclaw --version或hermes --version)。新增特權檔案檢查:tools layer 新增的 setuid、setgid、file capability 檔案必須列在tools/openclaw-tools-image/privileged-files-added.txt,目前只有dbus-daemon-launch-helper與gst-ptp-helper。OpenClaw 也套用這項檢查。base_security_checks:dpkg --audit先存進變數再判斷,指令失敗時檢查會失敗(fix(images): tools fixture 的 dpkg --audit 在讀不到 dpkg 資料時仍判定通過 #30)。agents/hermes-01x/check-tools-start.sh:base 與 tools 映像以相同限制啟動(無網路、--cap-drop ALL、no-new-privileges),比對容器狀態、啟動輸出、/tmp/nemoclaw-start.log與 process 清單。.github/workflows/hermes-tools-image-verify.yaml:PR 時在 amd64/arm64 原生 runner 驗證,不推送映像。.github/workflows/hermes-01x-tools-image.yaml與scripts/hermes-tools-image-release.sh:手動發布<base tag>-tools.<n>加-amd64/-arm64。只在derekhsu/NemoClaw的feat/image-only-cli執行,不覆寫既有 tag,不寫入 base 的 tag;先在未登入的狀態下跑完檢查再推送;layer 上限 115(fix(hermes-01x): 映像 130 層超過 Docker 125 層上限,Docker 主機無法拉取 #70)。由test/hermes-tools-image-release.test.ts保護。tools/openclaw-tools-image/python/requirements.lock:只把 soupsieve 從 3.0.4 更新到 4.1.1。CVE-2026-126190(HIGH,4.0.0 修正)讓 OpenClaw 與 Hermes 的 Trivy 關卡都失敗;beautifulsoup4 4.15.0 與 markitdown 0.1.9 在 4.1.1 下可正常解析。docs/modification/2026-11-17-hermes-tools-image.md、agents/hermes-01x/README.md,以及 OpenClaw tools 文件的共用 fixture 說明。Type of Change
Quality Gates
Documentation Writer Review
docs-updateddocs/modification/2026-11-17-hermes-tools-image.md,docs/modification/2026-10-31-openclaw-tools-image.md,agents/hermes-01x/README.mdDGX 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-image-release.test.ts test/openclaw-image-release.test.ts→ 81 passed;在本機 arm64 試建置映像上:check-image.sh <base> <tools> <out> hermes通過;check-tools-start.sh→ startup matches the base image;run-fixtures.sh <tools> <out> hermes→ phase 2、phase 3 皆 0 failed;拿掉允許清單的 dbus 項目後check-image.sh失敗(exit 1)npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result:npm run docsbuilds without warnings (doc changes only)尚未完成的驗證:amd64 的 fixture、啟動比對與 agent-browser 由本 PR 的 CI 執行;OpenShell 0.1.7 sandbox 實機驗收(
running、managed startup 與 API runtime、NoNewPrivs、LibreOffice process 峰值 #32)在合併後進行。Signed-off-by: Derek Hsu derekhsu@hotmail.com
🤖 Generated with Claude Code