Skip to content

Migrate older Project sharing on the admin device - #3076

Open
kunickiaj wants to merge 3 commits into
feat/project-move-devicefrom
feat/project-moves-admin
Open

kunickiaj wants to merge 3 commits into
feat/project-move-devicefrom
feat/project-moves-admin

Conversation

@kunickiaj

@kunickiaj kunickiaj commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

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 status show 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=on enables both presence advertising and automatic moves. It defaults to off, 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

  • 🚀 Feature (new functionality)
  • 🐛 Bug fix (fixes an issue)
  • 📚 Documentation (docs-only change)
  • 🔧 Maintenance (refactor, chore, CI, etc.)
  • 🧪 Testing (test-only changes)

Testing

  • Relevant checks pass locally (pnpm run tsc, pnpm run lint:delta, UI build, and 15 targeted Vitest files with --maxWorkers=2 in an isolated environment)
  • Added/updated tests for changes: preserved direct shares, late Team removals, the production presence gate, and waiting status across store reopens
  • Manually verified changes work as expected

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

  • Code follows project style (pnpm run lint passes for touched files)
  • Self-review completed
  • Documentation updated (if needed)
  • No new warnings introduced

@kunickiaj kunickiaj changed the title feat(sync): migrate older Project sharing on the admin device Migrate older Project sharing on the admin device Nov 29, 2026
@kunickiaj
kunickiaj marked this pull request as ready for review November 29, 2026 04:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T16:21:27.773659Z 1ae0cca New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

kunickiaj commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner Author

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread packages/core/src/project-move-plan.ts Resolved
@kunickiaj
kunickiaj changed the base branch from feat/project-move-device to graphite-base/3076 November 29, 2026 04:40
@kunickiaj
kunickiaj force-pushed the feat/project-moves-admin branch from 9b8ce91 to b651932 Compare November 29, 2026 15:42
@kunickiaj
kunickiaj changed the base branch from graphite-base/3076 to feat/project-move-device November 29, 2026 15:42

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +1712 to +1714
if (getProjectBoundaryMigrationHold(run.db, managedBoundary.scopeId)?.held) {
authority(run, { safeErrorCode: PROJECT_MOVE_RECIPIENTS_PENDING, now: startedAt });
return {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

This branch has not been deployed

No deployments
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