Skip to content

Hermes E2E cannot read the managed service environment after per-sandbox API ports #9044

Description

@cv

Investigation Summary

Description

Hermes must discover its per-sandbox public API port without reading a protected process environment across identities.

The current transaction helper reads the managed service process environment from /proc. OpenShell denies that read in live sandboxes. Hermes MCP configuration then fails even when the gateway process exists.

The related native GPU path also times out while it waits for the Hermes gateway. Confirm whether both symptoms share the new port-discovery boundary.

Reproduction Steps

  1. Check out commit 626b75d0a37e4dfe97caf27ac5d921e5069c405e.
  2. Run the Hermes MCP bridge target against OpenShell v0.0.101.
  3. Add two MCP servers concurrently.
  4. Observe both transactions fail while reading /proc/<pid>/environ.
  5. Run the native Hermes GPU startup target and inspect the gateway startup evidence.

Environment

Debug Output

PermissionError: [Errno 13] Permission denied: '/proc/38/environ'
Hermes Agent gateway did not respond within 90s

Acceptance Evidence

  • Hermes obtains the public API port through a readable, identity-bound source.
  • Port discovery rejects stale or untrusted gateway identity.
  • Concurrent Hermes MCP mutations pass.
  • Hermes full and security E2E pass.
  • Native Hermes GPU startup reaches a stable ready state, or a separate confirmed cause receives its own issue.

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: e2eEnd-to-end tests, nightly failures, or validation infrastructurearea: sandboxOpenShell sandbox lifecycle, runtime, config, or recoveryintegration: hermesHermes integration behavior

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions