{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Warmup",
 "ref": "Warmup#ed16",
 "hash": "sema:Warmup#mh:SHA-256:ed16f499e655d6d252a2bae39a8cc87ec8497426107905501920ac47644be9ef",
 "stub": "ed16",
 "layer": "Infrastructure",
 "type": "Primitives",
 "summary": "Gradual capacity increase to stabilize cold systems",
 "mechanism": "On activation, accept load at `initial_capacity` and raise the accepted-load cap to full over `ramp_duration`, following `curve`. This prevents a thundering herd against a cold system. What the ramp establishes is the cap, not readiness — a system whose cap has reached full may still be cold inside. Utilizes Greet#bcb0, Throttle#dd62.",
 "invariants": [
  "Capacity Limit: Accepted_Load <= Current_Warmup_Cap(t)"
 ],
 "parameters": [
  {
   "name": "curve",
   "type": "Enum",
   "range": "{Linear, Exponential, Step}",
   "description": "Default: Linear"
  },
  {
   "name": "initial_capacity",
   "type": "Float",
   "range": "[0.0, 1.0]",
   "description": "Starting capacity as fraction of full (0 = cold start)"
  },
  {
   "name": "ramp_duration",
   "type": "Duration",
   "range": "[10s, 1h]",
   "description": "Time to reach full capacity from initial"
  }
 ],
 "signature": [],
 "preconditions": [
  "System#f8eb state is inactive or reset"
 ],
 "postconditions": [
  "Accepted-load cap has reached full capacity",
  "System#f8eb is accepting load at full cap — readiness of internal state (caches, compiled paths) is a separate signal this pattern does not assert"
 ],
 "failure_modes": [
  "Premature Load: Traffic arrives before warmup completes.",
  "False Warmth: Timer completes but internal state (e.g. cache) is still cold."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Warmup",
 "builds_on": [
  {
   "alias": "throttle",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Throttle",
   "ref": "Throttle#dd62",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Throttle"
  },
  {
   "alias": "greet",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Greet",
   "ref": "Greet#bcb0",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Greet"
  },
  {
   "alias": "system",
   "relation": "references",
   "library": "bootstrap",
   "slug": "System",
   "ref": "System#f8eb",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/System"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "ContextFirst",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ContextFirst"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Warmup",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Warmup.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
