Skip to content

feat(runtime): platform version V2, warmup hooks, and S3 bucket mounts - #2925

Open
jariy17 wants to merge 8 commits into
v1.xfrom
release/2026-11-25
Open

jariy17 wants to merge 8 commits into
v1.xfrom
release/2026-11-25

Conversation

@jariy17

@jariy17 jariy17 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Release of AgentCore Runtime platform version V2 support:

  • agentcore add runtime --platform-version V1|V2, written to agentcore.json; runtime get shows the deployed platform version.
  • V2 runtime settings (resourceConfigurations, hooksConfiguration), build warmup hooks in agentcore dev, and V2-ready templates and runtime docs.
  • s3BucketMount filesystem configurations (Mountpoint for Amazon S3) on V2 runtimes.
  • Bug bash fixes for the above.

Deploying these needs @aws/agentcore-cdk with the matching constructs (aws/agentcore-l3-cdk-constructs#494); the release workflow pins the vended CDK to npm latest, so the L3 release publishes first.

Source PRs

Related Issue

No issue

Documentation PR

Runtime docs written by add runtime are updated in this PR.

Type of Change

  • New feature

Testing

  • bun test (5261 pass, 0 fail), bun run typecheck on the merge with v1.x
  • Bug bash of the V2, warmup and S3 mount flows against a deployed V2 runtime

Vignesh Somasundaram and others added 8 commits November 20, 2026 22:35
Accept an optional platformVersion (V1 | V2) on runtimes in
agentcore.json and write it from `agentcore add runtime
--platform-version`, which rejects any other value. Both spec builders
carry it through, and `agentcore runtime get` shows the deployed
platform version.

The runtime docs that add runtime writes now describe V2 for Python and
TypeScript: startup versus per-request work, snapshot-safe randomness,
shared hostname and PID, slower create and update, keeping the field
set, and the service error when the Region or account doesn't offer V2.
They link to the AWS region list rather than copying it.

Reaching a deployed runtime needs a @aws/agentcore-cdk release with
platformVersion support and a bump of the pin in
src/assets/cdk/package.json, which maintainers handle separately.

Closes #2674
Accept an optional platformVersion (V1 | V2) on runtimes in
agentcore.json and write it from `agentcore add runtime
--platform-version`, which rejects any other value. Both spec builders
carry it through, and `agentcore runtime get` shows the deployed
platform version.

The runtime docs that add runtime writes now describe V2 for Python and
TypeScript: startup versus per-request work, snapshot-safe randomness,
shared hostname and PID, slower create and update, keeping the field
set, and the service error when the Region or account doesn't offer V2.
They link to the AWS region list rather than copying it.

Reaching a deployed runtime needs a @aws/agentcore-cdk release with
platformVersion support and a bump of the pin in
src/assets/cdk/package.json, which maintainers handle separately.

Closes #2674

(cherry picked from commit 157c017)
…late fixes (#2905)

- resourceConfigurations and hooksConfiguration in agentcore.json, with
  `agentcore add runtime --resource-configurations/--hooks-configuration`
  (JSON, V2 only) and memory and hooks rows in `agentcore runtime get`.
- `agentcore dev` runs a runtime's build warmup hook the way V2 does:
  waits for a healthy GET /ping, sends the memory and disk calls in one
  120 s budget, and fails the start if either fails. Covers the
  supervisor and `dev --agent`; a container hook on its own port is
  published with an extra port mapping.
- Templates: AG-UI builds the agent on the first request for API-key
  model providers, so the key isn't frozen into a V2 snapshot; the
  Strands container moves to Amazon Linux 2023 with snapshot-safe
  OpenSSL and Python 3.12; BMA uses AL2023's Python 3.14, which links
  the base image's snapshot-safe OpenSSL, instead of a uv-installed
  Python with its own.
- Runtime docs follow the current "Optimize for V2" guidance.

Co-authored-by: Vignesh Somasundaram <visomasu@amazon.com>
(cherry picked from commit a6ec000)
# Conflicts:
#	src/assets/templates/runtime-docs/python/AGENTS.md
#	src/assets/templates/runtime-docs/python/README.md
#	src/assets/templates/runtime-docs/typescript/AGENTS.md
#	src/assets/templates/runtime-docs/typescript/README.md
#	src/handlers/runtime/get/screen.tsx
#	src/handlers/runtime/runtime.screen.test.tsx
#	src/projectSchemas/runtime.test.ts
Co-authored-by: Sasha Mittal <sashaxm@amazon.com>
… and templates (#2918)

- dev: for MCP, any GET /ping response but 502 or 429 counts as ready, as
  on AgentCore Runtime; a hook path without a leading "/" fails with a clear
  message; a Python CodeZip hook on its own port warns and names the cause;
  headless dev refuses CodeZip agents whose hooks share an own port.
- add runtime and dev warn when hooksConfiguration has no camelCase
  build.warmup.action.httpPost.path. The schema stays loose.
- --platform-version help and the runtime READMEs no longer name V1 as the
  service default.
- Runtime READMEs and AGENTS.md explain how each protocol serves the warmup
  hook and that the SDK version must support it.
- BMA template: POST /warmup keeps the Codex and CloudWatch agent binaries in
  memory in the V2 snapshot and warms their start-up files; the README shows
  how to enable it. BMA's profile is unchanged.

Co-authored-by: Vignesh Somasundaram <visomasu@amazon.com>
@jariy17
jariy17 requested a review from a team November 25, 2026 12:30
@github-actions github-actions Bot added the size/xl PR size: XL label Nov 25, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the agentcore-harness-reviewing AgentCore Harness review in progress label Nov 25, 2026
@github-actions github-actions Bot added size/xl PR size: XL and removed size/xl PR size: XL labels Nov 25, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-1.2.0.tgz

How to install

gh release download pr-2925-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-1.2.0.tgz

@@ -1,4 +1,7 @@
import os
{{#unless (eq modelProvider "Bedrock")}}
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Nov 25, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.54233% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.59%. Comparing base (722f842) to head (9d183aa).
⚠️ Report is 1 commits behind head on v1.x.

Files with missing lines Patch % Lines
src/handlers/project/dev/index.ts 97.14% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             v1.x    #2925      +/-   ##
==========================================
+ Coverage   96.57%   96.59%   +0.02%     
==========================================
  Files         734      735       +1     
  Lines       60956    61626     +670     
==========================================
+ Hits        58869    59529     +660     
- Misses       2087     2097      +10     

☔ 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.

@agentcore-devx-automation agentcore-devx-automation Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xl PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants