28 files changed
Libra does not show diffs here. View the full diff on GitHub.
- modifiedapps/server/src/db/aop-schema.ts+5-0
- addedapps/server/src/db/migrations/scripts/rollout-core-field-ownership.ts+153-0
- addedapps/server/src/mastra/routeHandlers/event-execution/__tests__/handleExecuteFromClientSend-crm-updater-agentid.test.ts+179-0
- modifiedapps/server/src/mastra/routeHandlers/event-execution/__tests__/handleExecuteFromClientSend-draft-closure.test.ts+3-1
- modifiedapps/server/src/mastra/routeHandlers/event-execution/__tests__/handleExecuteFromClientSend-live-next-steps.test.ts+3-1
- modifiedapps/server/src/mastra/routeHandlers/event-execution/handleExecuteFromClientSend.ts+40-1
- modifiedapps/server/src/mastra/tools/conversation/updateConversationFieldsTool.ts+4-3
- modifiedapps/server/src/mastra/tools/event-execution/__tests__/runSubagentTool-drafter.test.ts+16-12
- addedapps/server/src/mastra/tools/event-execution/__tests__/runSubagentTool-strategist.test.ts+201-0
- modifiedapps/server/src/mastra/tools/event-execution/orchestrator-dispatch-tools.ts+7-0
- modifiedapps/server/src/mastra/tools/event-execution/runSubagentTool.ts+30-0
- modifiedapps/server/src/mastra/tools/subagent-tool-allowlists.ts+48-1
- modifiedapps/server/src/mastra/tools/task/updateNextStepsAndTasksTool.ts+21-1
- addedapps/server/src/mastra/utils/__tests__/strategist-updates-tier1-guard.test.ts+300-0
- modifiedapps/server/src/mastra/utils/conversation-field-updates.ts+21-1
- addedapps/server/src/mastra/utils/strategist-updates.ts+498-0
- modifiedapps/server/src/mastra/workflows/event-execution/pre-execution-setup.ts+11-0
- modifiedapps/server/src/services/aop/__tests__/field-ownership.test.ts+34-3
- addedapps/server/src/services/aop/core-field-ownership.ts+94-0
- modifiedapps/server/src/services/aop/field-ownership.ts+36-15
- modifiedapps/server/src/services/aop/types.ts+4-0
- modifiedapps/server/src/services/playbook/__tests__/seed-playbook.test.ts+4-0
- addedapps/server/src/services/playbook/__tests__/strategist-relevance-gate-migration.test.ts+120-0
- modifiedapps/server/src/services/playbook/agent-defaults/index.ts+5-1
- modifiedapps/server/src/services/playbook/agent-defaults/strategist.ts+19-0
- addedapps/server/src/services/playbook/backfill/strategist-relevance-gate-migration.ts+295-0
- modifiedapps/server/src/services/playbook/playbook-renderers.ts+7-0
- modifiedapps/server/src/services/playbook/seed-playbook.ts+28-0