Runtimes

Runtime Support

This page is the single source of truth for AppTheory’s runtime support. Every other page links here instead of restating a support statement, so there is one answer to “is this line supported?” and it cannot drift between pages.

AppTheory is implemented independently in Go, TypeScript and Python, and each implementation is tested on real toolchains. Support has three separate parts, and they are deliberately not the same number:

  • the floor is what the package metadata allows (go.mod, ts/package.json, cdk/package.json, py/pyproject.toml). Below the floor, install fails.
  • the tested lines are the toolchains the shared contract corpus, the package builds and the CDK bindings are actually verified on. A line at or above the floor but outside this set is untested, and untested is not supported.
  • the selected line is what AppTheory’s own scaffolding and constructs choose when they create a runtime for you.

Support table

Runtime Floor (unchanged) Tested lines Status
Go 1.27.4 (go.mod) 1.27.4 Supported
Node.js >=22 (ts/package.json, cdk/package.json) 22, 24, 26 22 deprecated; see below. 24 and 26 supported.
Python >=3.12 (py/pyproject.toml) 3.12, 3.14, 3.15 Supported

Node 26 and Python 3.15 are supported on staging now and ship in the next AppTheory release. Published releases up to and including v7.5.0 were tested on Node.js 22 and 24 and on Python 3.12 and 3.14 only; if you are running a published release, nothing on this page asks you to change it. Read the section for the release you actually deploy.

Node.js 22 is deprecated

AppTheory stops testing Node.js 22 with its 2027-02 major. That is the one cutoff this page announces: the release raises the floor to >=24, drops Node.js 22 from the tested set, and moves engines.node in ts/package.json and cdk/package.json to >=24. It is a breaking change for anyone still installing on 22, which is why it is a major and why it is dated rather than immediate.

Upstream context, not an AppTheory cutoff: AWS ends support for the Node.js 22 Lambda runtime on 2027-04-30. AppTheory’s cutoff comes first, so no deployment outlives the runtime it runs on.

  • Now (next release): Node.js 26 is tested and supported alongside 22 and 24. No code change is required to move to it, and no API changes with it.
  • Until the 2027-02 major: Node.js 22 keeps working and stays inside the tested set. A deprecation notice is a notice; the dated major is what changes the requirement.

Migration notes for the floor move live in Upgrading AppTheory.

Which line AppTheory selects for you

Selection is unchanged by this support-table update:

  • AppTheoryFunction keeps deploying whatever runtime you pass. Where a construct creates a Node runtime on your behalf, it selects NODEJS_24_X (AppTheoryMicrovmImage, AppTheoryRestV1ChallengeRestoration).
  • The apptheory-init templates select NODEJS_24_X for TypeScript and PYTHON_3_14 for Python.
  • AppTheoryFunction does not choose a runtime for you: runtime is a required prop, and omitting it fails at synthesis instead of picking a line on your behalf. The provided.al2023 default belongs to AppTheoryApp, which deploys a provided.al2023 bootstrap (handler bootstrap) when you pass neither runtime nor handler.

Selecting NODEJS_26_X or PYTHON_3_15 yourself is supported: both are real Lambda runtimes in the pinned aws-cdk-lib, both resolve their own bundling image, and a stack that declares them synthesizes. That path is proven on every commit by the clean-consumer install proof, which installs the packed CDK artifact into an empty project, selects both runtimes, synthesizes them, and then bundles one real asset per line through the apptheory-init bundlers and loads and invokes the handler that landed in the emitted asset directory under the matching interpreter.

Concurrency and the upstream execution model

The support table above states which lines AppTheory supports. It does not, and cannot, decide how many requests one execution environment serves at once: that is the AWS execution model for the runtime, and it differs per language.

Runtime Concurrent requests per execution environment upstream Source
Go One. Go is absent from the Lambda Managed Instances runtime list and from the Web Function runtime list. Lambda Managed Instances runtimes
Node.js Many: Managed Instances (worker threads, asynchronous) and Web Functions (one event loop, many suspended requests). Same page, and the Lambda Web Function runtimes page.
Python Many, and by two different upstream models. Managed Instances: each concurrent request runs in a separate process. Web Function: one ASGI event loop, or a WSGI worker-thread pool, per environment, with Lambda managing the HTTP server; python3.15 is an upstream public preview. AppTheory composes both, and Lambda Web Functions states which application each one needs. Same page, and the Lambda Web Function runtimes page.

Go serves one invocation at a time, and that is an upstream gap, not an AppTheory one. Lambda Managed Instances lists Java, Python, Node.js, .NET and Rust (through the OS-only provided.al2023 runtime); Go is not among them, and the Web Function runtimes are nodejs24.x, nodejs26.x and python3.15. Lambda Web Functions composes all three — the two Node.js runtimes and the Python one, through apptheory.ASGIApp and apptheory.WSGIApp — and there is no Go Web Function runtime to compose. So AppTheory’s Go runtime is built for one invocation per environment, which is exactly what AWS provides for Go.

AppTheory keeps parity everywhere upstream allows it. Nothing in the Go surface is removed, weakened or marked unsupported because Go has no multi-concurrency runtime: the same routes, middleware tiers, error envelope, event normalization, constructs, contract fixtures and API snapshots apply, and every contract fixture runs in all three runtimes on every commit. Only the overlap dimension is unavailable in Go, and it is unavailable upstream. The concurrency page states the single recorded consequence (the Go JWKS resolution window) and what changes if AWS adds Go: Multi-concurrency is not available to Go upstream.

Working around the gap with a custom runtime is not a direction AppTheory takes: AppTheory deploys managed runtimes only, and does not ship or maintain runtime images, container runtimes or custom runtime layers. If AWS adds Go to Lambda Managed Instances, AppTheory follows upstream rather than around it.

How support is proven

Every line in the table above names a tracked proof profile, and each profile carries a committed evidence record produced under that exact environment: ts, py, contract-tests and cdk-go-drift for the package and corpus claims, and consumer-install for the “a consumer can install and run this” claim. CI verifies those records on every pull request into staging instead of re-running them, and fails when an input or a floor moves without the record moving with it.

scripts/verify-runtime-floor-claims.sh is the guard that keeps this page honest: it fails closed unless the package floors, the lockfiles, the pinned TableTheory GitHub Release artifacts and the CI matrix agree. If a claim here is not in that matrix, the guard fails the build. The mechanics are documented in Proportionate release validation.

What is not supported

  • Node.js below 22 and Python below 3.12: refused at install by the package floors.
  • A line at or above the floor but outside the tested set: not claimed. It may work, but nothing here asserts that it does, and no record proves it.
  • Non-Lambda HTTP hosting. AppTheory’s runtime contract assumes the Lambda execution and concurrency model; there is no Express, Fiber or Flask adapter and no plan for one.
  • Multi-concurrent execution in Go. Not offered upstream: Go has neither a Lambda Managed Instances runtime nor a Web Function runtime, so a Go execution environment serves one invocation at a time. Single-concurrency Go features are fully supported; see Concurrency and the upstream execution model.