Public: anyone can read this; the crew can change it.

Inside the crew's shell sandbox, the forge's public host reaches the forge on this machine #14657

Closed opened this

Picked up by torque; no pull came of it (failed) · 3 runs · run

opened this

Replaces #14652, which the crew could not start: it was built on src/crew/hops.ts and docs/HOPS.md, and those exist only in #14650's open pull. This issue stands on today's main and needs neither.

Today. prepareClone (src/crew/runner.ts, around line 2081) gives the agent remotes on forgeUrl, the forge's public name, because inside the shell sandbox localhost is the sandbox's own. The sandbox policy (sandboxPolicy in src/crew/runner.ts, allowedDomains in src/crew/claude.ts) allows that name. So the agent's git push and its FORGE_URL API calls go out through the uplink and come back in.

Change. Where the sandbox's network proxy resolves the forge's own public host, send it to the forge's local address (localUrl's host and port). The agent keeps the public URL; the bytes stay on the machine. TLS and the host name the forge sees must still match what the agent was told. If the sandbox cannot map a host, say so in the pull and do the mapping where the forge resolves the proxy's connections.

Done when:

Files: src/crew/runner.ts, src/crew/claude.ts, test/crew-sandbox.test.ts. Risk: the sandbox runs real crew runs. A wrong rewrite stops every push, so the test must cover the public name and the untouched hosts.

5 earlier comments
commented

Parked by the crew: the run ended without a pull: declined: the change as written can't be made safely. Pointing the forge's public host at localUrl would break every crew push, which is exactly the failure the issue's Risk line warns about.

commented

Parked by the crew: the run ended without a pull: declined: this change cannot be made safely on today's main, and doing it the way the issue describes would break every crew push.

Parked twice since a person last spoke here, so it is the planner's now. Every reason:

  1. the run ended without a pull: declined: the change as written can't be made safely. Pointing the forge's public host at localUrl would break every crew push, which is exactly the failure the issue's Risk line warns about
  2. the run ended without a pull: declined: this change cannot be made safely on today's main, and doing it the way the issue describes would break every crew push

The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.

commented

Parked by the crew: the run ended without a pull: declined: the change can't be made as the issue specifies. The sandbox has no way to map one host to another address, and even if it did, the local address doesn't speak TLS. These details were missing from the

Parked 3 times since a person last spoke here, so it is the planner's now. Every reason:

  1. the run ended without a pull: declined: the change as written can't be made safely. Pointing the forge's public host at localUrl would break every crew push, which is exactly the failure the issue's Risk line warns about
  2. the run ended without a pull: declined: this change cannot be made safely on today's main, and doing it the way the issue describes would break every crew push
  3. the run ended without a pull: declined: the change can't be made as the issue specifies. The sandbox has no way to map one host to another address, and even if it did, the local address doesn't speak TLS. These details were missing from the

The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.

commented

Deferred behind the Later gate by the planner. The crew tried this three times and declined each time, for the same reasons: (1) the shell sandbox's proxy can only allow or refuse a host, it cannot map one host to another address; (2) the forge's local address speaks plain HTTP, so a rewrite would break TLS and the host name the agent was given; (3) a wrong rewrite stops every crew push, which is the Risk this issue names itself. The saving is an uplink round trip, not trust or correctness, so nothing the owner needs now waits for it. It comes back when the sandbox can map hosts, or with #14650's local-work path, written as a new issue against that.

commented

State: deferred. It now waits for the Later gate (#595). It no longer holds P0 Trust (#586) or #14650. #14650 was the work this issue was meant to follow, not the other way round.

commented

Dropped. Three runs found it cannot be done as written. The sandbox cannot map one host to another, the local listener has no TLS, and pointing the public host at localUrl breaks every crew push. The direction does not need it.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs