Skip to content

fix(release): hash Brood Box images with a native helper - #2040

Merged
JAORMX merged 4 commits into
mainfrom
fix/native-brood-box-release-digest
Oct 1, 2026
Merged

JAORMX merged 4 commits into
mainfrom
fix/native-brood-box-release-digest

Conversation

@JAORMX

@JAORMX JAORMX commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fix Brood Box release resolution without QEMU/binfmt: build one native amd64 helper and extract both target images as data inside the existing pinned native Alpine environment.

  • Use the existing go-microvm extractor and canonical ArtifactTreeDigest implementation.
  • Validate the explicit target (linux/amd64 or linux/arm64) and immutable manifest; isolate cached trees by validated target.
  • Update both release and E2E callers to supply the target platform; add permanent workflow-contract assertions.
  • Preserve the runtime OCIExecutionImageResolver host-architecture guard, dependency graph, and ghcr.io/stacklok/brood-box/base repository reference unchanged.

Routine release-tooling correction. No exported API, storage format, signing policy, or runtime admission change.

Live qualification

Non-publishing qualification passed on an amd64 GitHub runner.

The temporary workflow executed the exact resolution block extracted from this PR's release workflow, without release uploads/signing. It:

  1. Resolved the real Brood Box index and selected exact amd64/arm64 manifests.
  2. Built one native helper and successfully extracted/hashed both target images.
  3. Validated the generated index/platform evidence with the production verifier.
  4. Repeated ARM64 extraction with a fresh cache and obtained the same tree digest.
  5. Rejected that ARM64 manifest when requested as amd64 using the populated cache root.

The operator explicitly approved temporary GitHub CI qualification. Its workflow was removed in 64b9f3af6; it is absent from the final diff. Downloaded evidence also passed the verifier locally. No emulation setup or image publication was performed by the qualifier.

Verification

Passed:

  • task test
  • task test:race (final serialized run)
  • task lint (all modules, final run)
  • go run ./cmd/mecademo (tool call, permission ask/approval, result)
  • MicroVM module: GOWORK=off go test ./...
  • Helper: GOWORK=off go test -race ./cmd/mecatl-oci-tree-digest
  • Affected production resolver and helper tests
  • actionlint on changed workflows
  • Release-workflow graph regression check, shell syntax checks, and git diff --check
  • Independent Spec, Standards, Test adequacy, Security, DevOps, Architecture, Reuse and Duplication review. The missed E2E caller was corrected; temporary-workflow cleanup completed. No unresolved findings.

Final candidate: 5560ae6a8a0aa04679851a9a4ac4ac949cec4d2e, clean worktree. All 31 applicable draft-PR checks passed, including Linux KVM E2E and analysis. Marking ready will trigger the standard ready-for-review CI run.

During verification, CI caught two import-group formatting errors, corrected in the final commit and verified with the pinned linter. The first local aggregate race run hit the unchanged JEV router's 5ms timeout test; 30 isolated repetitions and the final serialized aggregate race run passed. An initial concurrent lint run timed out; the final complete lint run passed. No unrelated test or policy was weakened.

Release context

v0.0.44 publication failed at exec /release/digest-arm64: exec format error on an amd64 runner. Cross-compilation was not the problem; executing the foreign-architecture helper was.

The separate signing conflict was recovered by rerunning the affected job; execution-image and execution-chart jobs now pass. This PR does not alter signing policy, published tags, or start another release.

JAORMX and others added 4 commits October 1, 2026 12:14
Keep runtime platform admission unchanged; workflow integration remains blocked pending guardrail approval.

Co-authored-by: Mecatl <[email protected]>
Add temporary non-publishing CI qualification of the exact resolution block. Keep the Brood Box repository and runtime platform admission unchanged.

Co-authored-by: Mecatl <[email protected]>
Native Brood Box resolution passed for amd64 and arm64 in Actions run 36844036482. Remove the temporary non-publishing workflow after retaining its evidence.

Co-authored-by: Mecatl <[email protected]>
@JAORMX
JAORMX marked this pull request as ready for review October 1, 2026 10:13
@JAORMX
JAORMX merged commit 4d378cc into main Oct 1, 2026
66 checks passed
@JAORMX
JAORMX deleted the fix/native-brood-box-release-digest branch October 1, 2026 10:31
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 7, 2026
2 tasks
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