{
  "slug": "weaver-codes",
  "term": "WEAVER codes",
  "aliases": [
    "WEAVER"
  ],
  "definition": "WEAVER codes are XOR-based erasure codes that place data and parity on each device and constrain the number of data elements feeding each parity.",
  "note": "In WEAVER(n,k,t), n counts devices, k is parity in-degree and t is the intended device-failure tolerance, not the number of data shards. With r data and q parity elements per device, rt=qk and payload fraction is k/(k+t). The original k<=t families therefore use at most half the encoded space for payload. [hafner2005]\n\nFault tolerance depends on the actual weave and stripe size. For P_j = D_(j+2) XOR D_(j+3) XOR D_(j+4), with indices modulo n and D_j/P_j on device j, the published three-failure construction admits n=6 and n>=8, but not n=7. Degree counts alone are insufficient. [hafner2005]\n\nFinite checks recover all 20 triple-erasure sets at n=6, only 28 of 35 at n=7, and all 56 at n=8. At n=7, erasing devices {0,1,3} hides a difference in exactly those three data bits from every surviving element. These are exhaustive pattern counts, not failure probabilities. Changing offsets to {3,4,6} recovers all 35 triples at n=7. [hesela-results]\n\nRepair cost has separate units: the later GRID/WEAVER study distinguishes blocks read from devices accessed. Its combined code is not a standalone WEAVER layout; a low helper count alone does not establish low transferred bytes or repair time. [khan2011]",
  "status": "research",
  "advantages": [],
  "limitations": [],
  "related": [
    "erasure-coding",
    "maximum-distance-separable-code",
    "repair-locality"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-22",
  "citations": [
    {
      "id": "hafner2005",
      "title": "Hafner. WEAVER Codes: Highly Fault Tolerant Erasure Codes for Storage Systems. FAST 2005, sections 1.1, 2.1, 4; Table 1.",
      "url": "https://www.usenix.org/legacy/event/fast05/tech/full_papers/hafner_weaver/hafner_weaver_html/index.html",
      "accessed": "2026-11-22"
    },
    {
      "id": "khan2011",
      "title": "Khan, Burns, Plank and Huang. In Search of I/O-Optimal Recovery from Disk Failures. HotStorage 2011, sections 3-4.",
      "url": "https://www.usenix.org/legacy/event/hotstorage11/tech/final_files/Khan.pdf",
      "accessed": "2026-11-22"
    },
    {
      "id": "hesela-results",
      "title": "Hesela: exhaustive finite WEAVER erasure-pattern results, assumptions and unrecoverable sets.",
      "url": "https://hesela.dev/research/weaver/results.json",
      "accessed": "2026-11-22"
    },
    {
      "id": "hesela-code",
      "title": "Hesela: standalone GF(2) rank checker; run with Node.js.",
      "url": "https://hesela.dev/research/weaver/model.js",
      "accessed": "2026-11-22"
    },
    {
      "id": "hesela-tests",
      "title": "Hesela: direct-XOR ambiguity oracle and negative controls.",
      "url": "https://hesela.dev/research/weaver/model.test.js",
      "accessed": "2026-11-22"
    },
    {
      "id": "hesela-method",
      "title": "Hesela: reproduction steps and finite-model limitations.",
      "url": "https://hesela.dev/research/weaver/README.txt",
      "accessed": "2026-11-22"
    }
  ],
  "provenance": [
    "Source synthesis and finite algebraic verification, not a hardware benchmark, deployment recommendation or new fault-tolerance theorem.",
    "Erasure removes both elements on a device. Surviving elements must be correct, consistently versioned and assigned to the specified codeword.",
    "Two published offset patterns are tested only over n=5..12 and n=7..12 respectively, with zero through three device erasures. The general n>=8 range is a paper claim, not an unbounded computational proof."
  ]
}
