Workspaces: add safe workspace distribution#101919
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Dependency graph guard clearedThis PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh
|
|
Codex review: needs real behavior proof before merge. Reviewed July 13, 2026, 5:51 AM ET / 09:51 UTC. Summary Reproducibility: not applicable. This PR adds new distribution and multi-user authorization capabilities rather than repairing a reproducible current-main bug. Review metrics: 3 noteworthy metrics.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land only an explicitly sponsored and rebased design after stable plugin API approval, fresh-install and upgrade migration proof, adversarial authorization review, and redacted live Control UI and Teams portal evidence for the exact head. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds new distribution and multi-user authorization capabilities rather than repairing a reproducible current-main bug. Is this the best way to solve the issue? Unclear: the security design is detailed, but combining owner distribution with a new Teams platform and public plugin API is not yet proven to be the narrowest maintainable solution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7efdd9d70607. Label changesLabel justifications:
Evidence reviewedSecurity concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (3 earlier review cycles)
|
5e1611c to
3528fad
Compare
3528fad to
c1c4fbe
Compare
What Problem This Solves
Workspace owners need a safe way to move a dashboard layout between installations without exporting private data, preserving authorization by accident, or letting imported custom code become executable. The previous distribution work predated the first-class Teams tenant, principal, and exact-resource grant contracts and could not safely distinguish an owner export from a member's exact shared-tab export.
Why This Change Was Made
This rebuild makes distribution a Workspaces-owned, authorization-aware workflow:
pendingapproval and cannot inherit an executable snapshot;WORKSPACE-DESIGN.mddocuments the review/refine loop and distribution security contract; it is guidance only and cannot grant access or approve custom widgets;?ws=deep link selects presentation state only and is never accepted as authorization input.The implementation reuses the Teams resource-specific owner signal and exact-tab authorization rather than creating a second distribution permission model.
User Impact
Owners can review and import a shared workspace package without exposing workspace data or silently trusting custom code. Team members can carry away only the tab they were actually granted. Imported layouts remain useful, while every security-sensitive identity and approval is regenerated locally.
Evidence
d3ca7fa6ccf9b80eb52b310f956a35112561a0cd, based on upstream main7da28f370476ef53c025f37339c1b128f6ed3933captured2026-07-13T09:16:13Z; both feature commits range-diff identically.pnpm tsgo:extensions, scoped Oxlint, andgit diff --checkpassed.Closes #101155. Addresses #101154. Partially addresses #101156.