Libra CodeHub

CedarCopilot/cedar-mail

Branch: staging

[09-14-2026] merging staging to main

merged#2780CedarCopilot

CedarCopilot wants to merge 1 commit into main from staging

Not deployedTimeline and evidence
  1. Opened
    Sep 14, 2026, 5:52 AM
  2. Sep 14, 2026, 5:59 AM
  3. Merged
    Sep 14, 2026, 6:11 AM
  4. Live on staging, live on prod, observed
    Pending
  5. Not deployed

    Not deployed

    Pending

Libra has no production signal for this change yet because it has not deployed. Libra checks hourly for 3 days after each deploy.

Greptile Summary

This change expands agent history, integration configuration, organization-wide Slack defaults, and meeting/event behavior. It also introduces blocking defects: members can disconnect integrations owned by teammates, resolving a channel proposal can relink containers from multiple provider accounts, and concurrent organization-settings writes can erase each other. Two non-blocking presentation defects can misrepresent failed history requests and partial Slack-policy inheritance.

Confidence Score: 0/5

Not safe to merge until integration ownership, channel-container targeting, and concurrent organization-settings writes are corrected. The history and Slack provenance issues are non-blocking but should also be addressed.

Focused checks reproduced three independent failures with concrete unauthorized mutation, incorrect multi-container relinking, and persisted lost-update outcomes. A security-impacting failure is also confirmed.

Files Needing Attention: apps/server/src/mastra/skills/account-config/tools/apply-connection-extras-change.ts, apps/server/src/services/channels/containers.ts, apps/server/src/services/integrations/connection-config.ts, apps/server/src/trpc/routes/org-admin.ts, apps/mail/modules/agents/components/AgentView.tsx, and apps/server/src/services/integrations/slack/slack-config-resolution.ts

Security Review

An organization member can disconnect another member’s LinkedIn or WhatsApp integration by using an organization-visible provider account ID. The new disconnect actions verify only that the account belongs to the same organization, not that it belongs to the authorized member; WhatsApp disconnection also removes the affected line’s tracked contacts and chats.

T-Rex T-Rex Logs

What T-Rex did

  • T-Rex posted a P1 finding proof and attached the Integration ownership test artifact to verify ownership handling and the disconnect flow.
  • T-Rex exercised and documented a P2 scenario with the Agent history failure UI test, including the UI failure test source and the failure output.
  • T-Rex validated a P1 duplicate account reference repro, citing the before/after capture logs and pointing to the code changes in apply-connection-extras-change.ts and containers.ts.
  • T-Rex ran the focused P2 concurrency tests, confirming outcomes after capture and including the test source.
  • T-Rex validated a P2 Slack configuration path, noting how read-connection-settings exposes the merged Slack sync config, supported by the test source and multiple logs.

View all artifacts

T-Rex Ran code and verified through T-Rex

Comments Outside Diff (4)

  1. apps/mail/modules/agents/components/AgentView.tsx, line 322-332 (link)

    P2 **Show Run History Failures

Show production surfaces and changed-file mapping

Production surfaces

Libra has not measured any production surfaces for this change yet.

Changed files → surfaces

  • apps/mail/app/(routes)/brain/playbooks/page.tsxno production surface mapped
  • apps/mail/modules/agents/__tests__/AgentRunsTab.test.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentRunsTab.tsxno production surface mapped
  • apps/mail/modules/agents/components/AgentView.tsxno production surface mapped
  • apps/mail/modules/documents/playbook/CompositePlaybookDocument.tsxno production surface mapped
  • apps/mail/modules/documents/playbook/PlaybookDocument.tsxno production surface mapped
  • apps/mail/modules/documents/playbook/useSubagentCreation.tsxno production surface mapped
  • apps/server/.claude/skills/cedar-configuration/SKILL.mdno production surface mapped
  • apps/server/.claude/skills/cedar-configuration/cedar-system-knowledge.mdno production surface mapped
  • apps/server/.claude/skills/cedar-configuration/external-writes.mdno production surface mapped
  • apps/server/.claude/skills/conversation/SKILL.mdno production surface mapped
  • apps/server/.claude/skills/playbook-instruction-eval/fixtures/on-event-orchestrator-instructions.mdno production surface mapped
  • apps/server/.claude/skills/playbook-instruction-eval/parallel-dispatch-eval.tsno production surface mapped
  • apps/server/src/db/schema.tsno production surface mapped
  • apps/server/src/lib/cedar-routes.tsno production surface mapped
  • apps/server/src/mastra/agents/on-event-orchestrator-agent.tsno production surface mapped
  • apps/server/src/mastra/operations/__tests__/operation-registry.test.tsno production surface mapped
  • apps/server/src/mastra/operations/operation-registry.tsno production surface mapped
  • apps/server/src/mastra/routeHandlers/slack/slack-interactions.tsno production surface mapped
  • apps/server/src/mastra/skills/account-config/tools/__tests__/applyConfigChangeTool.connectionExtras.test.tsno production surface mapped
  • apps/server/src/mastra/skills/account-config/tools/apply-connection-extras-change.tsno production surface mapped
  • apps/server/src/mastra/skills/account-config/tools/applyConfigChangeTool.tsno production surface mapped
  • apps/server/src/mastra/skills/account-config/tools/readConnectionSettingsTool.tsno production surface mapped
  • apps/server/src/mastra/tools/config/connection-write-tool.tsno production surface mapped
  • apps/server/src/mastra/tools/config/workspace-write-tool.tsno production surface mapped
  • apps/server/src/mastra/tools/document/__tests__/writeDocumentTool.test.tsno production surface mapped
  • apps/server/src/mastra/tools/document/writeDocumentTool.tsno production surface mapped
  • apps/server/src/mastra/workflows/event-execution/pre-execution-setup.tsno production surface mapped
  • apps/server/src/services/aop/__tests__/no-op-meeting-reclassification.test.tsno production surface mapped
  • apps/server/src/services/aop/no-op-meeting-reclassification.tsno production surface mapped
  • apps/server/src/services/auth/authorize.tsno production surface mapped
  • apps/server/src/services/crm/__tests__/ambiguous-aop-meeting-prep-floor.test.tsno production surface mapped
  • apps/server/src/services/crm/before-meeting-prep-floor.tsno production surface mapped
  • apps/server/src/services/crm/calendar-events.tsno production surface mapped
  • apps/server/src/services/crm/integrity-heal.tsno production surface mapped
  • apps/server/src/services/integrations/connection-config.tsno production surface mapped
  • apps/server/src/services/integrations/slack/__tests__/slack-config-resolution.test.tsno production surface mapped
  • apps/server/src/services/integrations/slack/__tests__/slack-events-webhook.parseSlackConfig.test.tsno production surface mapped
  • apps/server/src/services/integrations/slack/link-matching-channels.tsno production surface mapped
  • apps/server/src/services/integrations/slack/slack-config-resolution.tsno production surface mapped
  • apps/server/src/services/integrations/slack/slack-events-webhook.tsno production surface mapped
  • apps/server/src/services/meetings/prep-status.tsno production surface mapped
  • apps/server/src/services/users/user-settings.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__/chat-router-org-admin.test.tsno production surface mapped
  • apps/server/src/trpc/routes/__tests__/org-admin-settings-merge.test.tsno production surface mapped
  • apps/server/src/trpc/routes/agent.tsno production surface mapped
  • apps/server/src/trpc/routes/chat.tsno production surface mapped
  • apps/server/src/trpc/routes/org-admin.tsno production surface mapped
  • docs/changelogs/2026-W38.mdno production surface mapped
  • docs/design/mcp-connection-settings-checklist.mdno production surface mapped
  • docs/design/no-op-aop-meeting-reclassification.mdno production surface mapped