{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Card",
 "ref": "Card#e4b2",
 "hash": "sema:Card#mh:SHA-256:e4b2ca76f43a691e7bd7932362512a5e929c62efc6c3d2eb4a9369e5108fa074",
 "stub": "e4b2",
 "layer": "Infrastructure",
 "type": "Data Structures",
 "summary": "Structured capability advertisement: agent_id, endpoint, protocols, capabilities, metadata",
 "mechanism": "Structured capability advertisement enabling agent discovery before contact. Agent#e127 creates CARD: {agent_id (unique), endpoint (how to reach), protocols[] (compatibility), capabilities[] (what agent claims to do), constraints (availability, rate limits, requirements), metadata (version, ttl, published timestamp)}. Agent#e127 PUBLISHES card via registry, broadcast, DHT, or well-known endpoint (mechanism-agnostic). Discovering agents QUERY using LatentAttachment#992d for semantic capability matching alongside exact protocol_match. Query returns ranked CARD list. Discoverer selects promising CARDs, then Greet#bcb0s at card.endpoint to establish channel. CARDs have TTL — agents maintain visibility by PUBLISHING a replacement card before the previous one expires, never by editing the one already issued. CARD capabilities are CLAIMS not proofs: verification happens via Probe#2bb8 after GREET establishes channel. It enables discovery via Select#decf queries against the registry, filtering candidates by capability and protocol compatibility.",
 "invariants": [
  "Immutable after issue: a Card is never edited. A change of endpoint, protocol or capability is published as a new Card superseding the old, which is what lets a discoverer tell a current claim from a stale one rather than trusting a mutable record.",
  "Claims, not proofs: the capabilities a Card advertises are assertions the issuer has not demonstrated. Verification is the discoverer's, via Probe#2bb8 after Greet#bcb0 opens a channel."
 ],
 "parameters": [
  {
   "name": "verification_tier",
   "type": "Enum",
   "range": "{SelfReported, Verified, Bonded}",
   "description": "Default: SelfReported"
  }
 ],
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Stale CARDs (agent changed capabilities, CARD not updated—TTL mitigates).",
  "False claims (CARD says X, agent cannot X—PROBE mitigates).",
  "Registry unavailable (discovery fails—use multiple publication methods).",
  "CARD spam (fake CARDs pollute discovery—use reputation/filtering).",
  "Privacy leak (CARD reveals too much about agent—include only necessary info).",
  "Version skew (CARD protocol version differs from actual—GREET catches this)."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Card",
 "builds_on": [
  {
   "alias": "select",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "Select",
   "ref": "Select#decf",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Select"
  },
  {
   "alias": "agent",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Agent",
   "ref": "Agent#e127",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Agent"
  },
  {
   "alias": "latent_attachment",
   "relation": "references",
   "library": "bootstrap",
   "slug": "LatentAttachment",
   "ref": "LatentAttachment#992d",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/LatentAttachment"
  },
  {
   "alias": "greet",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Greet",
   "ref": "Greet#bcb0",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Greet"
  },
  {
   "alias": "probe",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Probe",
   "ref": "Probe#2bb8",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Probe"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "AgentDiscover",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/AgentDiscover"
  },
  {
   "slug": "NoiseInjection",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/NoiseInjection"
  },
  {
   "slug": "PolymorphicSolver",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/PolymorphicSolver"
  },
  {
   "slug": "ToolDiscovery",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ToolDiscovery"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Card",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Card.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
