Preserve native Hermes browser discovery during gateway startup #326

Merged
nimmo merged 3 commits from fix/hermes-browser-entrypoint into main 2026-10-14 06:17:12 +01:00
Owner

Hermes's deployed gateway still selected PM's generic Linux agent-browser after MR #325. Gateway startup prepends its upstream package directory to sys.path, bypassing the original PYTHONPATH tools overlay and restoring PM-first discovery.

Install a targeted Python import hook for tools.browser_tool_install so patched native discovery survives that prepend. Other tools continue loading from the same upstream venv. Keep the explicit native agent-browser/Chromium paths and strict patch compatibility checks.

Add a flake regression check covering the shipped hermes wrapper/console entry point, cached PM precedence after gateway bootstrap, sibling-tool imports, invalid native overrides and upstream PM behavior without an override. The entry-point case supplies only an isolated CLI-body shim via PYTHONPATH and requires the shipped wrapper to install the hook and explicit native runtime paths. No cache deletion or migration code is needed.

Validation:

  • nix flake check and Ruff pass; the actual repaired Hermes package builds.
  • All five regressions pass on the repaired package; the deployed package fails the two native-selection cases and the packaged-entrypoint case. All test subprocesses have a 30-second timeout.
  • Isolated browser_exec with gateway path bootstrap opens example.com and returns Example Domain through the browser harness. Explicit cleanup completes and no browser processes remain; upstream emits an interpreter-shutdown cleanup warning afterward.

Refs #321. Milestone: Hermes reported configuration gaps. This repair has not been deployed. Keep #321 open until browser tools succeed from Hermes's normal gateway after deployment; the required deployment no-op follow-up is also still pending.

Hermes's deployed gateway still selected PM's generic Linux agent-browser after MR #325. Gateway startup prepends its upstream package directory to sys.path, bypassing the original PYTHONPATH tools overlay and restoring PM-first discovery. Install a targeted Python import hook for tools.browser_tool_install so patched native discovery survives that prepend. Other tools continue loading from the same upstream venv. Keep the explicit native agent-browser/Chromium paths and strict patch compatibility checks. Add a flake regression check covering the shipped hermes wrapper/console entry point, cached PM precedence after gateway bootstrap, sibling-tool imports, invalid native overrides and upstream PM behavior without an override. The entry-point case supplies only an isolated CLI-body shim via PYTHONPATH and requires the shipped wrapper to install the hook and explicit native runtime paths. No cache deletion or migration code is needed. Validation: - nix flake check and Ruff pass; the actual repaired Hermes package builds. - All five regressions pass on the repaired package; the deployed package fails the two native-selection cases and the packaged-entrypoint case. All test subprocesses have a 30-second timeout. - Isolated browser_exec with gateway path bootstrap opens example.com and returns Example Domain through the browser harness. Explicit cleanup completes and no browser processes remain; upstream emits an interpreter-shutdown cleanup warning afterward. Refs #321. Milestone: Hermes reported configuration gaps. This repair has not been deployed. Keep #321 open until browser tools succeed from Hermes's normal gateway after deployment; the required deployment no-op follow-up is also still pending.
Preserve Hermes browser overlay through gateway bootstrap
All checks were successful
Build and Push Attic Cache / test (pull_request) Successful in 1m43s
Build and Push Attic Cache / build (pull_request) Has been skipped
Build and Push Attic Cache / pin-lifecycle (pull_request) Has been skipped
Build and Push Attic Cache / remediate (pull_request) Has been skipped
Build and Push Attic Cache / notify-remediation (pull_request) Has been skipped
Build and Push Attic Cache / record-remediation-notify-failure (pull_request) Has been skipped
AI pull-request review / review (pull_request) Successful in 16m41s
51fd3d71f0
clankbot left a comment

Automated code review

Reviewed commit: 51fd3d71f099eed7a6c0e5d5c90d610409f7eb96

Verdict: Ready to merge

No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.

Overall assessment

The supplied change swaps the overlay's tools/__init__.py __path__ append for a sitecustomize.py meta-path finder that intercepts tools.browser_tool_install before the gateway's sys.path.insert(0, project_root) can restore upstream discovery, and adds a nix flake check derivation that replays that bootstrap against the packaged venv. Within the supplied material the pieces are consistent: hermes-browser-tools.patch touches only tools/browser_tool_install.py, so dropping the __init__.py copy and the two-file cp/chmod loop keeps patch --fuzz=0 -p1 applicable to the single remaining copy (hermes-browser-package.nix:29,32); the overlay tools/ directory now has no __init__.py, so tools resolves to the upstream venv package and the sibling-tool test matches that; the patch reads HERMES_AGENT_BROWSER at call time inside _find_agent_browser, which is what the four test bodies assume; wrapProgram still prefixes the overlay directory and sets HERMES_AGENT_BROWSER/AGENT_BROWSER_EXECUTABLE_PATH exactly as before (hermes-browser-package.nix:36-39); and the check binds to self.nixosConfigurations.vega.config.services.hermes-agent.package, the only consumer of this module (modules/services/hermes.nix:186-191, enabled only from hosts/vega/default.nix:268), following the same pattern as the existing hermes-fleet-ssh check. I found no defect demonstrably wrong in the supplied code; the retained finding is a coverage gap in the new check, and the remaining concerns depend on upstream Hermes internals that are not in this checkout.

Blocking findings

None.

Important findings

None.

Suggestions

  • New regression check hand-sets PYTHONPATH instead of exercising the wrapped entry point that installs the hook (flake.nix:235; medium confidence)
    The check runs ${package.hermesVenv}/bin/python after export PYTHONPATH=${package}/lib/hermes-nixos-browser (flake.nix:233-235). The only shipped mechanism that installs the new hook is cp ${./hermes-browser-sitecustomize.py} "$out/lib/hermes-nixos-browser/sitecustomize.py" plus wrapProgram "$out/bin/hermes" --prefix PYTHONPATH : "$out/lib/hermes-nixos-browser" (modules/common/hermes-browser-package.nix:31,36-37); $out/bin/hermes is never executed by the check, even though postInstall still asserts it exists and is executable (hermes-browser-package.nix:19-22).
    Impact: The check proves the finder works when PYTHONPATH is supplied by hand, not that the packaged entry point actually loads sitecustomize. A wrapProgram regression, a renamed entry point, or an interpreter invoked with -S/-I would keep nix flake check green while the deployed gateway silently reverts to PM's cached browser - the failure mode this MR exists to prevent.
    Suggested fix: Add an assertion in the check that drives $package/bin/hermes (or otherwise proves the wrapped entry point resolves tools.browser_tool_install to the overlay copy) so the delivery mechanism, not only the hook, is covered.

Tests and validation

  • No configured deterministic checks.

Questions

  • Does the Hermes venv or its base interpreter already ship a sitecustomize module? CPython imports only the first sitecustomize on sys.path, and the overlay directory is placed first by wrapProgram (hermes-browser-package.nix:36-37), so an existing one would now be shadowed - and the finder is prepended to sys.meta_path for every process inheriting that PYTHONPATH, including Hermes' subprocesses, not only the gateway.
  • Is agent_browser_runnable(native) a pure existence/executability check, or does it execute the binary? Test 1 (scripts/test-hermes-browser-runtime.py:33-34) calls _find_agent_browser(validate=True) with HERMES_AGENT_BROWSER=${pkgs.lib.getExe pkgs.agent-browser} (flake.nix:234); if it executes, the check becomes sandbox/network-sensitive.
  • Is tools/browser_tool_origin guaranteed to exist upstream, and is hermes_cli a source package directly under the venv's site-packages? Test 2 derives project_root from Path(find_spec('hermes_cli').origin).parent.parent (scripts/test-hermes-browser-runtime.py:14) and asserts Path(browser_tool_origin.__file__).parent == project_root / 'tools' (line 45); a namespace package or extension module would make origin None and fail the check for reasons unrelated to this fix.
  • Could upstream tools/__init__.py import browser_tool_install eagerly at package import? If so, sys.modules['tools.browser_tool_install'] would already be populated when from tools import browser_tool_install runs, the meta-path finder would never be consulted, and the unpatched module would be used - the previous __path__ overlay did not depend on that.
  • Does the gateway ever load browser tools through an interpreter that does not run site (e.g. -S, -I, or a subprocess with a rebuilt environment), where sitecustomize never runs and discovery reverts to PM?

Review limitations

  • The hermes-agent flake input (github:NousResearch/hermes-agent, flake.nix:37) is not vendored in this checkout, so upstream tools/browser_tool_install.py, tools/__init__.py, tools/browser_tool_origin, hermes_cli, the hermesVenv/python.sitePackages passthru, and the tail of _find_agent_browser beyond the hunk in modules/common/hermes-browser-tools.patch could not be inspected; the check's assumptions about those names are unverified.
  • No Nix evaluation, build, or Python execution was performed; the review container has no Nix per .forgejo/ai-review.yml, and I did not edit or run repository code. The stated validation results (flake check, Ruff, four regressions, isolated browser_exec) come from the pull-request text and were not reproduced.
  • Deployment evidence is absent from the supplied material; the MR text states the change has not been deployed and that #321 plus the deployment no-op remain open, so AGENTS.md's requirement for a canary/recorded deployment before merging cannot be assessed here.
  • Whether nix flake check builds or only type-checks the new derivation was not verified against this repository's CI configuration.

Diff coverage

  • README.md: reviewed — included in a context-limited batch
  • flake.nix: reviewed — included in a context-limited batch
  • modules/common/hermes-browser-package.nix: reviewed — included in a context-limited batch
  • modules/common/hermes-browser-sitecustomize.py: reviewed — included in a context-limited batch
  • scripts/test-hermes-browser-runtime.py: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: strata/strata
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md
  • Commits considered: 1
  • Previous automated review: none found
  • Findings: 1
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `51fd3d71f099eed7a6c0e5d5c90d610409f7eb96` ## Verdict: Ready to merge No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory. ### Overall assessment The supplied change swaps the overlay's `tools/__init__.py` `__path__` append for a `sitecustomize.py` meta-path finder that intercepts `tools.browser_tool_install` before the gateway's `sys.path.insert(0, project_root)` can restore upstream discovery, and adds a `nix flake check` derivation that replays that bootstrap against the packaged venv. Within the supplied material the pieces are consistent: `hermes-browser-tools.patch` touches only `tools/browser_tool_install.py`, so dropping the `__init__.py` copy and the two-file `cp`/`chmod` loop keeps `patch --fuzz=0 -p1` applicable to the single remaining copy (hermes-browser-package.nix:29,32); the overlay `tools/` directory now has no `__init__.py`, so `tools` resolves to the upstream venv package and the sibling-tool test matches that; the patch reads `HERMES_AGENT_BROWSER` at call time inside `_find_agent_browser`, which is what the four test bodies assume; `wrapProgram` still prefixes the overlay directory and sets `HERMES_AGENT_BROWSER`/`AGENT_BROWSER_EXECUTABLE_PATH` exactly as before (hermes-browser-package.nix:36-39); and the check binds to `self.nixosConfigurations.vega.config.services.hermes-agent.package`, the only consumer of this module (modules/services/hermes.nix:186-191, enabled only from hosts/vega/default.nix:268), following the same pattern as the existing `hermes-fleet-ssh` check. I found no defect demonstrably wrong in the supplied code; the retained finding is a coverage gap in the new check, and the remaining concerns depend on upstream Hermes internals that are not in this checkout. ### Blocking findings None. ### Important findings None. ### Suggestions - **New regression check hand-sets PYTHONPATH instead of exercising the wrapped entry point that installs the hook** (flake.nix:235; medium confidence) The check runs `${package.hermesVenv}/bin/python` after `export PYTHONPATH=${package}/lib/hermes-nixos-browser` (flake.nix:233-235). The only shipped mechanism that installs the new hook is `cp ${./hermes-browser-sitecustomize.py} "$out/lib/hermes-nixos-browser/sitecustomize.py"` plus `wrapProgram "$out/bin/hermes" --prefix PYTHONPATH : "$out/lib/hermes-nixos-browser"` (modules/common/hermes-browser-package.nix:31,36-37); `$out/bin/hermes` is never executed by the check, even though postInstall still asserts it exists and is executable (hermes-browser-package.nix:19-22). Impact: The check proves the finder works when PYTHONPATH is supplied by hand, not that the packaged entry point actually loads `sitecustomize`. A `wrapProgram` regression, a renamed entry point, or an interpreter invoked with `-S`/`-I` would keep `nix flake check` green while the deployed gateway silently reverts to PM's cached browser - the failure mode this MR exists to prevent. Suggested fix: Add an assertion in the check that drives `$package/bin/hermes` (or otherwise proves the wrapped entry point resolves `tools.browser_tool_install` to the overlay copy) so the delivery mechanism, not only the hook, is covered. ### Tests and validation - No configured deterministic checks. ### Questions - Does the Hermes venv or its base interpreter already ship a `sitecustomize` module? CPython imports only the first `sitecustomize` on sys.path, and the overlay directory is placed first by `wrapProgram` (hermes-browser-package.nix:36-37), so an existing one would now be shadowed - and the finder is prepended to `sys.meta_path` for every process inheriting that PYTHONPATH, including Hermes' subprocesses, not only the gateway. - Is `agent_browser_runnable(native)` a pure existence/executability check, or does it execute the binary? Test 1 (scripts/test-hermes-browser-runtime.py:33-34) calls `_find_agent_browser(validate=True)` with `HERMES_AGENT_BROWSER=${pkgs.lib.getExe pkgs.agent-browser}` (flake.nix:234); if it executes, the check becomes sandbox/network-sensitive. - Is `tools/browser_tool_origin` guaranteed to exist upstream, and is `hermes_cli` a source package directly under the venv's site-packages? Test 2 derives `project_root` from `Path(find_spec('hermes_cli').origin).parent.parent` (scripts/test-hermes-browser-runtime.py:14) and asserts `Path(browser_tool_origin.__file__).parent == project_root / 'tools'` (line 45); a namespace package or extension module would make `origin` None and fail the check for reasons unrelated to this fix. - Could upstream `tools/__init__.py` import `browser_tool_install` eagerly at package import? If so, `sys.modules['tools.browser_tool_install']` would already be populated when `from tools import browser_tool_install` runs, the meta-path finder would never be consulted, and the unpatched module would be used - the previous `__path__` overlay did not depend on that. - Does the gateway ever load browser tools through an interpreter that does not run `site` (e.g. `-S`, `-I`, or a subprocess with a rebuilt environment), where `sitecustomize` never runs and discovery reverts to PM? ### Review limitations - The `hermes-agent` flake input (github:NousResearch/hermes-agent, flake.nix:37) is not vendored in this checkout, so upstream `tools/browser_tool_install.py`, `tools/__init__.py`, `tools/browser_tool_origin`, `hermes_cli`, the `hermesVenv`/`python.sitePackages` passthru, and the tail of `_find_agent_browser` beyond the hunk in modules/common/hermes-browser-tools.patch could not be inspected; the check's assumptions about those names are unverified. - No Nix evaluation, build, or Python execution was performed; the review container has no Nix per .forgejo/ai-review.yml, and I did not edit or run repository code. The stated validation results (flake check, Ruff, four regressions, isolated browser_exec) come from the pull-request text and were not reproduced. - Deployment evidence is absent from the supplied material; the MR text states the change has not been deployed and that #321 plus the deployment no-op remain open, so AGENTS.md's requirement for a canary/recorded deployment before merging cannot be assessed here. - Whether `nix flake check` builds or only type-checks the new derivation was not verified against this repository's CI configuration. ### Diff coverage - `README.md`: **reviewed** — included in a context-limited batch - `flake.nix`: **reviewed** — included in a context-limited batch - `modules/common/hermes-browser-package.nix`: **reviewed** — included in a context-limited batch - `modules/common/hermes-browser-sitecustomize.py`: **reviewed** — included in a context-limited batch - `scripts/test-hermes-browser-runtime.py`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: strata/strata - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md - Commits considered: 1 - Previous automated review: none found - Findings: 1 </details>
Exercise Hermes packaged entrypoint in browser regression check
All checks were successful
Build and Push Attic Cache / test (pull_request) Successful in 1m23s
Build and Push Attic Cache / build (pull_request) Has been skipped
Build and Push Attic Cache / pin-lifecycle (pull_request) Has been skipped
Build and Push Attic Cache / remediate (pull_request) Has been skipped
Build and Push Attic Cache / notify-remediation (pull_request) Has been skipped
Build and Push Attic Cache / record-remediation-notify-failure (pull_request) Has been skipped
AI pull-request review / review (pull_request) Successful in 32m37s
3fa41a39ef
Author
Owner

Implemented review #74's valid coverage suggestion in 3fa41a3. The fifth regression executes the shipped package/bin/hermes wrappers and console script with an isolated CLI-body shim, removes inherited HERMES_AGENT_BROWSER and Chromium overrides, and supplies only the shim via PYTHONPATH. It then performs the gateway path prepend, checks the overlay module origin, checks native selection against a cached PM record, and verifies the wrapper supplied Chromium. Sibling Hermes CLI modules remain upstream. The test fails on the deployed package and passes on the repaired package. Full nix flake check (including all five browser cases), Ruff and diff checks pass.

Pinned-source answers to advisory questions:

  • Default venv interpreter find_spec('sitecustomize') is None. OpenTelemetry has a nested auto_instrumentation/sitecustomize.py, which is not on the default startup path.
  • tools/init.py explicitly stays side-effect free and does not import browser discovery eagerly. The hook is already installed before tools imports, so an eager import would also consult it.
  • hermes_constants.agent_browser_runnable validates executable presence and a --version probe; it does not navigate or install browsers. The check passes in the Nix build sandbox.
  • The pinned package has hermes_cli and tools/browser_tool_origin at the tested paths; changes to those assumptions deliberately fail the regression check for investigation.
  • The new entry-point case exercises interpreter startup rather than relying on a manually configured hook. browser_exec resets the browser-harness child's PYTHONPATH, but native agent-browser discovery occurs in the parent before that child; the isolated browser_exec canary already succeeded.

Normal deployed-gateway browser acceptance remains pending after review and deployment; #321 stays open.

Implemented review #74's valid coverage suggestion in 3fa41a3. The fifth regression executes the shipped package/bin/hermes wrappers and console script with an isolated CLI-body shim, removes inherited HERMES_AGENT_BROWSER and Chromium overrides, and supplies only the shim via PYTHONPATH. It then performs the gateway path prepend, checks the overlay module origin, checks native selection against a cached PM record, and verifies the wrapper supplied Chromium. Sibling Hermes CLI modules remain upstream. The test fails on the deployed package and passes on the repaired package. Full nix flake check (including all five browser cases), Ruff and diff checks pass. Pinned-source answers to advisory questions: - Default venv interpreter find_spec('sitecustomize') is None. OpenTelemetry has a nested auto_instrumentation/sitecustomize.py, which is not on the default startup path. - tools/__init__.py explicitly stays side-effect free and does not import browser discovery eagerly. The hook is already installed before tools imports, so an eager import would also consult it. - hermes_constants.agent_browser_runnable validates executable presence and a --version probe; it does not navigate or install browsers. The check passes in the Nix build sandbox. - The pinned package has hermes_cli and tools/browser_tool_origin at the tested paths; changes to those assumptions deliberately fail the regression check for investigation. - The new entry-point case exercises interpreter startup rather than relying on a manually configured hook. browser_exec resets the browser-harness child's PYTHONPATH, but native agent-browser discovery occurs in the parent before that child; the isolated browser_exec canary already succeeded. Normal deployed-gateway browser acceptance remains pending after review and deployment; #321 stays open.
clankbot left a comment

Automated code review

Reviewed commit: 3fa41a39ef080e068a6f2f84a0e741a7b05d911b

Verdict: Ready to merge

No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.

Overall assessment

The change swaps the PYTHONPATH tools/ overlay (copy of upstream tools/__init__.py + browser_tool_install.py with an appended __path__) for a sitecustomize.py meta-path finder that intercepts the exact fullname tools.browser_tool_install and loads the patched overlay copy, plus a new hermes-browser-runtime flake check that runs the packaged bin/hermes entry point and four probe cases through a simulated gateway sys.path.insert(0, project_root) bootstrap. The unchanged hermes-browser-tools.patch still targets only tools/browser_tool_install.py, so patch --fuzz=0 -p1 remains applicable to the single copied file. The overlay layout and the test wiring are internally consistent: the overlay dir is prepended to PYTHONPATH by wrapProgram (modules/common/hermes-browser-package.nix:37) and by the flake check (flake.nix:229), so sitecustomize.py at the overlay root is the module Python resolves at startup, and os.path.dirname(__file__) (sitecustomize:13) points at that same overlay root, matching the test assertion Path(installer.__file__) == expected / 'tools/browser_tool_install.py'. I found no defect that would break evaluation or the build; the two concrete regressions are a narrowed build-time layout guard and an unbounded subprocess call in the new check script.

Blocking findings

None.

Important findings

None.

Suggestions

  • probe() runs its subprocess without a timeout, unlike the packaged-entrypoint case in the same file (scripts/test-hermes-browser-runtime.py:81; high confidence)
    The probe() helper calls subprocess.run([sys.executable, "-c", BOOTSTRAP + assertions], cwd=..., env=..., check=False, capture_output=True, text=True) with no timeout argument, while the sibling call at line 63 passes timeout=30 (line 70). Two probes call installer._find_agent_browser(validate=True), which the unchanged patch (hermes-browser-tools.patch) implements as usable = agent_browser_runnable if validate else ...; if not usable(native), i.e. a readiness check on the native binary exported at flake.nix:231. Every other subprocess helper in this repository bounds its calls (scripts/test-codex-http-mcp.py:39 timeout=5, scripts/nixos-pin-lifecycle.py:83 timeout: int = 7200).
    Impact: A hang inside the native agent-browser readiness check leaves the hermes-browser-runtime derivation blocked indefinitely instead of failing, so the authoritative gate nix flake check (.forgejo/workflows/attic-cache.yml:140) can stall rather than report a regression failure; the packaged-entrypoint case would have surfaced the same hang as a TimeoutExpired failure.
    Suggested fix: Pass an explicit timeout to the subprocess.run in probe() (the same bound used by the packaged-entrypoint case) so a hung native binary surfaces as a failed check rather than a stalled one.

  • Build-time guard no longer asserts the upstream tools package layout that the new import hook depends on (modules/common/hermes-browser-package.nix:14; medium confidence)
    The required-file loop was narrowed from for file in __init__.py browser_tool_install.py; do to for file in browser_tool_install.py; do, and the copy from cp "$upstream_tools/"{__init__,browser_tool_install}.py to cp "$upstream_tools/browser_tool_install.py" (diff of this file). The overlay tools/ directory therefore has no __init__.py and no __path__.append line, so the only way the patched copy is reached is through the parent tools package resolving from ${hermesVenv}/${python.sitePackages}/tools — an assumption the new test asserts at runtime (test_other_tools_still_come_from_upstream: Path(browser_tool_origin.__file__).parent == project_root / 'tools'). The remaining build-time checks are only -x "$out/bin/hermes" and grep -Fq 'def _find_agent_browser(' on the single file.
    Impact: A Hermes revision that stops shipping tools as a regular package on the venv path (namespace package, renamed directory) now builds successfully and fails only at gateway startup, moving a layout regression out of the nix flake check gate that ai-review.md treats as authoritative; the previous overlay caught it at build time.
    Suggested fix: Keep asserting that $upstream_tools/__init__.py exists, or add a build-time proof that tools.browser_tool_install resolves through the installed hook, so the layout assumption the new mechanism relies on is still caught during the package build.

Tests and validation

  • No configured deterministic checks.

Questions

  • Does the Hermes venv already ship a sitecustomize.py under ${hermesVenv}/${python.sitePackages}? The overlay directory is prepended to PYTHONPATH (modules/common/hermes-browser-package.nix:37, flake.nix:229), and Python imports only the first sitecustomize found on sys.path, so an upstream one would be silently shadowed by modules/common/hermes-browser-sitecustomize.py.
  • Does every gateway code path import the module under the exact fullname tools.browser_tool_install? The finder matches only that literal string (hermes-browser-sitecustomize.py:10) and returns None for anything else, so an aliased or differently qualified import would load the unpatched upstream module.
  • The flake check resolves agent-browser and chromium from nixpkgs.legacyPackages.x86_64-linux (flake.nix:229-231), while the deployed package is built with the host's pkgs (inherit pkgs lib at modules/services/hermes.nix:188-190). Are those the same binaries on vega, or could an overlay make the check exercise a different native binary than the service sets?
  • The validation text reports the deployed package failing the two native-selection cases, but the script defines five cases including test_packaged_entrypoint_installs_hook_and_native_paths, which also asserts installer._find_agent_browser(validate=True) == os.environ['HERMES_BROWSER_TEST_NATIVE']. Which specific cases were observed failing?

Review limitations

  • The upstream Hermes package is not in this checkout: tools/browser_tool_install.py (unpatched), tools.browser_tool_origin, hermes_cli, agent_browser_runnable, and _agent_browser_candidate_present were not supplied, so the test assertions against them and the module's own import style could not be verified.
  • Nothing was executed: nix flake check, the new hermes-browser-runtime derivation, the Hermes package build, and any formatter/linter were not run, so the reported validation results come only from the untrusted MR text.
  • The live behaviour described in the MR (isolated browser_exec opening example.com, the interpreter-shutdown cleanup warning, PM precedence in the deployed gateway) is not reproducible from the supplied material.
  • Two probe cases (test_other_tools_still_come_from_upstream, test_without_native_override_upstream_pm_behavior_is_preserved) appear to pass identically with or without the overlay, but no supplied repository rule requires that coverage, so this was not reported as a defect.
  • No host, specialisation, secret exposure, or fleet/auto-update policy is touched by these files; modules/common/hermes-browser-package.nix is imported only by modules/services/hermes.nix, which only hosts/vega/default.nix:42 includes.

Diff coverage

  • README.md: reviewed — included in a context-limited batch
  • flake.nix: reviewed — included in a context-limited batch
  • modules/common/hermes-browser-package.nix: reviewed — included in a context-limited batch
  • modules/common/hermes-browser-sitecustomize.py: reviewed — included in a context-limited batch
  • scripts/test-hermes-browser-runtime.py: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: strata/strata
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md
  • Commits considered: 2
  • Previous automated review: none found
  • Findings: 2
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `3fa41a39ef080e068a6f2f84a0e741a7b05d911b` ## Verdict: Ready to merge No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory. ### Overall assessment The change swaps the PYTHONPATH `tools/` overlay (copy of upstream `tools/__init__.py` + `browser_tool_install.py` with an appended `__path__`) for a `sitecustomize.py` meta-path finder that intercepts the exact fullname `tools.browser_tool_install` and loads the patched overlay copy, plus a new `hermes-browser-runtime` flake check that runs the packaged `bin/hermes` entry point and four probe cases through a simulated gateway `sys.path.insert(0, project_root)` bootstrap. The unchanged `hermes-browser-tools.patch` still targets only `tools/browser_tool_install.py`, so `patch --fuzz=0 -p1` remains applicable to the single copied file. The overlay layout and the test wiring are internally consistent: the overlay dir is prepended to PYTHONPATH by `wrapProgram` (modules/common/hermes-browser-package.nix:37) and by the flake check (flake.nix:229), so `sitecustomize.py` at the overlay root is the module Python resolves at startup, and `os.path.dirname(__file__)` (sitecustomize:13) points at that same overlay root, matching the test assertion `Path(installer.__file__) == expected / 'tools/browser_tool_install.py'`. I found no defect that would break evaluation or the build; the two concrete regressions are a narrowed build-time layout guard and an unbounded subprocess call in the new check script. ### Blocking findings None. ### Important findings None. ### Suggestions - **probe() runs its subprocess without a timeout, unlike the packaged-entrypoint case in the same file** (scripts/test-hermes-browser-runtime.py:81; high confidence) The `probe()` helper calls `subprocess.run([sys.executable, "-c", BOOTSTRAP + assertions], cwd=..., env=..., check=False, capture_output=True, text=True)` with no `timeout` argument, while the sibling call at line 63 passes `timeout=30` (line 70). Two probes call `installer._find_agent_browser(validate=True)`, which the unchanged patch (hermes-browser-tools.patch) implements as `usable = agent_browser_runnable if validate else ...; if not usable(native)`, i.e. a readiness check on the native binary exported at flake.nix:231. Every other subprocess helper in this repository bounds its calls (scripts/test-codex-http-mcp.py:39 `timeout=5`, scripts/nixos-pin-lifecycle.py:83 `timeout: int = 7200`). Impact: A hang inside the native `agent-browser` readiness check leaves the `hermes-browser-runtime` derivation blocked indefinitely instead of failing, so the authoritative gate `nix flake check` (.forgejo/workflows/attic-cache.yml:140) can stall rather than report a regression failure; the packaged-entrypoint case would have surfaced the same hang as a TimeoutExpired failure. Suggested fix: Pass an explicit `timeout` to the `subprocess.run` in `probe()` (the same bound used by the packaged-entrypoint case) so a hung native binary surfaces as a failed check rather than a stalled one. - **Build-time guard no longer asserts the upstream `tools` package layout that the new import hook depends on** (modules/common/hermes-browser-package.nix:14; medium confidence) The required-file loop was narrowed from `for file in __init__.py browser_tool_install.py; do` to `for file in browser_tool_install.py; do`, and the copy from `cp "$upstream_tools/"{__init__,browser_tool_install}.py` to `cp "$upstream_tools/browser_tool_install.py"` (diff of this file). The overlay `tools/` directory therefore has no `__init__.py` and no `__path__.append` line, so the only way the patched copy is reached is through the parent `tools` package resolving from `${hermesVenv}/${python.sitePackages}/tools` — an assumption the new test asserts at runtime (`test_other_tools_still_come_from_upstream`: `Path(browser_tool_origin.__file__).parent == project_root / 'tools'`). The remaining build-time checks are only `-x "$out/bin/hermes"` and `grep -Fq 'def _find_agent_browser('` on the single file. Impact: A Hermes revision that stops shipping `tools` as a regular package on the venv path (namespace package, renamed directory) now builds successfully and fails only at gateway startup, moving a layout regression out of the `nix flake check` gate that ai-review.md treats as authoritative; the previous overlay caught it at build time. Suggested fix: Keep asserting that `$upstream_tools/__init__.py` exists, or add a build-time proof that `tools.browser_tool_install` resolves through the installed hook, so the layout assumption the new mechanism relies on is still caught during the package build. ### Tests and validation - No configured deterministic checks. ### Questions - Does the Hermes venv already ship a `sitecustomize.py` under `${hermesVenv}/${python.sitePackages}`? The overlay directory is prepended to PYTHONPATH (modules/common/hermes-browser-package.nix:37, flake.nix:229), and Python imports only the first `sitecustomize` found on `sys.path`, so an upstream one would be silently shadowed by modules/common/hermes-browser-sitecustomize.py. - Does every gateway code path import the module under the exact fullname `tools.browser_tool_install`? The finder matches only that literal string (hermes-browser-sitecustomize.py:10) and returns `None` for anything else, so an aliased or differently qualified import would load the unpatched upstream module. - The flake check resolves `agent-browser` and `chromium` from `nixpkgs.legacyPackages.x86_64-linux` (flake.nix:229-231), while the deployed package is built with the host's `pkgs` (`inherit pkgs lib` at modules/services/hermes.nix:188-190). Are those the same binaries on vega, or could an overlay make the check exercise a different native binary than the service sets? - The validation text reports the deployed package failing the two native-selection cases, but the script defines five cases including `test_packaged_entrypoint_installs_hook_and_native_paths`, which also asserts `installer._find_agent_browser(validate=True) == os.environ['HERMES_BROWSER_TEST_NATIVE']`. Which specific cases were observed failing? ### Review limitations - The upstream Hermes package is not in this checkout: `tools/browser_tool_install.py` (unpatched), `tools.browser_tool_origin`, `hermes_cli`, `agent_browser_runnable`, and `_agent_browser_candidate_present` were not supplied, so the test assertions against them and the module's own import style could not be verified. - Nothing was executed: `nix flake check`, the new `hermes-browser-runtime` derivation, the Hermes package build, and any formatter/linter were not run, so the reported validation results come only from the untrusted MR text. - The live behaviour described in the MR (isolated `browser_exec` opening example.com, the interpreter-shutdown cleanup warning, PM precedence in the deployed gateway) is not reproducible from the supplied material. - Two probe cases (`test_other_tools_still_come_from_upstream`, `test_without_native_override_upstream_pm_behavior_is_preserved`) appear to pass identically with or without the overlay, but no supplied repository rule requires that coverage, so this was not reported as a defect. - No host, specialisation, secret exposure, or fleet/auto-update policy is touched by these files; `modules/common/hermes-browser-package.nix` is imported only by `modules/services/hermes.nix`, which only `hosts/vega/default.nix:42` includes. ### Diff coverage - `README.md`: **reviewed** — included in a context-limited batch - `flake.nix`: **reviewed** — included in a context-limited batch - `modules/common/hermes-browser-package.nix`: **reviewed** — included in a context-limited batch - `modules/common/hermes-browser-sitecustomize.py`: **reviewed** — included in a context-limited batch - `scripts/test-hermes-browser-runtime.py`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: strata/strata - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md - Commits considered: 2 - Previous automated review: none found - Findings: 2 </details>
Bound Hermes browser regression subprocesses
All checks were successful
Build and Push Attic Cache / test (pull_request) Successful in 1m26s
Build and Push Attic Cache / build (pull_request) Has been skipped
Build and Push Attic Cache / pin-lifecycle (pull_request) Has been skipped
Build and Push Attic Cache / remediate (pull_request) Has been skipped
Build and Push Attic Cache / notify-remediation (pull_request) Has been skipped
Build and Push Attic Cache / record-remediation-notify-failure (pull_request) Has been skipped
AI pull-request review / review (pull_request) Successful in 15m2s
295004ba7e
Author
Owner

Review #75 follow-up: implemented the valid unbounded-probe suggestion in 295004b. Every regression subprocess now has timeout=30. Ruff and full nix flake check pass, including all five browser cases.

The proposed regular-package guard is not required by this import hook. An isolated fixture with tools as a namespace package (no init.py; tools.file is None) successfully loads browser_tool_install through the identical finder. If upstream renames tools or removes browser_tool_install.py, the existing required-file check already rejects the build. If module resolution or sibling imports change, hermes-browser-runtime runs in nix flake check and fails; it is incorrect that this would escape that gate. The actual pinned upstream package remains regular and side-effect free. No speculative init.py requirement added.

Additional answers: the current interpreter has no default sitecustomize; source inspection and the real browser_exec canary show the exact tools.browser_tool_install imports. The packaged-entrypoint test compares wrapper-selected native agent-browser with the flake-check expected path, so different service/check agent-browser binaries would fail it. The old package failed test_native_browser_wins_over_cached_pm_after_gateway_bootstrap and test_missing_native_binary_fails_instead_of_using_pm_cache in the original four-case suite; the added test_packaged_entrypoint_installs_hook_and_native_paths also fails against that old package. Three old-package failures have therefore been independently observed across the two runs.

The new current head requires its own review; the monitoring deadline remains unchanged. No merge or deployment performed.

Review #75 follow-up: implemented the valid unbounded-probe suggestion in 295004b. Every regression subprocess now has timeout=30. Ruff and full nix flake check pass, including all five browser cases. The proposed regular-package guard is not required by this import hook. An isolated fixture with tools as a namespace package (no __init__.py; tools.__file__ is None) successfully loads browser_tool_install through the identical finder. If upstream renames tools or removes browser_tool_install.py, the existing required-file check already rejects the build. If module resolution or sibling imports change, hermes-browser-runtime runs in nix flake check and fails; it is incorrect that this would escape that gate. The actual pinned upstream package remains regular and side-effect free. No speculative __init__.py requirement added. Additional answers: the current interpreter has no default sitecustomize; source inspection and the real browser_exec canary show the exact tools.browser_tool_install imports. The packaged-entrypoint test compares wrapper-selected native agent-browser with the flake-check expected path, so different service/check agent-browser binaries would fail it. The old package failed test_native_browser_wins_over_cached_pm_after_gateway_bootstrap and test_missing_native_binary_fails_instead_of_using_pm_cache in the original four-case suite; the added test_packaged_entrypoint_installs_hook_and_native_paths also fails against that old package. Three old-package failures have therefore been independently observed across the two runs. The new current head requires its own review; the monitoring deadline remains unchanged. No merge or deployment performed.
Author
Owner

The authorized one-hour monitoring window has ended. Implemented review #74's actual packaged-entrypoint coverage in 3fa41a3 and review #75's subprocess timeout in 295004b; both were validated with Ruff and full nix flake check before pushing. The unsupported regular-package layout claim received an evidence-backed response.

Final observed head: 295004ba7e. CI test passed; its AI review remains pending, so the older Ready to merge verdicts do not establish current-head review completion. The heartbeat has been removed, with no extension or replacement. No merge or deployment performed. #321 remains open for normal deployed-gateway browser acceptance and the deployment no-op evidence.

The authorized one-hour monitoring window has ended. Implemented review #74's actual packaged-entrypoint coverage in 3fa41a3 and review #75's subprocess timeout in 295004b; both were validated with Ruff and full nix flake check before pushing. The unsupported regular-package layout claim received an evidence-backed response. Final observed head: 295004ba7e52681533d98f2be8d4b77a725bd908. CI test passed; its AI review remains pending, so the older Ready to merge verdicts do not establish current-head review completion. The heartbeat has been removed, with no extension or replacement. No merge or deployment performed. #321 remains open for normal deployed-gateway browser acceptance and the deployment no-op evidence.
clankbot left a comment

Automated code review

Reviewed commit: 295004ba7e52681533d98f2be8d4b77a725bd908

Verdict: Ready to merge

No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.

Overall assessment

Strict validation pass over the initial review. The changed files are internally consistent with each other and with the checked-out code: modules/common/hermes-browser-package.nix keeps the layout guards it still needs under the new scheme (upstream_tools/browser_tool_install.py presence, grep -Fq 'def _find_agent_browser(', patch --fuzz=0), copies only the one module the unchanged hermes-browser-tools.patch hunks target, and installs sitecustomize.py at the root of the same directory the existing wrapProgram --prefix PYTHONPATH already prepends; modules/services/hermes.nix:188 sets services.hermes-agent.package from that module and the module already reads old.passthru.hermesVenv, so flake.nix:235 (self.nixosConfigurations.vega.config.services.hermes-agent.package) and package.hermesVenv are valid references; Hermes is composed only on Vega (grep over hosts/ matches only hosts/vega/default.nix), so the modules/common/ placement does not widen host scope. scripts/test-hermes-browser-runtime.py derives the upstream root from find_spec('hermes_cli').origin consistently in both the entry-point test and the probes, and its sys.path.insert(0, project_root) bootstrap is exactly the case the meta-path finder is meant to survive. I found no defect that is demonstrably caused by the supplied diff. All three initial-review findings were dropped: the sitecustomize shadowing/skipping concern (finding 1) and the dropped tools/__init__.py layout guard (finding 2) both depend on upstream Hermes venv contents that were not supplied and describe hypothetical future revisions, not a change-induced defect; finding 2's second half (collapsing the single-element for file in browser_tool_install.py loop) is stylistic only. The flake-check blast-radius concern (finding 3) is a scope/design observation, not a defect: the check is a deliberate regression check, AGENTS.md and .forgejo/ai-review.md state that nix flake check is the authoritative gate without any rule that checks must be evaluation-only, and the gate already runs non-evaluation subprocess work (checks.x86_64-linux.formatting = treefmtEval.config.build.check self; at flake.nix:216).

Blocking findings

None.

Important findings

None.

Suggestions

None.

Tests and validation

  • No configured deterministic checks.

Questions

  • Does the built upstream Hermes venv already contain a module named sitecustomize (or any other sitecustomize reachable at interpreter startup) that cp ${./hermes-browser-sitecustomize.py} "$out/lib/hermes-nixos-browser/sitecustomize.py" now shadows, and would that module's side effects be lost for the gateway process?
  • scripts/test-hermes-browser-runtime.py:112 imports from tools import browser_tool_origin; is that a real upstream module in the Hermes venv's tools/ package? No other file in this checkout references that name, so the regression's 'other tools still come from upstream' assertion cannot be confirmed against supplied material.
  • Does the packaged bin/hermes entry point resolve main through hermes_cli.main as a submodule attribute, as the test's generated shim assumes ((shim / "main.py").write_text("def main(): ...") plus an __init__.py that only appends __path__)? If the console script imports main from hermes_cli/__init__ instead, the entry-point regression would fail for a reason unrelated to browser discovery.
  • Does any gateway or browser_exec path re-exec a Python interpreter with -S, -E, or -I, which would skip site initialization and therefore never install the meta-path finder? Nothing in the supplied entry point or module records at runtime that the hook was installed.

Review limitations

  • No Nix evaluation, build, Ruff run, or code execution was performed; the PR's validation claims (nix flake check, the repaired package building, five regressions passing, the deployed package failing two native-selection cases) are taken as stated, not verified.
  • The upstream hermes-agent package source was not supplied: its venv layout, bin/hermes entry point, tools/ package contents, pm API, and the run_gateway sys.path prepend are known only through this repository's overlay and the PR text, so no behaviour of that unchanged upstream code could be confirmed.
  • modules/common/hermes-browser-tools.patch is unchanged by this PR; I confirmed only that its hunks target tools/browser_tool_install.py, not that they still match the current upstream source.
  • No deployment or live evidence was supplied; the PR states the repair is undeployed and that issue #321 plus the required no-op follow-up remain open, which cannot be confirmed or refuted from the checkout.
  • The second_pass, max_diff_bytes, and batch settings in .forgejo/ai-review.yml configure the review runner, not repository behaviour, and were not treated as evidence.

Diff coverage

  • README.md: reviewed — included in a context-limited batch
  • flake.nix: reviewed — included in a context-limited batch
  • modules/common/hermes-browser-package.nix: reviewed — included in a context-limited batch
  • modules/common/hermes-browser-sitecustomize.py: reviewed — included in a context-limited batch
  • scripts/test-hermes-browser-runtime.py: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: strata/strata
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md
  • Commits considered: 3
  • Previous automated review: none found
  • Findings: 0
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `295004ba7e52681533d98f2be8d4b77a725bd908` ## Verdict: Ready to merge No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory. ### Overall assessment Strict validation pass over the initial review. The changed files are internally consistent with each other and with the checked-out code: `modules/common/hermes-browser-package.nix` keeps the layout guards it still needs under the new scheme (`upstream_tools/browser_tool_install.py` presence, `grep -Fq 'def _find_agent_browser('`, `patch --fuzz=0`), copies only the one module the unchanged `hermes-browser-tools.patch` hunks target, and installs `sitecustomize.py` at the root of the same directory the existing `wrapProgram --prefix PYTHONPATH` already prepends; `modules/services/hermes.nix:188` sets `services.hermes-agent.package` from that module and the module already reads `old.passthru.hermesVenv`, so `flake.nix:235` (`self.nixosConfigurations.vega.config.services.hermes-agent.package`) and `package.hermesVenv` are valid references; Hermes is composed only on Vega (`grep` over `hosts/` matches only `hosts/vega/default.nix`), so the `modules/common/` placement does not widen host scope. `scripts/test-hermes-browser-runtime.py` derives the upstream root from `find_spec('hermes_cli').origin` consistently in both the entry-point test and the probes, and its `sys.path.insert(0, project_root)` bootstrap is exactly the case the meta-path finder is meant to survive. I found no defect that is demonstrably caused by the supplied diff. All three initial-review findings were dropped: the `sitecustomize` shadowing/skipping concern (finding 1) and the dropped `tools/__init__.py` layout guard (finding 2) both depend on upstream Hermes venv contents that were not supplied and describe hypothetical future revisions, not a change-induced defect; finding 2's second half (collapsing the single-element `for file in browser_tool_install.py` loop) is stylistic only. The flake-check blast-radius concern (finding 3) is a scope/design observation, not a defect: the check is a deliberate regression check, AGENTS.md and `.forgejo/ai-review.md` state that `nix flake check` is the authoritative gate without any rule that checks must be evaluation-only, and the gate already runs non-evaluation subprocess work (`checks.x86_64-linux.formatting = treefmtEval.config.build.check self;` at flake.nix:216). ### Blocking findings None. ### Important findings None. ### Suggestions None. ### Tests and validation - No configured deterministic checks. ### Questions - Does the built upstream Hermes venv already contain a module named `sitecustomize` (or any other `sitecustomize` reachable at interpreter startup) that `cp ${./hermes-browser-sitecustomize.py} "$out/lib/hermes-nixos-browser/sitecustomize.py"` now shadows, and would that module's side effects be lost for the gateway process? - `scripts/test-hermes-browser-runtime.py:112` imports `from tools import browser_tool_origin`; is that a real upstream module in the Hermes venv's `tools/` package? No other file in this checkout references that name, so the regression's 'other tools still come from upstream' assertion cannot be confirmed against supplied material. - Does the packaged `bin/hermes` entry point resolve `main` through `hermes_cli.main` as a submodule attribute, as the test's generated shim assumes (`(shim / "main.py").write_text("def main(): ...")` plus an `__init__.py` that only appends `__path__`)? If the console script imports `main` from `hermes_cli/__init__` instead, the entry-point regression would fail for a reason unrelated to browser discovery. - Does any gateway or `browser_exec` path re-exec a Python interpreter with `-S`, `-E`, or `-I`, which would skip `site` initialization and therefore never install the meta-path finder? Nothing in the supplied entry point or module records at runtime that the hook was installed. ### Review limitations - No Nix evaluation, build, Ruff run, or code execution was performed; the PR's validation claims (`nix flake check`, the repaired package building, five regressions passing, the deployed package failing two native-selection cases) are taken as stated, not verified. - The upstream `hermes-agent` package source was not supplied: its venv layout, `bin/hermes` entry point, `tools/` package contents, `pm` API, and the `run_gateway` sys.path prepend are known only through this repository's overlay and the PR text, so no behaviour of that unchanged upstream code could be confirmed. - `modules/common/hermes-browser-tools.patch` is unchanged by this PR; I confirmed only that its hunks target `tools/browser_tool_install.py`, not that they still match the current upstream source. - No deployment or live evidence was supplied; the PR states the repair is undeployed and that issue #321 plus the required no-op follow-up remain open, which cannot be confirmed or refuted from the checkout. - The `second_pass`, `max_diff_bytes`, and batch settings in `.forgejo/ai-review.yml` configure the review runner, not repository behaviour, and were not treated as evidence. ### Diff coverage - `README.md`: **reviewed** — included in a context-limited batch - `flake.nix`: **reviewed** — included in a context-limited batch - `modules/common/hermes-browser-package.nix`: **reviewed** — included in a context-limited batch - `modules/common/hermes-browser-sitecustomize.py`: **reviewed** — included in a context-limited batch - `scripts/test-hermes-browser-runtime.py`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: strata/strata - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md - Commits considered: 3 - Previous automated review: none found - Findings: 0 </details>
Author
Owner

Pre-merge integration validation with updated main 6825bbf (auto-updated flake inputs) is complete. The update advances Hermes from 6e7b83a to d97007c along with Home Manager, llm-agents, NUR, Paseo and Trilium. An isolated merge checkout combines that exact base with reviewed head 295004b, without changing the MR head or invalidating review #76.

The exact combined tree passes full nix flake check, including five browser regressions, and the real Hermes package builds as /nix/store/yzvxx8w5qz5hvjlra3nqxcyckcsl9ci4-hermes-agent-0.0.0. An isolated browser_exec canary using the updated package and gateway path prepend opened example.com and returned Example Domain through the harness. Explicit cleanup ran; the same previously recorded upstream interpreter-shutdown warning followed. Remaining evaluation warnings are upstream stdenv deprecations; ignored temporary evaluation-cache contention did not prevent successful validation.

Current-head review #76 is Ready to merge with no findings, and MR CI passed. Merging with the user's explicit authorization; #321 remains open for deployment, normal-gateway browser acceptance and the deployment no-op evidence.

Pre-merge integration validation with updated main 6825bbf (auto-updated flake inputs) is complete. The update advances Hermes from 6e7b83a to d97007c along with Home Manager, llm-agents, NUR, Paseo and Trilium. An isolated merge checkout combines that exact base with reviewed head 295004b, without changing the MR head or invalidating review #76. The exact combined tree passes full nix flake check, including five browser regressions, and the real Hermes package builds as /nix/store/yzvxx8w5qz5hvjlra3nqxcyckcsl9ci4-hermes-agent-0.0.0. An isolated browser_exec canary using the updated package and gateway path prepend opened example.com and returned Example Domain through the harness. Explicit cleanup ran; the same previously recorded upstream interpreter-shutdown warning followed. Remaining evaluation warnings are upstream stdenv deprecations; ignored temporary evaluation-cache contention did not prevent successful validation. Current-head review #76 is Ready to merge with no findings, and MR CI passed. Merging with the user's explicit authorization; #321 remains open for deployment, normal-gateway browser acceptance and the deployment no-op evidence.
nimmo merged commit 9964cb0075 into main 2026-10-14 06:17:12 +01:00
nimmo deleted branch fix/hermes-browser-entrypoint 2026-10-14 06:17:13 +01:00
Sign in to join this conversation.
No reviewers
No assignees
2 participants
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!326
No description provided.