Skip to content

Harden Hermes wrapper ownership - #8539

Merged
dhh merged 2 commits into
omacom:hermes-agentfrom
spencerbull:review/pr-7469-hermes-install
Aug 27, 2026
Merged

dhh merged 2 commits into
omacom:hermes-agentfrom
spencerbull:review/pr-7469-hermes-install

Conversation

@spencerbull

Copy link
Copy Markdown
Contributor

This contributes the installation hardening identified during review directly into the head branch of #7469. It is intended to be absorbed by #7469, not to compete with it against quattro.

Summary

  • Preserve official, hand-written, symlinked, dangling, directory, and otherwise externally owned ~/.local/bin/hermes paths.
  • Recognize Omarchy ownership only through the exact generated marker line.
  • Remove only Omarchy-created Hermes wrappers during Remove Preinstalls.
  • Add an existing-user migration that respects preinstalls-removed, Hermes Desktop ownership, foreign paths, and idempotence.
  • Add focused regression coverage for the full ownership matrix.

The Hermes packaging, Python pin, readiness probe, desktop handoff, and upstream installation strategy are unchanged.

Verification

  • Omabot disposable worker: 188 targeted assertions passed, including 116 CLI assertions.
  • Real cold migration and --now installation: Hermes Agent 0.19.0 on Python 3.13.15, completed in 13 seconds.
  • Exact Nous-style wrapper remained byte-for-byte unchanged through --check, normal install, --now, and the migration.
  • Preinstall opt-out prevented wrapper creation.
  • Independent Claude Fable review: GO, no substantive findings.
  • git diff --check: clean.

Copilot AI balanced review requested due to automatic review settings August 27, 2026 06:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Hardens Hermes wrapper ownership for integration into #7469, preserving user-owned paths while managing only Omarchy-generated wrappers.

Changes:

  • Uses an exact marker to identify Omarchy wrappers.
  • Adds ownership-aware installation, removal, and migration behavior.
  • Expands regression coverage across foreign path types.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
bin/omarchy-install-hermes-cli Adds marker-based ownership handling.
bin/omarchy-remove-preinstalls Removes only Omarchy-owned Hermes wrappers.
migrations/1787760281.sh Migrates existing users to the wrapper.
test/shell.d/hermes-cli-test.sh Tests installer ownership cases.
test/shell.d/hermes-cli-migration-test.sh Tests migration behavior and idempotence.
test/shell.d/preinstalls-test.sh Tests ownership-aware preinstall removal.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread migrations/1787760281.sh Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d56c1ba972

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bin/omarchy-install-hermes-cli Resolved
Comment thread migrations/1787760281.sh Resolved
@spencerbull
spencerbull marked this pull request as draft August 27, 2026 06:19
@dhh
dhh marked this pull request as ready for review August 27, 2026 08:04
@dhh
dhh merged commit 7bbb119 into omacom:hermes-agent Aug 27, 2026
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants