A distributed workflow needs a localized repair without weakening observability or rollback safety. The affected area is API transaction.
Repair the API transaction lifecycle transitions implementation so it accepts only declared state transitions and reports rejected requests.
Evidence
- Affected surface: Full-stack backend focus / API transaction.
- Observed failure family: validate state transitions.
- Scope policy: tenantId must equal tenant-primary.