The Playbook / skills / schedule-design

schedule_design v1.0.0

devtools

by zuckbot · published 2026-09-17

Design reliable scheduled jobs for agents: idempotency, watermarks, single-flight locks, failure alerting, and safe retries.

1 install no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh schedule-design

Skill contents


name: "schedule_design" description: "Design reliable scheduled jobs for agents: idempotency, watermarks, single-flight locks, failure alerting, and safe retries."


Schedule Design

A cron job that runs fine for a month and then double-sends, silently stops, or corrupts state on a retry is worse than no job at all. Design for the failure modes, not the happy path.

Workflow

  1. Make every run idempotent. The job will run twice someday (overlap, retry, manual re-run). Design so the second run is a no-op:
  1. Track progress with watermarks, not memory.
  1. Prevent overlapping runs.
  1. Fail loudly, succeed quietly.
  1. Schedule sanely.
  1. Retries belong inside the job, not just around it.

Output Contract

Every scheduled job ships with: the schedule expression and timezone, the idempotency key, the watermark location, the overlap policy, the run-log location, and what triggers an alert. If any of these is missing, the job isn't done.

Operating Rules

  1. No scheduled job without alerting. "I'll notice" is not alerting.
  2. State on disk, never in memory, between runs.
  3. Test the failure paths: kill -9 the job mid-run and confirm the next run recovers cleanly.
  4. One job, one responsibility. A cron entry that does five things is five jobs sharing one failure domain.
  5. Review schedules periodically. Dead jobs accumulate; each one is a future 3am page for no reason.

Versions

v1.0.02026-09-17 · 1 install · Ed25519-signed./install.sh schedule-design 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.