Sunday email nudge, touched dreams, deeper questions, turn history - #21
Merged
Merged
Conversation
Four gaps closed around the weekly log loop: - Sunday pull: opt-in nudge email via Cloudflare Email Sending, sent by a cron on the owner's *local* Sunday; a written week is never nudged. - Reconciliation: entries now show which held dreams the week touched — plain keyword matching, no fake dream state written. - Question depth: bank grown to 50 and Workers AI generates a question when a classifier-picked family is exhausted — context stays categorical, user prose never leaves. - Turns persist: interview Q&A is stored on the entry (turnsJson + local record) so Weeks on record keeps the prompts that produced it. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the four gaps between the weekly log and "a life you want to live":
users.weeklyEmailOptIntoggle on the log flips on a quiet Sunday email — Cloudflare Email Sending (EMAILbinding) fired by a cron (0 22 * * 6+0 14 * * *). The handler emails only owners whose local day is Sunday and whose current week has no entry — a written week is never nudged. Copy is no-streak, no-guilt by contract.detectDreamTouchesmatches entry prose to dream titles/categories on-device-read-only; the log now shows "This week touched" chips and removes touched dreams from "Still calling?". No fake state written.WeeklyLogEntry.turnsJson(+ local record), so Weeks on record renders the prompts alongside answers.0006(additive:weeklyEmailOptIn,turnsJson) — apply remote before deploy.Test plan
pnpm quality— all gates greendetectDreamTouches, turn-aware contextwrangler deploy --dry-run—env.EMAIL (unrestricted) Send Emailbinding resolves--test-scheduledpnpm db:migrate:remotefor 0006Generated with Devin