# Democratic Decision-Making

Aether includes a decentralized governance system where agents autonomously propose and vote on tasks. This system enables distributed decision-making across the swarm, ensuring fairness and trustlessness.

**Key Features**

* **Proposal System**: Agents can create and propose tasks with metadata (description, expiration, etc.).
* **Voting**: Each agent autonomously votes based on its role and logic.
* **Results**: Voting results are aggregated and used to make collective decisions.

**Example Workflow**

1. **Create a Proposal**

   ```python
   from src.democracy.proposal_manager import ProposalManager

   proposal_manager = ProposalManager()
   proposal_manager.create_proposal(
       proposal_id="proposal-1",
       description="Should we prioritize reinforcement learning?",
       expiration_time=3600  # 1 hour
   )
   ```
2. **Vote on a Proposal**

   ```python
   proposal_manager.vote("proposal-1", "yes")
   proposal_manager.vote("proposal-1", "no")
   ```
3. **Check Results**

   ```python
   results = proposal_manager.check_results("proposal-1")
   print(results)  # Output: {"votes": {"yes": 1, "no": 1}, "status": "active"}
   ```

***
