Skip to content

[Hermes][CLI&UX] nemohermes sandbox connect and recover fail after #5530 lands probe path secret boundary check #5589

Closed

Description

@cjagwani

#5530 added a secret boundary check on the probe path of connect and recover, but the host side implementation doesn't survive contact with a real sandbox. The marker parser at process-recovery.ts:496-509 is fail closed, and the root openshell sandbox exec channel returns stdout framing it doesn't recognize. Every Hermes connect and recover exits 1 on the running gateway branch (connect.ts:222,894).

@sandl99 hit this on a normal Hermes sandbox after #5530 landed:

  1. nemohermes <name> connect exits 1 with the boundary refusal
  2. nemohermes <name> recover same failure

Expected: both complete the gateway readiness check and return the port forward. The env file state on a running gateway shouldn't gate the probe at all since the gateway is already up and serving.

Workaround: #5547 (revert).

Related: #5525 (the original security gap, reopened pending a re fix at the gateway entrypoint).

Activity

  1. added
    integration: hermes
    area: cli
    area: sandbox
    on Jun 22, 2026
  2. cv commented on Jun 22, 2026

    @cv
    Collaborator

    Opened #5590 for the forward fix. One important scope clarification: #5590 intentionally does not adopt the sentence that a running Hermes gateway should ignore /sandbox/.hermes/.env boundary state. To preserve #5525/#5530, a framed SECRET_BOUNDARY_REFUSED still refuses; the fix is that framed SECRET_BOUNDARY_OK from openshell sandbox exec no longer becomes an inconclusive failure.

    I also asked @sandl99 to manually test #5590 on the sandbox that reproduced this.

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: cliarea: sandboxintegration: hermes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions