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 update adds the Cedar (fast) chat-runtime choice, consolidated family tools, shared context across chat channels, action-level MCP authorization, and idempotent Slack turn persistence.
One issue remains: the Cedar (fast) family facade for chat context drops fields returned by the underlying operation, so callers cannot consume the full successful result.
The following behaviors were exercised and disproved as defects: Slack normal-turn persistence uses stable IDs and updates delivery metadata without inserting duplicate history; organization viewers selecting Cedar (fast) remain on the protected SDK route with rollout controls both enabled and disabled; and external MCP callers with only docs:read are denied playbook writes, daily-agenda writes, and credential retrieval.
Do not merge until the chat-context family facade preserves the complete delegated operation result for Cedar (fast) users.
The remaining functional failure was reproduced through the production Cedar (fast) routing and family-tool execution path. Focused checks also exercised Slack persistence, viewer routing, and external MCP authorization successfully.
Files Needing Attention: apps/server/src/mastra/tools/chat/chatContextTool.ts needs an output contract that preserves the complete manage-context and resolve-and-attach results.
What T-Rex did
General comment
cedar-fast family chat-context invocation truncates successful delegate payload
chat-context(action="manage"), but its successful nested result drops usable delegate fields. The executed repro delegate returned message, echoedInput, and contextWasForwarded; the facade result retained only message.chatContextTool declares its nested output as z.record(z.unknown()) (apps/server/src/mastra/tools/chat/chatContextTool.ts:41-48) and returns a nested result through `delegLibra has not measured any production surfaces for this change yet.