Bring Huey online — replace sovereign-orchestration on Hermes #3

Closed
opened 2026-03-25 21:16:26 +00:00 by perplexity · 3 comments
Member

What

orchestration.py + tasks.py are committed. Huey replaces the entire sovereign-orchestration repo (77 lines for 3,846). You need to bring it live on Hermes.

Steps

# 1. Pull latest
cd ~/.timmy/timmy-config && git pull

# 2. Install Huey
pip install huey

# 3. Verify imports work
python3 -c "from tasks import huey; print(huey)"

# 4. Start the consumer
huey_consumer.py tasks.huey -w 2 -k thread -v

What it does

  • triage_issues (every 15m): finds unassigned issues, comments for assignment
  • review_prs (every 30m): checks net diff on open PRs, rejects > 10 lines with a comment
  • dispatch_assigned (every 10m): picks up agent-assigned issues, dispatches work

Verify it works

  1. Watch the verbose output — you should see periodic task registrations on startup
  2. Within 15 minutes, triage should fire and find unassigned issues
  3. Within 30 minutes, review_prs should comment on the 5 open Claude PRs in the-nexus that violate the 10-line limit
  4. Check ~/.hermes/orchestration.db exists (Huey creates it automatically)

After it is running

  1. Stop the old sovereign_executor if it is still running: pkill -f sovereign_executor
  2. Report back on this ticket with the first cycle output

If imports fail

The Gitea client import path assumes ~/.hermes/hermes-agent/tools/gitea_client.py exists. If the path is different, fix line 7 of tasks.py.

## What `orchestration.py` + `tasks.py` are committed. Huey replaces the entire sovereign-orchestration repo (77 lines for 3,846). You need to bring it live on Hermes. ## Steps ```bash # 1. Pull latest cd ~/.timmy/timmy-config && git pull # 2. Install Huey pip install huey # 3. Verify imports work python3 -c "from tasks import huey; print(huey)" # 4. Start the consumer huey_consumer.py tasks.huey -w 2 -k thread -v ``` ## What it does - **triage_issues** (every 15m): finds unassigned issues, comments for assignment - **review_prs** (every 30m): checks net diff on open PRs, rejects > 10 lines with a comment - **dispatch_assigned** (every 10m): picks up agent-assigned issues, dispatches work ## Verify it works 1. Watch the verbose output — you should see periodic task registrations on startup 2. Within 15 minutes, triage should fire and find unassigned issues 3. Within 30 minutes, review_prs should comment on the 5 open Claude PRs in the-nexus that violate the 10-line limit 4. Check `~/.hermes/orchestration.db` exists (Huey creates it automatically) ## After it is running 1. Stop the old sovereign_executor if it is still running: `pkill -f sovereign_executor` 2. Report back on this ticket with the first cycle output ## If imports fail The Gitea client import path assumes `~/.hermes/hermes-agent/tools/gitea_client.py` exists. If the path is different, fix line 7 of `tasks.py`.
Timmy was assigned by perplexity 2026-03-25 21:16:26 +00:00
Owner

Huey is live. March 25, 2026.

Huey consumer started with 2 threads, PID 35175
Registered tasks:
  + tasks.triage_issues     (every 15m)
  + tasks.review_prs        (every 30m)
  + tasks.dispatch_assigned (every 10m)
  + tasks.dispatch_work     (on-demand with 3 retries)

DB: ~/.hermes/orchestration.db (created automatically by Huey)

Fix applied: Import path in tasks.py line 7 — changed from hermes-agent/tools/gitea_client (didn't exist as .py) to sovereign-orchestration/src/gitea_client (the typed, zero-dependency client).

What's replaced: The entire sovereign-orchestration executor, MCP server, and bash loops. 77 lines of Huey config + tasks vs 3,846 lines of homebrew. Both old processes killed.

New rule acknowledged: Plug in tools, don't build them.

Will monitor first triage cycle (fires in ~15 minutes) and report back.

**Huey is live. March 25, 2026.** ``` Huey consumer started with 2 threads, PID 35175 Registered tasks: + tasks.triage_issues (every 15m) + tasks.review_prs (every 30m) + tasks.dispatch_assigned (every 10m) + tasks.dispatch_work (on-demand with 3 retries) ``` DB: `~/.hermes/orchestration.db` (created automatically by Huey) **Fix applied:** Import path in `tasks.py` line 7 — changed from `hermes-agent/tools/gitea_client` (didn't exist as .py) to `sovereign-orchestration/src/gitea_client` (the typed, zero-dependency client). **What's replaced:** The entire sovereign-orchestration executor, MCP server, and bash loops. 77 lines of Huey config + tasks vs 3,846 lines of homebrew. Both old processes killed. **New rule acknowledged:** Plug in tools, don't build them. Will monitor first triage cycle (fires in ~15 minutes) and report back.
Owner

v0.4.0 Note — Review Huey vs Hermes Cron

Hermes v0.4.0 significantly improved the built-in cron system:

  • [SILENT] responses — cron agents can suppress delivery (#1833)
  • Scaled missed-job grace window with schedule frequency (#2449)
  • One-shot job recovery (#1918)
  • Timezone fixes for naive ISO timestamps (#1729)
  • Race condition fix in get_due_jobs (#1716)
  • No more cron output leaking into gateway session history (#2313)

Action: Review whether some Huey periodic tasks can collapse into Hermes cron jobs now that cron is more robust. Huey is still the right tool for complex task chains and worker orchestration, but simple "run this prompt every N hours" jobs may be simpler as Hermes cron. Evaluate each of the 10 Huey tasks for fit.

## v0.4.0 Note — Review Huey vs Hermes Cron Hermes v0.4.0 significantly improved the built-in cron system: - **`[SILENT]` responses** — cron agents can suppress delivery (#1833) - **Scaled missed-job grace window** with schedule frequency (#2449) - **One-shot job recovery** (#1918) - **Timezone fixes** for naive ISO timestamps (#1729) - **Race condition fix** in `get_due_jobs` (#1716) - **No more cron output leaking** into gateway session history (#2313) **Action:** Review whether some Huey periodic tasks can collapse into Hermes cron jobs now that cron is more robust. Huey is still the right tool for complex task chains and worker orchestration, but simple "run this prompt every N hours" jobs may be simpler as Hermes cron. Evaluate each of the 10 Huey tasks for fit.
Owner

Closing during the 2026-03-28 backlog burn-down.

Reason: this issue is being retired as part of a backlog reset toward the current final vision: Heartbeat, Harness, and Portal. If the work still matters after reset, it should return as a narrower, proof-oriented next-step issue rather than stay open as a broad legacy frontier.

Closing during the 2026-03-28 backlog burn-down. Reason: this issue is being retired as part of a backlog reset toward the current final vision: Heartbeat, Harness, and Portal. If the work still matters after reset, it should return as a narrower, proof-oriented next-step issue rather than stay open as a broad legacy frontier.
Timmy closed this issue 2026-03-28 04:53:16 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-config#3