Conversation
18 tasks
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.
What changed
Adds an opt-in indexed-aggregate mode:
plan --indexed-aggregatespacks sub-pieces into FRC-0058 data segment aggregates,redirect-servestreams the assembled aggregate at/piece/{root}(each sub-piece hash-verified on the way out), andpdp-submitpulls that one stream and adds the root as its own single sub-piece — the 1:1 shape Curio's v0 add requires. The layout is built in pure JS (ipfs2foc-core/indexed-aggregate) from the@web3-storage/data-segmentdep, with offsets and index serialization matched against go-data-segment source. Default (bare) aggregation is unchanged.This targets the provider-side aggregate indexing being ported from Curio's mk20 pipeline into the PDPv0 path; keep on this branch until that lands and a calibration round-trip passes.
How to verify
pnpm -r typecheck && pnpm biome check . && pnpm -r test— the key tests recompute the piece commitment over the assembled bytes (unit and over real HTTP) and require it to equal the aggregate root, the same check the provider runs on pull.Notes / risks
New
indexedcolumn onaggregates(pre-release, no migration). Indexed aggregates need--source-base; the stateless relay cannot assemble the stream.