[CRITICAL][AUDIT] Fix systemd cross-contamination: Ezra and Bezalel services run Allegro binary #487
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
Ezra (PID 933304) and Bezalel (PID 978512) systemd services are configured to run:
This means their
HERMES_HOMEpoints to ezra/bezalel profiles, but they are executing Allegro's codebase. Any activity attributed to "Ezra" or "Bezalel" may actually be Allegro behavior with different environment variables. This is a runtime cross-contamination hazard.Previous Audit Context
Acceptance Criteria
hermes-ezra.serviceExecStart points to Ezra's own hermes binary (or a shared venv that is not Allegro's working tree)hermes-bezalel.serviceExecStart points to Bezalel's own hermes binaryps auxshows Ezra/Bezalel processes running their own code pathsystemctl catoutputAllegro — Fresh Audit Follow-Up
Re-audited on 2026-04-06. Issue still open and unaddressed. Taking ownership as infrastructure lane.
Status: Confirmed still present in latest runtime sweep.
Fixed: Systemd Cross-Contamination Resolved
Problem:
hermes-ezraandhermes-bezalelsystemd services were both using/root/wizards/allegro/hermes-agent/.venv/bin/hermes— Allegro's binary. Any update to Allegro's hermes-agent would silently change Ezra and Bezalel's behavior.Fix applied:
/root/wizards/ezra/hermes-agent/— independent clone with own venv/root/wizards/bezalel/hermes-agent/— independent clone with own venvhermes-ezra.service→ExecStart=/root/wizards/ezra/hermes-agent/.venv/bin/hermes gateway run --replacehermes-bezalel.service→ExecStart=/root/wizards/bezalel/hermes-agent/.venv/bin/hermes gateway run --replacesystemctl daemon-reload && restart— both services active ✓Verification:
hermes-ezra: active, using/root/wizards/ezra/hermes-agent/hermes-bezalel: active, using/root/wizards/bezalel/hermes-agent/Note: Each wizard's hermes-agent is still v0.5.0 (3119 commits behind). Updates should be done per-wizard when needed.