diff --git a/CHANGELOG.md b/CHANGELOG.md index caf1e3ef4..bbaac4631 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ ## Unreleased +## 2.41.0 - 2026-11-25 + +- Experimental state machines: `MachineCatalog` registers the definitions + that may host each other. It refuses a duplicate definition, a slot naming + an unregistered child, and a recursive or cyclic child binding with + `InvalidMachineCatalog`, which carries a stable reason and the slot route. + An optional child depth limit raises `ResourceLimitExceeded` with the + `child_depth` dimension (reason + `state_machine_child_depth_limit_exceeded`) and the deepest observed + depth. The catalog is opt-in: hosts call `MachineCatalog::assertBinding()`, + which also checks that the child profile uses the slot's registered + definition. (#1069, #1293) - Experimental state machines: `TransitionResult::explain()` names the `TransitionStage` gate that produced a result (selection, source, invariant, target, permission, admission, budget or commit) and the @@ -12,17 +24,7 @@ scopes each child participates in, and the retained scopes' recovery descriptions. It refuses a transition or child work that belongs to another subject or profile; the host pairs compensation scopes with the - subject. (#1069) -- Experimental state machines: `MachineCatalog` registers the definitions - that may host each other. It refuses a duplicate definition, a slot naming - an unregistered child, and a recursive or cyclic child binding with - `InvalidMachineCatalog`, which carries a stable reason and the slot route. - An optional child depth limit raises `ResourceLimitExceeded` with the - `child_depth` dimension (reason - `state_machine_child_depth_limit_exceeded`) and the deepest observed - depth. The catalog is opt-in: hosts call `MachineCatalog::assertBinding()`, - which also checks that the child profile uses the slot's registered - definition. (#1069) + subject. (#1069, #1294) ## 2.40.0 - 2026-11-25 diff --git a/composer.json b/composer.json index e3345c286..e6bd45750 100644 --- a/composer.json +++ b/composer.json @@ -87,7 +87,7 @@ "dev-main": "2.0.x-dev" }, "durable-workflow": { - "product-train": "2.40.0", + "product-train": "2.41.0", "laravel-embedded-upgrade-contract": "resources/laravel-embedded-upgrade-contract.json", "laravel-dependency-security-policy": "resources/laravel-dependency-security-policy.json" }, diff --git a/docs/api-stability.md b/docs/api-stability.md index 9ad3b5ed3..f45e46d68 100644 --- a/docs/api-stability.md +++ b/docs/api-stability.md @@ -256,12 +256,12 @@ They first shipped in these steps: `RuleEvaluation`, `ConditionEvaluation`, `MachineAssessment`), budgets (`DefinitionLimits`, `ExecutionLimits`, `Execution\ResourceLimitExceeded`), child bindings (`Binding\*`) and native child start. -- **Unreleased:** the child binding catalog (`Definition\MachineCatalog`, - `Definition\InvalidMachineCatalog`) and the `child_depth` dimension of - `Execution\ResourceLimitExceeded`. -- **Unreleased:** transition diagnostics (`Execution\TransitionStage`, - `TransitionResult::explain()` and its `stage`, `snapshotId` and `phase` - properties) and `Inspection\MachineInspection`. +- **2.41.0:** the child binding catalog (`Definition\MachineCatalog`, + `Definition\InvalidMachineCatalog`), the `child_depth` dimension of + `Execution\ResourceLimitExceeded`, transition diagnostics + (`Execution\TransitionStage`, `TransitionResult::explain()` and its + `stage`, `snapshotId` and `phase` properties) and + `Inspection\MachineInspection`. Members marked `@internal`, such as `Execution\ExecutionBudget`, are implementation details. Recorded histories of state-machine runs replay under