From 402fc2c45356ac082bacee0020d725b1c1eb0ef4 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sat, 11 Jul 2026 23:58:22 +0200 Subject: [PATCH] phone_focus_mode: night-whitelist com.kuhy.diet_guard_app Allow the diet_guard companion to run during the post-23:00 curfew (meal logging, not a scroll trap). Deployed + foreground-verified on BL9000EEA0000102 after the crdt_sync client repoint. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_019KwUCPESvE5CjCtmUFz8xQ --- ...-guard-app-night-whitelist-2026-07-11.json | 24 +++++++++++++++++++ phone_focus_mode/config.sh | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 docs/superpowers/evidence/diet-guard-app-night-whitelist-2026-07-11.json diff --git a/docs/superpowers/evidence/diet-guard-app-night-whitelist-2026-07-11.json b/docs/superpowers/evidence/diet-guard-app-night-whitelist-2026-07-11.json new file mode 100644 index 00000000..453b8606 --- /dev/null +++ b/docs/superpowers/evidence/diet-guard-app-night-whitelist-2026-07-11.json @@ -0,0 +1,24 @@ +{ + "intent": "Let the diet_guard companion app (com.kuhy.diet_guard_app) run during the post-23:00 night curfew so its on-device foreground check could be verified after the crdt_sync client repoint.", + "scope": [ + "phone_focus_mode/config.sh — NIGHT_WHITELIST only", + "Non-goal: no change to the general daytime WHITELIST" + ], + "changes": [ + "Add com.kuhy.diet_guard_app to $NIGHT_WHITELIST (meal-logging health tool, not a scroll trap)" + ], + "verification": [ + { + "command": "CLAUDE_DEPLOY_DIRTY_OK=1 ADB_SERIAL=BL9000EEA0000102 bash phone_focus_mode/deploy.sh", + "result": "pass", + "evidence": "Deploy complete; app re-enabled (pm list packages -d no longer lists it) and launched to the foreground under the active curfew. Diet Guard capture screen rendered with real food-log data intact (meal slots logged, food-bank autocomplete populated); no crash." + } + ], + "risks": [ + "Slightly weakens the night curfew by allowing one more app; mitigated because diet_guard is a meal-logging tool, not a scroll trap" + ], + "rollback": [ + "Remove the com.kuhy.diet_guard_app line from $NIGHT_WHITELIST in config.sh and re-run deploy.sh", + "Confirm via deploy.sh --list that diet_guard is no longer night-whitelisted" + ] +} diff --git a/phone_focus_mode/config.sh b/phone_focus_mode/config.sh index deb522bb..653d918c 100755 --- a/phone_focus_mode/config.sh +++ b/phone_focus_mode/config.sh @@ -494,6 +494,9 @@ com.kuhy.wake_alarm_sync # --- Notes capture (offline-first; jot an idea before sleep, not a scroll trap) --- dev.kuhy.todo +# --- Diet guard companion (log meals; health tool, not a scroll trap) --- +com.kuhy.diet_guard_app + # --- Good-for-you apps (not scroll traps; kept per your request) --- # Remove any of these if you want a stricter night. com.stronglifts.app