Libra CodeHub

CedarCopilot/cedar-mail

Branch: staging

feat(sharing): one access predicate, two renderings , and the six gates a review found open

merged#2755CedarCopilot

CedarCopilot wants to merge 16 commits into staging from refactor/agent-files-sections

Live on prod since Sat, 4 of 5 surfaces workingTimeline and evidence
  1. Opened
    Sep 10, 2026, 9:01 PM
  2. Sep 12, 2026, 11:04 AM
  3. Live on staging
    Sep 12, 2026, 11:09 AM
  4. Pipelines steady after this deploy
    Sep 12, 2026, 11:09 AM
  5. Merged
    Sep 12, 2026, 11:09 AM
  6. Live on prod
    Sep 12, 2026, 11:09 AM
  7. Observed 8 hours, 5 surfaces, 844 requests
    Sep 12, 2026, 11:09 AM
  8. Pipelines steady after this deploy
    Sep 12, 2026, 11:09 AM
  9. Verified

    Live on prod since Sat, 4 of 5 surfaces working

    Sep 12, 2026, 7:22 PM

Behaviors Libra is checking

Data model behavior from db/access-schema.ts, db/agent-share-schema.ts, db/documents-schema.ts keeps working in staging.Workinglow confidence

Strict CloudWatch fallback saw 8 success-shaped log lines matching /access-schema.ts, /agent-share-schema.ts, /documents-schema.ts, claude, playbookeditor, but no tied operation was present, so Libra is not calling this working.

staging, checked Sep 15, 2026, 1:40 AM
AOP context behavior from aop/agent-doc-convention.ts, routes/aop-agents.ts keeps working in prod.Inconclusivelow confidence

Strict CloudWatch fallback saw 93 success-shaped log lines matching pipeline, analytics, quota, aop, but no tied operation was present, so Libra is not calling this working.

prod, checked Sep 12, 2026, 6:09 PM
Authentication and access behavior from auth/authorize.ts keeps working in prod.Inconclusivelow confidence

Strict CloudWatch fallback saw 4 setup or missing-connection failure log lines matching auth, login, session, token, but that does not prove the deployed behavior is broken for connected users.

prod, checked Sep 12, 2026, 6:09 PM
Chat workflow behavior from conversations/conversation-routes.ts, components/start-agent-chat.ts, scripts/revoke-redundant-conversation-grants.ts keeps working in prod.Inconclusivelow confidence

Strict CloudWatch fallback found 55 prod failure log lines for mirror.upsertEmailThread failed (Failed query: insert into \), but this domain-wide failure family is not tied to this intent.

prod, checked Sep 12, 2026, 6:22 PM
Data model behavior from db/access-schema.ts, db/agent-share-schema.ts, db/documents-schema.ts keeps working in prod.Inconclusivelow confidence

Verification reached its budget before a verdict.

prod, checked Sep 12, 2026, 6:23 PM
Email workflow behavior from playbook/page.tsx, components/PlaybookEditor.tsx, components/html-share-dialog.tsx keeps working in prod.Inconclusivelow confidence

Strict CloudWatch fallback found 55 prod failure log lines for mirror.upsertEmailThread failed (Failed query: insert into \), but this domain-wide failure family is not tied to this intent.

prod, checked Sep 12, 2026, 7:22 PM

Failures attributed to this change

No prod customers are affected while this is only in staging. If promoted, prod impact is unknown because Libra still needs a concrete exception, route, and failed user action before assigning severity. 0 hits · no retained affected-user count · no retained trace sample.Introducedmedium confidence

internal_only

staging, first seen Sep 12, 2026, 4:13 PM
No prod customers are affected while this is only in staging. If promoted, prod impact is unknown because Libra still needs a concrete exception, route, and failed user action before assigning severity. 0 hits · no retained affected-user count · no retained trace sample.Introducedmedium confidence

internal_only

staging, first seen Sep 12, 2026, 4:13 PM
No prod customers are affected while this is only in staging. If promoted, prod impact is unknown because Libra still needs a concrete exception, route, and failed user action before assigning severity. 0 hits · no retained affected-user count · no retained trace sample.Introducedmedium confidence

internal_only

staging, first seen Sep 12, 2026, 4:13 PM
No prod customers are affected while this is only in staging. If promoted, prod impact is unknown because Libra still needs a concrete exception, route, and failed user action before assigning severity. 0 hits · no retained affected-user count · no retained trace sample.Introducedmedium confidence

internal_only

staging, first seen Sep 12, 2026, 5:13 PM
No prod customers are affected while this is only in staging. If promoted, customer impact is not proven from the retained evidence. 2 hits · no retained affected-user count · no retained trace sample.Introducedmedium confidence

single_user

staging, first seen Sep 13, 2026, 6:40 AM

Libra measured 4 of 5 production surfaces on prod. 1 surface had under 20 requests, so Libra has not judged it. Libra checks hourly for 3 days after each deploy.

Summary

The sharing and permissions epic: one access predicate with two renderings , accessFor for a single document, accessibleFilter as SQL for a listing , replacing the old "the path IS the ACL" rule, plus the product surface on top of it (Share panel, typed share links, access requests, agent sharing, "Shared with me").

The design and its phases are in apps/server/docs/sharing.md.

The last commits on the branch are a pre-merge review pass, and they are the part most worth reviewing closely. Six authorization holes were found and closed:

What was openWhere
Any org member could mint a permanent anonymous public link to any document in the org , a teammate's file, a deal they are not on, an explicitly private folderdocuments.createShareLink + 4 siblings, gated on tenancy alone
Any org member could read an agent's whole recipient list (names + email addresses) and re-fire invite notifications in their own nameagentSharing.list / resend
An authenticated caller could walk guessed UUIDs and learn which were live documents in any tenant, then whether each was privategetFolderVisibility, which took an id and no viewer
A read-only seat on a deal capped you on your own file inside it, and capped an agent admin , because the resolver short-circuited where the SQL folds with maxresolve.ts floor chain
Granting to a foreign user:<id> and reading the audience back returned that person's name, address and avatar , a cross-tenant directorygrantAccess + namesFor
viewerFor trusted its orgId, which the filter renders and the resolver does not , refused per-document, admitted by every listingviewerFor

Two of those (the floor fold, and agentIdFromPath scanning deeper than the SQL tests) were divergences between the two renderings , a listing admitting a row the mutation then refuses, which is the exact split this subsystem exists to prevent.

Also in that pass: capped password into a blocking scryptSync on the unauthenticated unlock route, bounded audienceValues, view beacons bound to their token, and a dozen frontend fixes (disjoint cache invalidations, private→public silently dropping the role you picked, a hardcoded "Owner" shown to every viewer of an agent panel, unhandled create rejections, timers leaking past unmount).

Test plan

  • pnpm run autofix:local , green: brand check, oxlint --deny-warnings, deps:check, paraglide, mail Jest (all suites), TZ tests, server Vitest 994 files / 12,137 tests.
  • types and types:test clean in both packages.
  • New apps/server/src/services/access/__tests__/refusals.test.ts , 11 cases pinning all six refusals against real Postgres (PGlite). The two floor-fold cases were re-run against the old chain to confirm they fail for the right reason rather than passing trivially.

Notes for the reviewer

  • origin/staging is merged in. Three conflicts were decisions, not text , files.restoreNode deleted (staging removed it deliberately), readFile keeping this branch's viewer parameter (staging's signature would have dropped the access check), and debugTool.ts taking both sides because they gate different things. Reasoning is in the merge commit.
  • CI's Typecheck job runs turbo run types but never types:test, so test-file types are unchecked. The merge surfaced nine type errors in tests that no CI check would have caught , two of them pre-existing on staging, in files neither side had touched. All fixed; types:test is back to zero in both packages.
  • Known, deliberately not changed: two N+1 preview paths (visibilityConsequence, previewMove) that fire on panel open; listPendingRequestsFor has no LIMIT; legacy public_token links are invisible to the new panel during the dual-read window. Details in the review notes.

🤖 Generated with Claude Code

Greptile Summary

Show production surfaces and changed-file mapping

Production surfaces

SurfaceRequestsErrorsp95UsersVerdict
mirror.upsertEmailThread526 → 7101 → 2 (0.3%)295 ms → 272 ms0Working
710 requests since the deploy with 2 errors (1 errors in the 526-request baseline before it). p95 272 ms, was 295 ms.
model_chunk Conversation Field Updater45 → 630 → 0 (0%)1 ms → 1 ms0Working
63 requests since the deploy with 0 errors (0 errors in the 45-request baseline before it). p95 1 ms, was 1 ms.
execute_tool update-conversation-fields18 → 300 → 0 (0%)67917 ms → 15786 ms0Working
30 requests since the deploy with 0 errors (0 errors in the 18-request baseline before it). p95 15786 ms, was 67917 ms.
model_step Conversation Field Updater17 → 290 → 0 (0%)99587 ms → 36769 ms0Working
29 requests since the deploy with 0 errors (0 errors in the 17-request baseline before it). p95 36769 ms, was 99587 ms.
invoke_agent Conversation Field Updater7 → 120 → 0 (0%)78795 ms → 72033 ms0Insufficient traffic
12 requests, under the 20 Libra needs
mirror.upsertEmailThread31 → 80 → 0 (0%)307 ms → 279 ms0Insufficient traffic
8 requests, under the 20 Libra needs
model_chunk Conversation Field Updater7 → 00 → 0 (0%)1 ms → not measured0No traffic
No requests recorded since this deploy.
execute_tool update-conversation-fields3 → 00 → 0 (0%)3134 ms → not measured0No traffic
No requests recorded since this deploy.
model_step Conversation Field Updater3 → 00 → 0 (0%)26988 ms → not measured0No traffic
No requests recorded since this deploy.
invoke_agent Conversation Field Updater1 → 00 → 0 (0%)44119 ms → not measured0No traffic
No requests recorded since this deploy.

Changed files → surfaces

  • apps/mail/components/ui/field.tsxmirror.upsertEmailThreadmodel_chunk Conversation Field Updaterexecute_tool update-conversation-fieldsmodel_step Conversation Field Updaterinvoke_agent Conversation Field Updatermirror.upsertEmailThread+4
  • .github/workflows/ci.ymlno production surface mapped
  • CLAUDE.mdno production surface mapped
  • apps/mail/app/(routes)/agents/playbook/page.tsxno production surface mapped
  • apps/mail/app/(routes)/playground/components/PlaybookEditor.tsxno production surface mapped
  • apps/mail/components/html-share-dialog.tsxno production surface mapped
  • apps/mail/components/icons/icons.tsxno production surface mapped
  • apps/mail/components/ui/context-menu.tsxno production surface mapped
  • apps/mail/components/ui/dropdown-menu.tsxno production surface mapped
  • apps/mail/components/ui/person-avatar.tsxno production surface mapped
  • apps/mail/docs/crystallized.mdno production surface mapped
  • apps/mail/docs/wiki/files-ui.mdno production surface mapped
  • apps/mail/docs/wiki/sharing-ui.mdno production surface mapped
  • apps/mail/jest.config.cjsno production surface mapped
  • apps/mail/jest.setup.jsno production surface mapped
  • apps/mail/modules/administeredUser/components/AdministeredUserBar.tsxno production surface mapped
  • apps/mail/modules/agents/__tests__/AgentActionMenu.test.tsxno production surface mapped
  • apps/mail/modules/agents/__tests__/AgentFileBrowserSelection.test.tsxno production surface mapped
  • apps/mail/modules/agents/__tests__/AgentHeaderViewAs.test.tsxno production surface mapped
  • apps/mail/modules/agents/__tests__/AgentMemoryTab.test.tsxno production surface mapped
  • apps/mail/modules/agents/__tests__/AgentOutputTab.test.tsxno production surface mapped
  • apps/mail/modules/agents/__tests__/AgentRunsTab.test.tsxno production surface mapped
  • apps/mail/modules/agents/__tests__/AgentSourcesSection.test.tsxno production surface mapped
  • apps/mail/modules/agents/__tests__/AgentsGrid.test.tsxno production surface mapped
  • apps/mail/modules/agents/__tests__/accept.test.tsxno production surface mapped
  • apps/mail/modules/agents/__tests__/agent-groups.test.tsno production surface mapped
  • apps/mail/modules/agents/__tests__/agent-share.test.tsxno production surface mapped
  • apps/mail/modules/agents/__tests__/agent-tabs.test.tsno production surface mapped
  • apps/mail/modules/agents/__tests__/unshare-confirm.test.tsxno production surface mapped
  • apps/mail/modules/agents/components/AddTriggerForm.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentActionMenu.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentConnectionsPanel.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentConversationFilesFolder.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentHeader.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentInstructionsSection.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentInviteCard.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentInviteScreen.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentMemoryTab.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentOutputTab.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentRunsTab.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentSharePanel.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentSourcesPanel.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentSourcesSection.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentView.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentsGrid.tsxno production surface mapped
  • apps/mail/modules/agents/types.tsno production surface mapped
  • apps/mail/modules/agents/utils/agent-paths.tsno production surface mapped
  • apps/mail/modules/agents/utils/trigger-events.tsno production surface mapped
  • apps/mail/modules/cedar-os/src/cedar-os-components/chatComponents/AgentContextChip.tsxno production surface mapped
  • apps/mail/modules/cedar-os/src/cedar-os-components/chatComponents/ChatContextRow.tsxno production surface mapped
  • apps/mail/modules/cedar-os/src/cedar-os-components/chatComponents/ChatHistoryPopover.tsxno production surface mapped
  • apps/mail/modules/cedar-os/src/cedar-os-components/chatComponents/EmbeddedCedarChat.tsxno production surface mapped
  • apps/mail/modules/cedar-os/src/cedar-os-components/chatComponents/EmptyStateSuggestions.tsxno production surface mapped
  • apps/mail/modules/cedar-os/src/cedar-os-components/chatInput/ChatInput.tsxno production surface mapped
  • apps/mail/modules/cedar-os/src/cedar-os-components/ui/dropdown-menu.tsxno production surface mapped
  • apps/mail/modules/cedar-os/src/store/messages/MessageTypes.tsno production surface mapped
  • apps/mail/modules/cedar-os/src/store/messages/databaseAdapter.tsno production surface mapped
  • apps/mail/modules/cedar-os/src/store/messages/messageStorage.tsno production surface mapped
  • apps/mail/modules/cedar-os/src/store/messages/messagesSlice.tsno production surface mapped
  • apps/mail/modules/company/__tests__/shared-root.test.tsxno production surface mapped
  • apps/mail/modules/company/components/CompanyExplorer.tsxno production surface mapped
  • apps/mail/modules/conversations/components/ConversationParticipantsPanel.tsxno production surface mapped
  • apps/mail/modules/conversations/components/files/ConversationFileTree.tsxno production surface mapped
  • apps/mail/modules/conversations/conversation-routes.tsno production surface mapped
  • apps/mail/modules/conversationsPage/hooks/use-conversations-sidebar-conversations.tsno production surface mapped
  • apps/mail/modules/documents/file-link/FileLinkChip.tsxno production surface mapped
  • apps/mail/modules/documents/file-link/FileLinkNode.tsxno production surface mapped
  • apps/mail/modules/documents/file-link/FileLinkSuggestion.tsno production surface mapped
  • apps/mail/modules/documents/html-document-view.tsxno production surface mapped
  • apps/mail/modules/documents/playbook/TriggerNode.tsxno production surface mapped
  • apps/mail/modules/documents/playbook/TriggerRefNode.tsxno production surface mapped
  • apps/mail/modules/documents/playbook/playbookExtensions.tsno production surface mapped
  • apps/mail/modules/documents/playbook/references.tsno production surface mapped
  • apps/mail/modules/documents/yjs/ensureNodeIdsPlugin.tsno production surface mapped
  • apps/mail/modules/files/components/FileBrowser.tsxno production surface mapped
  • apps/mail/modules/files/components/list/FileList.tsxno production surface mapped
  • apps/mail/modules/files/components/list/FileListColumns.tsxno production surface mapped
  • apps/mail/modules/files/components/list/FileListRow.tsxno production surface mapped
  • apps/mail/modules/files/components/list/FileRowMenu.tsxno production surface mapped
  • apps/mail/modules/files/components/list/FileTypeIcon.tsxno production surface mapped
  • apps/mail/modules/files/components/list/SharedCell.tsxno production surface mapped
  • apps/mail/modules/files/components/list/index.tsno production surface mapped
  • apps/mail/modules/files/components/list/types.tsno production surface mapped
  • apps/mail/modules/files/utils/file-presentation.tsno production surface mapped
  • apps/mail/modules/home/components/FileArtifactPanel.tsxno production surface mapped
  • apps/mail/modules/home/components/start-agent-chat.tsno production surface mapped
  • apps/mail/modules/sharing/__tests__/actions.test.tsxno production surface mapped
  • apps/mail/modules/sharing/__tests__/agent-audience.test.tsxno production surface mapped
  • apps/mail/modules/sharing/__tests__/approve-request.test.tsxno production surface mapped
  • apps/mail/modules/sharing/__tests__/links.test.tsxno production surface mapped
  • apps/mail/modules/sharing/__tests__/move.test.tsxno production surface mapped
  • apps/mail/modules/sharing/__tests__/no-toast.test.tsno production surface mapped
  • apps/mail/modules/sharing/__tests__/request-access.test.tsxno production surface mapped
  • apps/mail/modules/sharing/__tests__/share-panel.test.tsxno production surface mapped
  • apps/mail/modules/sharing/__tests__/view-as.test.tsxno production surface mapped
  • apps/mail/modules/sharing/__tests__/visibility.test.tsxno production surface mapped
  • apps/mail/modules/sharing/components/AccessRequests.tsxno production surface mapped
  • apps/mail/modules/sharing/components/AudienceAvatar.tsxno production surface mapped
  • apps/mail/modules/sharing/components/GeneralAccess.tsxno production surface mapped
  • apps/mail/modules/sharing/components/InviteField.tsxno production surface mapped
  • apps/mail/modules/sharing/components/LinkSection.tsxno production surface mapped
  • apps/mail/modules/sharing/components/MoveAudienceGate.tsxno production surface mapped
  • apps/mail/modules/sharing/components/PersonRow.tsxno production surface mapped
  • apps/mail/modules/sharing/components/PillMenu.tsxno production surface mapped
  • apps/mail/modules/sharing/components/RequestAccessScreen.tsxno production surface mapped
  • apps/mail/modules/sharing/components/RoleMenu.tsxno production surface mapped
  • apps/mail/modules/sharing/components/SharePanel.tsxno production surface mapped
  • apps/mail/modules/sharing/components/ShareTrigger.tsxno production surface mapped
  • apps/mail/modules/sharing/components/SharedWithMeRoot.tsxno production surface mapped
  • apps/mail/modules/sharing/hooks/use-share-state.tsno production surface mapped
  • apps/mail/modules/sharing/types.tsno production surface mapped
  • apps/mail/modules/sharing/view-as.tsxno production surface mapped
  • apps/mail/tests/components/menu-selection-indicator.test.tsxno production surface mapped
  • apps/mail/tests/modules/agentCanvas/helpers/agendaTaskHarness.tsxno production surface mapped
  • apps/mail/tests/modules/chat-store/chatHistoryPagination.test.tsno production surface mapped
  • apps/mail/tests/modules/conversations/conversation-members.test.tsxno production surface mapped
  • apps/mail/tests/modules/conversations/filesTabDrive.test.tsxno production surface mapped
  • apps/mail/tests/modules/conversations/filesTabHarness.tsxno production surface mapped
  • apps/mail/tests/modules/conversations/filesTabOptimistic.test.tsxno production surface mapped
  • apps/mail/tests/modules/conversations/filesTabTree.test.tsxno production surface mapped
  • apps/mail/tests/modules/conversationsPage/utils/filterConversationsByQuery.test.tsno production surface mapped
  • apps/mail/tests/modules/conversationsPage/utils/groupSidebarConversations.test.tsno production surface mapped
  • apps/mail/tests/modules/documents/board/BoardDocumentView.render.test.tsxno production surface mapped
  • apps/mail/tests/modules/documents/table/TypedCells.test.tsxno production surface mapped
  • apps/mail/tests/modules/drafting/draftIdResolved.test.tsno production surface mapped
  • apps/mail/tests/modules/files/brain-explorer.test.tsxno production surface mapped
  • apps/mail/tests/modules/files/list/FileListRow.test.tsxno production surface mapped
  • apps/mail/tests/modules/files/yjs/CedarYjsProvider.test.tsno production surface mapped
  • apps/mail/tests/modules/inbox/feedScopeGate.test.tsxno production surface mapped
  • apps/mail/tests/modules/linkedin/LinkedInCounterpartCard.test.tsxno production surface mapped
  • apps/mail/tests/modules/playbook/playbook-document-owner.test.tsxno production surface mapped
  • apps/mail/tests/modules/playbook/trigger-dispatch.test.tsxno production surface mapped
  • apps/mail/tests/modules/playbook/trigger-ref-panel.test.tsxno production surface mapped
  • apps/mail/tests/modules/userTasks/completeTaskUndoWindow.test.tsxno production surface mapped
  • apps/mail/tests/modules/userTasks/pendingTaskResolutions.test.tsno production surface mapped
  • apps/mail/tests/modules/userTasks/taskUpdatedProcessor.test.tsno production surface mapped
  • apps/mail/tests/modules/userTasks/userTasksSlice.test.tsno production surface mapped
  • apps/server/docs/design/per-trigger-instructions.mdno production surface mapped
  • apps/server/docs/sharing.mdno production surface mapped
  • apps/server/docs/wiki/agent-sharing.mdno production surface mapped
  • apps/server/docs/wiki/document-access.mdno production surface mapped
  • apps/server/docs/wiki/per-trigger-instructions.mdno production surface mapped
  • apps/server/package.jsonno production surface mapped
  • apps/server/src/access-admin/cli.tsno production surface mapped
  • apps/server/src/agent-admin/cli.tsno production surface mapped
  • apps/server/src/agent-share-admin/cli.tsno production surface mapped
  • apps/server/src/cli/index.tsno production surface mapped
  • apps/server/src/cli/lib.tsno production surface mapped
  • apps/server/src/cron/__tests__/process-agenda-emails.test.tsno production surface mapped
  • apps/server/src/db/access-schema.tsno production surface mapped
  • apps/server/src/db/agent-share-schema.tsno production surface mapped
  • apps/server/src/db/documents-schema.tsno production surface mapped
  • apps/server/src/db/migrations/agent_shares.sqlno production surface mapped
  • apps/server/src/db/migrations/document_access_requests.sqlno production surface mapped
  • apps/server/src/db/migrations/document_grants.sqlno production surface mapped
  • apps/server/src/db/migrations/document_grants_path_addressed.sqlno production surface mapped
  • apps/server/src/db/migrations/document_share_links.sqlno production surface mapped
  • apps/server/src/db/migrations/document_share_view_identity.sqlno production surface mapped
  • apps/server/src/db/migrations/documents_barrier_index.sqlno production surface mapped
  • apps/server/src/db/migrations/scripts/__tests__/reconcile-categorized-settings.test.tsno production surface mapped
  • apps/server/src/db/migrations/scripts/backfill-document-grants.tsno production surface mapped
  • apps/server/src/db/migrations/scripts/raise-root-grants-to-manager.tsno production surface mapped
  • apps/server/src/db/migrations/scripts/repair-org-path-owners.tsno production surface mapped
  • apps/server/src/db/migrations/scripts/revoke-redundant-conversation-grants.tsno production surface mapped
  • apps/server/src/db/schema.tsno production surface mapped
  • apps/server/src/db/share-links-schema.tsno production surface mapped
  • apps/server/src/files-admin/cli.tsno production surface mapped
  • apps/server/src/lib/__tests__/auth-jwt-header.test.tsno production surface mapped
  • apps/server/src/lib/driver/utils.tsno production surface mapped
  • apps/server/src/lib/testing/mastra-tool.tsno production surface mapped
  • apps/server/src/mastra/agents/on-event-orchestrator-agent.tsno production surface mapped
  • apps/server/src/mastra/context/values.tsno production surface mapped
  • apps/server/src/mastra/routeHandlers/event-execution/__tests__/handleExecuteFromClientSend-crm-updater-agentid.test.tsno production surface mapped
  • apps/server/src/mastra/skills/account-config/tools/__tests__/get-sent-emails-authorization.test.tsno production surface mapped
  • apps/server/src/mastra/skills/account-config/tools/__tests__/read-connection-settings-authorization.test.tsno production surface mapped
  • apps/server/src/mastra/tools/__tests__/tool-grant.test.tsno production surface mapped
  • apps/server/src/mastra/tools/agenda/__tests__/reviewConversationFanOut.test.tsno production surface mapped
  • apps/server/src/mastra/tools/brain/__tests__/wiki-write-access.test.tsno production surface mapped
  • apps/server/src/mastra/tools/brain/promoteWikiCandidateTool.tsno production surface mapped
  • apps/server/src/mastra/tools/brain/refreshWikiStatsTool.tsno production surface mapped
  • apps/server/src/mastra/tools/brain/wiki-write-access.tsno production surface mapped
  • apps/server/src/mastra/tools/brain/writeWikiPageTool.tsno production surface mapped
  • apps/server/src/mastra/tools/config/__tests__/config-read-output-schema.test.tsno production surface mapped
  • apps/server/src/mastra/tools/config/__tests__/configTool.test.tsno production surface mapped
  • apps/server/src/mastra/tools/config/__tests__/listOrgMembers.test.tsno production surface mapped
  • apps/server/src/mastra/tools/debug/__tests__/debugTool.test.tsno production surface mapped
  • apps/server/src/mastra/tools/debug/debugTool.tsno production surface mapped
  • apps/server/src/mastra/tools/document/__tests__/boardTool.test.tsno production surface mapped
  • apps/server/src/mastra/tools/document/__tests__/document-redirect-authorization.test.tsno production surface mapped
  • apps/server/src/mastra/tools/document/__tests__/documentTool.test.tsno production surface mapped
  • apps/server/src/mastra/tools/document/__tests__/readDocumentTool.by-id.test.tsno production surface mapped
  • apps/server/src/mastra/tools/document/__tests__/shareDocumentTool.test.tsno production surface mapped
  • apps/server/src/mastra/tools/document/documentTool.tsno production surface mapped
  • apps/server/src/mastra/tools/document/grepDocumentsTool.tsno production surface mapped
  • apps/server/src/mastra/tools/document/listDocumentsTool.tsno production surface mapped
  • apps/server/src/mastra/tools/document/readDocumentTool.tsno production surface mapped
  • apps/server/src/mastra/tools/document/shareDocumentTool.tsno production surface mapped
  • apps/server/src/mastra/tools/draft-comms/__tests__/saveDraftTool.test.tsno production surface mapped
  • apps/server/src/mastra/tools/event-execution/__tests__/runSubagentTool-drafter.test.tsno production surface mapped
  • apps/server/src/mastra/tools/event-execution/__tests__/runSubagentTool-strategist.test.tsno production surface mapped
  • apps/server/src/mastra/tools/event-execution/__tests__/runSubagentTool-trigger-instructions.test.tsno production surface mapped
  • apps/server/src/mastra/tools/event-execution/runSubagentTool.tsno production surface mapped
  • apps/server/src/mastra/tools/meetings/__tests__/meetingsTool.schema-parity.test.tsno production surface mapped
  • apps/server/src/mastra/tools/notify/__tests__/notifyUserTool.test.tsno production surface mapped
  • apps/server/src/mastra/tools/notify/notifyUserTool.tsno production surface mapped
  • apps/server/src/mastra/utils/__tests__/aop-ping-dryrun.test.tsno production surface mapped
  • apps/server/src/mastra/utils/__tests__/aop-selection.live.test.tsno production surface mapped
  • apps/server/src/mastra/utils/__tests__/approval.test.tsno production surface mapped
  • apps/server/src/mastra/utils/__tests__/model-image-parts.test.tsno production surface mapped
  • apps/server/src/mastra/utils/approval-policy.tsno production surface mapped
  • apps/server/src/mastra/utils/approval.tsno production surface mapped
  • apps/server/src/mastra/workflows/chat/__tests__/apply-overrides.test.tsno production surface mapped
  • apps/server/src/mastra/workflows/chat/harness/__tests__/user-mcp-servers.test.tsno production surface mapped
  • apps/server/src/mastra/workflows/event-execution/on-event-agent-execution-workflow.tsno production surface mapped
  • apps/server/src/routes/__tests__/share-redemption-route.test.tsno production surface mapped
  • apps/server/src/routes/__tests__/shared-board-route.test.tsno production surface mapped
  • apps/server/src/routes/__tests__/shared-route.test.tsno production surface mapped
  • apps/server/src/routes/share.tsno production surface mapped
  • apps/server/src/scripts/__tests__/backfill-slack-messages.rerun.test.tsno production surface mapped
  • apps/server/src/scripts/access-arm-perf.tsno production surface mapped
  • apps/server/src/scripts/access-parity-check.tsno production surface mapped
  • apps/server/src/scripts/explain-access-filter.tsno production surface mapped
  • apps/server/src/services/access/__tests__/agent-reach.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/agent-scoped.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/barrier.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/filter.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/grants.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/harness.tsno production surface mapped
  • apps/server/src/services/access/__tests__/invariants.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/move-carries-grants.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/mutations-enforce.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/no-leak.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/no-model-grants.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/one-predicate.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/paths.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/refusals.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/requests.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/resolve.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/share-link-standing.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/shared-root.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/summary.test.tsno production surface mapped
  • apps/server/src/services/access/__tests__/visibility.test.tsno production surface mapped
  • apps/server/src/services/access/audience.tsno production surface mapped
  • apps/server/src/services/access/filter.tsno production surface mapped
  • apps/server/src/services/access/grants.tsno production surface mapped
  • apps/server/src/services/access/invariants.tsno production surface mapped
  • apps/server/src/services/access/paths.tsno production surface mapped
  • apps/server/src/services/access/principals.tsno production surface mapped
  • apps/server/src/services/access/requests.tsno production surface mapped
  • apps/server/src/services/access/resolve.tsno production surface mapped
  • apps/server/src/services/access/shared-root.tsno production surface mapped
  • apps/server/src/services/access/summary.tsno production surface mapped
  • apps/server/src/services/access/types.tsno production surface mapped
  • apps/server/src/services/access/viewer.tsno production surface mapped
  • apps/server/src/services/access/visibility.tsno production surface mapped
  • apps/server/src/services/agent-workspace/__tests__/agent-folders.test.tsno production surface mapped
  • apps/server/src/services/agent-workspace/__tests__/agent-namespace-org.test.tsno production surface mapped
  • apps/server/src/services/agent-workspace/__tests__/agent-namespaces.test.tsno production surface mapped
  • apps/server/src/services/agent-workspace/__tests__/documents-harness.tsno production surface mapped
  • apps/server/src/services/agent-workspace/__tests__/file-grants-enforcement.test.tsno production surface mapped
  • apps/server/src/services/agent-workspace/__tests__/outputs-scoped.test.tsno production surface mapped
  • apps/server/src/services/agent-workspace/__tests__/outputs.test.tsno production surface mapped
  • apps/server/src/services/agent-workspace/__tests__/source-patch.test.tsno production surface mapped
  • apps/server/src/services/agent-workspace/agent-invocations.tsno production surface mapped
  • apps/server/src/services/agent-workspace/agent-namespaces.tsno production surface mapped
  • apps/server/src/services/agent-workspace/default-file.tsno production surface mapped
  • apps/server/src/services/agent-workspace/outputs.tsno production surface mapped
  • apps/server/src/services/agent-workspace/source-patch.tsno production surface mapped
  • apps/server/src/services/agent-workspace/source-write.tsno production surface mapped
  • apps/server/src/services/agent-workspace/types.tsno production surface mapped
  • apps/server/src/services/agents/__tests__/harness.tsno production surface mapped
  • apps/server/src/services/agents/__tests__/per-user-runs.test.tsno production surface mapped
  • apps/server/src/services/agents/__tests__/setup-actor.test.tsno production surface mapped
  • apps/server/src/services/agents/__tests__/setup.test.tsno production surface mapped
  • apps/server/src/services/agents/__tests__/share-invite.test.tsno production surface mapped
  • apps/server/src/services/agents/setup.tsno production surface mapped
  • apps/server/src/services/agents/share-types.tsno production surface mapped
  • apps/server/src/services/agents/share.tsno production surface mapped
  • apps/server/src/services/aop/__tests__/agent-doc-convention.test.tsno production surface mapped
  • apps/server/src/services/aop/__tests__/ambiguity-ping.test.tsno production surface mapped
  • apps/server/src/services/aop/__tests__/automation-agent.test.tsno production surface mapped
  • apps/server/src/services/aop/__tests__/subagent-frontmatter.test.tsno production surface mapped
  • apps/server/src/services/aop/agent-doc-convention.tsno production surface mapped
  • apps/server/src/services/auth/__tests__/role-reads-confined-to-authority.test.tsno production surface mapped
  • apps/server/src/services/auth/authorize.tsno production surface mapped
  • apps/server/src/services/chat/chat-stream-listen.test.tsno production surface mapped
  • apps/server/src/services/coaching/__tests__/agent-template.test.tsno production surface mapped
  • apps/server/src/services/coaching/agent-template.tsno production surface mapped
  • apps/server/src/services/crm/__test__/channel-message-events.test.tsno production surface mapped
  • apps/server/src/services/crm/__test__/reexecute-slack-source.test.tsno production surface mapped
  • apps/server/src/services/crm/__tests__/deal-timeline.test.tsno production surface mapped
  • apps/server/src/services/crm/__tests__/meeting-calendar-backstop.test.tsno production surface mapped
  • apps/server/src/services/crm/conversation-members.tsno production surface mapped
  • apps/server/src/services/document-history/__tests__/restore.test.tsno production surface mapped
  • apps/server/src/services/document-history/__tests__/snapshot.test.tsno production surface mapped
  • apps/server/src/services/document-saving/__tests__/board-stats.test.tsno production surface mapped
  • apps/server/src/services/document-saving/__tests__/playbook-trigger-ref-roundtrip.test.tsno production surface mapped
  • apps/server/src/services/document-saving/__tests__/table-stats.test.tsno production surface mapped
  • apps/server/src/services/document-saving/hooks/__tests__/agenda-integrity.test.tsno production surface mapped
  • apps/server/src/services/document-saving/parse-playbook-xml.tsno production surface mapped
  • apps/server/src/services/document-saving/serialize-playbook-xml.tsno production surface mapped
  • apps/server/src/services/documents/__tests__/conversation-repoint-chat.test.tsno production surface mapped
  • apps/server/src/services/documents/__tests__/conversation-repoint.test.tsno production surface mapped
  • apps/server/src/services/documents/__tests__/share-links.test.tsno production surface mapped
  • apps/server/src/services/documents/__tests__/share-views.test.tsno production surface mapped
  • apps/server/src/services/documents/convention-paths.tsno production surface mapped
  • apps/server/src/services/documents/get-doc.tsno production surface mapped
  • apps/server/src/services/documents/index.tsno production surface mapped
  • apps/server/src/services/documents/share-links.tsno production surface mapped
  • apps/server/src/services/documents/share-tracker.tsno production surface mapped
  • apps/server/src/services/documents/share-views.tsno production surface mapped
  • apps/server/src/services/documents/triggers/__tests__/table-triggers.test.tsno production surface mapped
  • apps/server/src/services/documents/triggers/trigger-types.tsno production surface mapped
  • apps/server/src/services/drafting/__tests__/create-draft-cross-mailbox-recovery.test.tsno production surface mapped
  • apps/server/src/services/drafting/__tests__/create-draft-rewrite-in-place.test.tsno production surface mapped
  • apps/server/src/services/drafting/__tests__/create-draft-thread-recovery.test.tsno production surface mapped
  • apps/server/src/services/drafting/__tests__/create-draft-unowned-thread.test.tsno production surface mapped
  • apps/server/src/services/drafting/__tests__/sweep-sibling-drafts.test.tsno production surface mapped
  • apps/server/src/services/drafting/__tests__/thread-id-rejection.test.tsno production surface mapped
  • apps/server/src/services/file-system/__tests__/listChildren-pending-visibility.test.tsno production surface mapped
  • apps/server/src/services/file-system/__tests__/renameNode-keeps-parent.test.tsno production surface mapped
  • apps/server/src/services/file-system/index.tsno production surface mapped
  • apps/server/src/services/integrations/__tests__/mcp-connection-external-id.test.tsno production surface mapped
  • apps/server/src/services/integrations/credentials/__tests__/refresh.test.tsno production surface mapped
  • apps/server/src/services/integrations/credentials/__tests__/response-body-disclosure.test.tsno production surface mapped
  • apps/server/src/services/integrations/mcp/__tests__/manage-mcp-connections.test.tsno production surface mapped
  • apps/server/src/services/integrations/meetings/__tests__/caretta-webhook.test.tsno production surface mapped
  • apps/server/src/services/integrations/slack/__tests__/slack-attachment-urls.test.tsno production surface mapped
  • apps/server/src/services/mail/inboxes/__tests__/inbox-definitions.test.tsno production surface mapped
  • apps/server/src/services/mail/send/__tests__/sync-direction.test.tsno production surface mapped
  • apps/server/src/services/mail/send/inbound-message.tsno production surface mapped
  • apps/server/src/services/meetings/__tests__/triage-notes.test.tsno production surface mapped
  • apps/server/src/services/notifications/deliver-to-user.tsno production surface mapped
  • apps/server/src/services/playbook/__tests__/before-meeting-legacy-meeting-prep-recovery.test.tsno production surface mapped
  • apps/server/src/services/playbook/__tests__/compile-playbook.test.tsno production surface mapped
  • apps/server/src/services/playbook/__tests__/delete-document-guarded.test.tsno production surface mapped
  • apps/server/src/services/playbook/__tests__/direct-fire-participant-guard.test.tsno production surface mapped
  • apps/server/src/services/playbook/__tests__/drafter-review-dispatch.test.tsno production surface mapped
  • apps/server/src/services/playbook/__tests__/guarded-write.test.tsno production surface mapped
  • apps/server/src/services/playbook/__tests__/org-cron-representative.test.tsno production surface mapped
  • apps/server/src/services/playbook/__tests__/per-ref-trigger-instructions.test.tsno production surface mapped
  • apps/server/src/services/playbook/__tests__/playbook-renderers.test.tsno production surface mapped
  • apps/server/src/services/playbook/__tests__/test-run-subagent.test.tsno production surface mapped
  • apps/server/src/services/playbook/agent-defaults/coach-weekly.tsno production surface mapped
  • apps/server/src/services/playbook/backfill/__tests__/stage4-plan.test.tsno production surface mapped
  • apps/server/src/services/playbook/compile-playbook.tsno production surface mapped
  • apps/server/src/services/playbook/compiled-playbook-types.tsno production surface mapped
  • apps/server/src/services/playbook/manifest-utils.tsno production surface mapped
  • apps/server/src/services/playbook/playbook-execution-triggers.tsno production surface mapped
  • apps/server/src/services/playbook/playbook-renderers.tsno production surface mapped
  • apps/server/src/services/playbook/reference-resolver.tsno production surface mapped
  • apps/server/src/services/playbook/resolve-playbook-context.tsno production surface mapped
  • apps/server/src/services/playbook/write-document-guarded.tsno production surface mapped
  • apps/server/src/services/task-groups/__tests__/manage-task-groups.test.tsno production surface mapped
  • apps/server/src/subagent-admin/cli.tsno production surface mapped
  • apps/server/src/trpc/__tests__/view-as.test.tsno production surface mapped
  • apps/server/src/trpc/index.tsno production surface mapped
  • apps/server/src/trpc/routes/__tests__/admin-boards.test.tsno production surface mapped
  • apps/server/src/trpc/routes/__tests__/admin-notifications-update-settings.test.tsno production surface mapped
  • apps/server/src/trpc/routes/__tests__/agent-router-auth.test.tsno production surface mapped
  • apps/server/src/trpc/routes/__tests__/agent-router-org-admin.test.tsno production surface mapped
  • apps/server/src/trpc/routes/__tests__/agent-scoped-reads.test.tsno production surface mapped
  • apps/server/src/trpc/routes/__tests__/chat-agent-binding.test.tsno production surface mapped
  • apps/server/src/trpc/routes/__tests__/files-router-permission-request.test.tsno production surface mapped
  • apps/server/src/trpc/routes/__tests__/update-html-content.test.tsno production surface mapped
  • apps/server/src/trpc/routes/admin-subagent.tsno production surface mapped
  • apps/server/src/trpc/routes/agent-sharing.tsno production surface mapped
  • apps/server/src/trpc/routes/agent.tsno production surface mapped
  • apps/server/src/trpc/routes/aop-agents.tsno production surface mapped
  • apps/server/src/trpc/routes/documents.tsno production surface mapped
  • apps/server/src/trpc/routes/files.tsno production surface mapped
  • apps/server/src/trpc/routes/kb.tsno production surface mapped
  • apps/server/src/trpc/routes/wiki.tsno production surface mapped
  • apps/server/src/trpc/trpc.tsno production surface mapped
  • apps/server/src/trpc/view-as-input.tsno production surface mapped