{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Trait",
 "ref": "Trait#e415",
 "hash": "sema:Trait#mh:SHA-256:e415fe6619857f831d831228b5532ea64d4a6a222773c828098f30d36f450b20",
 "stub": "e415",
 "layer": "Infrastructure",
 "type": "Data Structures",
 "summary": "Named surface set that implementers must provide",
 "mechanism": "A marker interface: a named set of surfaces a pattern requires of anything claiming it, so a caller can invoke across implementations without knowing which one it holds. A Trait has no instances of its own — it is claimed by other patterns, which supply the surfaces it names. Distinct from Protocol#f583, which is a Trait whose exchange must hold between two or more parties, and from Contract#9874, which is a signed agreement rather than a type claim.",
 "invariants": [
  "Names the surfaces an implementer must provide, and which of them are mandatory.",
  "Non-instantiable: a Trait is claimed by another pattern and has no standalone instance.",
  "Says nothing about how the surfaces are implemented."
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Claimed without provision: a pattern declares the Trait and omits a mandatory surface, so callers dispatch to something that cannot answer.",
  "Surface set widened after adoption: adding a mandatory surface breaks every existing claimant, which is why the set is part of the Trait's identity."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Trait",
 "builds_on": [
  {
   "alias": "protocol",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Protocol",
   "ref": "Protocol#f583",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Protocol"
  },
  {
   "alias": "contract",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Contract",
   "ref": "Contract#9874",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Contract"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "Solver",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Solver"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Trait",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Trait.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
