Skip to content

Route remaining file RPCs through ForNode (OSS-281) - #401

Merged
athNdev merged 1 commit into
mainfrom
oss/281-file-rpcs
Nov 10, 2026
Merged

athNdev merged 1 commit into
mainfrom
oss/281-file-rpcs

Conversation

@athNdev

@athNdev athNdev commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Route accessor-backed file RPCs (ListFiles, UpdateFile, DeleteFile, CreateFolder, CopyFile, MoveFile, SaveUploadedFile, InitFileDownload) and serverLatestLog through nodestorage.ForNode.
  • Zip/extract/archive pipelines and ExportWorld stay CodeUnavailable on transport-only nodes; no controller-local fallback when worker_image is unset.
  • Regression tests fail if those RPCs create or read a controller-local tree instead of the transport accessor.

Test plan

  • go test ./internal/rpc/services ./internal/nodestorage ./internal/storageworker
  • go vet on those packages
  • go run ./cmd/knowledge-lint -root . -fix then lint without -fix
  • CI required checks

Made with Cursor

Accessor-backed listing, writes, copy/move, uploads, and latest-log open storage on the owning node. Zip and world-export pipelines stay unavailable on transport-only nodes so they never fall back to controller-local IO.

Co-authored-by: Cursor <[email protected]>
@athNdev
athNdev merged commit 1f1f0a1 into main Nov 10, 2026
11 checks passed
@athNdev
athNdev deleted the oss/281-file-rpcs branch November 10, 2026 06:02
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.

1 participant