Skip to content

Control-Tower home widget + medication-refill autopilot signal - #137

Merged
NewWorldVenture merged 1 commit into
mainfrom
claude/festive-bohr-m4cbeg
Jun 24, 2026
Merged

NewWorldVenture merged 1 commit into
mainfrom
claude/festive-bohr-m4cbeg

Conversation

@NewWorldVenture

Copy link
Copy Markdown
Owner

Gen-2 roadmap — Control-Tower-as-Home + Medication refills

Two items, both Supabase-wired and production-ready.

#2 — Control Tower as Home (non-destructive)

The default /dashboard AI home now shows a Family Autopilot card near the top:

  • Today's success %, # handled, # to review, and the top 3 open suggestions.
  • Links to the full /dashboard/autopilot surface; reads autopilot_suggestions directly and uses the engine's successProbability().
  • Only renders when there's something to show — the existing AI home is otherwise untouched.

#1 — Medication refills (the vision's "who has medication")

  • 0086_medication_refills.sql — nullable refill_on + refill_reminder_days (default 7) on medications (+ partial index). Purely additive. ⚠️ apply 0085 and 0086 to prod.
  • medicationSuggestions() — refill due within its lead time (or ≤3 days overdue). Due ≤2 days → confidence 92 (auto-tier) so the autopilot creates the (reversible) refill reminder automatically; otherwise 80 (approve). kind: medication, Pill icon.
  • scan.ts reads active meds with a refill date into the snapshot.

Verification

  • tsc clean · next lint clean · npm run build ✓
  • Full suite 883/883 (2 new).

The autopilot now predicts 9 signal types. Remaining roadmap (Digital Twin/Memory feeding confidence, agent network, more signals) documented in AGENT_HANDOFF.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Mz4QW1Ti45CpqKabFHYmPb


Generated by Claude Code

Two roadmap items:

#2 Control Tower as Home: the default AI dashboard now shows a Family Autopilot
card (success %, # handled, # to review, top suggestions) linking to the full
surface. Additive — the AI home is otherwise unchanged.

#1 Medication refills:
- 0086_medication_refills.sql: nullable refill_on + refill_reminder_days on medications
- medicationSuggestions(): refill due within lead time (or just overdue); due <=2d is
  auto-tier (reversible reminder) at conf 92, else 80; kind medication
- scan.ts reads active meds with a refill date; Pill icon in the Control Tower

Autopilot now predicts 9 signal types. Full suite 883/883; tsc/lint/build clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mz4QW1Ti45CpqKabFHYmPb
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
familyos Building Building Preview, Comment Jun 24, 2026 7:01pm

Request Review

@NewWorldVenture
NewWorldVenture marked this pull request as ready for review June 24, 2026 19:01
@NewWorldVenture
NewWorldVenture merged commit 7a19600 into main Jun 24, 2026
3 of 4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 2419015f Deployed Jun 24, 2026 by vercel[bot]
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.

2 participants