Skip to content

feat(routing): name the error for a path that does not reach the level (sc-1583) - #111

Open
alanshaw wants to merge 1 commit into
mainfrom
ash/feat/routing-invalid-path
Open

alanshaw wants to merge 1 commit into
mainfrom
ash/feat/routing-invalid-path

Conversation

@alanshaw

@alanshaw alanshaw commented Dec 4, 2026

Copy link
Copy Markdown
Member

Adds the error name InvalidPath for /routing/put, from the erasure coding RFC. A routing policy can set a level, the part of each node's failure domain path that stripes are spread across. A put that sets a level fails with this error when a node has no path, or a path too short to reach it.

The upload service returns it in a follow-up PR. Story: sc-1583.

🤖 Generated with Claude Code

…l (sc-1583)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The error-name constant and routing path documentation changes have no active review issues.

No open issues 🎉

What changed in this PR

Defines a stable InvalidPath error name for /routing/put; upload-service enforcement will follow separately.

Changes:

  • Adds InvalidPathErrorName.
  • Documents candidate path requirements when a routing policy sets a level, and clarifies that paths are unnecessary without a level.
File Description
commands/​routing/​put.go Adds the error-name constant and documents routing path requirements.

Review effort: Balanced

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.

2 participants