docs: plan the AgentCore Runtime V2 migration - #1376
Merged
Merged
Conversation
Adds docs/specs/agentcore-runtime-v2.md, fleshing out the review-queue entry "A/B the V2 AgentCore Runtime in dev" with the 2026-09-18 announcement's details and pre-work findings checked against AWS and our tree: - Gate 1 answered: CloudFormation accepts PlatformVersion as an in-place update (not create-only); the dev runtime reports V1. - Blocker: deploy-runtime-image-if-changed.sh rebuilds a full-replacement update-agent-runtime payload from an allow-list that omits platformVersion, so backend deploys could revert V2. - Risk: V2 restores a snapshot of the running container, so import-time state (runtime_health's idle-clock origin) is cloned into every session. - The turn-latency EMF starts at handler entry and cannot see a Runtime cold start; measure client-side. - Phase 2: prewarm the conversation's pinned microVM when the user starts typing, V2-only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Docs only. This turns the review-queue entry "A/B the V2 AgentCore Runtime in dev" (Proposal 1 in
reviews/2026-09-25.md) into a plan:docs/specs/agentcore-runtime-v2.md. It combines what the 2026-09-18 announcement says with findings checked against AWS and our tree. The queue entry now points at the spec.What the spec establishes
AWS::BedrockAgentCore::RuntimeacceptsPlatformVersion, and the property is not create-only. Flipping it is an in-place update, so the runtime ID in SSM does not rotate. The dev runtime currently reportsV1.scripts/build/deploy-runtime-image-if-changed.shrebuilds a full-replacementupdate-agent-runtimepayload from an allow-list, andplatformVersionis not on it. Eachbackend.ymlrun could put the runtime back on V1 until the nextplatform.yml, which would contaminate the A/B without anything failing. This needs fixing before the flag goes on.runtime_health.py, which stamps its idle clock at import. A restored instance would report a/pingtime from when the snapshot was taken. The spec also covers warm-up placement, sockets opened at startup, random-number state, and the OTEL instance ID.tests/load).PlatformVersionexplicitly (V1/V2) so rollback is a deterministic in-place update, then idle-clock hardening, then the dev A/B./invocationswarm action. V2 only, because V1 bills idle microVMs at peak memory.Reviewer notes
aws-cdk-lib2.270.0 and ourboto3==1.43.68pin do not knowplatformVersionyet. The dev check read the upstream botocore model throughAWS_DATA_PATH; nothing was installed.feature/agentcore-runtime-v2-flagbranch already exists at thedeveloptip with no commits. The spec says to reuse it or delete it.🤖 Generated with Claude Code