{ "_comment": [ "Shared cross-language fixture for manual-workout budget counting.", "Derived from a real divergence on 2026-08-27: the phone showed", "'Manual: 2/2w 4/10m -- budget exhausted' while the PC read 1/2w 2/10m.", "Two Dart-only defects caused it, both represented below:", " 1. the phone's merge ignored tombstones, so the deleted duplicate", " manual:2026-08-21T21:00 still consumed a weekly slot;", " 2. the phone counted the evidence-less stub manual_workout:2026-08-15,", " which the PC refuses to ingest, costing an extra monthly slot.", "Each side's own round-trip test passed while the pair disagreed, so this", "literal -- read by both -- is the only thing that catches the drift." ], "today": "2026-08-27", "records": [ { "id": "manual:2026-08-11T18:00", "deleted": false, "payload": { "kind": "manual_workout", "type": "manual_workout", "date": "2026-08-11", "start_time": "18:00", "end_time": "19:00" } }, { "id": "manual_workout:2026-08-15", "deleted": false, "payload": { "kind": "manual_workout", "type": "manual_workout", "date": "2026-08-15" } }, { "id": "manual:2026-08-21T20:00", "deleted": false, "payload": { "kind": "manual_workout", "type": "manual_workout", "date": "2026-08-21", "start_time": "20:00", "end_time": "21:00" } }, { "id": "manual:2026-08-21T21:00", "deleted": true, "payload": { "kind": "manual_workout", "type": "manual_workout", "date": "2026-08-21", "start_time": "21:00", "end_time": "22:00" } } ], "expected": { "week": 1, "month": 2, "exhausted": false }, "planned": { "_comment": [ "Future-dated (planned) manual entries, added 2026-10-16. Readers of the", "top-level today/records/expected above ignore this key, so those", "expectations are unchanged.", "Scenario: the top-level records PLUS extra_records, still as of 'today'.", "A manual workout may be dated up to 7 days ahead; the PC credits it on", "its own date. Budget for adding an entry dated D = the fullest 7-/30-day", "window CONTAINING D, counting past and future live entries (stubs and", "tombstones excluded, as above). expected_by_date maps D to that budget.", "The deleted 08-30 plan proves a cancelled plan frees its slot: live, it", "would put 08-28 and 08-30 in one 7-day window (2/2, exhausted)." ], "extra_records": [ { "id": "manual:2026-08-28T10:00", "deleted": false, "payload": { "kind": "manual_workout", "type": "manual_workout", "date": "2026-08-28", "start_time": "10:00", "end_time": "11:00" } }, { "id": "manual:2026-08-30T09:00", "deleted": true, "payload": { "kind": "manual_workout", "type": "manual_workout", "date": "2026-08-30", "start_time": "09:00", "end_time": "10:00" } } ], "expected_by_date": { "2026-08-27": {"week": 1, "month": 3, "exhausted": false}, "2026-08-28": {"week": 1, "month": 3, "exhausted": false} } } }