3.28 Autonomous Job Dispatch — Kanban Dispatcher Shell Script
The autonomous job dispatcher is a shell script, not an AI. Every hour it reads the Kanban board, finds tasks in the Ready state with a spawnable assignee (programmer or scribe), and launches the right Hermes profile. When nothing needs doing, it exits silently. When it acts, it sends a Telegram alert. Zero LLM calls.
The autonomous job dispatcher is a shell script, not an AI. Every hour it reads the Kanban board, finds tasks in the Ready state with a spawnable assignee (programmer or scribe), and launches the right Hermes profile. When nothing needs doing, it exits silently. When it acts, it sends a Telegram alert. Zero LLM calls.
kanban-dispatch-tick.sh — hourly cron, zero LLM, silent when idle, Telegram alert when it spawns a profile. Replaces the retired LLM-based kanban watcher that hallucinated board data (2026-07-25).
Section A The Dispatcher in Plain English
The dispatcher is kanban-dispatch-tick.sh. It calls hermes kanban dispatch --json, parses the JSON response with Python, and spawns profiles for Ready tasks. There is no model, no inference, no hallucination risk. It is as deterministic as a cron job can be.
Every hour:
-
1Read the Kanban board
The script calls
hermes kanban dispatch --max 2 --failure-limit 2 --json. Hermes reads the live~/.hermes/kanban.dbSQLite database. -
2Check for Ready tasks with spawnable assignees
A task is spawnable only if
assignee_profileisprogrammerorscribe. Any other value (Fook, Eugin, raia-developer, a human name) — the dispatcher skips it silently. -
3Spawn profile OR exit silently
If spawnable tasks exist: launches the right Hermes profile, sends a Telegram alert with the task title and profile name. If nothing to do: exits with no output (cron delivers nothing to Telegram).
flowchart TD
Cron["⏰ Cron (hourly)
ea794b0e7fc7"] --> ReadKanban["Read Kanban
hermes kanban dispatch --json"]
ReadKanban --> CheckReady{"Ready task with
spawnable assignee?"}
CheckReady -->|"assignee_profile=programmer
or scribe"| Spawn["Spawn Hermes Profile
(programmer or scribe)"]
CheckReady -->|"Human assignee
or nothing"| Silent["Silent exit
(no Telegram)"]
Spawn --> Telegram["📲 Telegram Alert
task title + profile name"]
Section B User Guide
How to Queue a Task for Overnight Dispatch
Set assignee_profile=programmer OR assignee_profile=scribe on the Kanban task. That is the only requirement. The dispatcher checks this field every hour. No other configuration needed.
The task also needs to be in Ready status (not Blocked, not In Progress, not Done). The dispatcher only picks up Ready tasks.
| To queue for | Set assignee_profile to | What it does |
|---|---|---|
| Code tasks, SQL, backend work | programmer | Spawns Programmer profile (Sonnet 4.6) |
| Documentation, HTML pages | scribe | Spawns Scribe profile (Kimi K3) |
What “Non-Spawnable Assignee” Means
If a task is assigned to Fook, Eugin, raia-developer, or any human name — the dispatcher skips it silently. The task stays in Ready permanently until a human reassigns it to programmer or scribe, or picks it up themselves.
The 15 Ready Tasks with Human Assignees
As of July 2026, there are 15 tasks in the Ready state with human assignees (Eugin or Fook). These will never be auto-dispatched in their current state. To unblock them:
-
AHuman picks it up
Eugin or Fook moves the task to In Progress and does the work themselves. Correct when the task genuinely requires human judgment or physical action.
-
BReassign to programmer or scribe
Change
assignee_profiletoprogrammerorscribeif the task is genuinely automatable. The next hourly cron will pick it up.
How to Check Dispatch Logs
# List all crons — find the dispatcher
hermes cron list
# Dispatcher cron ID: ea794b0e7fc7
# Show full output log
hermes logs show ea794b0e7fc7
# Tail last 20 lines
hermes logs show ea794b0e7fc7 | tail -20
Empty log entry = the cron ran and found nothing to dispatch (correct behaviour, not an error). Non-empty entry = profile was spawned. Check for crashed or timed_out fields in the JSON summary to diagnose failures.
Section C Developer Reference
kanban-dispatch-tick.sh Full Logic
The script is the sole implementation of the dispatcher. It does exactly this:
#!/bin/bash
# kanban-dispatch-tick.sh — zero-LLM hourly dispatcher
# 1. Call hermes kanban dispatch, capture JSON output
OUTPUT=$(hermes kanban dispatch --max 2 --failure-limit 2 --json)
# 2. Python3 parses the JSON
SUMMARY=$(python3 - <<EOF
import json, sys
data = json.loads("$OUTPUT")
spawned = data.get('spawned', [])
crashed = data.get('crashed', [])
blocked = data.get('auto_blocked', [])
timed = data.get('timed_out', [])
if not any([spawned, crashed, blocked, timed]):
sys.exit(0) # silent — cron delivers nothing to Telegram
parts = []
if spawned: parts.append(f"Spawned: {', '.join(spawned)}")
if crashed: parts.append(f"CRASHED: {', '.join(crashed)}")
if blocked: parts.append(f"Blocked: {', '.join(blocked)}")
if timed: parts.append(f"Timed out: {', '.join(timed)}")
print(' | '.join(parts))
EOF
)
# 3. If SUMMARY is non-empty, cron delivers it to Telegram
echo "$SUMMARY"
JSON Output Field Reference
| Field | Type | Meaning |
|---|---|---|
spawned | string[] | Task IDs/titles where a profile was successfully launched |
promoted | string[] | Tasks moved from Ready to In Progress (before spawn) |
reclaimed | string[] | Tasks returned to Ready after a profile exited clean with no output |
auto_blocked | string[] | Tasks blocked because they need human intervention (non-spawnable assignee, dependency missing) |
crashed | string[] | Tasks whose spawned profile exited with a non-zero code |
timed_out | string[] | Tasks whose spawned profile ran past the configured time limit |
Cron ea794b0e7fc7 Configuration
# View cron config
hermes cron list | grep ea794b0e7fc7
# Cron properties:
# ID: ea794b0e7fc7
# Schedule: 0 * * * * (hourly)
# no-agent: true — zero LLM, no model loaded
# Delivery: Telegram — only on non-empty stdout
# Script: kanban-dispatch-tick.sh
The no-agent=true flag means Hermes runs the cron script without loading any language model. The cron is pure shell + JSON parse. This is by design — the old LLM-based kanban watcher (removed 2026-07-25) had no terminal toolset and hallucinated board data. The replacement is deliberately zero-LLM to prevent that failure mode.
Failure Mode Reference
| Field | Root cause | What to do |
|---|---|---|
auto_blocked |
Task needs human; assignee is not a spawnable profile, or a blocking dependency exists | Reassign to programmer/scribe, or clear the dependency, or have a human pick it up |
crashed |
The spawned Hermes profile exited with a non-zero exit code (unhandled error in the agent session) | Check hermes logs show ea794b0e7fc7; look for the error in the profile session output; fix the underlying issue |
timed_out |
The spawned profile ran longer than the configured timeout (default 30 min) | Split the task into smaller pieces; or investigate why the profile is hanging (tool call loop, no terminal toolset, etc.) |
| Silence (nothing dispatched) | No Ready tasks with spawnable assignees | Normal — not an error. Check hermes kanban list to see board state |