License of EE features' source code in open source repository

Because some advanced EE features’ source code is included in open source repository( mattermost-server ), so
1. Is the EE features’ code licensed under the AGPL3.0, too? so I can freely do some derived work as long as I return my work back to open source community…
2. Is it possible that the EE features’ code included in the open source repository now, becomes closed in the future?