Skip to content

feat(launcher): bring up the OpenShell gateway on start (engine auto-select) - #1189

Merged
PurpleCHOIms merged 5 commits into
mainfrom
feat/launcher-openshell-gateway
Nov 13, 2026
Merged

PurpleCHOIms merged 5 commits into
mainfrom
feat/launcher-openshell-gateway

Conversation

@PurpleCHOIms

Copy link
Copy Markdown
Member

What

The launcher now stands up the standing OpenShell gateway on start, so the default openshell sandbox provider admits the engagement out of the box. Previously start only brought up the cli profile — the gateway (#1187) was never started, so the resolver stayed unbound and a fresh ./decepticon couldn't run an engagement.

This is the launcher ↔ gateway wiring (W1) that completes #1187.

How

  • internal/compose: add the openshell profile to the catalog (+ AllProfiles() sweep).
  • internal/openshell (new): PrepareGateway(home, runtime) picks the compute engine from the detected container runtime (podman → rootless, else docker), renders the engine's embedded gateway TOML into DECEPTICON_HOME (the launcher owns it — SyncConfigFiles ships only compose+litellm, not containers/), creates the podman data dir, and exports the OPENSHELL_* env the compose service reads.
  • cmd/start.go: call PrepareGateway before compose up, print the boundary banner (Sandbox boundary · OpenShell gateway: <engine>), and activate the openshell profile (CLI + desktop paths).

Engine is auto-selected (no new prompt) from the existing runtime.Detect(). host.docker.internal resolves under both engines (Podman aliases it), so one endpoint form works.

Verified (real host, ra-trial)

  • go build / go vet / go test (openshell + compose) pass on sec-dev.
  • Live integration test (OPENSHELL_LIVE=1, guarded, skips in CI): runs the real PrepareGateway path → compose --profile openshell up → gateway healthy via host.containers.internal (/readyz = {"status":"healthy","version":"0.1.8"...}), podman compute driver connected — using the launcher-rendered config. PASS.

Not in this PR

  • Engagement draft/lock model + asset inventory (postgres) — W3'/W2, separate PRs.
  • Full ./decepticon end-to-end with the complete stack (needs decepticon images) — follow-up.

mschoi added 5 commits November 13, 2026 13:43
The standing OpenShell gateway (profile: openshell, #1187) joins the
launcher's profile catalog so AllProfiles() sweeps it on down/stop and
start can activate it. Wiring that brings it up lives in the next commits.
…select)

`start` now stands up the standing OpenShell gateway (profile: openshell, #1187)
alongside the stack, so the default `openshell` sandbox provider admits the
engagement out of the box — previously the launcher only brought up `cli` and
the resolver stayed unbound.

internal/openshell: PrepareGateway(home, runtime) picks the compute engine from
the detected container runtime (podman → rootless, else docker), renders the
engine's embedded gateway TOML into DECEPTICON_HOME (the launcher owns it —
SyncConfigFiles ships only compose+litellm, not containers/), creates the
podman data dir, and exports the OPENSHELL_* env the compose service reads.
cmd/start.go calls it before compose up, prints the boundary banner, and
activates the openshell profile (CLI path and desktop path).

Verified on sec-dev: go build / vet / test (openshell + compose) pass.
OPENSHELL_LIVE=1 runs the real PrepareGateway path on a host with podman:
renders the gateway TOML + exports OPENSHELL_*, brings up the openshell
compose profile, and asserts the gateway is healthy (/readyz) with the podman
compute driver connected. Skips in CI (needs podman + the gateway image).

Verified on ra-trial: PASS — gateway healthy via host.containers.internal,
podman driver connected, using the launcher-rendered config.
… CI)

TestPrepareGatewayPodman built the expected JWT path with filepath.Join, which
uses backslashes on windows-latest; the rendered TOML uses forward slashes (the
template is @DaTa@/tls/jwt/...). The gateway only runs on Linux, so the code is
unaffected — assert with a literal forward-slash path.
@PurpleCHOIms
PurpleCHOIms merged commit c262cf3 into main Nov 13, 2026
24 checks passed
@PurpleCHOIms
PurpleCHOIms deleted the feat/launcher-openshell-gateway branch November 13, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant