File size: 1,248 Bytes
2c3dd0c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hypercortex.org/schemas/consensus_vote.json",
  "title": "ConsensusVote",
  "description": "Represents a vote on a proposal within the Mesh consensus mechanism.",
  "version": "1.0",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the vote event."
    },
    "proposal_id": {
      "type": "string",
      "description": "ID of the proposal this vote applies to."
    },
    "agent_id": {
      "type": "string",
      "description": "ID of the agent who cast the vote."
    },
    "vote": {
      "type": "string",
      "description": "Vote decision by the agent.",
      "enum": ["yes", "no", "abstain"]
    },
    "confidence": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "description": "Confidence score associated with this vote (0.0 - 1.0)."
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the vote was cast (ISO 8601 format)."
    }
  },
  "required": ["id", "proposal_id", "agent_id", "vote", "confidence", "timestamp"],
  "additionalProperties": false
}