Skip to content

Fix World Library bind and recovery on registered local Docker nodes - #691

Merged
athNdev merged 1 commit into
mainfrom
codex/world-bind-registered-node
Nov 20, 2026
Merged

athNdev merged 1 commit into
mainfrom
codex/world-bind-registered-node

Conversation

@athNdev

@athNdev athNdev commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Fix World Library bind and recovery on a controller-local Docker node registered through NodeService. The stored server has that node's assigned ID. The old binder recognized only legacy aliases, so it rejected a correctly registered Unix-socket daemon as unavailable remote storage.

  • Resolve local storage and the current generation from the same owning node record. Recheck generation before accessing bind or recovery data and refuse a different node ID.
  • Use the local disk budget check for registered local storage. Preserve legacy aliases and the current fail-closed behavior for unsupported remote paths.
  • Cover successful running-server bind and restart on an assigned local node ID, recovery at the correct generation, and remote rejection.

The new regression failed on the original candidate with the same node-storage refusal seen during qualification. After the patch, go test ./internal/worldlib -count=1, the focused World Library/RPC tests, go vet ./internal/worldlib ./internal/rpc/services, knowledge lint (40/40), and git diff --check passed locally.

This affects the shipped product. Stage a new release candidate containing this fix after merge. Re-run the real Compose world swap, recovery and rejoin at the replacement staged commit and digest before publishing. The harness remains separately owned in #690.

Refs OSS-246 and OSS-413.

@athNdev

athNdev commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Merge verification for 5bd9c9faaefd12b86b6a505cd220f025240702fe against main 26daf7f34f37bc939478c16c10c55ffac98c0207.

  • Re-reviewed the three-file diff, keeping storage access tied to the server's owning node. The stored generation is checked again before mutation. Legacy aliases are preserved and the test refuses a local override for a remote owner.
  • The registered-node regression failed on the prior base at the storage resolver and passed in the fix. go test ./internal/worldlib -count=1, focused World RPC tests, go vet ./internal/worldlib ./internal/rpc/services, knowledge lint/index verification (40/40), and git diff --check passed.
  • Exercised the existing BindWorld RPC fixture with a disposable go test -overlay <overlay.json> ./internal/rpc/services -run '^TestBindWorld' -count=1 -v run. SQLite assigned the Unix-socket node an actual UUID. The RPC generation, replay, cancellation, unknown outcome, rollback and ownership checks passed. The fixture uses simulated lifecycle or Docker interfaces. The live Docker row remained skipped locally.
  • All 16 hosted checks passed on this head. GitHub CI

This is merge evidence for the code fix. Live release acceptance remains the running-JVM qualification at the superseding staged commit and digest.

@athNdev
athNdev merged commit 6c29611 into main Nov 20, 2026
16 checks passed
@athNdev
athNdev deleted the codex/world-bind-registered-node branch November 20, 2026 10:34
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