{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "HackDetect",
 "ref": "HackDetect#1778",
 "hash": "sema:HackDetect#mh:SHA-256:17781b110b307b405fa83ece40419c64370baa612d923b1e513392893fcaacba",
 "stub": "1778",
 "layer": "Mind",
 "type": "Inference",
 "summary": "Detect shortcuts that break downstream invariants",
 "mechanism": "A meta-check that detects when an agent is solving for 'make it work' instead of 'do it right'. Triggered when the agent modifies interface code (adapters, exporters, validators) rather than fixing source data or upstream logic. The hack appears to succeed locally but breaks invariants that downstream systems depend on, creating negative externalities. It monitors the InputGuard#0ba7 layer for anomalies, triggering EjectionSeat#a9d5 if the agent attempts to bypass invariants via code patching.",
 "invariants": [
  "Detection triggers defensive response",
  "False positive rate minimized"
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [
  "Attack signatures/anomaly detection",
  "System#f8eb monitoring"
 ],
 "postconditions": [
  "Alert raised",
  "Intrusion identified"
 ],
 "failure_modes": [
  "False Positives: Legitimate adapter changes flagged as hacks.",
  "Hack Blindness: Novel hack patterns evade detection.",
  "Justification Theater: Agent#e127 rationalizes hack as 'pragmatic'."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "HackDetect",
 "builds_on": [
  {
   "alias": "ejection_seat",
   "relation": "references",
   "library": "bootstrap",
   "slug": "EjectionSeat",
   "ref": "EjectionSeat#a9d5",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/EjectionSeat"
  },
  {
   "alias": "system",
   "relation": "references",
   "library": "bootstrap",
   "slug": "System",
   "ref": "System#f8eb",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/System"
  },
  {
   "alias": "input_guard",
   "relation": "references",
   "library": "bootstrap",
   "slug": "InputGuard",
   "ref": "InputGuard#0ba7",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/InputGuard"
  },
  {
   "alias": "agent",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Agent",
   "ref": "Agent#e127",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Agent"
  }
 ],
 "related": [],
 "used_by": [],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/HackDetect",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/HackDetect.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
