CedarCopilot wants to merge 0 commits into staging from feat/pipeline-review-default-forecast-sync-scope
Live on prod, no production signal yet
The deployed pipeline-review prompt contains the exact closed-won query, including CRM close_date and closed_value/deals fields. Production logs since 2026-08-15 show many run-sql tool-call records, but no telemetry/log record containing closed_value, "Closed this period", or.
OTEL fallback found no prod spans matching pipeline-review playbook / reconcile-deals-with-provider since deploy.
OTEL fallback found no prod spans matching pipeline-review playbook / run-code-executor since deploy.
OTEL fallback found no prod spans matching pipeline-review playbook / connection fieldMappings since deploy.
OTEL fallback found no prod spans matching pipeline-review delivery / deep-dive prep since deploy.
OTEL fallback found no prod spans matching pipeline-review playbook / forecast rollup since deploy.
Libra has verdicts on 0 of 9 tracked behaviors on prod; 9 are still being checked. Libra checks hourly for 3 days after each deploy.
Generalizes four wins from Willem / Listen Labs' pipeline-review agent into the default pipeline-review template (apps/server/src/services/playbook/agent-defaults/pipeline-review.ts). New customers inherit these; existing agents are unchanged until re-authored.
Building Willem's agent surfaced gaps the default silently mishandled , most importantly, it assumed everything is in Cedar after reconcile, which is false when a connection filters which deal types sync.
MARK_SYNC_SCOPE (the big one) , handle connections with a dealSyncFilter (e.g. Willem syncs only Contract_Type__c=Subscription). Numbers/checks about un-synced object types (pilots) must query the CRM directly (SOQL via run-code-executor), not run-sql. Includes the exact REST recipe.MARK_FORECAST_SUMMARY , lead with the number the rep actually calls: closed / the call (counting-categories + closed) / weighted (probability-weighted). Adds closed-won-this-period; makes the per-stage breakdown opt-out.MARK_FORECAST strengthened , prefer the org's custom forecast field over the CRM built-in (often stale); show non-forecasted categories (Nurture/uncategorized) on a separate line, excluded from the headline.MARK_ANOMALIES , cross-object integrity checks (pilot↔subscription pairing); note these usually need the direct-CRM query.MARK_VOICE , voice register scoped to the deep-dive (copy-paste prep that should read hand-written) vs the audit ping (stays clean/readable).All 10 agent-defaults/__tests__ marker-strip tests pass (pnpm --filter @zero/server exec vitest run src/services/playbook/agent-defaults/__tests__/).
🤖 Generated with Claude Code
The PR expands the default pipeline-review authoring template with CRM sync-scope handling, closed and weighted forecast guidance, cross-object checks, structured-date grounding, and separate deep-dive voice customization. It also adds an Understudy Labs account setup plan and customer-facing proposal.
The PR appears safe to merge, with a non-blocking template inconsistency that should be resolved so authored weighted forecasts reliably exclude non-forecasted categories.
The new forecast markers require category-specific exclusion and weighting, while the pinned SQL combines all non-high-confidence categories into one bucket and therefore cannot deterministically satisfy those instructions.
Files Needing Attention: apps/server/src/services/playbook/agent-defaults/pipeline-review.ts
| Filename | Overview |
|---|---|
| apps/server/src/services/playbook/agent-defaults/pipeline-review.ts | Expands pipeline-review guidance substantially, but the new excluded-category and weighted-summary requirements conflict with the existing mandatory collapsed rollup query. |
| docs/account-setup/understudylabs-com-2026-08-15.md | Adds a detailed pre-execution account setup plan covering CRM stages, fields, agents, integrations, and approval gates. |
| docs/account-setup/understudylabs-com-proposal.md | Adds the customer-facing Understudy Labs setup proposal corresponding to the internal implementation plan. |
Libra has not measured any production surfaces for this change yet.