Skip to content

Fix World Library archive paths for imported worlds - #692

Merged
athNdev merged 1 commit into
mainfrom
codex/world-library-archive-path
Nov 20, 2026
Merged

athNdev merged 1 commit into
mainfrom
codex/world-library-archive-path

Conversation

@athNdev

@athNdev athNdev commented Nov 20, 2026

Copy link
Copy Markdown
Owner

The first two-network world-swap run with the registered-node fix reached the real JVM, completed two world imports and verified the pre-swap backup. Bind then failed in both legs opening rev_…/world.zip. Hosted run

The importer stores a path relative to the configured World Library. RPC preview and bind used the database value relative to the process directory, and preview could quietly return an unknown report for a missing archive.

  • Resolve the archive the same way for compatibility and bind. Resolve new imports under the configured root and keep legacy root-prefixed and absolute archive paths within that root working.
  • Reject missing, non-file, and outside-root paths before binding can stop or mutate a running server. The existing immutable archive remains the copy source.
  • Exercise a real upload and import through the WorldService handlers, then preview and bind against SQLite and a disposable lifecycle fixture. On the previous candidate the preview reports that the archive cannot be opened. The fix passes that scenario, existing bind and recovery tests, and legacy and refusal path cases.

Local checks: go test ./internal/worldlib/..., the scoped World RPC suite, go vet ./internal/worldlib/... ./internal/rpc/services, knowledge lint (40/40), and git diff --check. The hosted live JVM swap must run again against a new staged candidate after this product fix merges. Relevant issues: OSS-246 and OSS-413.

@athNdev

athNdev commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Merge evidence for 6de05cdd9088c7b8f76686cd89e3a04eb0d12f7f on base 6c296117de02af9cba0efe6fda25e5dfe51a1f34.

  • Reviewed the scoped path-resolution and fixture changes. Preview and bind use the same configured library root. Existing imported keys, existing library-prefixed and absolute paths within that root, and missing, non-file or outside-root refusal were checked by TestResolveRevisionArchiveFormats.
  • The upload → ImportWorld → CheckCompatibility → BindWorld RPC regression failed on the old base with the imported archive missing from the working directory, then passed on this head. The focused RPC suite also passed the existing journal replay, running-container ownership and rollback fixtures.
  • go test ./internal/worldlib/..., focused World RPC tests, go vet ./internal/worldlib/... ./internal/rpc/services, knowledge lint (40/40), and git diff --check passed. All 16 hosted checks passed.

The local RPC fixture uses an in-process lifecycle adapter. The required live JVM proof is a separate post-merge dispatch on the replacement staged artifact, under #690 and OSS-246.

@athNdev
athNdev merged commit 23b7760 into main Nov 20, 2026
16 checks passed
@athNdev
athNdev deleted the codex/world-library-archive-path branch November 20, 2026 11:13
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