{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "WorkerMode",
 "ref": "WorkerMode#ba47",
 "hash": "sema:WorkerMode#mh:SHA-256:ba4708992ae8c4469b3c98e025829fafa8caf6430f1da66ed74b50a8e9255990",
 "stub": "ba47",
 "layer": "Society",
 "type": "Protocols",
 "summary": "Claim tasks and become the assigned persona",
 "mechanism": "Execution State#4f25 Machine. Upon invoking `solver_claim_task`, the Agent#e127 performs an atomic Identity#b24a change via ContextSwitch#aa92 using the SolverManifest#4ba8. The Agent#e127 remains in this Mode#29d3 until the Task#a850 is complete (emitting a Solution#8d55 or error to the SolverNode#f895), ensuring adherence to the assigned persona. A Lock#95c2 prevents concurrent task claims.",
 "invariants": [
  "Identity#b24a Lock#95c2: During WorkerMode, system_prompt MUST == SolverManifest#4ba8.persona.",
  "Isolation: Memory Context#c1b7 must be flushed/reset before entering WorkerMode.",
  "Lifecycle Bound: Mode#29d3 cannot be exited without emitting a Solution#8d55 or Error."
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [
  "SolverManifest#4ba8 defined",
  "Task#a850 available in queue"
 ],
 "postconditions": [
  "Agent#e127 returns to Idle State#4f25",
  "Task#a850 marked Complete/Failed"
 ],
 "failure_modes": [
  "Persona Drift: Agent#e127 slowly reverts to default behaviors during long tasks (Context#c1b7 Window exhaustion).",
  "Zombie Worker: Agent#e127 claims Task#a850, enters WorkerMode, but crashes/hangs before reporting completion.",
  "Context#c1b7 Leak: Information from previous tasks bleeds into the current WorkerMode session."
 ],
 "domain": "",
 "caution": "Replaces the agent's whole governing prompt with the claimed manifest's persona and blocks exit until done — claim tasks only from trusted manifests.",
 "sources": [],
 "name": "WorkerMode",
 "builds_on": [
  {
   "alias": "identity",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Identity",
   "ref": "Identity#b24a",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Identity"
  },
  {
   "alias": "context_switch",
   "relation": "references",
   "library": "bootstrap",
   "slug": "ContextSwitch",
   "ref": "ContextSwitch#aa92",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ContextSwitch"
  },
  {
   "alias": "agent",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Agent",
   "ref": "Agent#e127",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Agent"
  },
  {
   "alias": "task",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Task",
   "ref": "Task#a850",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Task"
  },
  {
   "alias": "mode",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Mode",
   "ref": "Mode#29d3",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Mode"
  },
  {
   "alias": "state",
   "relation": "references",
   "library": "bootstrap",
   "slug": "State",
   "ref": "State#4f25",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/State"
  },
  {
   "alias": "solver_node",
   "relation": "references",
   "library": "bootstrap",
   "slug": "SolverNode",
   "ref": "SolverNode#f895",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/SolverNode"
  },
  {
   "alias": "context",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Context",
   "ref": "Context#c1b7",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Context"
  },
  {
   "alias": "lock",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Lock",
   "ref": "Lock#95c2",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Lock"
  },
  {
   "alias": "solution",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Solution",
   "ref": "Solution#8d55",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Solution"
  },
  {
   "alias": "solver_manifest",
   "relation": "accepts",
   "library": "bootstrap",
   "slug": "SolverManifest",
   "ref": "SolverManifest#4ba8",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/SolverManifest"
  }
 ],
 "related": [],
 "used_by": [],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/WorkerMode",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/WorkerMode.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
