Skip to content

wayglass project migrate-residency

Move a project’s Worker state into the Durable Object pinned to its jurisdiction.

A project made before Oct 14, 2026 in a jurisdiction Durable Objects can pin to (eu) keeps its repos in that jurisdiction’s namespace, but its Worker state (intents, decisions, audit log, sessions, cost meters) was created wherever it was first reached. Until it is moved the Worker refuses the project with residency_pending rather than serve it from the wrong place.

This copies every table row for row into the pinned object, verifies row counts and a digest on both sides, wipes the old object and leaves a tombstone that refuses every call, and appends project.residency_migrated to the audit log. Safe to rerun: a finished move reports migrated: false. Needs the admin key.

Terminal window
wayglass project migrate-residency <name>
Terminal window
wayglass project migrate-residency eu-demo-1791797572
wayglass project migrate-residency eu-demo-1791797572 --json
Flag Default Description
--json print a JSON envelope for agents (no colour, prompts or spinners)

Exit codes and the --json envelope are the same for every command; see For agents.