Abstract
The software behind online community platforms encodes a governance model that represents a strikingly narrow set of governance possibilities focused on moderators and administrators. When online communities desire other forms of government, such as ones that take many members' opinions into account or that distribute power in non-trivial ways, communities must resort to laborious manual effort. In this paper, we present PolicyKit, a software infrastructure that empowers online community members to concisely author a wide range of governance procedures and automatically carry out those procedures on their home platforms. We draw on political science theory to encode community governance into policies, or short imperative functions that specify a procedure for determining whether a user-initiated action can execute. Actions that can be governed by policies encompass everyday activities such as posting or moderating a message, but actions can also encompass changes to the policies themselves, enabling the evolution of governance over time. We demonstrate the expressivity of PolicyKit through implementations of governance models such as a random jury deliberation, a multi-stage caucus, a reputation system, and a promotion procedure inspired by Wikipedia's Request for Adminship (RfA) process.
TL;DR
PolicyKit is a software infrastructure that moves online community governance away from rigid "roles and permissions" toward flexible, executable procedures. By allowing communities to author governance rules as short Python scripts, PolicyKit enables diverse models—like random juries, caucuses, and reputation systems—to be automatically enforced on existing platforms like Slack and Reddit.
The Governance Gap in Online Platforms
Most online platforms today rely on a governance model inherited from 50-year-old UNIX file permissions: you are either an "admin" with total power or a "user" with almost none. This "implicit feudalism" makes it incredibly difficult for communities to implement democratic, deliberative, or multi-stage decision-making.
Currently, if a community wants a more nuanced system (like Wikipedia’s "Request for Adminship"), they must resort to grueling manual effort, custom bots, and human "admins" who must manually click buttons to finalize decisions. This leads to moderator burnout, legitimacy crises, and a "strikingly narrow set of governance possibilities" encoded in our social software.
The PolicyKit Architecture
PolicyKit shifts the focus from who has permission to what procedure must be followed. It sits as a middleware server between the community platform (e.g., Slack, Reddit) and the governance logic.
The system is built on several key abstractions:
- Actions vs. Policies: An Action is a one-time event (e.g., posting a message, renaming a channel). A Policy is a code-based declaration that governs when an action is allowed to execute.
- Platform vs. Constitution Layers: PolicyKit distinguishes between everyday "Platform" actions and "Constitution" actions—the latter being actions that change the governance policies themselves. This allows a community to evolve its own rules over time.
The Policy Workflow
Every policy is broken down into six functional parts that define the lifecycle of a proposed action:
- Filter: Determines if the policy applies to a specific action.
- Initialize: Sets up the process (e.g., selecting a random jury).
- Check: Periodically checks if the conditions for success (like a vote count) are met.
- Notify: Reaches out to users for input (e.g., posting a poll in Slack).
- Pass: Executes the action on the home platform.
- Fail: Handles cleanup if the action is rejected.
When a user attempts an action, PolicyKit’s integration catches it, immediately reverts it (if it's not yet authorized), runs the policy logic, and re-executes the action only if the policy "Passes."
Key Insights and Ideas
- Governance as Code: By making governance executable, the burden of enforcement shifts from humans to software. This reduces moderator burnout and ensures rules are applied consistently.
- The Constitutional Loop: PolicyKit can govern itself. A community can start with a simple "majority rule" policy and use that to vote in a more complex, multi-branch constitution.
- Reversibility is Key: For PolicyKit to work on top of existing platforms, it relies on the ability to
revert()actions. If a user renames a channel without permission, PolicyKit renames it back instantly while the procedure (like a jury deliberation) takes place. - Modular and Composable: Policies can call other policies. For example, a "Two-Round Caucus" can wrap an existing "Election" policy, demonstrating how complex governance can be built from simple primitives.
Evaluation and Results
The authors evaluated PolicyKit's expressivity by implementing several complex governance models, including Wikipedia’s Request for Adminship (RfA), two-round caucuses, and reputation systems. The system successfully integrated with Slack, Reddit, and Discord. Complex models were implemented concisely; for instance, a random jury policy for channel renaming required only a few lines of Python code.
Limitations and Future Work
While powerful, PolicyKit faces a programming barrier, as authoring policies currently requires Python knowledge. Future work aims to build GUI-based templates for non-technical users. Additionally, the system still relies on a "Root" admin for installation, meaning a malicious admin could technically uninstall the tool. Finally, code-based policies can have logic loopholes, similar to bugs in software, which communities must learn to manage as their governance evolves.
Summary updated