Skip to content

todo-handler: built-in recurring idle check via ScheduleWakeup - #11

Closed
aphelps-claude-bot wants to merge 2 commits into
mainfrom
routine-idle-check
Closed

aphelps-claude-bot wants to merge 2 commits into
mainfrom
routine-idle-check

Conversation

@aphelps-claude-bot

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a Recurring Check section to the todo-handler skill specifying that ScheduleWakeup is called at the end of every pass.
  • Invoking the skill once starts continuous monitoring — no /loop required.
  • Delay: 900s after completing work, 1800s when idle or waiting on PRs.
  • Updates Startup and When Idle to reference the new section.

Test plan

  • Read updated skills/todo-handler/SKILL.md and confirm Recurring Check section is present and referenced from Startup and When Idle.

🤖 Generated with Claude Code

The skill now calls ScheduleWakeup at the end of every pass so
continuous monitoring is the default. No /loop invocation required —
invoking the skill once starts the recurring cycle.

Delay: 900s after completing work, 1800s when idle or waiting on PRs.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

@aphelps aphelps left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wait time should be configurable as an optional when the skill is invoked, but have a single wakeup time defaulting to 15 minutes.

Please write a script that can be run when woken up to determine if there is work to be done and determine the next todo phase to start on, and if there is nothing to wait on then reset the timer. The goal is to minimize Claude utilization during the wake up process.

Add a lightweight pre-check script (check-for-work.sh) that reads
todo.md and checks PR activity without a full Claude pass. The skill
runs it on every wake-up; if IDLE is returned it reschedules immediately
without doing heavy work.

Default wake interval is 15 minutes (900s), configurable at invocation
time (e.g. /todo-handler 30m).

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@aphelps-claude-bot

Copy link
Copy Markdown
Collaborator Author

Addressed in the second commit (7766b36):

  • Default interval: 15 min (900s), configurable at invocation time (e.g. /todo-handler 30m).
  • check-for-work.sh: lightweight pre-check that reads todo.md and, for Review Tasks, fetches the latest GitHub PR activity via gh api. Exits 0 (WORK: <reason>) if there is anything to act on; exits 1 (IDLE) if not. The skill runs this at Startup step 0 — if IDLE, it calls ScheduleWakeup immediately and stops without running a full Claude pass.

The script checks: Active/Approved/Ready/Planning/Blocked tasks (from todo.md parsing) and whether any Review Task PRs were updated in the last 2 hours (from the GitHub API).

@aphelps-claude-bot

Copy link
Copy Markdown
Collaborator Author

Closing: the todo-handler skill has been moved to aphelps/claude-skills (PR #13 merged). The Recurring Check / ScheduleWakeup / check-for-work.sh changes from this branch are already incorporated in the claude-skills SKILL.md.

aphelps-claude-bot added a commit that referenced this pull request Jul 30, 2026
…irst real guard (#27)

ArduinoLibs bc56ddc (#12) -- getFramingErrorCount() plus the 57/58 boundary group that
demonstrates the ceiling instead of asserting arithmetic about it.
WLED 2e7634b3 (#16) -- RS485B_TX_SLOT_LEN derived from the receive budget minus the
socket header, so a full payload can no longer exceed what a receiver can hold.

This bump also carries ArduinoLibs #11 (the test-command doc fix), which was held back
at the time to avoid deepening a gitlink conflict in the mesh PRs. That conflict is
resolved and merged, so it rides along here.

The substantive part is the probe change. RS485_RECV_BUFFER lives in ArduinoLibs and
RS485B_RECV_BUFFER_LEN mirrors it in the usermod, because rs485_bridge_protocol.h has to
stay free of Arduino.h for the host test to build. The static_assert tying them together
compiles only under [env:ampworks], and no CI workflow builds that env -- so until now
the mirror had NO automated guard at all. Drift it and the transmit ceiling silently
stops matching what a receiver can hold, which is the 71-vs-64 bug this whole task
exists to remove.

tools/rs485_bridge_probe.py --self-test now scrapes both constants and fails if they
disagree, and separately fails if RS485B_TX_SLOT_LEN stops being derived -- because
re-hardcoding it is exactly how the original defect happened. I said in the WLED PR that
the probe already did this; it did not, and this is the commit where that becomes true.

Verified, including both negative controls: drifting the mirror to 96 is caught, and
replacing the derived slot with a literal 57 -- the right VALUE, still the wrong shape --
is caught too. make test green across all suites, ampworks builds with libdeps cleared.


Claude-Session: https://claude.ai/code/session_013HqzdRdTRnreSvevaQGQSJ

Co-authored-by: aphelps-claude-bot <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants