From 6905f4e843becf7c3f089086d318c0da729c64ed Mon Sep 17 00:00:00 2001 From: Markus Fritsche Date: Sun, 26 Jul 2026 23:28:06 +0200 Subject: [PATCH] fix bullpen-triage/selfimprove ExecStart (--system deploy needs /usr/local/bin, not ~/.local/bin); @skeptic/@architect now answer direct asks, not just chat turns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit triage.service has crash-looped since it was enabled (27k+ restarts, never ran once) because its ExecStart pointed at the user-layout bin path while the unit was deployed via install.sh --system (symlinks live in /usr/local/bin). selfimprove.service had the same latent bug, dormant until its weekly timer next fired. bullpen_participant.py's _read_chats() only ever collected type=="chat" messages, so a direct type=="ask" ping (or any one-shot question) to @skeptic or @architect was invisible to the turn loop. @architect appeared to work anyway because it has a second, redundant responder (architect_lurker, opencode-backed) that @skeptic never got — so @skeptic was silently unreachable outside an active debate turn. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01EWpfhDgYNA21tETDP9ueBE --- lib/bullpen_participant.py | 2 +- systemd/bullpen-selfimprove.service | 2 +- systemd/bullpen-triage.service | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bullpen_participant.py b/lib/bullpen_participant.py index 544e7cb..0743171 100644 --- a/lib/bullpen_participant.py +++ b/lib/bullpen_participant.py @@ -52,7 +52,7 @@ def _read_chats(): continue try: m = json.loads(line) - if m.get("type") == "chat": + if m.get("type") in ("chat", "ask"): out.append(m) except Exception: pass diff --git a/systemd/bullpen-selfimprove.service b/systemd/bullpen-selfimprove.service index 57e4550..08031f8 100644 --- a/systemd/bullpen-selfimprove.service +++ b/systemd/bullpen-selfimprove.service @@ -4,4 +4,4 @@ After=network-online.target [Service] Type=oneshot -ExecStart=%h/.local/bin/bullpen-selfimprove +ExecStart=/usr/local/bin/bullpen-selfimprove diff --git a/systemd/bullpen-triage.service b/systemd/bullpen-triage.service index 3db1849..2414f0c 100644 --- a/systemd/bullpen-triage.service +++ b/systemd/bullpen-triage.service @@ -5,7 +5,7 @@ After=network-online.target [Service] Type=simple Environment=PATH=/home/mfritsche/.local/bin:/usr/local/bin:/usr/bin:/bin -ExecStart=/home/mfritsche/.local/bin/bullpen-triage +ExecStart=/usr/local/bin/bullpen-triage Restart=always RestartSec=5