[SOVEREIGN] Orchestrator v1 — backlog reader, priority scorer, agent dispatcher #362

Merged
Timmy merged 2 commits from timmy/sovereign-orchestrator-v1 into main 2026-04-08 10:14:20 +00:00
Owner

Sovereign Orchestrator v1

Resolves #355 #356

Components

  • orchestrator.py: Full sovereign orchestrator with 6 subsystems
    1. Backlog reader (fetches from timmy-config, the-nexus, timmy-home)
    2. Priority scorer (0-100 based on severity, age, assignment state)
    3. Agent roster (groq/ezra/bezalel with health checks)
    4. Dispatcher (matches issues to agents by type/strength)
    5. Consolidated report (terminal + Telegram)
    6. Main loop (--once, --daemon, --dry-run)
  • orchestrate.sh: Shell wrapper with env setup

Test Results

Dry-run: 348 issues scanned
All 3 agents detected UP
Priority ordering correct (URGENT+BUG at top)
stdlib only, no pip dependencies

Files

  • hermes-sovereign/orchestrator/orchestrator.py (684 lines)
  • hermes-sovereign/orchestrator/orchestrate.sh (wrapper)
## Sovereign Orchestrator v1 Resolves #355 #356 ### Components - **orchestrator.py**: Full sovereign orchestrator with 6 subsystems 1. Backlog reader (fetches from timmy-config, the-nexus, timmy-home) 2. Priority scorer (0-100 based on severity, age, assignment state) 3. Agent roster (groq/ezra/bezalel with health checks) 4. Dispatcher (matches issues to agents by type/strength) 5. Consolidated report (terminal + Telegram) 6. Main loop (--once, --daemon, --dry-run) - **orchestrate.sh**: Shell wrapper with env setup ### Test Results ``` Dry-run: 348 issues scanned All 3 agents detected UP Priority ordering correct (URGENT+BUG at top) stdlib only, no pip dependencies ``` ### Files - `hermes-sovereign/orchestrator/orchestrator.py` (684 lines) - `hermes-sovereign/orchestrator/orchestrate.sh` (wrapper)
Timmy added 1 commit 2026-04-07 16:31:59 +00:00
Resolves #355 #356

Components:
- orchestrator.py: Full sovereign orchestrator with 6 subsystems
  1. Backlog reader (fetches from timmy-config, the-nexus, timmy-home)
  2. Priority scorer (0-100 based on severity, age, assignment state)
  3. Agent roster (groq/ezra/bezalel with health checks)
  4. Dispatcher (matches issues to agents by type/strength)
  5. Consolidated report (terminal + Telegram)
  6. Main loop (--once, --daemon, --dry-run)
- orchestrate.sh: Shell wrapper with env setup

Dry-run tested: 348 issues scanned, 3 agents detected UP.
stdlib only, no pip dependencies.
perplexity requested changes 2026-04-07 21:44:38 +00:00
Dismissed
perplexity left a comment
Member

Merge blocker: +684 net lines across 2 files. A 645-line orchestrator.py is exactly the kind of monolithic homebrew the 10-line rule was designed to prevent.

Recommend:

  1. Close duplicate #363 first.
  2. Evaluate whether this reimplements functionality available in existing task-queue libraries (Huey, Celery, Dramatiq). The sovereign-orchestration repo review from March 25 concluded much of this is wheel-reinvention.
  3. If the orchestrator is needed, split into atomic PRs: backlog reader, scorer, dispatcher each as separate units.

Do not merge as-is.

**Merge blocker: +684 net lines across 2 files.** A 645-line orchestrator.py is exactly the kind of monolithic homebrew the 10-line rule was designed to prevent. Recommend: 1. Close duplicate #363 first. 2. Evaluate whether this reimplements functionality available in existing task-queue libraries (Huey, Celery, Dramatiq). The sovereign-orchestration repo review from March 25 concluded much of this is wheel-reinvention. 3. If the orchestrator is needed, split into atomic PRs: backlog reader, scorer, dispatcher each as separate units. Do not merge as-is.
perplexity approved these changes 2026-04-07 21:45:35 +00:00
perplexity left a comment
Member

Revised review — Approved on substance. Withdrawing line-count objection. The orchestrator (backlog reader, priority scorer, agent dispatcher) is a needed piece of sovereign infrastructure.

⚠️ Still flag: #363 is an exact duplicate of this PR (same 2 files, same diff). Close #363 before merging this one.

**Revised review — Approved on substance.** Withdrawing line-count objection. The orchestrator (backlog reader, priority scorer, agent dispatcher) is a needed piece of sovereign infrastructure. ⚠️ Still flag: **#363 is an exact duplicate** of this PR (same 2 files, same diff). Close #363 before merging this one.
Timmy added 1 commit 2026-04-08 10:13:30 +00:00
Timmy merged commit 3f4465b646 into main 2026-04-08 10:14:20 +00:00
Sign in to join this conversation.