diff --git a/docs/superpowers/evidence/i3blocks-daily-limits-cache-2026-10-09.json b/docs/superpowers/evidence/i3blocks-daily-limits-cache-2026-10-09.json deleted file mode 100644 index 7b5a5510..00000000 --- a/docs/superpowers/evidence/i3blocks-daily-limits-cache-2026-10-09.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "intent": "The i3blocks shutdown and gaming_budget blocks render from the daily-limits cache ($XDG_RUNTIME_DIR/daily-limits.json), so the earner list, sizes and ceiling come from the earned_time registry instead of being duplicated in shell; left-click opens daily-limits --gui.", - "scope": [ - "linux_configuration/i3blocks/gaming_budget.sh, shutdown_countdown.sh", - "linux_configuration/tests/test_i3blocks_{gaming_budget,shutdown_hint,efficiency}.sh", - "Non-goal: changing the shutdown enforcement itself (screen-locker / digital-wellbeing)" - ], - "changes": [ - "gaming_budget.sh: drop the curl to the enforcer /api/budget, the config.json read and the fallback bonus sizes; read gaming budget/used/day and the not-done earners from the cache", - "shutdown_countdown.sh: replace earner_hint() with render_limits/load_limits fed by todo[]; โ†’max from shutdown_after reaching the ceiling; unknown earners shown with '?'", - "Both: a cache older than 180 s (or from the future) shows a โฑ? marker and never stale numbers; jq runs only when the cache mtime changes (rendered line cached in $XDG_RUNTIME_DIR)", - "Tests rewritten from the curl stub to DAILY_LIMITS_CACHE fixtures; the shutdown exec bound drops from 2 to 1" - ], - "verification": [ - { - "command": "bash linux_configuration/i3blocks/gaming_budget.sh; bash linux_configuration/i3blocks/shutdown_countdown.sh (live, daily-limits timer running)", - "result": "pass", - "evidence": "๐ŸŽฎ 0h43 left ยท 2h17/3h00 +๐Ÿ’ช2h +๐Ÿงฉ1h +๐Ÿ“–1h +๐Ÿ—‚30m +โš™30m / โป 20:00 +๐Ÿ’ช2h +๐Ÿงฉ1h +๐Ÿ“–1h +๐Ÿ—‚30m +โš™30m โ†’max 23:00 โ€” same format as before the change" - }, - { - "command": "capped.sh bash tests/test_i3blocks_gaming_budget.sh; test_i3blocks_shutdown_hint.sh; test_i3blocks_efficiency.sh", - "result": "pass", - "evidence": "All gaming_budget checks passed. / All shutdown hint tests passed. / All i3blocks efficiency regression tests passed." - }, - { - "command": "strace -f -c (clone+execve per tick)", - "result": "pass", - "evidence": "gaming steady state 0 clone + 1 execve (was 4 + 3 with curl and jq); shutdown 3 clone + 1 execve (was 8 + 3)" - } - ], - "risks": [ - "If the daily-limits user timer stops, both blocks show โฑ? (shutdown falls back to the local config time, which is still correct)", - "daily-limits must be on PATH for left-click; otherwise the click does nothing" - ], - "rollback": [ - "git revert this commit; the blocks go back to the enforcer API and the in-script earner table", - "After a rollback, check the bar shows numbers again with the enforcer running" - ] -} diff --git a/docs/superpowers/evidence/workout-flow-picker-2026-11-16.json b/docs/superpowers/evidence/workout-flow-picker-2026-11-16.json new file mode 100644 index 00000000..7b6f8768 --- /dev/null +++ b/docs/superpowers/evidence/workout-flow-picker-2026-11-16.json @@ -0,0 +1,46 @@ +{ + "intent": "workout_firebase_flow reaches the connected state again on the current workout_app: the text-free settings screen and Android's AccountManager account picker broke the 2026-11-08 version.", + "scope": [ + "python_pkg/android_ui/workout_firebase_flow.py and its test only", + "No change to the MCP server, the CLI or the driver" + ], + "changes": [ + "SYNC_ROW is now 'Sync settings' (the cloud icon's semanticLabel); the 'Firebase sync' subtitle was removed by screen-locker's textgate commit b584c04", + "The account chooser is also recognised as a CheckedTextView list of e-mails (AccountManager picker); after tapping the account the flow re-dumps and taps OK (android:id/button2, measured: button1 is Cancel) only if the picker is still up" + ], + "verification": [ + { + "command": "python -m pytest -q python_pkg/android_ui/tests/test_workout_firebase_flow.py --cov=python_pkg.android_ui.workout_firebase_flow --cov-branch", + "result": "pass", + "evidence": "red first: 2 failed (AccountManager picker tests); then 16 passed, workout_firebase_flow.py 100% line+branch" + }, + { + "command": "workout_firebase_flow --serial 23181JEGR08034 --display self --account (slot com.kuhy.slot1, current layout)", + "result": "pass", + "evidence": "exit 0 'workout-firebase-flow: connected'; screenshot shows the account row with the unlink icon and the synced cloud" + }, + { + "command": "same command, after swapping _SyncSection and _OfflineBackupSection in settings_screen.dart, rebuilding and reinstalling the slot", + "result": "pass", + "evidence": "exit 0 'connected'; dump shows OFFLINE BACKUP at y=1452 above SYNC at y=2178. Script unchanged between runs" + }, + { + "command": "workout_firebase_flow --serial 23181JEGR08034 --display self --negative", + "result": "pass", + "evidence": "exit 1; stderr: waited 3.0s for 'No Such Button': no element matches 'No Such Button'. On screen now: ..." + }, + { + "command": "android-ui --display self tap Back (on Settings)", + "result": "pass", + "evidence": "error, nothing tapped: 2 elements match 'Back': 'Back'