Skip to content

fix(nix): restore home-manager switch after lock file maintenance - #216

Merged
furedea merged 2 commits into
mainfrom
fix/pin-hermes-agent
Oct 18, 2026
Merged

furedea merged 2 commits into
mainfrom
fix/pin-hermes-agent

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

home-manager switch failed after the lock file maintenance in #215, for two reasons.

hermes-agent patch no longer applies

#215 moved hermes-agent to a3197522, and our backport of NousResearch/hermes-agent#85365 (nix/patches/hermes_gateway_service_resources.patch) no longer applies there: 3 of 4 hunks fail in hermes_cli/gateway.py. #85365 is still open upstream.

  • flake.nix: hermes-agent is pinned to 56a41715, the last revision the patch applies to, with a comment explaining why, so lock file maintenance leaves it alone.
  • Unpin, and drop the patch, once #85365 merges.

atuin 18.23.0 fails its own tests on darwin

#215 also moved nixpkgs-unstable to f20cd90e, where atuin is 18.23.0. It has no cached darwin build, and building it locally fails filtered_commands_leave_no_captured_output. That is not an atuin bug: the darwin build is unsandboxed, so the test's interactive bash sources nix-darwin's /etc/bashrc, which resets PATH and runs some other atuin instead of the one under test (NixOS/nixpkgs#575388). The fix, NixOS/nixpkgs#574509, is merged but not yet in nixpkgs-unstable.

  • flake.lock: nixpkgs-unstable goes back to 104240a7 (2026-08-03), the revision before chore(deps): lock file maintenance #215, which is what the machine currently runs. flake.nix still follows the channel, so lock file maintenance moves it forward again once the fix lands.
  • No tests are skipped.

Verification

  • nix build .#homeConfigurations.kaito.activationPackage: builds.
  • bats (6 files): 13/13 passed. Two of them build the full activation package, which is why they timed out while atuin compiled from source.
  • uv run --frozen pytest tests: 1564 passed.

🤖 Generated with Claude Code

furedea and others added 2 commits October 18, 2026 19:18
Lock file maintenance (#215) moved hermes-agent to a revision whose
hermes_cli/gateway.py no longer takes our backport of
NousResearch/hermes-agent#85365, so home-manager switch failed in the
patch phase. The input is now pinned to the last revision the patch
applies to, so lock maintenance leaves it alone until #85365 merges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the channel

atuin 18.23.0 has no cached darwin build: its e2e test starts an
interactive bash that sources nix-darwin's /etc/bashrc in the unsandboxed
darwin build, which resets PATH so the atuin under test never runs
(NixOS/nixpkgs#575388). The fix (NixOS/nixpkgs#574509) is merged but not
yet in nixpkgs-unstable, so roll the input back to the revision before
#215. Lock file maintenance moves it forward again once the channel has it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea-agent furedea-agent Bot changed the title fix(nix): pin hermes-agent until its gateway patch lands upstream fix(nix): restore home-manager switch after lock file maintenance Oct 18, 2026
@furedea
furedea merged commit 02f0957 into main Oct 18, 2026
11 checks passed
@furedea
furedea deleted the fix/pin-hermes-agent branch October 18, 2026 10:59
furedea added a commit that referenced this pull request Oct 19, 2026
## 要約

- Renovate の #238 が固定していた hermes-agent を `5fc490e` に上げ,パッチが 4 か所中 3
か所で当たらず main のシステムがビルドできなくなった.
- #238 を取り消して `56a41715` に戻し,`renovate.json` で hermes-agent を更新の対象から外す.
- 決めること: なし.マージ後に switch する.

| 項目 | 今 (main) | この PR の後 |
|---|---|---|
| hermes-agent | `5fc490e` (パッチが当たらずビルド失敗) | `56a41715` (パッチが当たる) |
| Renovate | URL の中のコミットを上げる | hermes-agent は対象外 |
| 固定を外す条件 | 上流 NousResearch/hermes-agent#85365 のマージ | 同じ.そのとき
`renovate.json` のルールも外す |

## 検証

- [x] `nix build .#darwinConfigurations.mbp.system`: 通過 (main では
`hermes-agent-python-source` のパッチが失敗していた)
- [x] `renovate-config-validator renovate.json`: 通過
- [ ] マージ後の switch

<details>
<summary>経緯</summary>

#216 では,URL にコミットを書けば lock の更新で動かないと考えて固定した.Renovate の nix 対応は,その URL
の中のコミット (digest) まで更新の対象にしていた.

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
furedea added a commit that referenced this pull request Nov 16, 2026
agent-config の PostToolUse フックが ADR 編集後に実行する `adr-check` を PATH
に置く.`jev-lint` と同じ方法で `home.packages` に追加し,`agent-config` 入力を #225
を含むリビジョンに更新する.

Refs furedea/agent-config#169

## 変更内容

- `nix/home/default.nix`: `adrCheckPackage =
agent-config.packages.${system}.adr-check;` を `jevLintPackage`
の隣に追加し,`home.packages` に加えた(furedea/agent-config#225).
- `flake.lock`: `agent-config` を `2ab23eb` → `138c542` に更新した(`nix flake
update agent-config`).

## agent-config の更新内容(2ab23eb → 138c542,23 コミット)

- lint: go-style / rust-style / python-style / TypeScript / bash-style /
github-actions-style / agents/AGENTS.md のルールを ast-grep・jev-lint・model
rules へ移行(#190, #191, #192, #193, #194, #195),Go の `util`・`common`
パッケージ検出(#202),ブロッキング ast-grep ルールの欠落修正(#216)
- hooks: 静的ルールエラーでの編集ブロックと ast-grep-ignore の保護(#203),ask
プレフィックスの限定(#199),リポジトリフック回避オプションの拒否(#212),コードセルの判定修正(#224)
- skills: issue / git / setup ワークフローを `development-cycle`
に統合(#211),agent 実行の verify ステップ削除(#213),範囲外指摘への回答と all-green 待機(#223)
- docs/ADR: MADR の採用(#215),スキル責務の配置(#208),コマンド判定の方針(#198),ast-grep
のブロック方針(#214),AGENTS.md の整理(#205)
- build/ci: マイナーバージョン上げの設定(#217),jev-lint モデルルールテストを CI で実行(#218)
- feat: `adr-check` コマンドの追加(#225)

## 検証

- `nix build '.#homeConfigurations."kaito@mbp".activationPackage'`:
成功.生成物の `home-path/bin` に `adr-check` が含まれることを確認した.
- `darwin-rebuild switch` は実行していない.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.

1 participant