{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Parallelize",
 "ref": "Parallelize#53a5",
 "hash": "sema:Parallelize#mh:SHA-256:53a54fc8c6c719497cade703e7153f188faf393a54259d62079ea3a38b5092fd",
 "stub": "53a5",
 "layer": "Mind",
 "type": "Strategy",
 "summary": "Run subtasks simultaneously and aggregate",
 "mechanism": "Runs multiple LLM calls simultaneously and aggregates results. Two modes: Sectioning (split Task#a850 into independent subtasks, run in Parallel#d58d, merge) and Voting (run same Task#a850 multiple times, Aggregate#bb80 via majority Mode#29d3 or selection). Trades compute cost for speed and/or confidence. It spawns concurrent execution threads and employs Aggregate#bb80 to unify the results into a final Result#c02a.",
 "invariants": [
  "Independence: no subtask reads another subtask's output.",
  "Aggregation is chosen before fan-out, and subtasks are shaped to produce outputs it accepts."
 ],
 "parameters": {},
 "signature": [
  "Parallel(Task)",
  "Aggregate(Result)"
 ],
 "preconditions": [
  "Batch of tasks",
  "Multiple workers"
 ],
 "postconditions": [
  "All results aggregated, or the unaggregatable ones reported as such"
 ],
 "failure_modes": [
  "Merge Conflicts: Parallel#d58d outputs are incompatible and can't be combined.",
  "Unanimous Wrong: All parallel paths make the same error.",
  "Aggregation CognitiveBias#c8a4: Merge Strategy#3dc5 systematically favors certain outputs."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Parallelize",
 "builds_on": [
  {
   "alias": "parallel",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Parallel",
   "ref": "Parallel#d58d",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Parallel"
  },
  {
   "alias": "strategy",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Strategy",
   "ref": "Strategy#3dc5",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Strategy"
  },
  {
   "alias": "result",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Result",
   "ref": "Result#c02a",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Result"
  },
  {
   "alias": "mode",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Mode",
   "ref": "Mode#29d3",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Mode"
  },
  {
   "alias": "cognitive_bias",
   "relation": "references",
   "library": "bootstrap",
   "slug": "CognitiveBias",
   "ref": "CognitiveBias#c8a4",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/CognitiveBias"
  },
  {
   "alias": "aggregate",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "Aggregate",
   "ref": "Aggregate#bb80",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Aggregate"
  },
  {
   "alias": "task",
   "relation": "accepts",
   "library": "bootstrap",
   "slug": "Task",
   "ref": "Task#a850",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Task"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "DAG",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/DAG"
  },
  {
   "slug": "FabricSharding",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/FabricSharding"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Parallelize",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Parallelize.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
