Provide a native NixOS browser runtime for Vega Hermes #321

Open
opened 2026-10-13 07:02:57 +01:00 by nimmo · 2 comments
Owner

Hermes's PM-selected generic Linux agent-browser fails on Vega with the NixOS stub-loader error.

MR #325 / 07c7c05 is merged and deployed, but normal gateway acceptance failed: Hermes's browser_exec still selected cached agent-browser 0.26.0. Earlier isolated navigation/snapshot checks omitted gateway startup's sys.path prepend and did not establish daemon acceptance.

Confirmed cause: run_gateway prepends the upstream package root to sys.path before browser imports, bypassing the original PYTHONPATH tools-package overlay. The unpatched browser_tool_install then chooses PM's generic binary. The running wrapper already supplies explicit native agent-browser and Chromium paths; clearing caches or adding service PATH entries is not the confirmed repair.

Follow-up branch fix/hermes-browser-entrypoint preserves patched discovery with a targeted Python import hook, leaving other tools in the same upstream venv.

Validation:

  • Actual repaired Hermes package builds; nix flake check and Ruff pass.
  • Four regression cases exercise gateway path precedence with a cached PM binary, upstream sibling tools, invalid-native failure and no-override PM compatibility.
  • The deployed package fails two native-selection regressions; the repaired package passes all four.
  • Isolated browser_exec using the gateway path prepend opened https://example.com and returned Example Domain via the browser harness. Harness/browser cleanup ran; no browser processes remained. An upstream interpreter-shutdown cleanup warning was emitted after explicit cleanup.

Remaining acceptance:

  • Review and deploy the follow-up repair.
  • Verify browser tools from Hermes's normal gateway after activation.
  • Record a no-op deployment follow-up before closing this multi-host workstream.

Do not close before live gateway acceptance. Shares milestone 37 with #322 and #324.

Hermes's PM-selected generic Linux agent-browser fails on Vega with the NixOS stub-loader error. MR #325 / 07c7c05 is merged and deployed, but normal gateway acceptance failed: Hermes's browser_exec still selected cached agent-browser 0.26.0. Earlier isolated navigation/snapshot checks omitted gateway startup's sys.path prepend and did not establish daemon acceptance. Confirmed cause: run_gateway prepends the upstream package root to sys.path before browser imports, bypassing the original PYTHONPATH tools-package overlay. The unpatched browser_tool_install then chooses PM's generic binary. The running wrapper already supplies explicit native agent-browser and Chromium paths; clearing caches or adding service PATH entries is not the confirmed repair. Follow-up branch fix/hermes-browser-entrypoint preserves patched discovery with a targeted Python import hook, leaving other tools in the same upstream venv. Validation: - Actual repaired Hermes package builds; nix flake check and Ruff pass. - Four regression cases exercise gateway path precedence with a cached PM binary, upstream sibling tools, invalid-native failure and no-override PM compatibility. - The deployed package fails two native-selection regressions; the repaired package passes all four. - Isolated browser_exec using the gateway path prepend opened https://example.com and returned Example Domain via the browser harness. Harness/browser cleanup ran; no browser processes remained. An upstream interpreter-shutdown cleanup warning was emitted after explicit cleanup. Remaining acceptance: - [ ] Review and deploy the follow-up repair. - [ ] Verify browser tools from Hermes's normal gateway after activation. - [ ] Record a no-op deployment follow-up before closing this multi-host workstream. Do not close before live gateway acceptance. Shares milestone 37 with #322 and #324.
Author
Owner

Normal gateway acceptance failed after deployment. Hermes recorded the generic PM agent-browser 0.26.0 stub-loader error in pages/system/config-requirements.md, while the Nix 0.38.2 binary itself runs. Investigating the actual entry-point/module selection path; PM cache precedence and service PATH are currently explanations proposed by the report, not independently established causes. Keeping this issue open. No cache deletion is planned before reproducing the failure.

Normal gateway acceptance failed after deployment. Hermes recorded the generic PM agent-browser 0.26.0 stub-loader error in pages/system/config-requirements.md, while the Nix 0.38.2 binary itself runs. Investigating the actual entry-point/module selection path; PM cache precedence and service PATH are currently explanations proposed by the report, not independently established causes. Keeping this issue open. No cache deletion is planned before reproducing the failure.
Author
Owner

Confirmed the gateway import-order failure and published the repair in MR #326 (51fd3d7): #326

The repaired package passes all four gateway-path regressions, nix flake check, Ruff and an isolated browser_exec navigation/page-info canary. The currently deployed package fails the two native-selection regressions. No PM cache deletion is needed. KiwiFS architecture and requirements pages now distinguish the confirmed cause from the earlier PATH/cache suggestions and keep normal deployed-gateway acceptance open.

Confirmed the gateway import-order failure and published the repair in MR #326 (51fd3d7): https://git.nimmog.uk/nimmo/nixos-config/pulls/326 The repaired package passes all four gateway-path regressions, nix flake check, Ruff and an isolated browser_exec navigation/page-info canary. The currently deployed package fails the two native-selection regressions. No PM cache deletion is needed. KiwiFS architecture and requirements pages now distinguish the confirmed cause from the earlier PATH/cache suggestions and keep normal deployed-gateway acceptance open.
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config#321
No description provided.