Skip to content

fix(images): pin the current Debian LibreOffice and Chromium releases - #93

Draft
derekhsu wants to merge 1 commit into
feat/image-only-clifrom
fix/92-tools-apt-pin-drift
Draft

derekhsu wants to merge 1 commit into
feat/image-only-clifrom
fix/92-tools-apt-pin-drift

Conversation

@derekhsu

@derekhsu derekhsu commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

Debian trixie-security replaced the LibreOffice and Chromium releases that the tools images pin, so both tools image builds stopped at the apt install step. This change pins the versions trixie-security now publishes for amd64 and arm64. The OpenClaw tools image should install them. The Hermes tools image still cannot, because LibreOffice 4:26.8.3.1-0+deb13u1 needs a newer libexpat1 than its base image holds (see below).

Related Issue

Refs #92

This PR does not meet the issue's acceptance criterion for the Hermes tools image. Do not merge it as the complete fix for #92 until the Hermes path is decided.

The OpenClaw tools image is also blocked: its Trivy gate rejects 19 HIGH findings in the Node.js tar 7.5.22 package that the tools layer adds. #94 tracks it.

Changes

  • tools/openclaw-tools-image/apt-packages.txt: libreoffice-calc, libreoffice-core, libreoffice-impress, and libreoffice-writer change from 4:25.2.3-2+deb13u12 to 4:26.8.3.1-0+deb13u1.
  • tools/openclaw-tools-image/apt-packages-browser.txt: chromium and chromium-common change from 156.0.8078.108-1~deb13u1 to 156.0.8078.114-1~deb13u1, still pinned together.
  • tools/openclaw-tools-image/fixtures/run-phase3.sh: the Chromium version check uses 156.0.8078.114.
  • docs/modification/2026-10-31-openclaw-tools-image.md: the package table uses the new versions.
  • test/tools-image-apt-pins.test.ts (new):
    • chromium and chromium-common use one version, and the fixture checks that release.
    • Every LibreOffice package uses one version.
    • With the fixture left at the old version, the first test fails.

A full-repository search found no other current references to the old versions. The conductor/tracks/ apt logs are dated evidence and stay unchanged.

Where the versions come from

The sources match the image builds: the apt-get update lines in the failed CI log list deb.debian.org/debian trixie and trixie-updates, and deb.debian.org/debian-security trixie-security, with main only.
On 2026-12-03 I read dists/<suite>/main/binary-{amd64,arm64}/Packages.xz for those suites with curl:

Package trixie trixie-security
libreoffice-{calc,core,impress,writer} 4:25.2.3-2+deb13u9 4:26.8.3.1-0+deb13u1
chromium, chromium-common 156.0.8078.79-1~deb13u1 156.0.8078.114-1~deb13u1

Both architectures list the same versions. deb13u9 is older than the current deb13u12 pin, so only the trixie-security release is usable.

Dependency check without Docker

I could not run apt in a container, so I checked dependencies against the same indexes with a script. The script uses the pinned version for each listed package, the base image's controlled package version for held packages, and otherwise the newest version. It reports unsatisfied Depends and Pre-Depends, plus Breaks and Conflicts inside the resolved set. Run on the current pins, it reports exactly the six versions that CI could not find, so its version handling matches apt for this case.

  • OpenClaw tools image (controlled packages from the OpenClaw base inventory): no problem found on amd64 or arm64.
  • Hermes tools image: libreoffice-core 4:26.8.3.1-0+deb13u1 depends on libexpat1 (>= 2.9.0). agents/hermes-01x/Dockerfile.base installs and checks libexpat1 2.8.3-1. The tools build holds the base's controlled packages and fails if one changes. Because both tools images use the same package lists, I expect Images / Hermes Tools Verify to fail at the apt step with a different error. I did not change the Hermes path because every option changes a security or release decision:
    1. Rebuild and publish the Hermes 0.1.x base with libexpat1 2.9.0-1~deb13u1, as the OpenClaw base already does, then update BASE_IMAGE.
    2. Give the Hermes tools image its own LibreOffice pin at 4:25.2.3-2+deb13u12 from snapshot.debian.org. This keeps a release that Debian has replaced.
    3. Let the Hermes tools layer upgrade libexpat1. This breaks the controlled-package contract of the base image.

Not verified

  1. I did not build either image. CI is the first apt run with the new pins. The dependency check above only reads the indexes; it does not cover install scripts or apt's own decisions.
  2. I did not check the published base images directly. The controlled package versions come from src/lib/sandbox-base-image/security-package-specs.ts and the base Dockerfiles. To be safe, the check used libc6 2.41-12+deb13u4, the oldest value the repository mentions. The OpenClaw tools document says the current bases hold deb13u5.
  3. LibreOffice 26.8 is a new upstream release, not a patch release. The Phase 2 fixtures (soffice PDF conversion) and the Trivy gate run only in CI.
  4. Published images do not change. They keep their packages until someone rebuilds them; a rebuild with the old pins fails.

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:
  • 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: docs/modification/2026-10-31-openclaw-tools-image.md. The review passed with two nits, and both are applied in this commit. It found no other document in docs/ that needs a change. npm run docs does not apply: docs/modification/ is not part of the Fern site.
  • 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/tools-image-apt-pins.test.ts passed 2/2. npx vitest run test/runtime/sandbox/sandbox-base-security-packages.test.ts test/openclaw-image-release.test.ts test/hermes-tools-image-release.test.ts test/check-image-layer-count.test.ts passed 205/205. shellcheck, npm run source-shape:check, and npm run test:projects:check 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)

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

Debian trixie-security replaced LibreOffice 4:25.2.3-2+deb13u12 and
Chromium 156.0.8078.108-1~deb13u1, so the tools image builds stopped at
the apt install step. Pin the versions the trixie-security Packages
indexes list for both amd64 and arm64:

- libreoffice-calc, -core, -impress, -writer: 4:26.8.3.1-0+deb13u1
- chromium, chromium-common: 156.0.8078.114-1~deb13u1

The phase 3 fixture's Chromium version check and the OpenClaw tools
document follow. A new test checks that chromium and chromium-common use
one version, that the LibreOffice packages use one version, and that the
fixture checks the pinned Chromium release.

libreoffice-core 4:26.8.3.1-0+deb13u1 depends on libexpat1 (>= 2.9.0).
The Hermes 0.1.x base holds libexpat1 2.8.3-1, so the Hermes tools image
cannot install this release until its base changes.

Refs #92

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Derek Hsu <derekhsu@hotmail.com>

This branch has not been deployed

No deployments
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.

1 participant