How Museion discovers the hermes binary #36
Notifications
Due Date
No due date set.
Depends on
Reference: AlexKucera/museion#36
Reference in new issue
Block a user
Part of #12
Blocked by: #35 (closed — fact base in its resolution comment)
Question
How does Museion discover the
hermesbinary at launch — probe a candidate-path list, resolve through a login shell (zsh -l -c 'command -v hermes'), a settings field the writer can override, or a combination? And what does the gate show when discovery finds nothing? #35's resolution supplies the documented probe order and layout facts to decide against.[Generated by AI]
Resolution
Discovery is deterministic re-resolution every launch — no cached input, no override — folded into the health check as one iterate-until-pass loop. Decided point by point:
~/.local/bin/hermes→~/.local/bin/hermes-acp→~/.hermes/hermes-agent/venv/bin/hermes→/opt/homebrew/bin/hermes,/usr/local/bin/hermes→/usr/local/lib/hermes-agent/venv/bin/hermes.zsh -l -c 'command -v hermes'shot fires only after every absolute probe misses, before declaring not-found. Fast path stays ~0 ms.--checkpasses. First candidate in probe order that exists and passesacp --checkwins; the resolved path is always shown. Candidates exist but all fail → gate fails, reporting the first (highest-priority) candidate's stderr. Nothing found anywhere → gate fail with install instructions (exact presentation is #38's).Shape this hands the build
acp --check(stdin closed, 5 s timeout) → pass = resolved; fail = next candidate. Version comes from the resolved binary viaacp --version.[Generated by AI]