Skip to content

Version compatibility matrix

ExecKernel uses versions for different purposes: selecting a package release, validating a graph format, comparing a session with its graph and checking declared SDK/API compatibility. Those values are not interchangeable. This reference separates package requirements, the policy encoded in the bundled matrix and execution evidence for concrete combinations.

Version Where it appears Interpretation
Package release Composer/npm metadata Distribution identifier, including a prerelease such as 0.2.0-rc.2.
Engine compatibility version Loader/importer/plugin configuration Numeric major.minor.patch used by compatibility policy; commonly defaults to 1.0.0. It is not read automatically from the installed package version.
graphVersion / graph_version Graph and session Graph revision. Runtime restoration compares it with the session’s recorded revision; the optional version-validation rule also checks its syntax and engine major.
schemaVersion / schema_version Graph definition Numeric model version for the graph schema.
dslVersion / dsl_version Graph and session Numeric model version for FlowDSL and a recorded revision used by session compatibility.
Condition version Declarative condition Optional numeric rule contract version.
SDK/API declaration Core HTTP middleware request SDK major.minor.patch and normalized API major such as v1.
Template version Template manifest v1, v1.2 or v1.2.3; see the template schema.

VersionNumber::semver accepts exactly three nonnegative numeric components. VersionNumber::model accepts two or three and returns the major/minor pair. Components reject leading zeros except 0 and values outside the PHP integer range. These numeric parsers do not accept prerelease/build suffixes. A valid package identifier such as 0.2.0-rc.2 is therefore not a valid engine-policy input.

VersionNumber::api normalizes an API major with an optional v prefix, case-insensitively, and trims surrounding ASCII spaces: " V2 " becomes "v2". It does not interpret 1.2 as API v1.

Package requirements and verified combinations

Section titled “Package requirements and verified combinations”
Component or combination Declaration Execution evidence and limit
Core PHP package php: ^8.2 in composer.json Core, CLI and local integration examples run with PHP 8.3.37. The Composer constraint does not prove execution on every permitted PHP version.
Standalone API API version 0.2.0; php: ^8.2; exact core dependency execkernel/execkernel: 0.2.0 The PHP integration and deployment examples use the pinned core dependency with the API’s lockfile and SQLite. An arbitrary newer core is outside that pin.
PHP SDK Included in the core package’s autoload paths Local and remote contracts are exercised with that core and the standalone API; it is not an independently versioned Composer package in this tree.
JavaScript SDK @execkernel/sdk, version 0.2.0, CommonJS, index.js and index.d.ts Integration examples and client checks run on Node 22.23.5; declaration checks use TypeScript 5.9.3. No engines range is declared.
JavaScript browser transport Requires global fetch or supplied fetchImpl Fetch transport is the dependency boundary; Node execution does not establish a browser-version support matrix.
TypeScript consumer check .cts consumer, strict, target ES2022, module and module resolution NodeNext, libs ES2022,DOM Checks the supplied declarations and emits CommonJS for that consumer; it is not a guarantee for every bundler/compiler mode.

The JavaScript SDK is configured for public npm distribution (publishConfig.access: public), but that configuration does not establish that the package is already available in the registry. The API’s exact dependency pin and the bundled policy matrix likewise do not guarantee availability of future engine, editor or SDK releases.

The local PHP, remote PHP and JavaScript integration guides show the corresponding application contracts.

resources/versioning/EXECKERNEL_VERSION_MATRIX.json is read by CompatibilityMatrixLoader. Download the matrix JSON to inspect the exact declaration.

The following numbers are configured policy majors. A matrix entry describes a decision made by the validator; it is not a report that a product with that release number was executed.

Engine major Model major 1 Model major 2 Model major 3 Model major 4
1 compatible warning, subject to minor limit incompatible incompatible
2 compatible compatible warning incompatible
3 warning compatible compatible warning

For engine major 1 with model major 2, model minors through 3 retain warning; minors greater than 3 are incompatible. A missing pair or negative numeric argument is incompatible.

CompatibilityMatrix::modelCompatibility(int $engineMajor, int $modelMajor, int $modelMinor): CompatibilityLevel applies that lookup and minor override:

use ExecKernel\Domain\Versioning\CompatibilityMatrix;
use ExecKernel\Infrastructure\Versioning\CompatibilityMatrixLoader;
$matrix = new CompatibilityMatrix(new CompatibilityMatrixLoader());
$matrix->modelCompatibility(1, 2, 3)->value; // "warning"
$matrix->modelCompatibility(1, 2, 4)->value; // "incompatible"

The result is a policy value. To decide whether a graph can load, the caller’s validation mode and the graph’s other fields must also pass.

VersionCompatibilityRule(engineVersion, mode, …) checks graph, schema and DSL versions.

Input or result LOOSE STRICT
Missing graph/schema/DSL version Missing field is tolerated. Required version failure.
Invalid engine version Rejected. Rejected.
Present nonnumeric graph version Warning: compatibility not verified. Rejected.
Numeric graph version with a different engine major Rejected. Rejected.
Present malformed schema/DSL model version Rejected. Rejected.
Model policy compatible Accepted by this rule. Accepted by this rule.
Model policy warning Warning recorded. Rejected as invalid graph structure.
Model policy incompatible Rejected. Rejected.

Version failures use VersionCompatibilityException, code EK-GRAPH-060. A model warning rejected in strict mode uses InvalidGraphStructureException, EK-SEC-LOD-001. Other loader boundaries can wrap validation failures with their own context.

The importer’s structural strict flag is separate from compatibilityMode. Set the intended policy explicitly instead of assuming that one boolean controls both. Version compatibility and session upgrades explains how to compose these checks with running sessions.

EditorModelCompatibilityMatrix reads this separate declared policy:

Editor major Model major 1 Model major 2 Model major 3
1 compatible compatible, subject to minor limit incompatible
2 compatible compatible compatible
3 warning compatible compatible

Editor major 1 with model major 2 accepts minor 0 at the matrix level; greater minors are incompatible. Unknown pairs and negative arguments are incompatible. This table is an editor-policy contract, not evidence that an editor distribution or every combination has been executed.

SdkApiCompatibilityMatrix declares:

SDK major Supported API declarations
1 v1
2 v1, v2
Other Empty list

The core’s SdkApiCompatibilityValidator is used by ExecKernelHttpMiddleware. It reads API declarations from X-ExecKernel-Api-Version, X-Api-Version, api_version and a recognized leading version segment in the path. SDK declarations come from X-ExecKernel-Sdk-Version, X-Sdk-Version and sdk_version.

Conflicting aliases and malformed declarations fail input validation. The matrix comparison runs only when both API and SDK versions are present. A valid isolated declaration is not a complete compatibility check. An unsupported pair raises SdkApiCompatibilityException with EK-VERSION-100 and the supported API list.

Neither the PHP nor JavaScript SDK automatically sends these version declarations or performs this matrix check. The standalone API does not install this core validator. A version detected in a path also does not create a routing alias. These boundaries prevent a matrix entry such as SDK 2 / API v2 from implying that the standalone service exposes /v2 endpoints.

RuleVersionCompatibilityRule allows major 1 for the built-in rules listed in Rules and condition parameters. A missing version skips this check. A supplied version must have three numeric components; unknown rule types or unsupported majors fail with EK-GRAPH-060. The custom alias is normalized to custom_rule by this rule.

A session records the graph and DSL revisions with which it was created. Runtime compatibility compares those revisions with the supplied graph and consults a configured SessionVersionUpgradePolicyInterface when appropriate. A compatible model-matrix cell does not make different session revisions interchangeable, and an upgrade decision does not publish or persist a new graph automatically.

When a model minor exceeds the declared boundary, keep the incompatible definition out of the selected runtime, choose an actually supported definition or complete a validated migration. When the failure is a session revision mismatch, use the session upgrade procedure and migration contract. Changing a version label alone does not establish that the graph or stored state is compatible.