CedarCopilot wants to merge 0 commits into staging from account-setup/understudy-luis
Live on prod, no production signal yet
OTEL fallback found no prod spans matching inbound-email-notifier email trigger since deploy.
OTEL fallback found no prod spans matching inbound-email-notifier email trigger since deploy.
Libra has verdicts on 0 of 2 tracked behaviors on prod; 2 are still being checked. Libra checks hourly for 3 days after each deploy.
Pre-execution setup plan for Luis Manrique @ Understudy Labs, built from the Aug 14 onboarding transcript (pulled from Isabelle's Cedar conversation) + HubSpot `account_context`.
Awaiting approval , no DB writes have run. Two files:
Review/edit either file directly. Reply approve / y to run phases in order, or skip [phase] to defer.
š¤ Generated with Claude Code
This PR adds an opt-in inbound-response drafting template and expands account-setup guidance for response drafting and customer-facing proposal artifacts. The drafting variant is not wired into setup or backfill, and several of its runtime instructions do not match the available drafting API.
The PR should not merge until opted-in accounts actually receive the drafting notifier and that notifier uses executable drafting APIs.
The new behavior is unreachable through both production seeding paths, and its prompt requires unsupported parameters and draft-management operations when invoked.
Files Needing Attention: apps/server/src/services/playbook/templates/inbound-email-notifier.ts, apps/server/src/services/playbook/seed-playbook.ts, apps/server/src/services/playbook/backfill/email-wiki-backfill.ts
| Filename | Overview |
|---|---|
| apps/server/src/services/playbook/templates/inbound-email-notifier.ts | Adds the inbound drafting variant, but leaves it unreachable from current callers and instructs it to use unsupported drafting operations. |
| apps/server/src/db/migrations/scripts/account-setup/phase2c-seed-playbook.ts | Documents the manual opt-in edit but does not connect that opt-in to selection of the draft-capable notifier. |
| .claude/skills/account-setup-from-transcript/SKILL.md | Expands account setup with response-drafting and proposal-artifact guidance; its promised drafting behavior depends on the currently incomplete notifier integration. |
### Issue 1
apps/server/src/services/playbook/templates/inbound-email-notifier.ts:163-176
**Drafting notifier remains unreachable**
When an account opts into inbound-response drafting, both playbook seeding paths still call `buildInboundEmailNotifierSeedInput` without `drafting: true`, so they install the notify-only handler and the user receives Slack prompts instead of the enabled reply drafts.
### Issue 2
apps/server/src/services/playbook/templates/inbound-email-notifier.ts:125-133
**Drafting prompt uses unsupported API**
When the drafting notifier handles a reply-worthy email, it requests the removed `drafting/email` resource, passes the unsupported `taskType` parameter to `draft-email`, and requires unavailable read-back and discard operations, so the agent cannot reliably create and validate the promised Response draft.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Reviews (1): Last reviewed commit: "feat(account-setup): durable skill + see..." | Re-trigger Greptile
Greptile also left 2 inline comments on this PR.
Libra has not measured any production surfaces for this change yet.