testsAndMisc/docs/superpowers/contracts/screen-locker-sick-tracker-2026-05-14.json
Krzysztof kuhy Rudnicki 65d25ac46a feat(screen-locker): add sick-day tracker and commitment debt flow
Adds a sick-day exemption flow with debt tracking so workout enforcement
can be skipped on declared sick days while preserving phone-verification
and shutdown invariants.

- New _sick_tracker module persists sick_history.json (days, debt, commitments).
- New _sick_dialog integrates declaration into the lock UI flow.
- _ui_flows.py and screen_lock.py consult tracker before enforcing workouts.
- gitignore sick_history.json (runtime state, like sick_day_state.json).
- 304 tests pass; 100% branch coverage on every screen_locker file.
2026-05-14 19:52:15 +02:00

17 lines
1.1 KiB
JSON

{
"title": "Screen locker sick-day tracker and commitment debt",
"objective": "Add a sick-day exemption flow with commitment debt tracking to screen_locker so workout enforcement can be skipped on declared sick days while preserving the existing unlock invariants and 100% branch coverage.",
"acceptance_criteria": [
"Sick state persisted to gitignored sick_history.json with debt and commitment fields.",
"_sick_dialog and _sick_tracker modules integrate with existing screen_lock flow without regressing phone verification or shutdown paths.",
"New tests test_sick_features.py and test_sick_tracker.py cover all new branches.",
"screen_locker package retains 100% branch coverage."
],
"out_of_scope": [
"Changing workout enforcement thresholds beyond sick-day handling.",
"Modifying phone verification, shutdown, or activity-watch integrations.",
"Persisting sick history outside the package directory."
],
"verifier": "pytest python_pkg/screen_locker/tests with --cov=python_pkg.screen_locker --cov-branch (must report 100% on all screen_locker files)"
}