Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
3ea754c
refactor(cli): route buffered exec through adapter
rsliter Sep 4, 2026
f9b939d
merge: refresh canonical main
rsliter Sep 4, 2026
f751809
fix(sandbox): harden buffered exec migration
rsliter Sep 5, 2026
b070c24
merge(main): refresh buffered exec PR
rsliter Sep 5, 2026
50ecd5d
fix: harden buffered exec readiness follow-up
rsliter Sep 7, 2026
4a7ee12
merge: refresh main for issue 10991
rsliter Sep 7, 2026
cb63218
test: update N1x finalization executor fixture
rsliter Sep 7, 2026
f2c3a67
fix: honor final rebuild permission verification
rsliter Sep 7, 2026
4f19896
merge: integrate main into buffered exec
rsliter Sep 7, 2026
7624e2c
merge: integrate latest main into buffered exec
rsliter Sep 7, 2026
7fb76b1
fix: contain rejected gateway diagnostics
rsliter Sep 7, 2026
a16f1ac
merge: integrate typed provider lifecycle
rsliter Sep 7, 2026
68e3479
chore: refresh sandbox observer architecture budget
rsliter Sep 7, 2026
1c02f19
test: preserve connect diagnostic environment
rsliter Sep 7, 2026
077d576
merge: refresh main for issue 10991
rsliter Sep 8, 2026
e13b0d6
fix(cli): route session list through buffered executor
rsliter Sep 8, 2026
98f77b4
refactor(cli): centralize OpenShell process lifecycle
rsliter Sep 8, 2026
6018c8e
merge: refresh main for PR 11089
rsliter Sep 8, 2026
15f4c68
fix(cli): avoid empty stdin lifecycle race
rsliter Sep 8, 2026
63f1d92
merge: refresh main for PR 11089
rsliter Sep 8, 2026
17fc541
test(hermes): restore API port fixture prerequisite
rsliter Sep 8, 2026
3e3651b
fix(cli): preserve async spawn failures
rsliter Sep 8, 2026
b2b7710
merge: refresh main for PR 11089
rsliter Sep 8, 2026
a324c31
merge: refresh main for PR 11089
rsliter Sep 8, 2026
746afc6
merge: resolve conflicts with main
github-actions[bot] Sep 8, 2026
c296df6
fix(cli): preserve safe sandbox exec fallback
rsliter Sep 8, 2026
9adfd90
Merge remote-tracking branch 'origin/main' into codex/10991-buffered-…
rsliter Sep 8, 2026
6a02869
Merge remote-tracking branch 'origin/codex/10991-buffered-exec-pr' in…
rsliter Sep 8, 2026
1ea5b47
fix(cli): block buffered helper re-exports
rsliter Sep 9, 2026
4e34cf6
fix(cli): complete buffered helper export guard
rsliter Sep 9, 2026
dde688a
Merge remote-tracking branch 'refs/remotes/origin/main' into codex/10…
rsliter Sep 9, 2026
c4fb27f
Merge remote-tracking branch 'refs/remotes/origin/main' into codex/10…
rsliter Sep 9, 2026
fb9d306
Merge remote-tracking branch 'refs/remotes/origin/main' into codex/10…
rsliter Sep 9, 2026
a1be013
test(cli): isolate supervisor relaunch port state
rsliter Sep 9, 2026
23b952b
Merge remote-tracking branch 'origin/main' into codex/10991-buffered-…
rsliter Sep 9, 2026
e240f24
fix(ci): avoid backtracking in export guard
rsliter Sep 9, 2026
ab41e95
Merge remote-tracking branch 'origin/main' into codex/10991-buffered-…
rsliter Sep 9, 2026
30e3f5b
Merge remote-tracking branch 'origin/main' into codex/10991-buffered-…
rsliter Sep 9, 2026
b0ad3c1
fix(onboard): await sandbox config sync
rsliter Sep 9, 2026
c7d6e67
Merge remote-tracking branch 'refs/remotes/origin/main' into HEAD
rsliter Sep 9, 2026
024369f
Merge remote-tracking branch 'refs/remotes/origin/main' into HEAD
rsliter Sep 9, 2026
4181aed
test(onboard): await resumed identity probes
rsliter Sep 9, 2026
1719601
Merge remote-tracking branch 'refs/remotes/origin/main' into HEAD
rsliter Sep 9, 2026
8769dd6
Merge remote-tracking branch 'refs/remotes/origin/main' into HEAD
rsliter Sep 9, 2026
c4e1606
Merge remote-tracking branch 'refs/remotes/origin/main' into HEAD
rsliter Sep 9, 2026
7b66f3d
merge: resolve conflicts with main
github-actions[bot] Sep 9, 2026
0bdd4af
fix(onboard): preserve buffered smoke after main refresh
rsliter Sep 9, 2026
24d3aab
docs: clarify channel cleanup transport order
rsliter Sep 9, 2026
0ddf9cf
Merge branch 'main' into codex/10991-buffered-exec-pr
rsliter Sep 9, 2026
fb5979c
fix(recovery): make supervisor finalization single-flight
rsliter Sep 9, 2026
e6a9c75
Merge branch 'main' into codex/10991-buffered-exec-pr
rsliter Sep 9, 2026
a52d048
fix(ci): repair inherited main regressions
rsliter Sep 9, 2026
73f7596
docs(sandbox): correct channel cleanup order
rsliter Sep 9, 2026
805f933
fix(cli): inject sessions command executor
rsliter Sep 9, 2026
9ee57e3
Merge remote-tracking branch 'origin/main' into codex/10991-buffered-…
rsliter Sep 9, 2026
568e096
Merge remote-tracking branch 'origin/main' into codex/10991-buffered-…
rsliter Sep 9, 2026
eb2a2ed
merge: resolve conflicts with main
github-actions[bot] Sep 9, 2026
bdd41f9
Merge remote-tracking branch 'origin/main' into codex/10991-monitor-head
rsliter Sep 9, 2026
09e386d
fix(ci): reconcile source architecture limits
rsliter Sep 9, 2026
1b7744b
merge: resolve conflicts with main
github-actions[bot] Sep 9, 2026
957dfc5
ci: trigger checks after conflict resolution
rsliter Sep 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion agents/hermes/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ RUN if [ -n "${NEMOCLAW_CORPORATE_CA_B64}" ]; then \

# Cross-stage root copies are accepted by Docker's legacy builder and create
# one final-image layer while preserving metadata on existing parent paths.
# hadolint ignore=DL3067
COPY --from=hermes-npm-patch-payload / /

# The immutable selected base owns the reviewed Hindsight and agent-browser
Expand Down Expand Up @@ -447,6 +448,7 @@ RUN _hermes_certifi=$(/opt/hermes/.venv/bin/python -c 'import certifi; print(cer
ENV HERMES_TELEGRAM_DISABLE_FALLBACK_IPS=1
ENV HERMES_TUI_DIR="/opt/hermes/ui-tui"

# hadolint ignore=DL3067
COPY --from=hermes-agent-payload / /

# Managed MCP and ACP require their packaged Hermes client surfaces. A
Expand Down Expand Up @@ -494,6 +496,7 @@ RUN printf '%s %s\n' \
/opt/nemoclaw-hermes-config/hindsight-lazy-integrity.patch \
&& rm /opt/nemoclaw-hermes-config/hindsight-lazy-integrity.patch

# hadolint ignore=DL3067
COPY --from=hermes-runtime-payload / /

# Keep the root-owned managed-startup handoff in this image-only layer. The
Expand Down Expand Up @@ -825,6 +828,7 @@ RUN printf '%s %s\n' \
# The wrapper's shebang pins `/usr/bin/python3 -I` (isolated mode); fail the
# build if that absolute path is missing or non-executable so a base-image
# upgrade that drops it cannot ship a wrapper that ENOEXECs at runtime.
# hadolint ignore=DL3067
COPY --from=hermes-wrapper-payload / /

RUN test -x /usr/bin/python3 \
Expand Down Expand Up @@ -958,6 +962,7 @@ RUN if [ "$NEMOCLAW_MANAGED_IMAGE_CAPABILITY_UNION" = "1" ]; then \
WORKDIR /sandbox
RUN test "$(id -u sandbox):$(id -g sandbox):$(pwd)" = "998:999:/sandbox" \
&& rm -rf /sandbox/.cache
# hadolint ignore=DL3066
USER sandbox

# Set up blueprint for local resolution
Expand All @@ -979,6 +984,7 @@ RUN /opt/hermes/.venv/bin/python -I \
fi \
&& rm -rf /sandbox/.cache

# hadolint ignore=DL3066
USER root

# Install the generated policy manifest outside the mutable Hermes home. Python
Expand Down Expand Up @@ -1070,6 +1076,7 @@ RUN set -eu; \
/opt/hermes/.venv/bin/python -I \
/opt/nemoclaw-hermes-config/image-build-probes.py profile-policy

# hadolint ignore=DL3066
USER sandbox

# Prove that the installed dashboard seeder carries every reviewed policy value
Expand All @@ -1091,6 +1098,7 @@ RUN dashboard_probe=/tmp/nemoclaw-dashboard-policy-probe.yaml \
# Hermes home. Custom images use this same image-owned tree for reviewed
# plugins. /sandbox/.hermes/plugins remains mutable state for Hermes' same-UID
# topology and is ignored by the identity-proven separated gateway.
# hadolint ignore=DL3066
USER root
# hadolint ignore=DL3059
RUN rm -rf /opt/hermes/plugins/nemoclaw \
Expand All @@ -1100,6 +1108,7 @@ RUN rm -rf /opt/hermes/plugins/nemoclaw \
&& find /opt/hermes/plugins/nemoclaw -type d -exec chmod 0755 {} + \
&& find /opt/hermes/plugins/nemoclaw -type f -exec chmod 0444 {} +

# hadolint ignore=DL3066
USER sandbox

# Apply messaging render and post-agent-install build-file hooks after agent/plugin installation.
Expand Down Expand Up @@ -1127,7 +1136,7 @@ ENV HERMES_ENVIRONMENT_HINT="You are running inside an NVIDIA OpenShell sandbox,
# The sandbox user can write config; the gateway user can read it via
# supplementary sandbox-group membership and create Hermes v0.14 runtime dirs
# without being able to remove sticky-protected config files.
# hadolint ignore=DL3002
# hadolint ignore=DL3002,DL3066
USER root

# Flatten stale published base images that still contain the old .hermes-data
Expand Down
19 changes: 11 additions & 8 deletions ci/source-architecture-budget.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
"src/lib/actions/sandbox/mcp-bridge-contracts.ts": 25,
"src/lib/actions/sandbox/process-recovery.ts": 26,
"src/lib/adapters/docker/index.ts": 42,
"src/lib/adapters/openshell/client.ts": 18,
"src/lib/adapters/openshell/client.ts": 19,
"src/lib/adapters/openshell/command-argv.ts": 22,
"src/lib/adapters/openshell/resolve.ts": 25,
"src/lib/adapters/openshell/runtime.ts": 52,
"src/lib/adapters/openshell/runtime.ts": 48,
"src/lib/adapters/openshell/sandbox-observer.ts": 35,
"src/lib/adapters/openshell/timeouts.ts": 32,
"src/lib/agent/defs.ts": 32,
"src/lib/cli/branding.ts": 80,
Expand All @@ -31,32 +32,34 @@
"src/lib/state/onboard-session.ts": 35,
"src/lib/state/registry.ts": 96,
"src/lib/state/state-root.ts": 21,
"src/lib/subprocess-env.ts": 23,
"src/lib/subprocess-env.ts": 25,
"src/lib/validation.ts": 24
}
},
"fanOut": {
"defaultMax": 20,
"maxByFile": {
"src/lib/actions/inference-set.ts": 31,
"src/lib/actions/sandbox/connect.ts": 42,
"src/lib/actions/sandbox/connect.ts": 43,
"src/lib/actions/sandbox/destroy.ts": 28,
"src/lib/actions/sandbox/doctor.ts": 27,
"src/lib/actions/sandbox/doctor.ts": 28,
"src/lib/actions/sandbox/gateway-state.ts": 21,
"src/lib/actions/sandbox/status-snapshot.ts": 20,
"src/lib/actions/sandbox/policy-channel.ts": 30,
"src/lib/actions/sandbox/process-recovery.ts": 19,
"src/lib/actions/sandbox/process-recovery.ts": 21,
"src/lib/actions/sandbox/rebuild-pipeline.ts": 30,
"src/lib/actions/sandbox/snapshot.ts": 37,
"src/lib/actions/uninstall/run-plan.ts": 25,
"src/lib/inference/local.ts": 22,
"src/lib/inference/onboard-probes.ts": 21,
"src/lib/inference/vllm.ts": 20,
"src/lib/onboard.ts": 191,
"src/lib/onboard.ts": 192,
"src/lib/onboard/sandbox-gpu-create-run-attempt.ts": 21,
"src/lib/onboard/machine/handlers/sandbox.ts": 21,
"src/lib/policy/index.ts": 22,
"src/lib/sandbox/config.ts": 19,
"src/lib/state/sandbox.ts": 21
"src/lib/state/sandbox.ts": 21,
"scripts/checks/run-managed-image-openshell-e2e.ts": 21
}
},
"allowedCycles": [],
Expand Down
12 changes: 8 additions & 4 deletions docs/manage-sandboxes/manage-messaging-channels.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,17 @@ The cleanup targets `/sandbox/.openclaw/<channel>/`.
The cleanup targets `/sandbox/.hermes/platforms/<channel>/`.
</AgentOnly>

It tries `openshell sandbox exec` and falls back to SSH if the first transport does not produce the success sentinel.
NemoClaw runs the cleanup through `openshell sandbox exec` first.
If OpenShell is unavailable or its outcome is inconclusive, NemoClaw retries the same cleanup through the sandbox's registered local runtime provider unless OpenShell reports cancellation.
NemoClaw permits this retry only because removing the declared paths is idempotent and the success sentinel verifies completion.
A runtime validation or identity refusal stops removal instead of falling through to SSH.
If the sentinel remains absent after any permitted local retry, NemoClaw tries SSH.

<AgentOnly variant="openclaw">
For OpenClaw WeChat only, if neither transport succeeds, NemoClaw tries the stopped Docker fallback.
It confirms that the container belongs to the registered sandbox and has one writable Docker volume at `/sandbox`.
For OpenClaw WeChat only, if the sentinel remains absent after those attempts, NemoClaw asks the registered runtime provider to run its distinct stopped-state cleanup.
The provider confirms that the runtime resource belongs to the registered sandbox, is stopped, and has one writable state resource that contains the declared paths.
The helper removes only the WeChat state paths declared by the channel manifest.
Only when WeChat appears in neither the messaging plan nor the current OpenShell policy does NemoClaw treat state cleanup as complete without inspecting a volume if the registry entry is missing, the driver is not Docker, or no eligible stopped container exists.
Only when WeChat appears in neither the messaging plan nor the current OpenShell policy does NemoClaw treat state cleanup as complete without inspecting the state resource if the registry entry is missing, the provider does not support stopped-state cleanup, or no eligible stopped runtime resource exists.
</AgentOnly>

If the messaging plan or current OpenShell policy still records the channel and NemoClaw cannot confirm cleanup, the command exits nonzero with recovery guidance.
Expand Down
10 changes: 9 additions & 1 deletion docs/reference/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2262,7 +2262,15 @@ For QR-paired channels (today: WhatsApp), NemoClaw destructively clears the in-s
- OpenClaw: `/sandbox/.openclaw/<channel>/` (for example `/sandbox/.openclaw/whatsapp/`).
- Hermes: `/sandbox/.hermes/platforms/<channel>/` (for example `/sandbox/.hermes/platforms/whatsapp/`). For WhatsApp, NemoClaw also clears the current Dashboard profile at `/sandbox/.hermes/profiles/dashboard-home/platforms/whatsapp/session/` and the legacy migration source at `/sandbox/.hermes/dashboard-home/platforms/whatsapp/session/`.

The cleanup tries `openshell sandbox exec` first and falls back to SSH if the exec wrapper does not return the success sentinel. If both transports fail (the sandbox is stopped, the gateway is down, or SSH cannot reach it) the command refuses to proceed to the rebuild and asks you to start the sandbox and re-run, so a half-removed state cannot leave stale Baileys auth files behind for the next rebuild to restore.
NemoClaw runs the cleanup through `openshell sandbox exec` first.
If OpenShell is unavailable or its outcome is inconclusive, NemoClaw retries the same cleanup through the sandbox's registered local runtime provider unless OpenShell reports cancellation.
NemoClaw permits this retry only because removing the declared paths is idempotent and the success sentinel verifies completion.
A runtime validation or identity refusal stops removal instead of falling through to SSH.
If the sentinel remains absent after any permitted local retry, NemoClaw tries SSH.
For OpenClaw WeChat only, if the sentinel remains absent after those attempts, NemoClaw asks the registered runtime provider to run its distinct stopped-state cleanup.
If cleanup still fails, the command refuses to rebuild and prints recovery guidance for the reported condition.
Fix that condition, then rerun the command.
This failure prevents the next rebuild from restoring stale channel authentication files.

```bash
$$nemoclaw my-assistant channels remove telegram
Expand Down
Loading
Loading