# Palace Health — Butler Guide Palace Health is Junwon's personal health tracker. Logs food, exercise, sleep, symptoms, and body metrics by day. ## Data Structure ``` palaces/manglasabang/palaceappsdata/palacehealth/ 2026/ 03/ 20.json ← one file per day ``` Each day file: ```json { "date": "2026-03-20", "dayOfWeek": "Friday", "food": [ { "time": "13:30", "what": "Orange bell pepper", "tags": ["vegetable"] } ], "exercise": [ { "time": "09:00", "what": "30 min walk", "tags": ["cardio"] } ], "sleep": { "bedtime": "23:30", "wakeup": "08:00", "quality": "good", "note": "Slept well" }, "symptoms": [ { "time": "11:30", "what": "Right wrist pain", "severity": 2 } ], "metrics": { "weight": 72.5, "steps": 8400 } } ``` ## Fields | Field | Type | Description | |-------|------|-------------| | `date` | `YYYY-MM-DD` | Calendar date | | `dayOfWeek` | string | Monday–Sunday | | `food[]` | array | Food and drink consumed | | `food[].time` | `HH:MM` | 24h time | | `food[].what` | string | Short description | | `food[].tags` | string[] | Optional: vegetable, fruit, protein, grain, dairy, processed, etc. | | `exercise[]` | array | Physical activity | | `exercise[].time` | `HH:MM` | When it started | | `exercise[].what` | string | Description | | `exercise[].tags` | string[] | Optional: cardio, strength, flexibility, etc. | | `sleep` | object or null | Sleep data for the night ending on this date | | `sleep.bedtime` | `HH:MM` | Time fell asleep (prior night) | | `sleep.wakeup` | `HH:MM` | Time woke up | | `sleep.quality` | string | poor / fair / good / excellent | | `sleep.note` | string | Optional freeform note | | `symptoms[]` | array | Physical symptoms, pain, discomfort | | `symptoms[].time` | `HH:MM` | When noticed | | `symptoms[].what` | string | Description | | `symptoms[].severity` | 1–5 | 1 = mild, 5 = severe | | `metrics` | object | Spot measurements | | `metrics.weight` | number | kg | | `metrics.steps` | number | Step count | | `metrics.bp` | string | Blood pressure, e.g. "120/80" | ## Rules - One file per day. File name = `DD.json`. - All times are 24h format. - Entries within each section are in chronological order by `time`. - `what` is short and direct. Not a paragraph — a line. - Food tags are optional but helpful for nutrition summaries. - Severity 1–5: 1 mild/barely noticeable, 3 moderate/affecting activity, 5 severe/disabling. - Never delete or edit past entries unless Junwon explicitly asks. ## Butler Workflow 1. "I ate a banana" → append to `food`: `{ "time": "", "what": "Banana", "tags": ["fruit"] }` 2. "Went for a run" → append to `exercise`: `{ "time": "", "what": "Run" }` 3. "My knee hurts a bit" → append to `symptoms`: `{ "time": "", "what": "Knee pain", "severity": 2 }` 4. "Slept great, 11pm to 8am" → set `sleep`: `{ "bedtime": "23:00", "wakeup": "08:00", "quality": "good" }` 5. "I weigh 72kg" → set `metrics.weight`: 72 6. If no file exists for today, create it with date and dayOfWeek.