CedarCopilot wants to merge 1 commit into main from staging
Not deployed
Libra has no production signal for this change yet because it has not deployed. Libra checks hourly for 3 days after each deploy.
This change adds document sharing, agent invitations, and view-as sharing controls. It is not safe to merge until document moves preserve authorization records and agent-share revocation prevents later trigger setup. The view-as share control is also a non-blocking UI issue that should be corrected to maintain a read-only experience.
Not safe to merge: confirmed document-authorization and revoked-agent-automation failures can violate an owner's intended access boundary.
Focused execution reproduced three blocking failures, including two with concrete authorization consequences. The rendered view-as issue is non-blocking and does not change the merge-safety conclusion.
Files Needing Attention: apps/server/src/services/documents/index.ts needs transactional document, descendant, and grant migration; apps/server/src/services/agents/share.ts needs revocation-safe acceptance setup; apps/mail/modules/agents/components/AgentHeader.tsx needs read-only sharing UI.
Document moves can leave a path-addressed grant behind, allowing its grantee to access a different document later created at the vacated path. Separately, an agent invitation acceptance can install automation after the owner has revoked the share.
What T-Rex did
apps/server/src/services/documents/index.ts, line 1100-1108 (link)
The agent-facing move operation changes a document's path and can change its owner, but it leaves path-addressed grant records at the old path. After a move from organisation/old to organisation/new, a different document later created at organisation/old inherits the stale grant and gives the original grantee access. Update grant paths and owner keys together with document moves in one transaction.
How this was verified: Moving a document and creating another at its old path gave the or
Libra has not measured any production surfaces for this change yet.