Skip to content

docs(env): document OUTREACH_AUTO_SEQUENCE safety switch#35

Open
Dukotah wants to merge 1 commit into
mainfrom
safety/document-auto-sequence-env
Open

docs(env): document OUTREACH_AUTO_SEQUENCE safety switch#35
Dukotah wants to merge 1 commit into
mainfrom
safety/document-auto-sequence-env

Conversation

@Dukotah

@Dukotah Dukotah commented Jun 25, 2026

Copy link
Copy Markdown
Owner

What

Adds an OUTREACH_AUTO_SEQUENCE entry to .env.example, defaulted to false, with a warning.

Why

While auditing the lead pipeline's email-safety, I found the daily cron GET /api/crm/cron/tick (scheduled in vercel.json) can automatically send up to 3 follow-up emails per lead with no human in the loop — but only when OUTREACH_AUTO_SEQUENCE="true".

That switch is the single control governing autonomous email, yet it was undocumented in .env.example (the cron secret was documented, but not the flag that decides whether the cron sends). Default behavior is safe (human-only) because the flag is unset, but an undocumented "panic switch" is easy to flip by accident.

This makes the control discoverable and explicitly defaults it off.

Scope

Documentation only — no code or behavior change. Verified OUTREACH_AUTO_SEQUENCE is referenced only in src/app/api/crm/cron/tick/route.ts and set nowhere in the repo.

🤖 Generated with Claude Code

The daily cron at /api/crm/cron/tick can automatically send up to 3 follow-up
emails per lead, but ONLY when OUTREACH_AUTO_SEQUENCE="true". That switch was
undocumented in .env.example — the cron secret was documented, but not the flag
that actually governs autonomous sending. This adds the entry, defaulted to
false, with a clear warning that enabling it makes outreach non-human.

Documentation only. No code or behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
duke Ready Ready Preview, Comment Jun 25, 2026 5:59pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant