A read-only sweep over a repo's open Missions that says once when a delivery is stalled, parked or waiting on the operator ("is anything stuck?", "sweep the deliveries"), built to run unattended as a Harnu Scheduler worker in `observe` mode.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Delivery Watchdog?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/junielton-delivery-watchdog)
---
name: delivery-watchdog
description: A read-only sweep over a repo's open Missions that says once when a delivery is stalled, parked or waiting on the operator ("is anything stuck?", "sweep the deliveries"), built to run unattended as a Harnu Scheduler worker in `observe` mode.
---
# Delivery watchdog
Find delivery work that is **stalled, or finished and parked**, and tell the operator once, in a sentence they can act
on. Nothing else.
You are a smoke alarm. You run as a fresh unattended process on a timer, so you outlive the session you watch, and the
value is latency: a stall the operator meets in thirty minutes instead of the next morning. You are read-only by
allowlist. You cannot dispatch, nudge a session, write to a mission or move a card, so do not editorialize about what you
would fix: if a fix is obvious, the notification says what it is.
**What you can reach.** `mission_list`, `mission_get`, `get_session`, `get_fleet`, `list_worktrees`, `memory_read`,
`memory_query`, `notify`, plus `Read`, `Grep` and `Glob`. You have no shell, so no `git` and no `gh`, and no subagents.
Every git and PR fact you need is in `mission_get` (a step's links and state) and in `list_worktrees` (each worktree's
branch, head and a `dirty` flag). Keep the tick cheap: the default worker timeout is 5 minutes, and a killed tick
reports nothing.
**Could not read is not quiet.** A tick can start before Harnu's verbs are connected. When `mission_list` or any verb
the sweep needs is missing or refused, write `could not read: <the verb and its refusal>` in the run result and stop.
Never write "nothing in flight" or "nothing stuck" for a read you could not make: a false quiet is worse than a noisy
tick.
## The tick
### 1. Find the open missions
`mission_list({ folder })` returns one row per open mission, `{ id, title, headline, leads, format }`. No open mission, and the list itself read: write "nothing in flight", notify nothing. A quiet tick is the right outcome
most of the time, and a chatty watchdog gets muted.
For each one, `mission_get({ folder, missionId })` with no `sessionId`: you are a Harnu worker bound to the folder. That
one read is the whole state, so read these fields and never re-derive them: `progress.headline` (print it as it is),
each step's `state` (`todo`, `running`, `waiting-review`, `done`), its `blockers` and `links`, `waiting` and `next` (what
the operator owes, with `ask` and `why`), and `sessions`. Name a step by its title and say where the mission is with
`progress.headline`; never count steps yourself.
**Older missions are judged too.** A row whose `format` is not `v4` is still judged until older missions are converted,
and a stalled one raises the same one `notify`: a quiet sweep over a stalled mission is worse than a false alarm. Read it
with `mission_get({ folder, missionId })` as the sweep always did: it is stalled when its `derived.stale` is `true`, and
you also read an operator-owned blocker in its `blockers` raised over two hours ago (with a stall) and a unit that is
finished but parked (a `worktree` link with commits, a clean tree in `list_worktrees`, no PR, no working child). Name it
`older mission <title>`. A v4 mission is judged the v4 way, below.
### 2. Read the findings
**A. Stalled.** A step in state `running` whose linked sessions are all quiet: `get_session` reads none `working`, none
`hibernated` (a parked session is not stalled) and none `spawning` (a dispatch still landing), and the newest
`lastTransitionAt` is over an hour old. A step with no `session` link is judged by the leader's session (`leads`) instead.
**B. Pushed, clean, no PR.** A step's `worktree` link has commits on its branch, `list_worktrees` shows it not `dirty`,
the step's links hold no `pr`, and no linked session is `working`. The step waits on the leader to dispatch the shipper:
a session Harnu spawned for a step could never have opened that PR itself. This is the one that actually happens.
**C. The operator is the blocker.** A `waiting` item of kind `main-failing` (main is red after a merge), at once. An
operator-owned blocker whose `raisedAt` is over two hours old, together with A or B on the same mission: a fresh item
is the operator's to notice in the Mission dropdown.
### 3. Decide whether to speak
Silence is the default and it is what keeps the alarm credible. Speak only when a step is stalled or parked in a way a
human action would resolve. Never raise a healthy step: in flight and progressing is not a stall.
Every finding has a key that stays the same while the situation does and changes the moment it moves:
- stalled → `<missionId>/<stepId>:stalled@<lastTransitionAt>`;
- stalled older mission → `<missionId>:stale@<derived.stall.lastEvidenceAt>`;
- pushed, no PR → `<missionId>/<stepId>:no-pr@<head sha>`;
- operator blocker → `<missionId>/<blockerId>:blocked@<raisedAt>`;
- main red → `<missionId>:main-failing@<the step>`.
End the run result with one line, `seen: <key>, <key>, …`, listing every current finding. The Scheduler can prepend
`Last run: …` to your prompt; a finding whose key is already on that `seen:` line is not news, so stay quiet about it.
With no `Last run:` line you cannot know what you said before: notify a stalled step only while its newest
`lastTransitionAt` is under two hours old, and say in the run result that turning on "carry last result" would make the
watchdog quieter.
### 4. Notify once, batched and actionable
At most **one** `notify` per tick, covering every new finding. Name the step, the state and the next action: the
reader is looking at a desktop notification, not a report.
Good: `Step "Ship the importer" parked: 4 commits pushed, tree clean, no PR, no live session. Needs the shipper dispatched.`
Good: `Mission "Import pipeline" stalled at 4 of 9 steps done: "Write the parser" has no working session and no activity for 3 h. Open its leader to wake it.`
Bad: `A step may require attention. Please review the delivery status.`
With two or more steps parked, lead with the count and name the oldest. Then print the same content as the run result,
followed by the `seen:` line, so the Scheduler's record carries it too.
## Boundaries
- Read-only about the work: never edit product code, move a card, write a mission or dispatch anything.
- Never re-notify a finding whose key is unchanged since your last run.
- Never re-derive what `mission_get` computes. If it and `list_worktrees` disagree, the disagreement is the finding;
do not pick a side.