Skip to content

fix(box): Pin box to the strands-agents/box 0.3.2 release - #2933

Merged
vvargu merged 1 commit into
box-integrationfrom
box/pin-box-0.3.2
Nov 26, 2026
Merged

vvargu merged 1 commit into
box-integrationfrom
box/pin-box-0.3.2

Conversation

@mquang-amazon

Copy link
Copy Markdown
Contributor

Description

Pins box to the public strands-agents/box v0.3.2 release.

  • src/core/project/backends/boxRelease.json: version 0.3.2, with the box-cli archives for Linux arm64 (box-cli-v0.3.2-aarch64-unknown-linux-gnu.tar.gz) and macOS on Apple silicon (box-cli-v0.3.2-aarch64-apple-darwin.tar.gz). The SHA-256s match the release's SHA256SUMS.txt, and the macOS build runs (box --version prints box 0.3.2). Both come from the same release, so macOS needs no separate pin.
  • 0.3.2 is the first release whose cloudwatch_traces target takes log_group and log_stream (feat(box): let a cloudwatch_traces target name its log group and stream strands-agents/box#629). BOX_TRACES_LOG_GROUP_VERSION was already 0.3.2, so with this pin build names the runtime's log group and log stream for the box's spans. The OTEL build test in manager.boxNetwork.test.ts now follows that gate (tracesToRuntimeLogGroup()) instead of assuming the older shape.
  • README.md, docs/box-local-testing.md and the install hint test name 0.3.2.

Related Issue

Closes #

Documentation PR

Included: README.md and docs/box-local-testing.md.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe): Dependency pin update (box release).

Testing

How have you tested the change?

  • I ran bun test with box 0.3.2 on PATH: 6670 pass, 1 fail (the box on PATH > resolves a profile into the rules the tests fake, which also fails with box 0.3.0 on box-integration).
  • I ran the relevant end-to-end tests with bun run test:e2e: running now (every Box template's deploy and dev, the dev egress test and the Runtime egress test, with box 0.3.2 and the L3 box-integration constructs); results to follow in a comment.
  • I ran bun run typecheck
  • I ran bun run lint:check
  • I ran bun run format:check
  • I ran bun run audit
  • I ran bun run secrets:check
  • I ran bun run build
  • If I modified src/assets/, I updated affected snapshots: no change to src/assets/.
  • If I re-recorded fixtures or golden files, every change beyond account identifiers is explained by this PR: none re-recorded.
  • This PR does not change command.md (the release workflow regenerates it)

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

@mquang-amazon
mquang-amazon requested a review from a team November 26, 2026 00:00
@codecov-commenter

codecov-commenter commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.94%. Comparing base (2daf8c4) to head (7ffaf11).

Additional details and impacted files
@@               Coverage Diff                @@
##           box-integration    #2933   +/-   ##
================================================
  Coverage            96.94%   96.94%           
================================================
  Files                  779      779           
  Lines                70628    70628           
================================================
  Hits                 68469    68469           
  Misses                2159     2159           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@leo237 leo237 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This is the pin bump my #2914 approval asked to wait for.

Supply chain (verified): I downloaded SHA256SUMS.txt and both box-cli archives from the v0.3.2 release of strands-agents/box. It is not a draft or prerelease, and github-actions[bot] published it.

  • aarch64-unknown-linux-gnu: 5db46239…dc807c985 matches the pin and SHA256SUMS.txt.
  • aarch64-apple-darwin: 3f655657…26f6262 matches the pin and SHA256SUMS.txt.
  • The asset names and URLs match.
  • gh attestation verify --repo strands-agents/box passes for both archives and for SHA256SUMS.txt. The provenance names deploy-box-artifact.yml on main at 0ac26875, the commit the v0.3.2 tag points to. That commit contains strands-agents/box#629, and release.json in the archive agrees.

Platforms: The CLI only reads linux (the arm64 build that ships to Runtime). Container builds target linux/arm64, and darwin only feeds the e2e macOS runner. Local dev uses whatever box is on PATH, and checkTool("box", BOX_INSTALL_HINT) fails clearly when there is none. No gap there.

Traces gate: With 0.3.2 pinned, build emits log_group/log_stream in agentcore_traces, plus the traces_log_group/traces_log_stream pack inputs. I checked this locally.

Failing local test: This is not a 0.3.2 regression. the box on PATH > resolves a profile… is skipped whenever no box is on PATH, which is the case on every verify runner. It can't pass against any real box: boxNetworkRules() starts with BOX_METADATA_RULES, but the test profile only imports @box/base (whose 0.3.2 pack has no policy) and a policy.dw with no_admin. Box ships those forbids only in its open policy. Worth a follow-up: compare without the metadata rules, or add them to the test's policy.dw.

CI: verify / macOS failed on checkPort rejects an occupied loopback port… (src/io/port.test.ts), which this PR doesn't touch and which passes locally. box-integration at the base SHA also fails macOS verify, on 3 other timing tests, so this looks like runner flakiness.

Nits (non-blocking):

  1. src/core/project/templates/boxProfile.ts:132 still says the pin is "(0.3.0)". I checked @box/base in 0.3.2 and it still has no [tool] tables, so BOX_BASE_PROJECT_WRITE_TOOLS = [] stays correct. Only the version in the comment is stale.
  2. The OTEL build test follows tracesToRuntimeLogGroup(), so a pin moved back below 0.3.2 would still pass. Adding expect(tracesToRuntimeLogGroup()).toBe(true), plus a check on the pack's inputs.runtime.traces_log_group/traces_log_stream, would make it assert the pinned behaviour.

@mquang-amazon

Copy link
Copy Markdown
Contributor Author

e2e with box 0.3.2 (box --version: box 0.3.2), this branch (b478ce7) and the L3 box-integration constructs, test account, us-west-2:

Box e2e test Result
create and dev: minimal, strands, strands container, langchain, a2a, agui (6) pass
egress under dev: allows the profile's host and blocks any other pass
egress on AgentCore Runtime: through the Box gateway, any other host blocked pass
create, deploy, invoke: minimal, strands, a2a, strands container (4) pass
create, deploy, invoke: langchain fail: the known OpenTelemetry Failed to detach context log line of the LangChain template (also on v1.x, not box)
create, deploy, invoke: agui the run's teardown failed to start node (spawn node ENOENT), a harness error; rerunning

Not in this run: the Python 3.10 to 3.13 box tests (py_strands_box_3_*).

@mquang-amazon

Copy link
Copy Markdown
Contributor Author

The agui_python_strands_box create, deploy and invoke e2e passed on its rerun with box 0.3.2. So every Box e2e test passes with 0.3.2 except LangChain (the known OpenTelemetry log line). The full suite is also running in CI on this branch: https://github.com/aws/agentcore-cli/actions/runs/45729193810

@mquang-amazon

Copy link
Copy Markdown
Contributor Author

CI e2e on this branch (manual run, L3 box-integration): https://github.com/aws/agentcore-cli/actions/runs/45729193810 — Linux, Linux-arm64 (where the Box tests run) and macOS pass. Windows failed only in harness.test.ts (beforeAll hook timed out after 180 s), a non-Box test; the same Windows e2e job also fails on recent v1.x and box-integration merges.

- boxRelease.json pins 0.3.2: the box-cli archives for Linux arm64 and macOS (Apple silicon), with
  the SHA-256s of the release's SHA256SUMS.txt.
- 0.3.2 is the first release whose cloudwatch_traces target takes log_group and log_stream
  (strands-agents/box#629), so BOX_TRACES_LOG_GROUP_VERSION now applies: build names the runtime's
  log group and log stream for the box's spans. The build test follows that gate.
- The README, docs/box-local-testing.md and the install hint test name 0.3.2.

@leo237 leo237 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approving at 7ffaf11. This is a rebase onto box-integration: the commit's patch is identical to b478ce7, which I approved. The two nits from that review still apply: the stale "(0.3.0)" comment in boxProfile.ts, and the OTEL test that follows tracesToRuntimeLogGroup().

@vvargu
vvargu merged commit ab7ab99 into box-integration Nov 26, 2026
7 checks passed
@vvargu
vvargu deleted the box/pin-box-0.3.2 branch November 26, 2026 02:57
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.

5 participants