Repository navigation
Conversation
LibreOffice 4:26.8.3.1-0+deb13u1 in Debian trixie-security depends on libexpat1 (>= 2.9.0). The Hermes 0.1.x base held libexpat1 2.8.3-1, so the Hermes tools image could not install it (#92). - agents/hermes-01x/Dockerfile.base installs libexpat1 2.9.0-1~deb13u1 from the snapshot.debian.org URL and with the SHA-256 values that the OpenClaw base already uses, and checks pyexpat for expat 2.9.0. - A new controlled package profile, hermes-01x, is the shared inventory with libexpat1=2.9.0-1~deb13u1. The Hermes 0.1.x base writes and probes it, and the final Hermes 0.1.x image probes it instead of hermes-compatible and checks expat 2.9.0. - The shared, openclaw, and hermes-compatible profiles do not change, so the OpenShell 0.0.x Hermes and Deep Agents Code bases and the CLI inventory checks keep their behavior. - The base security package test covers the Hermes 0.1.x base and final image, including a final image on a base that still has libexpat 2.8.3, which must fail. No image is published here. After merge, the Hermes 0.1.x image must be published and agents/hermes-01x/Dockerfile.tools must move to its digest before the tools image can be released. Refs #95, #92 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Derek Hsu <derekhsu@hotmail.com>
This was referenced Dec 3, 2026
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
LibreOffice
4:26.8.3.1-0+deb13u1in Debian trixie-security depends onlibexpat1 (>= 2.9.0), but the Hermes 0.1.x base holdslibexpat1 2.8.3-1, so the Hermes tools image cannot install it (#92). This change makes the Hermes 0.1.x base installlibexpat1 2.9.0-1~deb13u1and adds a Hermes 0.1.x controlled package profile,hermes-01x. The other bases and profiles do not change. No image is published here.Related Issue
Refs #95
Refs #92
Changes
agents/hermes-01x/Dockerfile.base:libexpat1 2.9.0-1~deb13u1fromsnapshot.debian.org20261017T204620Z, with the SHA-256 values thatDockerfile.base(OpenClaw) already uses.pyexpatforexpat_2.9.0.hermes-01xinventory instead ofshared.agents/hermes-01x/Dockerfile: the completed-image check probeshermes-01xinstead ofhermes-compatibleand checksexpat_2.9.0. A Hermes 0.1.x image can no longer build on the2026.11.25base, which still has2.8.3.hermes-01x: the shared inventory withlibexpat1=2.9.0-1~deb13u1. It is added insrc/lib/sandbox-base-image/security-package-specs.ts, inscripts/security/standalone-security-package-inventory.mts(the copy that image builds use), and inscripts/security/security-package-inventory.mts.libexpat1than thesharedprofile.shared: the OpenShell 0.0.x Hermes base, the Deep Agents Code base, and the CLI inventory check (sandboxBaseImageHasSecurityInventory, used for Deep Agents Code) depend on it.test/runtime/sandbox/sandbox-base-security-packages.test.tsrenders thehermes-01xprobe and inventory from both scripts and runs the Hermes 0.1.x base and completed-image contracts.shared,openclaw, andhermes-compatibleare unchanged. The existing tests for those profiles, the OpenShell 0.0.x Hermes base, Deep Agents Code, OpenClaw, and the published Hermes base still pass.sandbox-base-security-packages.test.tsadds Hermes 0.1.x toSECURITY_IMAGES, so the existing base, completed-image, stale-package, Vim, Node, and architecture cases run for it.libexpat1 2.8.3-1inventory. It fails whenagents/hermes-01x/Dockerfileis left onhermes-compatible.test/helpers/dockerfile-run-shell.ts: newdockerSubshellBetween. The Hermes 0.1.x completed-image check is a&& ( ... )subshell inside a merged RUN (fix(hermes-01x): 映像 130 層超過 Docker 125 層上限,Docker 主機無法拉取 #70), not its own RUN instruction.test/helpers/dockerfile-run-shell.test.tscovers the subshell case and the error case.test/helpers/base-apt-security-functions.ts:HERMES_01X_BASE_APT_PACKAGES.docs/modification/2026-11-17-hermes-tools-image.md: the cause, the change, and the steps after merge.Follow-up after merge (not in this PR)
Images / Hermes OpenShell 0.1.xto publish a new Hermes 0.1.x image.BASE_IMAGEinagents/hermes-01x/Dockerfile.toolsto the new tag and index digest. The base tag and digest lines in the Hermes tools document change at the same time.Dockerfile.toolskeeps the2026.11.25digest in this PR because the new base has no digest yet.Not verified
agents/hermes-01x/Dockerfile.baseoragents/hermes-01x/Dockerfile. The only workflow that builds them,Images / Hermes OpenShell 0.1.x, also publishes images, so it was not run. The Hermes 0.1.x Docker build is not verified. The CI on this PR covers the shell-level contract tests and the OpenShell 0.0.x Hermes and Deep Agents Code builds inImages / Managed Images.libexpat12.9.0 deb is the file the OpenClaw base installs from the same snapshot URL. On 2026-12-03 the current Debian Packages indexes list the same SHA-256 values for amd64 and arm64.agents/hermes-01x/Dockerfile.baseagainst the current Debian Packages indexes, and all are available. I did not check npm, pip, or download sources that the base and final image builds also use.Type of Change
Quality Gates
Documentation Writer Review
docs-updateddocs/modification/2026-11-17-hermes-tools-image.md. The review passed with nits. I applied four of them; the fifth, renamingOPENCLAW_LIBEXPAT_PACKAGE, was optional and out of scope. It found no other document that needs a change now.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/runtime/sandbox/sandbox-base-security-packages.test.ts test/helpers/dockerfile-run-shell.test.tspassed 159/159 after the final edits. The 26 test files that import the changed modules or read the Hermes 0.1.x Dockerfiles, plustest/hermes-01x-image.test.tsandtest/check-image-layer-count.test.ts, passed 480/480 withdist/built.npm run typecheck:cli,hadolint,npm run source-shape:check,npm run test:projects:check, andmarkdownlint-cli2passed.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)Signed-off-by: Derek Hsu derekhsu@hotmail.com