Repository navigation
docs(adr)!: a node proves the blob size - #2880
Closed
alpergundogdu wants to merge 2 commits into
Closed
alpergundogdu wants to merge 2 commits into
alpergundogdu wants to merge 2 commits into
Conversation
A StreamResponse, and a ProbeResponse that states total_bytes, carries a size proof: the final BLAKE3 chunk and its path to the root. The receiver verifies the proof against the content hash before it uses the size. A proof depends on the hash alone, so the origin makes it at import and any node passes it on. Refs #2879 Co-Authored-By: Claude Fable 5.2 <[email protected]>
This was referenced Nov 11, 2026
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This was referenced Nov 11, 2026
Contributor
Author
|
Superseded by #2885, which carries both ADR commits of this PR unchanged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft of the ADR change for #2879. It changes ADR text only, so the ADR on this branch describes a wire field that the code does not carry yet.
What the draft says
adr/005-protocol.md§ bounded byte ranges:StreamResponsewithok = true, and aProbeResponsethat statestotal_bytes, carries a size proof in its extension: the final BLAKE3 chunk and the parent hashes on its path to the root.Not done in this draft
These still treat the size as a claim and must change before this leaves draft.
adr/005-protocol.md: themax_blob_sizeparagraphs that say nothing verifiestotal_bytesbefore the bytes arriveadr/039-multi-source-parallel-fetch.md: "The size of a blob is a hint" and the claim growth ruleadr/appendix-gateway.md: the gateway's paid size pulladr/appendix-bundles.md: proven size against manifest sizeadr/037-regional-proxy-warming.mdcriterion 13,adr/013-schema-evolution.mdextension fieldsadr/038-bao-verified-range-streaming.md: the proof format, if it is defined thereOpen decisions
bao-treeencoding of the last chunk at block size 0, and the stock decoder verifies it. A throwaway test over 14 sizes from 1 byte to 37 MiB confirmed that the proof verifies under the true size and under no wrong size, and measured proofs between 1 byte and 1.7 KiB. The verifier is a small function indecdn-bao-rangethat takes the root, the size and the proof. The generator at chunk granularity needs the hashes inside the last chunk group, which the group-level.obao4outboard does not store, so it computes them from the last group's bytes.Checks
pre-commitpasses the ADR book and reference hygiene hooks. Thecargo-denyadvisories hook fails on two advisories that this change does not touch (RUSTSEC-2026-0387, RUSTSEC-2026-0441).🤖 Generated with Claude Code