Skip to content

Share sandbox base-image resolver primitives outside composite-action YAML #6957

Closed

Description

@cv

Parent: #6952

Problem

resolve-sandbox-base-image/action.yaml and resolve-hermes-base-image/action.yaml contain 86 and 98 nonblank shell lines. They repeat image pull/probe behavior, glibc inspection, compatibility comparison, candidate iteration, and fallback-build handling while retaining important agent-specific checks.

Work

  • Move only the shared current primitives into a repository helper: image pull/digest inspection, glibc extraction/comparison, candidate iteration, and local-build result handling.
  • Keep OpenClaw and Hermes candidate sources, environment output names, layout/import checks, Dockerfiles, and trust decisions explicit and separate.
  • Have both composite actions invoke the helper with narrow validated inputs.

Acceptance criteria

  • Shared shell implementations no longer exist twice in action YAML.
  • OpenClaw version-tag normalization and changed-input local build behavior remain unchanged.
  • Hermes immutable-digest preference, retired-state rejection, MCP import proof, and local fallback remain unchanged.
  • No generic provider/agent plug-in system or configuration schema is added.
  • Unit or shell-contract tests cover remote success, incompatible glibc, missing digest, agent-specific rejection, candidate exhaustion, and local fallback.
  • Both actions remain usable by existing amd64 and arm64 image workflows.

Activity

  1. added
    area: ci
    area: packaging
    platform: container
    area: architecture
    on Jul 15, 2026
  2. added theissue type on Jul 15, 2026
  3. added
    help wanted
    on Jul 15, 2026
  4. added a commit that references this issue on Jul 16, 2026
    8c52687
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: architecturearea: ciarea: packaginghelp wantedplatform: container

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions