UPDATE [dbo].[AgentOutcomeLearningRolloutToggles]
SET [Status] = @NewStatus, [DeactivatedAt] = @DeactivatedAt, [RollbackReason] = @RollbackReason, [UpdatedAt] = SYSUTCDATETIME()
    OUTPUT inserted.*
WHERE [Id] = @ToggleId
  AND [Status] = @ExpectedStatus;
