{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Ballot",
 "ref": "Ballot#e0e4",
 "hash": "sema:Ballot#mh:SHA-256:e0e4a34b48dba4669e09b04c4b8c3202f95c878fc26c29480a298012753b1f3c",
 "stub": "e0e4",
 "layer": "Infrastructure",
 "type": "Data Structures",
 "summary": "Immutable record of one agent's cast choice",
 "mechanism": "The immutable record of one agent's cast choice in a decision. Carries which proposal, which voter, and which option was chosen. The question, the options and the decision rule belong to the `Vote` that called for it; a Ballot is the response, and `Quorum` counts these. Immutable once cast — a revision is a new Ballot carrying a fresh MonotonicCounter#d0d3 sequence, so revocation and amendment surface as distinct later decisions rather than retroactive edits.",
 "invariants": [
  "Immutable once cast: a revision is a new Ballot, not an edit.",
  "Names one voter and one choice drawn from the options of the decision it answers.",
  "Choice is expressed as a Select#decf over those options, not free text."
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Spoiled ballot: ambiguous or invalid Select#decf format.",
  "Double voting: a single agent submits multiple ballots for one proposal (Sybil risk)."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Ballot",
 "builds_on": [
  {
   "alias": "select",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Select",
   "ref": "Select#decf",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Select"
  },
  {
   "alias": "monotonic_counter",
   "relation": "references",
   "library": "bootstrap",
   "slug": "MonotonicCounter",
   "ref": "MonotonicCounter#d0d3",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/MonotonicCounter"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "Elect",
   "relation": "accepts",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Elect"
  },
  {
   "slug": "Quorum",
   "relation": "accepts",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Quorum"
  },
  {
   "slug": "Vote",
   "relation": "accepts",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Vote"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Ballot",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Ballot.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
