Skip to content

docs: sync public docs to ADR 038/039 - #184

Merged
yigitdot merged 3 commits into
mainfrom
docs/sync-adr-038-039
Jul 9, 2026
Merged

yigitdot merged 3 commits into
mainfrom
docs/sync-adr-038-039

Conversation

@yigitdot

@yigitdot yigitdot commented Jul 6, 2026 •

Copy link
Copy Markdown
Collaborator

Brings the public Mintlify docs under docs/ current with two accepted ADRs — 038 (Bao verified-range streaming) and 039 (Multi-source parallel fetch) — which the docs did not yet cover.

Changes

  • docs/overview/design-decisions.mdx — add ADR 038 and 039 rows to the ADR table (previously stopped at 037).
  • docs/protocol/content-addressing.mdx — rewrite "Verified streaming" to the ADR 038 bao model: the cdn/client/v1 paid-delivery payload is always bao interleaved verified-stream bytes, verified through the bao decoder against the BLAKE3 root at 16 KiB chunk-group granularity. A resumed/ranged fetch verifies independently after the decoder aligns the requested offset down to its chunk-group boundary. Proof bytes are metered (~0.4% overhead), and origin-cold serves build the outboard first.
  • docs/overview/how-it-works.mdx — add a "Multi-source parallel fetch" section (ADR 039): client-side scheduler across full holders up to max_sources, bao-aligned work units with dynamic assignment / work stealing, per-unit verification, re-dispatch of failed units, straggler hedging, and no new wire surface (each source is an ordinary paid cdn/client/v1 stream).
  • docs/overview/glossary.mdx — add Bao, Full holder, Multi-source fetch, Outboard, and Work unit.

Notes for reviewers

  • Docs-only; no code changes. docs/ builds via the separate Mintlify pipeline and is excluded from the static export, so pnpm build/pnpm test are unaffected.
  • Method.tsx was intentionally left unchanged — its copy already reflects both features ("parallel streams to several peers", "verified against the blake3 tree hash").
  • The pre-existing multi-source bootstrap (L2 RPC) line in how-it-works.mdx is unrelated and untouched.
  • Verified: pnpm format:check clean, markdownlint-cli2 0 errors, no new internal links (broken-links stays clean).

Review follow-ups

Bot round (99cfebe):

  • Bao verification wording states alignment to the enclosing 16 KiB chunk-group boundary rather than the looser "from any byte offset," in both the glossary and the protocol page.
  • Tightened the proof-metering sentence and defined max_sources inline where it appears.
  • Kept "bao" lowercase in prose (matches project usage; capitalized only at ADR-title and glossary-headword positions) — explained in the review thread.

Human review round (0c346a6):

  • Glossed cdn/client/v1 on first use as the paid-delivery payload.
  • Removed rejected-alternative ("no raw-bytes mode…") framing; states the bao-only guarantee positively.
  • "before paying for that chunk" → "chunk group" for consistency inside the bao paragraph (generic BLAKE3-chunk mentions left as-is).
  • Corrected the multi-source throughput claim: throughput comes from caching across full holders, not from parallelizing a single origin's uplink.

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings July 6, 2026 22:57
@coderabbitai

coderabbitai Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR updates documentation to describe bao verified-range streaming and multi-source parallel fetch. It adds ADR entries and glossary terms, introduces a new retrieval walkthrough, and revises verified-streaming protocol wording.

Changes

Bao/Multi-source Documentation

Layer / File(s) Summary
ADR and glossary references for new concepts
docs/overview/design-decisions.mdx, docs/overview/glossary.mdx
Adds ADR entries 038 and 039, and adds glossary definitions for Bao, Full holder, Multi-source fetch, Outboard, and Work unit.
Multi-source fetch and bao streaming behavior descriptions
docs/overview/how-it-works.mdx, docs/protocol/content-addressing.mdx
Adds a new section describing client-side multi-source parallel retrieval with bao-aligned work units, and revises verified streaming to specify bao delivery, chunk-group verification, proof-byte metering, and outboard-building requirements.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related issues

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the docs-only update to align public docs with ADRs 038 and 039.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/sync-adr-038-039

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation to introduce and detail the integration of Bao (BLAKE3 verified-streaming encoding) and multi-source parallel fetching, adding new glossary terms, design decisions, and architectural explanations. The review feedback focuses on improving technical accuracy and clarity regarding Bao verification boundaries and payment metering explanations in the documentation.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread docs/overview/glossary.mdx Resolved
Comment thread docs/protocol/content-addressing.mdx Resolved
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

Deploying website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0c346a6
Status: ✅  Deploy successful!
Preview URL: https://f9e6aa8f.website-70y.pages.dev
Branch Preview URL: https://docs-sync-adr-038-039.website-70y.pages.dev

View logs

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the public Mintlify documentation under docs/ to reflect accepted ADRs 038 (Bao verified-range streaming) and 039 (Multi-source parallel fetch), ensuring protocol/overview docs match current design decisions.

Changes:

  • Expand “Verified streaming” to describe Bao verified-stream delivery and outboard requirements.
  • Document the ADR 039 client-side multi-source scheduler and work-unit concept.
  • Add ADR rows and new glossary terms to support the new documentation sections.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
docs/protocol/content-addressing.mdx Rewrites “Verified streaming” to the Bao verified-stream model and adds range/resume + outboard details.
docs/overview/how-it-works.mdx Adds a new “Multi-source parallel fetch” section describing scheduling and verification of work units.
docs/overview/glossary.mdx Adds glossary entries for Bao, multi-source fetch, outboard, work units, and full holders.
docs/overview/design-decisions.mdx Appends ADR 038/039 to the design decisions ADR table.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/protocol/content-addressing.mdx Resolved
Comment thread docs/overview/glossary.mdx Resolved
Comment thread docs/overview/how-it-works.mdx Resolved
Comment thread docs/overview/glossary.mdx Resolved
@yigitdot
yigitdot requested a review from alpergundogdu July 6, 2026 23:16

Copy link
Copy Markdown
Contributor

Review

Overview: Docs-only sync bringing the public Mintlify docs current with ADR 038 (bao verified-range streaming) and ADR 039 (multi-source parallel fetch). The four changes are accurate, mutually consistent (glossary ↔ protocol page ↔ how-it-works all use the same 16 KiB chunk-group alignment wording), glossary entries are correctly alphabetized, and the earlier bot-review round was fully addressed in 99cfebe. Prettier/markdownlint/broken-links verification is noted in the description and the Cloudflare preview deployed clean.

LGTM overall — a few optional wording nits, none blocking:

  1. cdn/client/v1 is introduced without definition. Both occurrences of the protocol string are new in this PR (content-addressing.mdx:17, how-it-works.mdx:57), and it isn't defined anywhere in the docs. A short apposition on first use — e.g. "the cdn/client/v1 paid-delivery stream" — would keep new readers oriented.

  2. "There is no raw-bytes mode with an optional hasher fallback" (content-addressing.mdx:17) describes the rejected alternative from the ADR, but public-docs readers never knew that mode existed — it reads as changelog language rather than standalone docs. Consider stating it positively instead: "bao is the only payload encoding."

  3. Chunk vs. chunk group. The rewritten paragraph establishes verification at 16 KiB chunk-group granularity but its last sentence (carried over from the old text) still says "before paying for that chunk." Same-page leftovers also say "chunks" (the "Why BLAKE3" tree-structured bullet, and the "Hash verification" bullet in how-it-works.mdx). Optional tidy since both pages are already being touched.

  4. "turns a 1 Gbps origin into multi-gigabit delivery" (how-it-works.mdx:55) — the parallel sources are full holders (caches), not the origin, so a blob held only by its origin still caps at that origin's uplink. Something like "content whose origin uplink is 1 Gbps can still be delivered at multi-gigabit speeds once cached across full holders" would be airtight.

🤖 Generated with Claude Code


Generated by Claude Code

@yigitdot

yigitdot commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for the review — all four addressed in 0c346a6.

  1. cdn/client/v1 undefined — glossed on first use in content-addressing.mdx: "the cdn/client/v1 paid-delivery payload…". Left how-it-works.mdx:57 as-is since it already reads "ordinary paid cdn/client/v1 stream," which is self-contained.
  2. Changelog framing — dropped the "no raw-bytes mode with an optional hasher fallback" clause; "always bao bytes" plus "the bao decoder verifies every chunk group" already states it positively.
  3. chunk vs chunk group — fixed the carried-over "before paying for that chunk" → "chunk group." Left the two generic mentions ("Why BLAKE3" tree bullet, the "Hash verification" honest-network bullet): those refer to BLAKE3's native 1 KiB chunk, which is distinct from bao's 16 KiB verification chunk group, so "chunk" is correct there.
  4. Throughput claim — reworded to "delivered at multi-gigabit speeds once it's cached across enough full holders — no single origin's uplink caps the transfer," since the parallel sources are full-holder caches, not the origin.

@yigitdot
yigitdot merged commit 6e15ad6 into main Jul 9, 2026
7 checks passed
@yigitdot
yigitdot deleted the docs/sync-adr-038-039 branch July 9, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants