Elon Musk announces X will open source its new algorithm in seven days amid ongoing investigations and regulatory scrutiny.