Repository navigation
docs: add Linux cloud deployment profiles - #132
Conversation
## Problem The examples index does not describe the tested cloud environments for Box. Operators lack a shared record of their requirements and qualification limits. ## Solution Add reference profiles for AgentCore Runtime managed code, Runtime containers, and Lambda MicroVM. Link the profiles from the examples and user guide indexes. Record the tested candidate, dependencies, privilege scope, and remaining failures. Keep deployment scripts and package distribution deferred. No runtime interface changes. ## Tests The Markdown link check passed for 39 local links and profile anchors. The repository check-prose.sh passed for both new pages. git diff --cached --check passed. just check passed formatting and Clippy, then failed during test compilation with No space left on device. The full Rust test suite did not complete. Cloud results describe the recorded October 21 qualification receipts. This documentation change did not repeat cloud execution.
|
Assessment: Request Changes The environment facts are accurate and useful. The blocker is where the content goes: a dated, revision-pinned qualification record is being added to Checked and held
The per-service settings tables are clear and would be worth keeping as current-build reference. |
|
Assessment: Comment (re-review at The earlier placement finding is resolved. The candidate SHA, checksum, results, and fixture grants are now in the PR description, the examples page is only a link, and the diff is still four doc files (+133/−1 against Checked against HEAD and held
|
|
Assessment: Comment (re-review at This commit changes only Checked and held
|
|
Assessment: Comment (re-review at This commit changes one line of Checked and held
|
|
Assessment: Comment (re-review at Compared with Checked against HEAD and held
|
|
Assessment: Comment (re-review at This commit changes only Checked and held
|
|
Assessment: Comment (re-review at This commit changes only Checked and held
|
Human readable section
Problem: Operators need one place to find the Linux environment requirements and cloud service settings around Box.
Solution: Add deployment guidance for AgentCore Runtime managed code, Runtime customer containers, and Lambda MicroVM. Explain installation, privileges, dependencies, application endpoints, task cleanup checks, and platform-specific limits.
Trade-off: The new guide supplies configuration guidance. The existing EKS and Runtime examples retain their deployment commands and recorded limits. Historical cloud measurements remain below. No cloud target was rerun.
Description
The guide explains requirements verified against the current source and settings that an operator must check inside the deployed service.
It states the required
EXPERIMENTAL_LINUX_SUPPORT=TRUELinux startup setting and the Linux refusal of macOS-only native filesystem policy.The follow-up addresses the automated review's documentation-placement finding.
The user guide no longer carries old candidate revisions, package versions, workaround grants, or qualification results.
The examples page links to the guide without repeating those results.
Historical evidence remains below with its original candidate, checksum, measurements, and failures.
The branch incorporates
mainat67e378ae16f2a8457a6b856228343086f404e743through merge commitbdfdeddb2fcccfd54dd01149e694b4ca02b63d84.The conflict resolution preserves the current EKS and Runtime example indexes and links them to the cloud deployment guide.
The guide now has the required publication entry in
docs/site-manifest.json. All 21 existing entries keep their identities, routes, and metadata.The diff contains five documentation and publication files. Rust source, Cargo manifests, and
Cargo.lockmatchmain.The guide targets ARM64 Linux. It links to a Linux release when available, or the existing ARM64 source-build instructions otherwise.
It keeps executables from the same build together and distinguishes the release name
boxfrom the source-build namestrands-box.Both architecture rows select ARM64. Linux x86_64 remains a build artifact for separate qualification.
Merge order: If #234 merges first, refresh this guide's Linux startup instruction before merging.
The current base still requires
EXPERIMENTAL_LINUX_SUPPORT=TRUE.Related Issues
Related to Linux documentation issue #50 and target qualification issue #46.
PR #130 supplied later process-cleanup changes. Those changes do not alter the historical results recorded here.
Type of Change
Documentation update
Testing
Current branch refresh
Local documentation validation ran at merge commit
bdfdeddb2fcccfd54dd01149e694b4ca02b63d84, based onmainat67e378ae16f2a8457a6b856228343086f404e743:cargo test -p strands-box --test site_manifest --locked --all-features: 27 passed, zero failed, ignored, or filtered out.git diff --checkagainstmainpassed.The test ran on native Amazon Linux ARM64 with Rust and Cargo 1.98.1. It completed in 63 seconds, including compilation.
Hosted CI, offline cloud examples, and CodeQL passed for that merge commit.
The architecture clarification at
2091a6113e3d309d52edaa9d86a4538689696dd0changed the guide's installation text and two architecture rows.The release workflow confirms ARM64-only Linux release archives and the conditional Linux publication setting.
Prose and whitespace checks passed. Relative links, headings, anchors, and publication metadata remain unchanged from the tested merge.
Independent source and prose review covered the correction. The automated architecture finding is addressed and resolved.
CI Gate and offline cloud examples passed for that architecture clarification.
Current head
1da3d147868f6ad26bb73b93f16ccb74781ae2ecadds the conditional source-build fallback and explains the source and release executable names.The live release listing contained only macOS assets when checked. The guide makes no claim that a Linux archive is available.
The existing README source-build anchor, repository prose checker, and whitespace check passed.
Independent review checked the complete install paragraph against release availability, source instructions, helper layout, and the current Linux startup requirement.
The availability finding is addressed and resolved.
Publication metadata remains unchanged. The fallback adds one relative link to the 42 links checked at the merge commit.
Local Rust compilation and site-manifest tests were not repeated for these text and link corrections.
Runtime and cloud suites were not repeated for this documentation-only update.
Current-head hosted results: CI Gate, including Site manifest and packaging, and offline cloud examples passed.
Hosted Rust, containment, verdict, and native-filesystem suites were skipped for the documentation-only diff.
CodeQL, including Analyze (rust) completed successfully for the current head.
The repeated automated review completed successfully. Its current-head assessment reports no new or open findings.
Formal human maintainer approval remains required.
Earlier validation and review
The local Rust checks passed at prior documentation head
82628dfa5f8b4d226d23f12571e77c991c91e46eon November 2, 2026, on native ARM64 Amazon Linux with Rust/Cargo 1.98.1.The earlier documentation-placement follow-up changed no Rust source, Cargo manifests, or lockfile. Its prose, whitespace, and 35 relative-link checks passed. Runtime tests were not repeated.
CI Gate passed for earlier head
8071958b1629dcf5a8b049509b4a140058770113. Hosted Rust, containment, verdict, and native-filesystem suites were skipped because this PR changes documentation only.The first automated review requested moving historical results out of the user guide. The documentation follow-up addresses that finding and the thread is resolved. The second review confirmed that fix and requested a nonblocking platform clarification. The subsequent Linux startup-link finding identified an inapplicable macOS tutorial link. The final correction at
8071958b1629dcf5a8b049509b4a140058770113restores the unconditional Linux setting verified againstcommand::platform::preflightand removes that link. Independent source and prose review covers the correction; runtime source is unchanged. All three review findings are addressed and their threads are resolved. Formal maintainer approval remains required. Local tests and hosted checks do not qualify a cloud target.git diff --check.uname -m,uname -r,rpm -q glibc, andrpm -q libgccexecuted on native ARM64 Amazon Linux. These checks verify the commands, not the recorded cloud environment./usr/bin/coreutils --coreutils-prog=sleep 0remains a recorded image-specific test command. This development desktop lacks/usr/bin/coreutils; the historical image was not rerun.Local commands ran with
EXPERIMENTAL_LINUX_SUPPORT=TRUE,CARGO_BUILD_JOBS=2, and this checkout'starget/debugfirst onPATH.The test command took 29 minutes, including eight minutes of compilation.
The separate deterministic, native-filesystem, and verdict suites are excluded from the workspace and were not rerun for this documentation change.
cargo fmt --all --check cargo build --workspace --all-features --locked cargo clippy --workspace --all-targets --all-features --locked -- \ -D warnings \ -A clippy::too_many_arguments \ -A clippy::only_used_in_recursion \ -A clippy::await_holding_refcell_ref \ -A clippy::explicit_auto_deref \ -A clippy::chunks_exact_to_as_chunks \ -A dead_code \ -A non_snake_case install -m 0755 target/debug/strands-box-sock-alias target/debug/deps/strands-box-sock-alias cargo test --workspace --all-features --locked --no-fail-fast -- --show-output --test-threads=2 python3 scripts/check-linux-test-output.py .agents/explorations/pr132-readiness-20261102/workspace.logThe earlier
just checkattempt ata9f95a3passed formatting and lint but failed during test compilation withNo space left on device.That historical failure remains recorded. It does not describe the isolated development desktop used for this update.
just check, orcargo test --workspace --all-features). The current documentation gate passed. The earlier workspace results remain separately scoped above.cargo fmt --allandcargo clippy --workspace --all-targets --all-features -- -D warnings. Not applicable: this PR changes documentation only.Historical cloud evidence
Exact older candidate, environment, fixture grants, and failed qualification results
These measurements describe the older candidate named below. They are not results for this PR's current head.
Historical cloud deployment measurements
Cloud deployment profiles record the environment around Box for three Amazon Linux 2023 ARM64 deployment targets.
A deployment profile describes the service configuration. It does not change the Box policy or sandbox grants.
These profiles are reference configurations from one qualification campaign, not runnable deployment examples.
The recorded candidate failed qualification on all three targets. Lambda cancellation and timeout left task processes running.
These measurements apply to Box revision
913f5367f57424b3bda65dc4a05278a5664f635d.The candidate archive is
box-v0.1.0-aarch64-unknown-linux-gnu.tar.gz.Its SHA-256 checksum is
89e8547d009731cd3f4a671e15b0f3485a254cc0085e201484bd25e1b3047271.This checksum identifies the tested candidate, not a published download.
Use the recorded settings and failures to plan qualification in your environment.
Repeat qualification after changes to Box, the service runtime, the image, or the workload.
The recorded results do not establish the behavior of a later build.
The tests cover Linux namespaces, filesystem grants, and policy checks through Box's built-in tools.
They do not validate experimental native filesystem policy, which adds policy checks to native file operations.
A successful namespace check or a normal agent run does not qualify that separate mechanism.
Shared requirements
The following requirements apply to the tested Box executables.
The application and its tools can require additional libraries and interpreters.
The recorded versions identify reproduction targets. They do not establish minimum kernel versions or resource capacity.
aarch64.uname -m.box,strands-box-contain-trampoline, andstrands-box-sock-aliasfrom the same build in one directory. Both helpers must be regular executable files.glibc, includinglibc.so.6,libm.so.6, and/lib/ld-linux-aarch64.so.1.2.34. Recordrpm -q glibc.libgcc_s.so.1fromlibgcc.rpm -q libgcc. The oldest compatible package remains unmeasured.no_new_privs, and seccomp filter installation./tmpand separate private directories for Box state and each task./dev/urandom,/dev/null, required/procinterfaces, and Unix-domain sockets.Box uses temporary Linux capabilities while it constructs namespaces and mounts.
CAP_SYS_ADMINapplies inside the new user namespace. It does not imply administrative access to the surrounding OS.Box uses
CAP_SETPCAPto remove setup capabilities before workload execution.The localhost relay also uses
CAP_NET_ADMINto enable its private loopback interface.These operations do not constitute a general container
cap-addrecipe.AgentCore Runtime managed code
Amazon Bedrock AgentCore Runtime
supplies the Python runtime for this profile.
The deployment archive supplies the application, Box executables, policy, and workload dependencies.
V2, managedPYTHON_3_12, Python3.12.12.2023.12.20260928./etc/os-release. The service controls this filesystem.6.1.166-24.303.amzn2023.aarch64.uname -rinside the deployed service.991. Effective and permitted capability sets were empty.8080,GET /ping, andPOST /invocations./tmpdirectory. Persistent session filesystem disabled.The service runtime determines the available system libraries.
Record their versions during qualification. The current receipts do not provide a complete Runtime package inventory.
AgentCore Runtime customer container
This profile supplies the application and its dependencies in an ARM64 container image.
AgentCore Runtime supplies the kernel and outer execution restrictions.
V2.2023.12.20261016, Python3.9.25.6.1.166-24.303.amzn2023.aarch64.USER 991:991. Effective and permitted capability sets were empty.8080,GET /ping, andPOST /invocations./app, private task data under/tmp. Persistent session filesystem disabled.The tested image starts from
public.ecr.aws/amazonlinux/amazonlinux@sha256:c07ab0773eddf9449c0994a87d8148300db98bdf8d8dad672a9dc26321c104fc.The test image also installs
python3,shadow-utils,procps-ng, andgit.These packages support the test application and its probes. They are not universal Box dependencies.
Lambda MicroVM
This profile supplies an application image and lifecycle hooks for a
Lambda MicroVM.
The recorded configuration uses root and broad service capabilities.
Minimum privileges remain unqualified.
al2023-1, version2.2023.12.20261016, ARM64.6.1.166-24.303.amzn2023.aarch64.0,additionalOsCapabilities: ["ALL"].8080, lifecycle hook port9000./work. Real-agent tests used4096MiB.The qualification image includes Python 3.12 and application-specific dependencies.
Successful agent execution also depends on the fixture's explicit filesystem grants and tool declarations.
The following settings record that fixture.
filesystem.readlists include the resolved paths for/usr/liband/usr/lib64.filesystem.read_filelists include resolved paths for/etc/ld.so.cache,/etc/passwd, and/etc/pki/tls/certs/ca-bundle.crt, when present.[tool.python]setscommand = ["/opt/agents/python-check"].[tool.coreutils]setscommand = ["/usr/bin/coreutils"]. The helper check runs/usr/bin/coreutils --coreutils-prog=sleep 0..agent-tmpinside that workspace.The policy permits the declared Python and coreutils tool launches.
These broad library grants work around dependency-discovery limitations in the tested candidate.
They do not establish minimum filesystem access or automatic dependency discovery.
Installing the libraries alone does not reproduce the tested grants.
The profile also remains unqualified for non-root execution or a minimum capability set.
The earlier
/usr/bin/sleepgrant omitted its coreutils interpreter.Adding the interpreter exposed a missing
libpcre2-8.so.0dependency.Successful direct coreutils execution does not qualify that script case.
Recorded qualification results
Both Runtime profiles passed startup and the recorded namespace and workload restriction checks.
The contained workload reported empty capability sets,
NoNewPrivs=1, andSeccomp=2.Their broader suite recorded 101 passes, three failures, two errors, and 23 skips.
Supplemental checks recorded ten passes and four failures.
Forced termination of only the box's trusted process left four matching processes alive after four seconds.
Script and library discovery also caused program startup failures.
The original filesystem failures used paths inside the workload's writable private
/tmp.Follow-up controls corrected that interpretation. Those failures did not demonstrate writes escaping into the surrounding OS.
Lambda smoke tests completed 14 checks each for Claude Code and Codex CLI.
They verified helper completion, permitted network requests, policy denials, protected file contents, and no observed surviving task processes after normal completion.
One preceding launch of the same image failed before application readiness.
The identical-image retry passed. The startup failure's cause remains unresolved.
The later Lambda lifecycle tests used the same Box candidate and the explicit grants above.
Both agents resumed with the same Box, agent, and helper process identities.
They performed new model and tool operations after resume.
The tested concurrent workspace probes passed.
Normal completion after resume left no observed descendants, stopped progress writes, and removed task directories.
Cancellation and timeout failed for both agents.
The test requested termination of the box's trusted process and waited ten seconds.
Box remained alive, so the test forcibly killed it.
Each of the four tasks retained three descendant processes: two containment launchers and one native Python helper.
The worker observed further progress-file writes after Box exited.
Removing the task directories afterward did not establish successful process cleanup.
These failures concern stopping task processes, rather than deleting cloud resources.
The observations describe the test checkpoint, not permanent process survival.
The successful normal-completion cases do not qualify cancellation or timeout cleanup.
The recorded candidate failed qualification on all three deployment profiles.
Later implementation changes require their own target results; they do not turn these failed runs into passes.
Checklist
At Kevin's request, Codex reviewed this documentation diff and completed the ownership checklist on his behalf. Formal human maintainer approval remains required.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.