Repository navigation
feat(coordinator): add the Project move log and its contract - #3071
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. |
Owner
Author
This was referenced Nov 29, 2026
kunickiaj
force-pushed
the
feat/project-moves-contract
branch
from
November 29, 2026 03:12
c714137 to
056d907
Compare
Every shared Project moves from its older scope to its own managed_project boundary, once and one-way. Migration 0058 adds the coordinator's move log: one row per boundary with the older scope, the admin device that asked and the devices granted. Triggers refuse every update and delete. docs/contracts/coordinator-project-moves.md fixes the trust model, the admin move request and its answers, the version gate (every authorized member of the older scope lists project_boundary_migration_v1 in presence), the Unassigned identity for memories with no Project, and the device-signed read that tells a device its Project moved. No route or writer uses the storage yet.
kunickiaj
force-pushed
the
feat/project-moves-contract
branch
from
November 29, 2026 03:52
056d907 to
f13948e
Compare
8 of 12 tasks
This was referenced Nov 29, 2026
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
Each shared Project moves from its older scope (
team,team_default,org,client) to its ownmanaged_projectboundary, the mechanism new shares already use (ADR 0007 Decision 2). This PR adds the coordinator's log of those moves and the contract the coordinator, the admin device and the other devices follow. Nothing writes the log yet.coordinator_project_moves: one row per boundary with the older scope, the admin device that asked, the devices granted, the devices the admin device excluded and the time. Triggers refuse every update and delete, so a move is one-way and the log only grows.docs/contracts/coordinator-project-moves.mdsets out the trust model, the move request and its answers (including the devices the admin device excludes and the Team removal sequence it built that list from), the version gate (every authorized member of the older scope listsproject_boundary_migration_v1in its presence), the "Unassigned" identity for memories with no Project, and the signed read a device uses to learn its Project moved.Type of Change
Testing
New tests check that the migration file and the Worker schema match the shared SQL, that the storage reports itself present only with its table and triggers, that a logged move can't be changed or deleted, and that each older scope gets its own Unassigned boundary.
Targeted coordinator store, D1 baseline, inventory and schema-stage suites pass.
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)