Repository navigation
feat(coordinator): add the Project move admin route and the device move-log read - #3073
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 29, 2026
Owner
Author
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b13db0fb53
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
kunickiaj
force-pushed
the
feat/project-move-routes
branch
from
November 29, 2026 03:12
b13db0f to
bb11238
Compare
kunickiaj
force-pushed
the
feat/project-move-commit
branch
from
November 29, 2026 03:13
84dc8ce to
36df0b0
Compare
kunickiaj
force-pushed
the
feat/project-move-routes
branch
from
November 29, 2026 03:52
bb11238 to
6656ec2
Compare
kunickiaj
force-pushed
the
feat/project-move-commit
branch
from
November 29, 2026 03:52
36df0b0 to
384a59a
Compare
8 of 12 tasks
…ction The coordinator moves one Project from an older scope to its managed_project boundary with one atomic batch on SQLite and D1. It reads what its conditions need, decides, and writes only if the batch's first statements find the same values again: the asking device's enrollment, key, Identity and revocation state; that the boundary has no scope or membership row; and a fingerprint of the older scope, its members, their enrollments and stored presence, and the revocations. A failed check aborts the whole batch, and the move reads again to say why. The version gate refuses the move until every authorized member of the older scope lists project_boundary_migration_v1 in its stored presence, and names the devices that don't. The batch then creates the boundary, copies only the older scope's active authorized members with their roles, writes one audit row each and logs the move. A repeated request returns the logged move. The move reads and writes nothing of readiness. The contract now says what the admin device records: recipients are people and Teams, every device the older scope authorized keeps access, a device bound to no person makes its scope wait, and a Project in two older scopes is held.
…ve-log read POST /v1/admin/groups/:group_id/project-moves takes the admin secret and the older scope, boundary and asking device, and answers with the logged move, a 409 refusal that names its reason and devices, or 503 without the move storage. GET /v1/project-moves?group_id= answers a signed device of the group with every logged move, oldest first. The deployment guide says what migration 0058 adds.
kunickiaj
force-pushed
the
feat/project-move-commit
branch
from
November 29, 2026 04:12
384a59a to
216cda6
Compare
kunickiaj
force-pushed
the
feat/project-move-routes
branch
from
November 29, 2026 04:12
6656ec2 to
0937b17
Compare
7 of 12 tasks
8 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Adds the two coordinator routes for Project moves.
POST /v1/admin/groups/:group_id/project-movestakes the admin secret andsource_scope_id,boundary_scope_id,device_id,excluded_device_idsandteam_removal_seq. It answers with one of:GET /v1/project-moves?group_id=answers a signed device of the group with every logged move, oldest first, so a device can tell which of its Projects moved.project_moves_unavailable.No build lists
project_boundary_migration_v1in its presence yet, so the version gate refuses every move for now.Type of Change
Testing
Route tests cover:
pnpm run tscand the Biome ratchet pass. The full suite runs in CI.Relevant checks pass locally (
pnpm run tsc,pnpm run lint,pnpm run test)Added/updated tests for changes
Manually verified changes work as expected
Checklist
pnpm run lintpasses for touched files)