{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Canary",
 "ref": "Canary#d38c",
 "hash": "sema:Canary#mh:SHA-256:d38cd019553857aa7518559542b5400b658f87eb08e6f4dae9be4fd496ce691e",
 "stub": "d38c",
 "layer": "Society",
 "type": "Protocols",
 "summary": "Expendable agent tests the full coordination path before real commit",
 "mechanism": "Expendable Agent#e127 tests full coordination path before committing real resources. Spawn CANARY with: limited resources (bounded blast radius), defined scope, telemetry hooks. Canary executes FULL coordination path (Greet#bcb0→Probe#2bb8→negotiate→partial-execute). Reports TELEMETRY: {path_viable, latency_profile, error_events, partner_behavior_observations, recommendation: proceed|caution|abort}. Lifecycle options: DESTROY (discard after test), RECYCLE (reset for another test), PROMOTE (canary becomes real Agent#e127, continues Work#f0c3), ABSORB (real Agent#e127 inherits canary's progress). In adversarial environments, canary can run in STEALTH Mode#29d3 (indistinguishable from real Agent#e127) to prevent partners gaming the test. It extends the logic of a single Probe#2bb8 into a full-lifecycle agent deployment with bounded blast radius.",
 "invariants": [
  "The canary completes before real resources are committed.",
  "The canary exercises the real coordination path — Greet#bcb0, Probe#2bb8, negotiate, partial-execute — not a simulation.",
  "Telemetry resolves to one of proceed, caution or abort."
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [
  "Telemetry collection is in place before the canary is spawned",
  "A case within the canary's declared scope"
 ],
 "postconditions": [
  "A telemetry report carrying a recommendation, and the declared lifecycle step taken"
 ],
 "failure_modes": [
  "Gaming: the canary is treated differently than a real Agent#e127 would be. STEALTH Mode#29d3 raises the cost of detection without removing it.",
  "Test conditions do not match production conditions.",
  "Cost of the canary exceeds the benefit for simple paths.",
  "Conditions change between the canary test and real execution.",
  "Canary success does not guarantee real success on non-deterministic paths."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Canary",
 "builds_on": [
  {
   "alias": "agent",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Agent",
   "ref": "Agent#e127",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Agent"
  },
  {
   "alias": "work",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Work",
   "ref": "Work#f0c3",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Work"
  },
  {
   "alias": "greet",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Greet",
   "ref": "Greet#bcb0",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Greet"
  },
  {
   "alias": "mode",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Mode",
   "ref": "Mode#29d3",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Mode"
  },
  {
   "alias": "probe",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Probe",
   "ref": "Probe#2bb8",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Probe"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "DogfoodFirst",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/DogfoodFirst"
  },
  {
   "slug": "OsmoticFilter",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/OsmoticFilter"
  },
  {
   "slug": "Rollout",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Rollout"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Canary",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Canary.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
