Make social media algorithms public and open source
Every large social media platform must publish the code behind its feed rankings and recommendations as open source. Anyone can read it, test it and report how it works.
Any platform that serves U.S. users at scale, as defined by the Federal Trade Commission, must publish the full source code of every algorithm that ranks, recommends, promotes or hides content.
The code must be posted in a public repository, and each change must be dated and logged.
Platforms must also publish the training data sources and model weights of any machine-learning system used for ranking.
Independent researchers may run the published code and test its outputs without suing the platform.
A trade secret claim cannot block publication.
Enforcement and penalties
Enforced by the Federal Trade Commission and state attorneys general.
Criminal: a platform executive who knowingly withholds code or signs a false filing faces up to 10 years in prison and fines.
Civil: fines of up to a set share of global annual revenue per violation, indexed to inflation, plus repayment of ad profits earned while in violation.
Remedy: any user or researcher may sue for an injunction and recover attorney fees.
Why
Platforms decide what people see every day, and outsiders cannot check how those choices are made. Open code lets anyone find bias, abuse and hidden paid promotion.
Bills already in Congress
Algorithmic Accountability Act119th Congress (2025-2026), H.R. 5511 / S. 2164Requires impact assessments of automated decision systems. It does not require publishing source code, so it falls short of open source.
Links go to the bill or law on Congress.gov or GovInfo, or to a Congress.gov search by its name.
Start a petition
A petition shows how many people want this. Copy the text, start a petition, paste it in, and share the petition link.
I am your constituent, and I vote. Please support a law that requires social media companies to publish their feed algorithms as open source code.
Make social media algorithms public and open source. Every large social media platform must publish the code behind its feed rankings and recommendations as open source. Anyone can read it, test it and report how it works.
The law I am asking for would do the following:
Any platform that serves U.S. users at scale, as defined by the Federal Trade Commission, must publish the full source code of every algorithm that ranks, recommends, promotes or hides content.
The code must be posted in a public repository, and each change must be dated and logged.
Platforms must also publish the training data sources and model weights of any machine-learning system used for ranking.
Independent researchers may run the published code and test its outputs without suing the platform.
A trade secret claim cannot block publication.
It must have teeth:
Enforced by the Federal Trade Commission and state attorneys general.
Criminal: a platform executive who knowingly withholds code or signs a false filing faces up to 10 years in prison and fines.
Civil: fines of up to a set share of global annual revenue per violation, indexed to inflation, plus repayment of ad profits earned while in violation.
Remedy: any user or researcher may sue for an injunction and recover attorney fees.
Please tell me in writing whether you will introduce, cosponsor or vote for this, and if not, why not.