Skip to content

ADR 026: File-to-blob mapping, manifests, and file reconstruction #208

Closed

Description

@alpergundogdu

Context

Blobs in the deCDN are content-addressed via BLAKE3. Individual blobs can be any size (subject to per-node max_blob_size limits). However, no ADR specifies how large files are split into blobs, how a client discovers the set of blob hashes that compose a file, or how the client reconstructs the original file from downloaded blobs.

This is also relevant for the node serving side: nodes can serve individual blobs independently, so keeping blobs separate after file reconstruction has economic value.

Refs: ADR 005 (blob delivery, StreamRequest, max_blob_size), ADR 006 (blob hash = BLAKE3(ciphertext)), ADR 012 (client architecture), ADR 022 (content discovery by hash)

Gap

No design exists for:

  • Blob/chunk size — fixed vs. variable, trade-offs (metadata overhead vs. parallelism granularity)
  • Manifest blob format — the blob that lists the ordered set of chunk hashes for a file
  • How a client discovers the manifest hash (out-of-band? from a registry? embedded in content ID?)
  • File reconstruction: reassembling ordered blobs into the original file
  • Whether to keep blobs after reconstruction (for re-serving) or delete them
  • Interaction with E2E encryption (ADR 006): manifest covers ciphertext hashes, not plaintext
  • Interaction with parallel download (ADR 024): blob boundaries as natural parallelism units

Why it needs an ADR

Without a canonical blob/manifest structure, clients and content publishers cannot interoperate. This also affects content discovery (ADR 022) since DHT lookups are by blob hash — the manifest hash IS the canonical content identifier.

Expected outcome

ADR 026 defining chunk size policy, manifest blob format, file reconstruction procedure, blob retention semantics post-download, and the relationship between manifest hash and the user-facing content identifier.

Activity

  1. added
    kind:docs
    design:missing-decision
    design:adr
    on Apr 10, 2026
  2. added 2 commits that reference this issue on Apr 10, 2026
    4808b47
    acadcf1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:adrdesign:missing-decisionkind:docs

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions