testsAndMisc/.github/skills
Krzysztof kuhy Rudnicki fc4b504093 Harden phone_focus_mode CPU use; whitelist wake_alarm_sync
The on-device focus enforcer was overheating the phone by rebuilding
firewall rules every tick. State-gate the work instead:

- dns_enforcer.sh: only rebuild the DNS chain when it's missing, detached
  from OUTPUT, or the wrong rule count (chain_intact/expected_rule_count),
  instead of flushing+reinserting ~50-100 rules every tick (~50% netd CPU).
- config.sh: throttle CURFEW_NET_REASSERT_INTERVAL 1s -> 15s (1s forked
  iptables every second all night, overheating); also whitelist
  com.kuhy.wake_alarm_sync (general + curfew-night lists).
- focus_daemon.sh: build the blocked-system-apps file once at startup and
  memoize is_allowed() per tick.
- deploy.sh: drop `su --mount-master` (removed in Magisk v26+).
- SKILL.md: document the state-change-gate polling pattern.

Verification: shellcheck clean; no-polling-antipatterns + evidence/contract
hooks pass. Evidence + contract artifacts included.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RRCdR4D8SaVrN2xraMQxM
2026-07-11 00:16:11 +02:00
..
agent-sdlc-router chore(agent): add governance checks and artifact workflow scaffolding 2026-05-07 22:03:43 +02:00
code-quality-rules style: prettier format SKILL.md 2026-04-12 21:58:37 +02:00
code-review-and-quality style(prettier): apply markdown/json formatting updates 2026-05-07 22:08:00 +02:00
efficient-polling-scripts Harden phone_focus_mode CPU use; whitelist wake_alarm_sync 2026-07-11 00:16:11 +02:00
oom-prevention style: prettier format oom-prevention SKILL.md 2026-04-12 22:02:25 +02:00
phone-focus-mode feat(phone-focus): add recovery workflow, automation scripts, and docs 2026-05-01 19:07:27 +02:00
self-hosted-service-exposure Add self-hosted Gitea deployment, mirroring all GitHub repos publicly 2026-07-04 07:45:00 +02:00
spec-driven-development style(prettier): apply markdown/json formatting updates 2026-05-07 22:08:00 +02:00
test-driven-development style(prettier): apply markdown/json formatting updates 2026-05-07 22:08:00 +02:00