{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "DriftWatch",
 "ref": "DriftWatch#2913",
 "hash": "sema:DriftWatch#mh:SHA-256:29131d6f9346a5c367020dd9251cbf8a1401c46b0118c2e58c20f152fbb72f95",
 "stub": "2913",
 "layer": "Society",
 "type": "Protocols",
 "summary": "Reputation scoring via behavioral deviation from baseline (2-sigma alert)",
 "mechanism": "Reputation via micro-deviation detection. 1. Baseline: establish behavioral frequency over `window_size` samples. 2. Sample: continuous high-resolution observation. 3. Detect: alert when Distance#dfdf(Current, Baseline) exceeds `threshold`. 4. Witness: aggregated peer reports. Tracks behavioral consistency against a baseline Aggregate#bb80 of historical actions.",
 "invariants": [
  "Baseline is immutable while a sample is judged against it.",
  "Baseline recomputation interval and source window are declared.",
  "Alert when Distance#dfdf(Current, Baseline) > `threshold`, in the units Distance#dfdf returns."
 ],
 "parameters": [
  {
   "name": "threshold",
   "type": "Float",
   "range": "[0.0, inf)",
   "description": "Trigger in the units {{distance}} returns — not normalised, not sigma multiples."
  },
  {
   "name": "window_size",
   "type": "Integer",
   "range": "[10, 10000]",
   "description": "Samples forming the baseline"
  },
  {
   "name": "recompute_interval",
   "type": "Integer",
   "range": "[0, 100000]",
   "description": "Samples between baseline rebuilds; 0 pins it permanently."
  }
 ],
 "signature": [],
 "preconditions": [
  "Baseline state is established"
 ],
 "postconditions": [],
 "failure_modes": [
  "Baseline walked: the subject changes more slowly than the baseline recomputes, so no alert fires.",
  "Witness collusion: coordinated false drift reports.",
  "False reports: a single malicious witness.",
  "Cold start: no baseline yet, so the watcher is silent through the establishment window.",
  "Baseline gaming: Agent#e127 varies early to establish a wide baseline.",
  "Alert flood: continuous sampling against a sensitive threshold alerts at its false-positive rate."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "DriftWatch",
 "builds_on": [
  {
   "alias": "aggregate",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Aggregate",
   "ref": "Aggregate#bb80",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Aggregate"
  },
  {
   "alias": "distance",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Distance",
   "ref": "Distance#dfdf",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Distance"
  },
  {
   "alias": "agent",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Agent",
   "ref": "Agent#e127",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Agent"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "RegimeSense",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/RegimeSense"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/DriftWatch",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/DriftWatch.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
