Skip to content

feat: upgrade default Python runtime to PYTHON_3_13#658

Merged
jesseturner21 merged 3 commits intomainfrom
feat/upgrade-default-python-3.14
Mar 27, 2026
Merged

feat: upgrade default Python runtime to PYTHON_3_13#658
jesseturner21 merged 3 commits intomainfrom
feat/upgrade-default-python-3.14

Conversation

@jesseturner21
Copy link
Copy Markdown
Contributor

Summary

  • Adds PYTHON_3_14 to the PythonRuntime Zod enum in schema/constants.ts
  • Updates default Python version to PYTHON_3_14 across all agent, MCP, and generate workflows (3 default constants, 2 fallbacks)
  • Updates TUI options to show Python 3.14 as the top choice with "Latest" label
  • Updates tests, snapshots, docs, and LLM-compacted type definitions

Changed files (17)

  • src/schema/constants.ts — enum definition
  • src/schema/llm-compacted/agentcore.ts, mcp.ts — LLM type mirrors
  • src/cli/tui/screens/agent/types.ts, generate/defaults.ts, mcp/types.ts — defaults & UI
  • src/cli/primitives/AgentPrimitive.tsx — BYO agent default
  • src/lib/packaging/index.ts, python.ts — packager fallbacks
  • src/tui-harness/helpers.ts — test harness
  • src/schema/__tests__/constants.test.ts — schema tests
  • src/lib/packaging/__tests__/python.test.ts — version extraction test
  • src/cli/operations/agent/generate/__tests__/schema-mapper.test.ts — default assertion
  • src/assets/agents/AGENTS.md — asset docs
  • src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap — snapshot
  • docs/configuration.md, docs/container-builds.md — user docs

Test plan

  • npm run test:unit — 2753 passed, 2 pre-existing PTY failures (unrelated)
  • npm run test:update-snapshots — snapshot updated
  • agentcore create with --defaults produces "runtimeVersion": "PYTHON_3_14"
  • agentcore validate passes on generated project
  • TypeCheck passes
  • Lint + Prettier pass (pre-commit hooks)

Related

  • CDK companion PR: aws/agentcore-l3-cdk-constructs (same branch name)

🤖 Generated with Claude Code

Add PYTHON_3_14 to the PythonRuntime enum and make it the default
across all agent, MCP, and generate workflows. Updates defaults,
fallbacks, TUI options, tests, docs, and snapshots.

Constraint: PYTHON_3_14 must be added to the Zod enum in schema/constants.ts as all other types derive from it
Rejected: Only adding enum without changing default | user requested default upgrade
Confidence: high
Scope-risk: broad

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jesseturner21 jesseturner21 requested a review from a team March 25, 2026 22:56
@github-actions github-actions Bot added the size/s PR size: S label Mar 25, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 25, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 45.27% 5950 / 13142
🔵 Statements 44.87% 6320 / 14083
🔵 Functions 44.5% 1109 / 2492
🔵 Branches 45.62% 3902 / 8552
Generated in workflow #1330 for commit f655a93 by the Vitest Coverage Report Action

The Bedrock AgentCore service API does not yet accept PYTHON_3_14.
CloudFormation validation rejects it at deploy time:
  "PYTHON_3_14 is not a valid enum value.
   Supported values: [PYTHON_3_10, PYTHON_3_11, PYTHON_3_12, PYTHON_3_13]"

Keep PYTHON_3_14 in the Zod enum for forward-compatibility but revert
all defaults and fallbacks back to PYTHON_3_13.

Constraint: Service API only supports PYTHON_3_10 through PYTHON_3_13
Rejected: Default to PYTHON_3_14 | service rejects at deploy time
Confidence: high
Scope-risk: narrow

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added size/s PR size: S and removed size/s PR size: S labels Mar 25, 2026
The Bedrock AgentCore API only accepts PYTHON_3_10 through PYTHON_3_13.
Remove PYTHON_3_14 entirely to avoid deploy failures for users.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added size/xs PR size: XS and removed size/s PR size: S labels Mar 25, 2026
@Hweinstock Hweinstock changed the title feat: upgrade default Python runtime to PYTHON_3_14 feat: upgrade default Python runtime to PYTHON_3_13 Mar 26, 2026
@jesseturner21 jesseturner21 merged commit dfdc2cb into main Mar 27, 2026
26 of 28 checks passed
@jesseturner21 jesseturner21 deleted the feat/upgrade-default-python-3.14 branch March 27, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants