Skip to content

feat: /replan Ask-Claude holistic re-plan + Mark done#27

Merged
illinigirl merged 1 commit into
mainfrom
feat/replan-ask-claude
Jul 3, 2026
Merged

feat: /replan Ask-Claude holistic re-plan + Mark done#27
illinigirl merged 1 commit into
mainfrom
feat/replan-ask-claude

Conversation

@illinigirl

Copy link
Copy Markdown
Owner

Tap-only, family-gated, daily-capped Sonnet call that re-sequences the remaining plan (order + drops), applied via an atomic plan_order list. Plus a one-tap Mark done (atomic completed_ride_ids). Needs the Anthropic key pasted into SSM /magicmonitor/anthropic-api-key.

🤖 Generated with Claude Code

Brings the Claude-app "reevaluate my plan" experience onto /replan, plus
a one-tap Mark done — so the whole loop works without the Claude app.

- Ask Claude: a tap-only, family-gated, daily-capped (20/user) server
  action calls Sonnet with the remaining rides' current + predicted waits,
  held LLs (told to IGNORE standby for LL'd rides), and weather. Returns a
  re-SEQUENCED plan (order + drops + short reasons) or "no changes." Apply
  writes an atomic plan_order list (never touches ride_sequence) + drops;
  web + MCP reads present rides in that order.
- Mark done: atomic completed_ride_ids set (mirrors dropped) — poller stops
  watching it, page shows "Done ✓", MCP drops it from the remaining
  sequence. (Claude's mark_ride_complete stays the calibration path.)
- Infra: Anthropic key as an SSM SecureString (name in env, value never in
  repo) + a tight one-parameter GetParameter grant on the Amplify compute
  role. Rate-limit counter is a TTL'd USER# row.

Cost posture: tap-only + family gate + 20/day cap → pennies/day at Sonnet.

Tests: plan_order honored (MCP), setPlanOrder + rate-counter write shapes.
web 46 / MCP 222 / poller 116 green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@illinigirl illinigirl merged commit b26cd2f into main Jul 3, 2026
5 checks passed
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