Draft
feat(blob): add optional affinity field to /blob/add arguments#59
affinity field to /blob/add arguments#59Conversation
Per RFC fil-one/RFC#15 (dynamic affinity routing), adds an optional `affinity` field to `AddArguments` that accepts a list of storage-node DIDs. When present, it constrains routing to the specified nodes. Regenerates cbor_gen.go and json_gen.go accordingly.
Copilot
AI
changed the title
feat: add optional affinity field to /blob/add
feat(blob): add optional Aug 1, 2026
affinity field to /blob/add arguments
Copilot created this pull request from a session on behalf of
alanshaw
August 1, 2026 15:26
View session
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.
Per fil-one/RFC#15, adds an optional
affinityfield to/blob/addso callers (e.g. Ingot) can constrain Sprue's storage-node selection to a specific set of Piri DIDs without imposing static space-level routing state.Changes
commands/blob/types.go:AddArgumentsgainsAffinity []did.DID(omitempty).nil→ field absent, existing routing unchanged. Non-nil → encoded as a list of storage-node DIDs.commands/blob/cbor_gen.go,json_gen.go: Regenerated viago generate.