StartExecution enforced execution-name uniqueness on Express state machines, but AWS
does not: an Express name is immediately reusable and every start is its own concurrent
execution. Uniqueness, and the 90-day reuse window, applies to Standard workflows only.
- StepFunctionsService.startExecution now gives an Express execution a per-start ARN
(express:<stateMachine>:<name>:<uuid>) and skips the execution-store collision check, so
a reused name starts a new, independent execution instead of failing with
ExecutionAlreadyExists. This also closes a data-loss hazard: same-name Express starts
would otherwise share one store key, letting a completing execution overwrite another.
Standard behavior (idempotent same-input replay while RUNNING, ExecutionAlreadyExists
otherwise) is unchanged.
- AslExecutor.invokeNestedStateMachine now wraps the child StartExecution call so a refusal
becomes a typed, catchable error (StepFunctions.ExecutionAlreadyExistsException) instead of
States.Runtime, which no Catch or Retry can match. This mirrors the aws-sdk:sfn:startExecution
path, which keeps its Sfn. prefix and is unchanged.
Tests cover Express name reuse and a same-name no-clobber regression at the service level;
nested-refusal typed-error, catch, retry and Sfn-vs-StepFunctions prefix cases for bare,
.sync and .sync:2; a wire-level StartExecution integration test; and a .sync/.sync:2 success
guard. The Express idempotency test that pinned the old divergence is removed.
AWS Compatibility: Express StartExecution is non-idempotent and enforces no name uniqueness,
and the express:<stateMachine>:<name>:<id> ARN shape matches the Step Functions resource-ARN
definition; the optimized states:startExecution integration reports StepFunctions.<Code>Exception
for a Standard-child collision. Left as documented deviations, not changed here: the 90-day
Standard name-reuse window is not modeled, and finished Express executions are retained rather
than evicted.