Skip to content

ci(images): build the Hermes 0.1.x images without publishing them - #99

Draft
derekhsu wants to merge 1 commit into
feat/image-only-clifrom
ci/hermes-01x-image-verify
Draft

derekhsu wants to merge 1 commit into
feat/image-only-clifrom
ci/hermes-01x-image-verify

Conversation

@derekhsu

@derekhsu derekhsu commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Summary

No pull request workflow built agents/hermes-01x/Dockerfile.base or agents/hermes-01x/Dockerfile. The only workflow that builds them, hermes-01x-image.yaml, also publishes images, so a change to the Hermes 0.1.x base (#95) could not be checked in a Docker build before release. This PR adds Images / Hermes OpenShell 0.1.x Verify, which builds the base and final images on amd64 and arm64 without publishing them. It does not contain the libexpat change from #96, so its first run builds the current base and Dockerfile.

Related Issue

Refs #98
Refs #95

Changes

  • New .github/workflows/hermes-01x-image-verify.yaml:
    • Triggers: pull_request to feat/image-only-cli with paths agents/hermes-01x/** (except Dockerfile.tools), src/lib/sandbox-base-image/**, scripts/security/**, the scripts it runs, and the workflow itself; workflow_dispatch. Guarded by if: github.repository == 'derekhsu/NemoClaw'.
    • Native ubuntu-24.04 (amd64) and ubuntu-24.04-arm (arm64) runners, fail-fast: false.
    • The base image is exported to an OCI layout (push: false) and checked with scripts/checks/resolve-hermes-pr-source-base.sh. The final image uses it through build-contexts, and BASE_IMAGE overrides the Dockerfile's default, a published base. This is the method the Hermes PR build in managed-images.yaml uses for amd64.
    • The final image is also exported to an OCI layout. Its layer count is checked against MAX_LAYERS from scripts/check-image-layer-count.sh; that script reads a registry, so the workflow counts the layers in the OCI manifest.
    • permissions: contents: read, no registry login, no secrets, provenance: false, sbom: false. GitHub Actions cache scopes hermes-01x-verify-{base,final}-<arch>. The workflow names no registry.
  • New test/hermes-01x-image-verify-workflow.test.ts:
    • Contract checks: triggers and paths, the no-publication boundary, the matrix, step order, cache scopes, and full-SHA action pins.
    • It runs the resolver step on a generated OCI layout and checks that the guard uses the same base reference as the final build.
    • It runs the layer count step on generated layouts: at the limit, above the limit, and with a layout that does not hold the built digest.
  • test/helpers/vitest-watch-triggers.ts: maps the workflow file to its test.
  • agents/hermes-01x/README.md: describes the workflow.

hermes-01x-image.yaml is unchanged. A push input there would have needed conditions on about seven steps in a job that has Docker Hub credentials (see #98).

Not verified

  1. This is the first run of the workflow. Until CI runs, it is not verified that BuildKit can read an arm64 OCI layout through build-contexts; the repository uses this only for amd64 today. Cold-cache build time is also unknown: the release workflow took about 12–16 minutes per architecture with a warm cache.
  2. The base build pulls node:…-trixie-slim anonymously from Docker Hub; rate limiting is possible but not observed.
  3. I did not build an image locally (no container runtime was used).

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: agents/hermes-01x/README.md. The review passed with three nits, all applied. It found no other document that needs a change; section 4 of docs/modification/2026-11-17-hermes-tools-image.md covers only the tools image.
  • 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/hermes-01x-image-verify-workflow.test.ts passed 10/10 after the final edits. With test/vitest-watch-triggers.test.ts and test/hermes-01x-image.test.ts, 66/66 passed. actionlint, scripts/check-production-build-args.sh with the workflow's arguments, npm run source-shape:check, npm run test:projects:check, and markdownlint-cli2 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

No pull request workflow built agents/hermes-01x/Dockerfile.base or
agents/hermes-01x/Dockerfile. The only workflow that builds them,
hermes-01x-image.yaml, also publishes images, so changes to the Hermes
0.1.x base (#95) could not be checked in a Docker build before release.

Add "Images / Hermes OpenShell 0.1.x Verify". On pull requests to
feat/image-only-cli that change agents/hermes-01x (except
Dockerfile.tools), the security package inventory, or the scripts it
runs, and on manual runs, it builds the base and final images on native
amd64 and arm64 runners:

- The base image is exported to an OCI layout, checked with
  scripts/checks/resolve-hermes-pr-source-base.sh, and passed to the
  final build as a build context that replaces BASE_IMAGE, as the Hermes
  PR build in managed-images.yaml does.
- The final image is also exported to an OCI layout, and its layer
  count is checked against MAX_LAYERS from
  scripts/check-image-layer-count.sh.
- The token is read-only, there is no registry login and no secret, and
  the GitHub Actions cache uses its own scopes.

A contract test covers the triggers, the no-publication boundary, the
base handoff (it runs the resolver on an OCI layout), the cache scopes,
action pins, and the layer count step.

Refs #98, #95

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