## Summary
Implements [AERIE-2851: Ship the approved grouped daily Task digest design](https://linear.app/builder-team/issue/AERIE-2851/ship-the-approved-grouped-daily-task-digest-design). The daily email uses the approved dark design, five sections, accurate counts, readable participant roles and links to Tasks and filtered My Tasks lists.
Production effect: dormant/additive. The digest remains disabled unless AERIE_TASK_SCENARIO_DIGEST_ENABLED=true is explicitly set. Merging this PR does not send emails or change immediate Task notifications.
## Why
The previous digest was a flat list of the first 100 Tasks. It could miss urgent work further down the list and did not use the approved email design. This change prepares the digest for a separately authorized launch.
## Business Value
- Groups work into Overdue, Waiting for your approval, Due in the next 7 days, Later or no due date, and Requested by you.
- Shows up to five Tasks per section and 25 total, without duplicating Tasks across sections.
- Shows accurate totals across the recipient's full relevant list, including Tasks beyond the old 100-Task cap.
- Links directly to each Task and the corresponding filtered My Tasks view.
## How does it work
1. getForUserPage reads the recipient's indexed participant relationships in bounded pages and uses compact current taskPortfolioRows, not large Task bodies or a global Task scan.
2. Each Task is counted once. Requester-only work appears in the last section; all applicable relationships are displayed on the card.
3. buildDigest combines counts and retains only the earliest five Tasks per section, with undated Tasks last and stable Task-ID ties.
4. The renderer escapes user content and uses existing Task routes and My Tasks filters. Header counts can overlap; Task cards do not.
5. The separately merged scheduling fix from #1847 is preserved: late starts are allowed after 07:30 New York time, deliveries are deduplicated by date and recipient, and continuation pages retain the original date. The delivery switch remains unchanged and off by default.
## Scope
### Included in this phase
- Approved digest presentation, grouping, bounded selection, counts and focused regression coverage.
- Conflict resolution preserves both the grouped-email tests and the scheduling tests already on main. The continuation fixture now builds its portfolio projection through the existing reconciliation helper.
- Exact final diff paths:
chat/convex/lib/taskDigestSummary.tschat/convex/lib/taskScenarioEmail.test.ts
chat/convex/lib/taskScenarioEmail.ts
chat/convex/taskBoard/digest.test.ts
chat/convex/taskBoard/digest.ts
docs/task-board/FEATURE.md
### Deliberately excluded for later phases
- Production delivery enablement and deployment. These remain separate launch operations.
- Changes to immediate notifications, other email templates, UI, public APIs, MCP, DSS, permissions or schema.
- Migrations, backfills and external catalog writeback.
## Test plan
### Automated validation
- Focused digest and renderer tests: 12/12 passed. pnpm --dir chat exec vitest run convex/taskBoard/digest.test.ts convex/lib/taskScenarioEmail.test.ts --maxWorkers=1.
- Coverage includes full-list counts and urgent Tasks beyond 100, cross-page deduplication, requester-only inclusion, five-per-section / 25-total limits, escaping and links, no empty email, disabled delivery, delayed daylight/standard-time starts, delivery deduplication and continuation across midnight.
- Changed-file Biome check: passed.
- Architecture boundaries, Convex paths, Convex read bounds and test-runtime architecture: passed.
- My Tasks view tests: 11/11 passed, covering filtered URLs and direct Task links. pnpm --dir chat exec vitest run components/task-board/my-tasks-view.test.tsx --maxWorkers=1.
- Normal commit hooks passed: app typecheck, sync typecheck, Convex paths and staged-file Biome.
- git diff --check: passed.
- All eight hosted CI checks passed on updated head 46057c8530ab0c8a3747240e32eaf35f029e29dd: tests, typecheck (including Convex), lint/boundaries, both app/worker builds, both Docker builds and secret scanning. [CI run](https://github.com/AI-Builder-Team/Aerie/actions/runs/40334438021).
- [Mercy approved this exact head](https://github.com/AI-Builder-Team/Aerie/pull/1849#pullrequestreview-5653211816) with no findings. All nine checks, including the review workflow, are green.
### Time for Implementation
Approximately two engineer days without AI assistance for aggregation, email authoring, tests, review and release preparation.