Repository navigation
docs(examples): add Linux EKS and AgentCore Runtime deployment guides - #279
Conversation
## Problem Readers cannot clone complete EKS and AgentCore Runtime deployment examples from this repository. They need source, dependencies, build instructions, and explicit limits to reproduce the demonstrations. ## Solution Add the EKS coding workload and Runtime shipment agents with Strands and LangChain variants. Include scripted controls, pinned builds, dependency locks, receipt checks, and cleanup instructions. Link both guides from the example and user-guide indexes. No Box product interface changes. Keep policy files loadable with port 0; each runner binds the synthetic service port before launch. ## Tests The example run-tests.py suite passed 105 tests. Both dependency sets installed on Linux ARM64. Both Runtime packages built, and real Box shipment and research controls passed after the policy fix. Both EKS Job variants rendered. Documentation links, Python syntax, JSON, formatting, and whitespace checks passed. Repository packaging tests passed all 55 tests after removing inherited SSH variables from their process environment. The full Rust workspace build passed. The workspace suite recorded 4703 passes, one policy-template failure, and 17 ignored cases. The unchanged every_shipped_example_policy_loads test passed after the template correction; all other targets passed. The credential-daemon fixture and alias-read assertion remain untested; alias-write assertions executed. No new cloud deployment, live model call, complete pinned Runtime source build, or EKS image build was run.
|
Assessment: Comment I reviewed head Review Categories
Checks that held:
|
|
Assessment: Approve (no new findings at I re-reviewed the 18 files that changed since Checks that held at this head:
The PR is still large (about 6,800 lines). Splitting EKS and AgentCore Runtime would still help future reviews, but I don't consider it blocking. |
|
Assessment: Approve (no new findings at Since Checks that held:
|
Human readable section
Problem: Readers can clone Box, but the repository does not provide complete Linux deployment examples for Amazon EKS or AgentCore Runtime.
Solution: Add runnable source for an EKS coding workload and a Runtime shipment agent, with full build guides linked from the example and user-guide indexes. Runtime offers Strands and LangChain variants, plus fixed shipment and research controls. Each guide includes prerequisites, deployment, expected refusals, result inspection, and cleanup.
Trade-off: These are evaluation examples with synthetic data and pinned Box revisions. They retain their tested Linux ARM64 and service-configuration limits. This change does not add a production support claim or change Box runtime code.
Description
The EKS example starts with a fixed workload before adding Claude Code and Pod Identity. The Runtime example uses the same shipment service and policy for Strands and LangChain. Its fixed controls let readers inspect policy behavior without model calls.
The full guides cover build, deployment, result inspection, and cleanup. The example and user-guide indexes link to them. Preparation builds the pinned Box source and records binary and dependency hashes. Failed dependency downloads leave no published vendor directory or binaries, so preparation can be retried from the same checkout.
The examples preserve failure evidence and enforce the documented controls. Runtime releases its run lock after allocation failure and stops reparented children after a timeout. Either a completed dispatch or refund closes subsequent mutations within the recorded history window. EKS denies writes to the reference file through both native operations and Box shell tools. Its runner saves an incomplete receipt before collecting bounded diagnostics after a cluster error.
A dedicated Linux ARM64 workflow runs the offline example tests for changes to these examples.
The source tree excludes prebuilt binaries, installed dependencies, deployment receipts, deployment account identifiers, and internal artifact links. The deployment helper uses the caller's AWS profile rather than a personal default.
The EKS sample pins Box
f0dc6f49ea8bb8608502afffa50c8748f6c24ca2. The Runtime sample pins Boxe4ca8b80359b2213d684de31cd6ef32e0d61478a. Changing either pin requires fresh example validation.Runtime's shipment policy observes five minutes of response history for one synthetic order and sequential requests. It does not establish permanent exclusivity, concurrent correctness, or recovery after lost responses or restarts. The EKS guide states the required outer-container settings and distinguishes the trusted Pod Identity controller from credential retrieval inside the agent's sandbox.
Related Issues
Type of Change
New feature: runnable examples and deployment guides.
Testing
Example validation covers
b21a1dae93b3786385fbe0f8df676ee421b5f60b. Tests ran on Amazon Linux 2023 ARM64, kernel6.12.113-138.209.amzn2023.aarch64, Python 3.12.16, and Rust 1.98.1.No live cloud deployment or model call was performed in this review. Container and local-process results do not qualify EKS, AgentCore Runtime, a model, or other platforms. The guides retain their service-configuration and platform limits. The new hosted example workflow must pass on the final head separately from these local results.
The original change at
d6dba878999e8584a8e0ac4c45b47f1d0bf0dedcalso passed the full Rust workspace build. Its full test campaign recorded 4703 passes, one policy-template failure, and 17 ignored cases. The unresolved policy port token was corrected to port 0; the unchanged policy-loading test then passed. All other targets and the custom library harness passed. The repair commit changes no Rust code; affected example tests and real Box controls were rerun.That campaign's Linux skip checker reported an unavailable credential-daemon fixture and an omitted alias-read assertion; alias-write assertions executed. Ignored tests include live HTTPS fixtures, long runs, and existing defects. Repository packaging checks passed all 55 tests after removing inherited SSH environment variables that bypassed the test's mock GitHub command. Repository files were unchanged for that environment correction.
Run the offline tests from their respective example directories:
Build, package, and real-policy control commands are in the example guides. The original repository-wide validation used:
just check, orcargo test --workspace --all-features). The full run, focused correction, and affected-suite reruns are recorded above.cargo fmt --allandcargo clippy --workspace --all-targets --all-features -- -D warnings. Not applicable: this change modifies no Rust source. The formatting check passed.Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.