Skip to content

feat(sharing): add actionable migration review#1340

Merged
kunickiaj merged 1 commit into
mainfrom
07-21-feat_sharing_add_actionable_migration_review
Jul 22, 2026
Merged

feat(sharing): add actionable migration review#1340
kunickiaj merged 1 commit into
mainfrom
07-21-feat_sharing_add_actionable_migration_review

Conversation

@kunickiaj

@kunickiaj kunickiaj commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Description

Adds actionable, durable recipient-policy migration review on top of the read-only legacy projection.

  • derives open review and Blocked items from current source state
  • persists only immutable fingerprint-bound decisions with server-derived Identity/device attribution
  • keeps rejection and keep-current outcomes cleared until semantic source state changes
  • validates stale fingerprints and per-decision inputs without changing scopes, memberships, memories, or replication
  • exposes read, resolve, and per-item bulk APIs
  • adds an accessible Projects review surface with exact Project/memory/device previews
  • bumps the local schema to v11 with additive upgrade coverage

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, pnpm run test)
  • Added/updated tests for changes
  • Manually verified changes work as expected

Additional checks:

  • focused core/schema/viewer tests: 299 passed
  • focused UI/API tests: 46 passed
  • pnpm --filter @codemem/ui build
  • full pnpm run check: 2844 passed, 3 todo

Checklist

  • Code follows project style (pnpm run lint passes for touched files)
  • Self-review completed
  • Documentation updated (final product documentation remains intentionally scheduled for stack PR 8)
  • No new warnings introduced

@kunickiaj
kunickiaj marked this pull request as ready for review July 21, 2026 18:20

@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: 15e3d06a09

ℹ️ 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/viewer-server/src/routes/sync.ts
Comment thread packages/core/src/schema.ts

@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: 8ed7b454ac

ℹ️ 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/ui/src/tabs/recipient-policy-review.ts
@kunickiaj
kunickiaj force-pushed the 07-21-feat_sharing_project_legacy_recipient_policy branch from 170e812 to c4073cb Compare July 22, 2026 21:17
@kunickiaj
kunickiaj force-pushed the 07-21-feat_sharing_add_actionable_migration_review branch from 8ed7b45 to 623fcf8 Compare July 22, 2026 21:17

@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: 623fcf891b

ℹ️ 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".

pendingReviewItems.delete(item.reviewItemId);
await onRefresh();
} catch (error) {
if (error instanceof api.RecipientPolicyReviewStaleError) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Refresh when resolved item disappears

When a review card is rendered and another tab/sync change removes that source condition before the user clicks Apply, the resolve route returns status: "not_found"/404 rather than the typed stale 409 because the item no longer exists. This catch only refreshes for RecipientPolicyReviewStaleError, so the 404 falls through to a generic error and leaves the now-invalid card visible and retryable until the user manually refreshes the Projects tab; refresh (or expose/handle the structured result) for this stale-disappearance case as well.

Useful? React with 👍 / 👎.

kunickiaj commented Jul 22, 2026

Copy link
Copy Markdown
Owner Author

Merge activity

  • Jul 22, 9:25 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jul 22, 9:31 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jul 22, 9:37 PM UTC: @kunickiaj merged this pull request with Graphite.

@kunickiaj
kunickiaj changed the base branch from 07-21-feat_sharing_project_legacy_recipient_policy to graphite-base/1340 July 22, 2026 21:26
@kunickiaj
kunickiaj changed the base branch from graphite-base/1340 to main July 22, 2026 21:29
@kunickiaj
kunickiaj force-pushed the 07-21-feat_sharing_add_actionable_migration_review branch from 623fcf8 to f3eae47 Compare July 22, 2026 21:31
@kunickiaj
kunickiaj merged commit e1046fc into main Jul 22, 2026
11 checks passed
@kunickiaj
kunickiaj deleted the 07-21-feat_sharing_add_actionable_migration_review branch July 22, 2026 21:37
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