# 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"}
   ```

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aether-framework.gitbook.io/aetherframework/democratic-decision-making.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
