Skip to content

feat: add Linux x86-64 release downloads - #475

Merged
kevin-orellana merged 2 commits into
mainfrom
feature/linux-x86-delivery-20261116
Nov 17, 2026
Merged

kevin-orellana merged 2 commits into
mainfrom
feature/linux-x86-delivery-20261116

Conversation

@kevin-orellana

@kevin-orellana kevin-orellana commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Human readable section

Problem: Box can run experimental Linux x86-64 workloads, and the release workflow builds and checks an x86 archive. However, the downloader rejects x86 hosts, and publication omits that archive.

Solution: The downloader selects the x86 archive. Release maintainers can include that archive through a separate publication choice after qualification.

Trade-off: Linux x86-64 workload startup still requires EXPERIMENTAL_X86_SUPPORT=TRUE. This change prepares package delivery; installed-package qualification and an approved release remain separate work.

Description

  • On Linux x86_64 or amd64, download.sh selects box-<tag>-linux-x86_64.tar.gz from the selected release.
  • In the Release Box workflow, publish_linux=true keeps its existing purpose: include ARM64 Linux. The new publish_linux_x86=true input also includes x86 and requires publish_linux=true. Both inputs default to false.
  • Archive collection, checksum generation, release instructions, and published-asset checks follow those selections. The run summary displays each choice.
  • A missing or corrupt x86 archive stops the download without selecting ARM64. Legacy ARM filenames remain available only to ARM hosts.

Download and version checks do not require or enable the experimental runtime flag. Release approval, signing, runtime behavior, and macOS/ARM download behavior remain unchanged.

Native ARM64 and x86-64 jobs build and check Amazon Linux 2023 packages. Release Box includes ARM64 when publish_linux=true and adds x86 when publish_linux_x86=true. The downloader selects the matching CPU archive and stops if x86 files are missing.

Both Linux builds feed the existing release process. Maintainers select the published architectures; the downloader selects the archive for the current CPU architecture. Editable diagram.

Related Issues

Implements the download and publication milestone in #45, following merged #446 and #466. Installed-package qualification and an approved release remain separate work. Issue #45 remains open until the x86 release is published and its public downloads are verified.

Type of Change

New feature

Testing

Validation ran on Linux ARM64. Host architecture and HTTP responses were simulated for downloader tests.

Check Result
python3 -m unittest discover -s scripts -p 'test_*.py' -v 108 passed; the unchanged base passed 99.
cargo test -p strands-box --test site_manifest --locked --all-features 27 passed, with no compiler warnings. The checked getting-started content is unchanged since this run.
Actual workflow collection commands followed by the downloader Eight combinations passed: curl/wget, x86_64/amd64, pinned/latest. All three executable files matched; existing unrelated files survived. Both version checks ran in every case with the experimental flag unset.
Publication selection macOS-only, ARM64-only, and ARM64-plus-x86 asset sets passed. Stable and preview releases retain their expected channel. Invalid x86 inputs and x86 without ARM64 fail before release outputs.
Deliberately broken copies of the scripts Tests caught ARM substitution, omitted x86 publication, omitted x86 asset requirements, and restored cross-architecture fallback.
Shell syntax, workflow YAML parsing, diagram layout, and git diff --check Passed. Existing job dependencies, approval conditions, signing environments, and input defaults were compared with the base and remain unchanged.

These checks do not establish native installed-package qualification or hosted release completion. Coordinate the workflow merge with the in-flight release before starting a release rehearsal for this change.

  • I ran the relevant suites listed above.
  • Rust formatting and Clippy are not applicable: no Rust source or Cargo inputs changed.

Checklist

  • I have read CONTRIBUTING.md.
  • I have reviewed the changed code, including code generated with AI assistance.
  • This change is focused on x86 package delivery.
  • Tests cover successful delivery and refusal paths.
  • The installation and release documentation is updated.
  • The executed checks produced no new warnings.

AI assistance: implemented and reviewed with Codex; human approval remains pending.

## Problem

The downloader rejects Linux x86-64 hosts, and release bundles omit the
x86 archive that the workflow already builds and checks.

## Solution

Select linux-x86_64 archives on native x86 Linux hosts. Publish both Linux
architectures under the existing publish_linux input, with matching
checksums. Keep legacy ARM fallback limited to ARM hosts and preserve the
experimental runtime opt-in, release defaults, and approval gates.
Update installation and release documentation and the existing diagram.

## Tests

104 script tests and 27 site-manifest tests passed. Eight workflow-to-
downloader fixture combinations passed. Mutation controls caught ARM
substitution and omitted x86 publication requirements. Shell syntax,
workflow YAML parsing, diagram layout, and diff checks passed.
@kevin-orellana kevin-orellana changed the title Add Linux x86-64 release downloads feat: add Linux x86-64 release downloads Nov 16, 2026
@github-actions

Copy link
Copy Markdown

Assessment: Comment

The downloader change is correct for every host and release combination I traced. The one open issue is in the release workflow: publish_linux now publishes ARM64 and the unqualified x86-64 archive together (see the inline comment).

Checked and held
  • Downloader, x86 host and macOS-only or older release: the script stops with "no SHA256SUMS.txt entry for …-linux-x86_64…". It does not substitute ARM64, because the legacy fallback now runs only for package = linux-arm64.
  • Downloader, ARM host and a release with only the legacy aarch64-unknown-linux-gnu name: the fallback still works.
  • Downloader, other hosts: an Intel Mac (Darwin:x86_64) hits the wildcard and gets a correct error. On an x86 host without glibc 2.34, the staged --version fails and the destination is unchanged.
  • Version check and EXPERIMENTAL_X86_SUPPORT: --version does not need the flag, which matches command/platform.rs. The flag must be exactly TRUE, and the docs say so.
  • Inspect step: the asset set matches the publish-verify expected list for both values of publish_linux.
  • Root AGENTS.md: no frozen surface changes (CLI, env flag, records).
  • Links: the README link getting-started.md#linux resolves, and the build-from-source anchor is kept.
  • Tests: python3 -m unittest discover -s scripts -p 'test_*.py' ran 104 tests. The only 2 failures are test_noexec_download_storage_allows_valid_packages, because unshare is not permitted on this CI runner. They are not related to this change.

The refusal paths (no ARM substitution, legacy fallback only on ARM64) have good tests.

@kevin-orellana
kevin-orellana enabled auto-merge (squash) November 16, 2026 23:00
Problem:
Publishing an ARM64 Linux release also selected the experimental x86 archive,
although x86 installed-package qualification is separate.

Solution:
Add publish_linux_x86 with a false default and require publish_linux=true.
Keep the existing Linux input ARM64-only. Apply the choice to archive selection,
release instructions, asset checks, and the run summary. Update the release
guide and package-delivery diagram.

Tests:
108 Python script tests passed on ARM64 Linux. Eight simulated download
combinations passed using archives from the workflow collection commands.
Workflow shell syntax and unchanged approval/signing conditions checked.
@github-actions

Copy link
Copy Markdown

Assessment: Approve (from the automated review; human approval still applies)

I re-reviewed head 3f42163. The new publish_linux_x86 input separates x86-64 publication from ARM64, so it resolves the earlier finding. I found no new correctness or scope problems in the revised workflow, docs, or tests.

Checked and held at 3f42163
  • Input combinations:
    • publish_linux=false with publish_linux_x86=false publishes macOS only.
    • publish_linux=true with publish_linux_x86=false publishes ARM64 only. That is the same as main, apart from the release-note headings.
    • Both true publishes both Linux archives.
    • publish_linux=false with publish_linux_x86=true is refused at scan.
  • Collection, inspect, and publish-verify: the asset lists agree for each combination. Inspect still checks the exact set of assets, so an x86 archive cannot appear in the release when the x86 input is false.
  • Release notes: I extracted the step and ran it for stable+both, preview+ARM64, and macOS-only. Each body has the correct sections, and x86 text appears only when the x86 input is enabled.
  • Docs: docs/dev/releases.md now says x86-64 publication follows target qualification. That matches its "Publish" rule and the workflow comment "Only qualified architectures enter release/".
  • download.sh: unchanged since the previous review. There is still no ARM64 substitution on x86-64, and the legacy fallback is still limited to ARM64.
  • Tests and parsing: the script suite ran 108 tests. The only 2 failures are test_noexec_download_storage_allows_valid_packages, because unshare is not permitted on this runner. They are not related to this change. The workflow YAML parses, and sh -n download.sh passes.

The x86 opt-in is wired through every release stage, and each one has its own test.

@kevin-orellana
kevin-orellana merged commit 1ccd68a into main Nov 17, 2026
20 checks passed
@kevin-orellana
kevin-orellana deleted the feature/linux-x86-delivery-20261116 branch November 17, 2026 02:05
freeqaz added a commit to freeqaz/box that referenced this pull request Nov 18, 2026
Brings the containment fix that permits kill and rt_sigtimedwait for a
workload that runs an init such as tini (dc1d8e8). Without it a workload
started under tini dies at start.

The fix branch sits on upstream 5ed679f (the v0.2.3 release commit), so
this merge also brings in the four upstream commits after 941fd27, the
base of dogfood/main:

- e8b4ced docs(design): add path locations design doc (strands-agents#461)
- aa18761 test(shell): pin that `sh FILE` is decided as `shell:exec` on
  `sh` (strands-agents#472)
- 1ccd68a feat: add Linux x86-64 release downloads (strands-agents#475)
- 5ed679f feat: add Linux filesystem policy operations (strands-agents#193)

No conflicts. Git merged crates/box/{AGENTS.md,Cargo.toml},
crates/box/src/command/run.rs, crates/box/src/record/config/mod.rs,
crates/box/src/run/contain/boundary.rs, crates/box/src/run/hosted.rs and
docs/user/native-filesystem-policy.md automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Release enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants