Repository navigation
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. |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9b8ce91c79
ℹ️ 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".
9b8ce91 to
b651932
Compare
ba0d0af to
a45b952
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b65193278e
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1ae0cca32c
ℹ️ 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".
| if (getProjectBoundaryMigrationHold(run.db, managedBoundary.scopeId)?.held) { | ||
| authority(run, { safeErrorCode: PROJECT_MOVE_RECIPIENTS_PENDING, now: startedAt }); | ||
| return { |
There was a problem hiding this comment.
Revoke withdrawn identities even while a migration is held
If a move has committed but recipient recording remains held—for example, because saved recipient intent conflicts—deactivating a copied recipient no longer revokes their access. This early return bypasses both normal reconciliation and the withdrawal-only revocations in blockedDerivationResult, indefinitely preserving the coordinator membership without staging a deny overlay. For native Teams, isScopeDeviceAdmissionRefused does not independently reject deactivated identities, so the device can continue receiving Project data. Run the existing withdrawal-only revocation path before returning for the hold, while continuing to block ordinary grants and recipient changes.
Useful? React with 👍 / 👎.

Description
Move existing shared Projects onto their own sharing boundaries so the same recipient policy controls old and new shares. The admin device plans recipients for each Project, preserves independent direct shares, and waits when it cannot verify who should still receive the Project. It refreshes Team removals after the coordinator confirms a move, saves the recipients, and releases the hold only when ordinary reconciliation can safely take over.
Projects and
codemem sync migration statusshow which devices are waiting for updates or setup. The last coordinator answer survives a restart. A Team device exclusion carries over to the Project unless the person already has a direct share. Projects waiting for recipient setup no longer take every reconciliation slot. The report also lists planned recipients, access changes, and Projects that need attention.sync_boundary_migration=onenables both presence advertising and automatic moves. It defaults tooff, and the read-only report works at either setting. The Project move trust model covers paired and enrolled devices, admin devices, and the coordinator.Limit: If another policy problem blocks a later reconciliation pass, a person removed from a Team keeps the access they had through that Team until the problem clears. A replica can also continue using a cached proof until its next refresh.
Type of Change
Testing
pnpm run tsc,pnpm run lint:delta, UI build, and 15 targeted Vitest files with--maxWorkers=2in an isolated environment)The review corrections passed 545 targeted tests and the full isolated core suite (846 files, 32,733 passing tests), plus TypeScript and the lint ratchet. Regression tests cover Team exclusions with and without a direct share and unrelated work moving past held Projects.
Checklist
pnpm run lintpasses for touched files)