mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-19 05:24:20 +01:00
Contract for the phone "send to Claude" button, written before any code: docs/DOCS-claude-relay.md, the shared Python/Dart fixture and its builder script. No code runs from this commit. Failure paths named in the contract: - locked sync / locked e2e key: fail closed, worker writes nothing, the request stays pending (phone keeps its hourglass) - invalid body, request older than 24 h, Claude timeout/failure/invalid JSON: fail closed, an error result is written and nothing is logged - duplicate event, expired lease or crash replay: idempotent by rid (entry id is uuid5 of the rid, checked before the Claude call) - due mode with nothing due: not an error, falls back to slot_for_log Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWZHWP4KZ6x5TcXDBFC |
||
|---|---|---|
| .. | ||
| explanations | ||
| DOCS-body.md | ||
| DOCS-claude-relay.md | ||
| DOCS-design.md | ||
| DOCS-flutter-rules-design.md | ||
| DOCS-flutter-rules-language.md | ||
| DOCS-flutter-rules-state-and-data.md | ||
| DOCS-flutter-rules-testing-and-assets.md | ||
| DOCS-flutter-rules-ui.md | ||
| DOCS-kuchnia-wikinga-phone.md | ||
| DOCS-kuchnia-wikinga.md | ||
| DOCS-meal-schedule.md | ||
| DOCS-sick-days.md | ||
| DOCS-sync-latency.md | ||
| DOCS-textgate-keep.md | ||