Skip to content

feat(onboard): add --dashboard-origin for managed OpenClaw dashboards - #13218

Open
kaofelix wants to merge 81 commits into
mainfrom
issues/13177-dashboard-origins
Open

kaofelix wants to merge 81 commits into
mainfrom
issues/13177-dashboard-origins

Conversation

@kaofelix

@kaofelix kaofelix commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

Onboarding a managed OpenClaw sandbox can now allow extra dashboard browser origins that keep their own port, such as https://launchpad.example.com:8443 in front of the dashboard on 18789. Before, the only input was CHAT_UI_URL, whose port onboarding replaces with the dashboard port, so OpenClaw rejected a proxy origin on another port.

This PR builds on #13198, which merged on October 16, and targets main.

Reason

The decision on #13177 accepts a separate onboard setting for this case: #13177 (comment). nemoclaw <sandbox> config set refuses gateway.* keys, so there was no supported host-side way to add such an origin.

Related issues

Refs #13177

Changes

  • Input: a repeatable nemoclaw onboard --dashboard-origin <origin> flag and NEMOCLAW_DASHBOARD_ORIGINS (comma-separated). Each value must be a bare origin, and a remote origin must use https. Invalid values fail before onboarding starts.
  • Config generator: scripts/generate-openclaw-config.mts reads NEMOCLAW_DASHBOARD_ORIGINS, validates it again, and appends the origins to gateway.controlUi.allowedOrigins. It does not change the dashboard bind or mode.
  • Managed startup profile: the OpenClaw dashboard section gets an optional extraOrigins key. It is omitted when no origin is set, so existing profiles encode the same as before. The image maps the key to NEMOCLAW_DASHBOARD_ORIGINS only when it is present. The reviewed in-image runtime bundle is regenerated.
  • Registry: dashboardOrigins is recorded at creation and on reuse. The registry and gateway index accept only a normalized list.
  • Rebuild: rebuild replays the registry record into the replacement profile and into the inner onboard, so the replacement keeps them. An exported NEMOCLAW_DASHBOARD_ORIGINS does not change a rebuild.
  • Reuse: re-running onboard on a running sandbox records or clears the origins and says that a rebuild applies the change.
  • Refusals: onboarding refuses the setting for Dockerfile builds (--from or the Dockerfile fallback) and for agents other than OpenClaw, instead of dropping it.
  • Docs: docs/reference/commands.mdx documents the flag and the variable.

The decision comment originally described a Dockerfile build argument as well. The root Dockerfile has a growth budget that requires new onboarding behavior to use the managed startup profile, so the comment was edited to make the setting managed-image only.

Verification

Merge 32e77195b5 resolves the November 11 conflicts and merges canonical main abe6cecc39 into published 368c45f8e4, preserving both parents. It retains OpenClaw dashboard origins alongside main's Hermes Switchyard profile checks and resume guidance. All new Dockerfile payload copies are retained. The direct-startup runtime bundle is regenerated from the combined source, with SHA-256 6979cb63f73bfb7337a1f28342eb2a1e49ab076e8ca190c5cef5b6dc9d0d52b4; byte-for-byte verification passed. The generated assertion budget retains main's current census and the five dashboard-origin assertions. No assertion or deadline was weakened.

Focused validation passed: 815 tests and two skips across 31 CLI, integration and E2E-support files. CLI/plugin builds and TypeScript checks passed in the container without host credentials. npm run docs passed with zero errors and two warnings; generated OpenClaw and Hermes pages retain their separate resume guidance. Inspection found no credentials or additional product scope.

Both Pi platforms passed managed-images run 42990010747, attempt 1 for merge 32e77195b5. All six direct-startup jobs and all three all-agent activation jobs passed. The trusted-main collector verified both authenticated ZIP sizes and SHA-256 digests, the exact revision and platforms, and common release v0.0.143-82-g32e77195b5 and cohort ghrun-42990010747-1. Metadata commit 4c6e5f12da records both genuine receipts and their authority hashes. Strict source parity reports qualified; all 56 focused receipt/collection tests passed. No image source, assertion or deadline changed in the metadata refresh. Code CI on the merge passed all twelve CLI shards, plugin, installer, type checks and the OpenClaw distribution harness; its static and aggregate gates rejected pending receipts as expected. That original rejection is retained without an unchanged retry. Portable rootless, Podman CPU qualification, security scanning, Code Quality, documentation and installer hashes passed. Prior successful receipts and CI below remain historical evidence. Normal pre-commit, commit-message and actual pre-push publication checks passed, including CLI, plugin and checked-JavaScript compiler gates. GitHub verifies the signed DCO merge. The receipt-only commit passed normal pre-commit, commit-message, actual pre-push publication and CLI TypeScript checks; plugin and checked-JavaScript gates had no applicable files. On 4c6e5f12da, code CI passed, including strict Pi receipt validation and all twelve CLI shards. Managed images passed both Pi platforms, all six direct-startup jobs and all three all-agent activations (AMD64, ARM64 and rootless Podman). Portable rootless, Podman CPU, security, Code Quality, documentation, installer hash and governance checks passed. Advisor completed all nine specialists with zero P0/P1 findings. Its gate remains failed solely because delivery-flow recommends the manual-only dashboard-remote-bind coverage job, which its recommendation selector does not support. No policy retry, waiver or new manual infrastructure was used. This remaining gate is reported without claiming approval or readiness to merge. All paginated comments, reviews and threads were collected; all three review threads are resolved. CodeRabbit provides no new full review of this commit.

Runtime repair c25bb9b7da preserves the signed repository automation merge 33e7b4a5ed. That merge selected main's generated runtime while keeping the dashboard-origin source mapping. The bundle check reproduced the stale artifact; regeneration from the combined source fixes it. Validation ran in a container without host credentials:

  • Focused CLI, integration and E2E-support checks: 733 passed and 2 skipped across 31 selected files. The DCode handoff test ran as the container's nonroot user.
  • Reviewed runtime bundle regeneration and byte-for-byte verification passed. Its integrity pin matches the generated bytes. Dashboard origins and main's DCode route/provider identity are retained.
  • Normal commit hooks and actual pre-push publication/compiler checks: passed. CLI TypeScript passed; plugin and checked-JavaScript gates had no applicable files.
  • Portable rootless validation on c25bb9b7da, attempt 2 passed its live scenario, final resource cleanup and artifact upload. The main-only portable-launch job was skipped. Source audit: 992 predicate/scenario rows across the portable suite and affected base/Pi prerequisites; no assertions or deadlines changed.
  • Diff inspection found no credentials or new product scope.

Both Pi platforms passed managed-images run 42009334858, attempt 2 for c25bb9b7da. The trusted-main collector verified both authenticated artifact sizes and SHA-256 digests, exact platform/revision, common release and cohort ghrun-42009334858-2. This metadata refresh records those receipts and their exact authority hashes; strict image-source parity and 56 focused receipt/collection tests passed. The first attempts failed Debian snapshot downloads with HTTP 503; one bounded retry per workflow succeeded. The original code CI rejected the pending receipts; Code CI on 9854b4760e passed, including static checks, all 12 CLI shards, plugin tests and the aggregate gate. Portable rootless and managed images passed, including all three all-agent activation jobs. Podman CPU qualification, security scanning and Code Quality also passed.

Code validation on 738533999e passed: CI attempt 2, managed images, portable rootless, Podman CPU qualification, security scanning and Code Quality. All three all-agent activation jobs passed. The first CI attempt hit HTTP 504 while the npm prek launcher fetched its binary; one failed-job retry passed. Installer-hash verification also passed its single retry after upstream OpenShell release downloads returned HTTP 504. The original failures remain recorded.

The follow-up documentation repair explains recorded dashboard-origin replay during --resume, refusal of a different explicit list, and --fresh recovery. npm run docs passed with zero errors and two warnings. Generated OpenClaw guidance contains the new text; Hermes and Deep Agents variants exclude it. Normal commit hooks and actual pre-push publication validation passed on ce746dd649; compiler gates had no applicable files for this documentation-only commit. No runtime behavior, image input, assertion or deadline changed.

The follow-up Advisor repair adds the five registry and state-write owners to dashboard-remote-bind selection and replaces duplicate per-entry parsing in the OpenClaw config generator with one shared-parser call. Diagnostics retain the environment-variable name, entry position and credential redaction. Before the selection fix, regression cases reproduced all five omitted paths. After repair, 241 tests passed across the parser, generator, managed-startup mapping and E2E-support planner suites. An affected-source audit records 132 predicate/scenario rows; this is source and local validation evidence, not a new live dashboard run. Strict Pi image-source parity still reports qualified; no receipt refresh is needed. The diff contains no credentials, and no live assertion or deadline changed. Normal pre-commit and commit-msg hooks, actual pre-push publication validation and CLI TypeScript passed on de31ca64bf. Plugin and checked-JavaScript compiler gates had no applicable files. Code CI, managed images, portable rootless, Podman CPU qualification, security scanning, Code Quality, installer hashes and documentation checks passed on this commit. All three all-agent activation jobs passed.

All code and runtime checks on ce746dd649 passed, including all three all-agent activations. Advisor run 42057105979 completed all nine specialists: seven were clear, including documentation, and delivery and reduction identified the two issues addressed by this repair. All paginated feedback was collected; no unchanged Advisor policy retry was dispatched. Advisor run 42066341025 completed all nine specialists on de31ca64bf; every finding ledger is clear, with zero P0/P1 findings. Its blocker gate remains failed solely for two unresolved live-coverage recommendations from delivery and verification: the supplied inventory lists dashboard-remote-bind as manual-only, without a supported Advisor selector. This remains an unresolved policy gate. No unchanged retry, new manual infrastructure, waiver or maintainer-review request was made. CodeRabbit skipped incremental review; no full review ran. Complete paginated feedback contains 31 comments, eight reviews, nine inline comments and three resolved threads.

Prior candidate disposition:

  • 33e7b4a5ed and 2c94fb4aae: each had 11 pull-request workflows end action_required with zero jobs; the precise gate cause remains unresolved. CodeQL passed. CodeRabbit skipped incremental review; no full review or current Advisor specialists were scheduled.
  • 9281f1336d: CI rejected pending qualification. Managed images failed only the AMD64 Pi publication check when the freshly published digest was not found; all three all-agent activation jobs passed. Portable rootless failed a Debian snapshot download with HTTP 503/504 before Vitest; all its live assertions were unreached. Neither failure was retried before the source was superseded.

Historical evidence remains separate:

  • 452aeabc9f authenticated both platform receipts from successful managed-images run 41696614823 for source 7336192b76. It did not change image inputs.
  • CI on 452aeabc9f passed the normal static hooks, then the pinned-v1 compatibility step reached the static job's 22-minute limit. A later metadata workflow skipped code checks; it is not replacement evidence.
  • Images on 452aeabc9f passed ARM64 and rootless Podman activation. AMD64 failed when the Hermes Docker image pull returned bytes remaining on stream, before its container existed. The assertion audit traced the missing-container error to that pull failure; no assertions or deadlines were changed and no retry was dispatched.
  • CI on 7336192b76 had a missing-receipt rejection, subsequently repaired by 452aeabc9f, and inherited lint-hook timeouts. One bounded retry batch ended with formatting and plugin timeouts and an adapter pass. Main fix(e2e): retain provider timeout diagnostics and stabilize CI tests #14152 now changes the affected fixtures and pinned-v1 cache handling. Earlier failures remain historical; fresh CI must evaluate the integration.
  • npm run docs passed on 179e1ae951 with zero errors and two warnings. dashboard-remote-bind on b95f6a5c3 passed OpenClaw and Hermes, including rebuild-origin assertions. These results do not establish live evidence for this integration.

Review notes

  • Repair c25bb9b7da restores the dashboard-origin mapping to the shipped runtime by regenerating the bundle and its integrity pin. The signed automation merge 33e7b4a5ed is preserved; no additional base merge or history rewrite was performed. The exact-source Pi receipt pair is now recorded; CI and runtime checks passed on 9854b4760e. The follow-up repair inlines two single-use session object wrappers. It preserves the requested host mounts, requested dashboard origins and resumed origins at their callers. The 39 session tests, 82 authentication/install/gateway tests, 18 recovery-prompt tests and seven growth checks passed in the credential-free container. The onboarding entrypoint is smaller than main. A pre-push compiler check caught an initialization-order error in an adjacent callback simplification; the local follow-up restores delayed gateway-owner lookup. CLI TypeScript passes. Normal commit hooks and actual pre-push publication and CLI compiler checks passed on 738533999e. The later documentation-only repair passed its fresh CI and documentation review; the subsequent ownership and parsing repair passed code and runtime CI and all nine specialist finding ledgers, with the unresolved Advisor coverage gate described above.
  • Three adjacent Dockerfile COPY instructions now share one statement with the same destination paths. This keeps the Dockerfile at main's line count and reduces its byte count by 31, without relying on the PR-specific growth exception.
  • Conflict resolution preserves the newer Hermes routing profile fields and the OpenClaw dashboard origins. Generated assertion budgets and the reviewed runtime bundle were regenerated from the merged source.
  • Review context: this session inspected the repair against canonical main 42d679133a in NVIDIA/NemoClaw, including the sensitive reviewed runtime bundle and the retained source mapping under src/lib/onboard/. The before/after bundle check and focused validation support the repair. The Advisor run on 9854b4760e completed all nine specialists: eight were clear, and reduction requested removal of two single-use object wrappers. The follow-up repair addresses that finding and retains session persistence and resume tests. CodeRabbit skipped incremental review; no full review ran. All paginated feedback was collected. The Advisor run on 738533999e completed all nine specialists. Reduction is clear; eight specialists are clear in total. Documentation identified the omitted resume guidance, which this documentation repair addresses. CI and documentation review passed on ce746dd649. Its delivery and reduction findings are addressed by the subsequent repair, with all nine specialist finding ledgers clear and the unresolved Advisor coverage gate described above. The nine clear Advisor results on b95f6a5c3 remain historical evidence. No CI failure has been waived.
  • Older CLI: a CLI from before this change rejects a recorded profile that contains extraOrigins. This affects only a sandbox onboarded with the flag, after a downgrade or with an older CLI sharing ~/.nemoclaw. Rebuild, clone, and managed snapshot restore then fail before changing anything.
  • Hermes is unchanged. Its browser URL has the same port rewrite; a Hermes change needs its own reproduction.
  • Release notes: the next release entry should mention --dashboard-origin and NEMOCLAW_DASHBOARD_ORIGINS for managed OpenClaw images, and that a rebuild applies recorded changes. This PR does not add a dated docs/changelog/ file, because release entries are written per release; the flag is documented in docs/reference/commands.mdx.

Signed-off-by: Kao Félix me@kaofelix.dev

Summary by CodeRabbit

  • New Features
    • Added support for configuring extra browser origins for managed OpenClaw dashboards during onboarding, using repeatable options or an environment variable.
    • Dashboard origins are saved with the sandbox, restored during onboarding resumes and rebuilds, and checked against allowed formats and limits.
    • Rebuilds retain saved origins and warn when exported settings differ from the recorded configuration.
  • Documentation
    • Updated the command reference with origin configuration options, validation rules, and rebuild guidance.

Rebuild reset OpenClaw gateway.controlUi.allowedOrigins to loopback because the
managed replacement profile and the custom-image recreate path hardcoded
http://127.0.0.1:<port>. Replay the registry's dashboardExternalUrl instead,
falling back to the previous profile's external URL for older records, and
rebind it to the replacement dashboard port.

An exported CHAT_UI_URL during rebuild is ignored with an explicit warning that
names how to change the origin. --control-ui-port now selects only the port and
keeps the CHAT_UI_URL host. Re-onboarding a running OpenClaw sandbox with a new
or removed origin says that a rebuild applies it.
…g generator

Add NEMOCLAW_DASHBOARD_ORIGINS to the OpenClaw config generator. Each entry
is a bare origin that keeps its own port; a remote origin must use https.
The generator adds the origins to gateway.controlUi.allowedOrigins after the
loopback and CHAT_UI_URL origins. Add the host-side parser that onboarding
will use for the flag and environment value.

Refs #13177
Add a repeatable onboard --dashboard-origin flag and NEMOCLAW_DASHBOARD_ORIGINS
for browser origins that keep their own port, such as a proxy on 8443 in
front of the dashboard on 18789. Each value is a bare origin; a remote
origin must use https.

The origins are recorded in the sandbox registry and in an optional
extraOrigins key of the OpenClaw managed startup profile. The managed image
adds them to gateway.controlUi.allowedOrigins. The profile omits the key
when no origin is set, so existing profiles stay unchanged.

Rebuild replays the recorded origins, and re-running onboard records or
clears them with a note that a rebuild applies the change. Onboarding
refuses the flag for Dockerfile builds and for agents other than OpenClaw.

Refs #13177
@kaofelix kaofelix self-assigned this Oct 15, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 15, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

OpenClaw onboarding now accepts validated extra dashboard origins through a flag or environment variable. The origins are applied to generated configuration and stored with sandbox state. Rebuild, resume, reuse, and clone paths carry recorded origins forward.

Changes: Dashboard origin configuration and lifecycle

Layer / File(s) Summary
Validate origins and apply them to OpenClaw configuration
src/lib/dashboard/url.ts, scripts/generate-openclaw-config.mts, test/generation/*, src/lib/sandbox/build-context.ts, Dockerfile, test/runtime/sandbox/*
Shared parsing normalizes and validates origins. Configuration generation adds them to OpenClaw’s allowed-origin list. Runtime staging includes the URL utilities.
Resolve onboarding input and build managed profiles
src/lib/onboard/command-support.ts, src/lib/onboard/command.ts, src/lib/actions/onboard.ts, src/lib/onboard/managed-startup/*, src/lib/onboard/sandbox-create/orchestration.ts, src/lib/onboard/managed-workload/*, docs/reference/commands.mdx
Onboarding combines --dashboard-origin values with NEMOCLAW_DASHBOARD_ORIGINS. It restricts configured origins to OpenClaw managed images and passes them into startup profiles.
Persist origins across onboarding, reuse, and clone
src/lib/onboard/session-bootstrap.ts, src/lib/onboard/resume-config.ts, src/lib/onboard/machine/*, src/lib/onboard/sandbox-registration.ts, src/lib/onboard/sandbox-reuse.ts, src/lib/onboard/workload/clone.ts, src/lib/state/*
Session metadata and sandbox registry entries retain dashboard origins. Resume checks requested origins, and reuse and clone paths update or carry the recorded values.
Replay recorded origins during rebuild
src/lib/actions/sandbox/*, test/e2e/live/dashboard-remote-bind.test.ts, test/e2e/*, ci/e2e-assertion-*.json, tools/e2e/target-catalogue.mts
Rebuild uses recorded origins in replacement profiles and reports when ambient origin settings are ignored. E2E coverage verifies onboarding and rebuild behavior.

Pi agent qualification records

Layer / File(s) Summary
Update qualification image and receipt digests
ci/pi-agent-qualification-v1-linux-*.json, src/lib/agent/candidate-authority.ts
The Linux amd64 and arm64 qualification records and the accepted Pi receipt digests are updated.

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Feature · Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant OnboardCommand
  participant OriginParser
  participant StartupProfile
  participant SandboxRegistry
  participant RebuildHandoff
  participant ConfigGenerator
  OnboardCommand->>OriginParser: validate flag and environment origins
  OriginParser-->>OnboardCommand: return normalized origins
  OnboardCommand->>StartupProfile: pass dashboardOrigins
  StartupProfile->>SandboxRegistry: store dashboardOrigins
  SandboxRegistry->>RebuildHandoff: supply recorded origins
  RebuildHandoff->>ConfigGenerator: apply origins to allowedOrigins
Loading

Possibly related issues

  • NVIDIA/NemoClaw#13177 — The changes add configurable extra origins and replay recorded values during rebuild, addressing the issue’s reported origin handling behavior.

Suggested labels: area: cli, area: sandbox

Suggested reviewers: ericksoa, prekshivyas

Merge Risk: Low · up to c445e

The feature looks sound and is covered by unit and live tests. Before merging, redact the exported origins value in the rebuild warning. Consider rejecting --dashboard-origin together with --from or --from-image up front. Consider adding a real gateway Origin probe to the live test. None of these is likely to cause serious production failures.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(onboard): add --dashboard-origin for managed OpenClaw dashboards" matches the main change. The changeset adds a repeatable --dashboard-origin flag and NEMOCLAW_DASHBOARD_ORIGINS suppor…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "feat(onboard): add --dashboard-origin for managed OpenClaw dashboards" matches the main change. The changeset adds a repeatable --dashboard-origin flag and NEMOCLAW_DASHBOARD_ORIGINS support to onboarding for managed OpenClaw dashboards. The changes also cover validation, registry and profile recording, rebuild replay, clone, and resume, which the title does not name. The title is specific, concise, and follows the conventional-commit style. It does not describe anything absent from the changeset.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-code-quality

github-code-quality Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/plugin

main 63002cd issues/13177-dashboa... 4c6e5f1 +/-
96% 97% +1%
View coverage of the 10 most impacted files.
File main 63002cd issues/13177-dashboa... 4c6e5f1 +/-
nemoclaw/src/sh...cy-boundary.cts 100% 97% -3%
nemoclaw/src/onboard/config.ts 98% 96% -2%
nemoclaw/src/ru...time-context.ts 100% 99% -1%
nemoclaw/src/bl...print/runner.ts 95% 95% 0%
nemoclaw/src/bl...ime-identity.ts 97% 97% 0%
nemoclaw/src/bl...t-management.ts 100% 100% 0%
nemoclaw/src/index.ts 94% 99% +5%
nemoclaw/src/de...search-state.ts 0% 100% +100%
nemoclaw/src/on...native-route.ts 0% 100% +100%
nemoclaw/src/search-config.ts 0% 100% +100%

TypeScript / code-coverage/cli

main 63002cd issues/13177-dashboa... 4c6e5f1 +/-
84% 86% +2%
View coverage of the 10 most impacted files.
File main 63002cd issues/13177-dashboa... 4c6e5f1 +/-
src/lib/onboard.ts 62% 50% -12%
src/lib/actions...ess-recovery.ts 65% 83% +18%
src/lib/inferen...ollama/proxy.ts 41% 61% +20%
src/lib/onboard.../application.ts 55% 84% +29%
src/lib/domain/...y/dimensions.ts 0% 75% +75%
src/lib/inferen...er/lifecycle.ts 0% 75% +75%
src/lib/actions...ry/operation.ts 0% 76% +76%
src/lib/actions...try/snapshot.ts 0% 84% +84%
src/lib/inferen...ovider/index.ts 0% 90% +90%
src/lib/hermes-...yard-routing.ts 0% 95% +95%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated November 11, 2026 10:11 UTC

@kaofelix

Copy link
Copy Markdown
Collaborator Author

Live onboard and rebuild with an extra origin

Run against this PR's head 1e1ee70e6. Host: Linux amd64, Docker driver, OpenShell 0.0.116, NVIDIA hosted provider (build). Both branches include main with #13051.

  1. Onboard with CHAT_UI_URL=https://dash.example.test and --dashboard-origin https://dash.example.test:8443.
    • Workload: managed-image.
    • Registry: dashboardOrigins = ["https://dash.example.test:8443"].
    • Sandbox gateway.controlUi.allowedOrigins: http://127.0.0.1:18789, https://dash.example.test:18789, https://dash.example.test, https://dash.example.test:8443. The extra origin keeps port 8443.
  2. Rebuild with CHAT_UI_URL=https://other.example.test and NEMOCLAW_DASHBOARD_ORIGINS=https://ambient.example.test:9443 exported.
    • The sandbox was recreated and is Ready.
    • allowedOrigins is identical to step 1, including https://dash.example.test:8443. It contains neither exported value. The registry is unchanged.
    • The rebuild printed the Ignoring CHAT_UI_URL=... warning from fix(rebuild): keep the recorded OpenClaw dashboard origin #13198. It ignored NEMOCLAW_DASHBOARD_ORIGINS without a warning.

Local setup differences from a release install:

  • The managed images come from CI run 38661431968 for this commit. Onboard used --temp-managed-runtime-catalog with the catalog assembled from that run's contracts.
  • Rebuild has no catalog flag, so it got the same catalog through the live E2E catalog variables (GITHUB_ACTIONS=true, NEMOCLAW_RUN_LIVE_E2E=1, NEMOCLAW_E2E_MANAGED_IMAGE_CATALOG_JSON).
  • The CLI build identity was bound to the run's release, as the CI activation job does.

The managed startup runtime bundle changed for dashboard origins, and Pi
images copy that bundle. Refresh both Pi qualification receipts from the
AMD64 and ARM64 Pi candidate contracts published by workflow run
38661431968, attempt 1, for 1e1ee70. Update the candidate authority to
their exact SHA-256 digests and the image contract test to the reviewed
bundle digest.

Refs #13177
Address the PR Review Advisor findings on #13218:
- The config generator no longer repeats the origin policy. The managed
  startup profile validates origins with parseDashboardOrigins before mapping
  them; the generator only refuses an entry that is not a bare origin.
- A clone now records the rebound profile's extra origins on its registry
  entry, so a later rebuild of the clone keeps them.
- The removal procedure now says to unset NEMOCLAW_DASHBOARD_ORIGINS too.

Refs #13177
@kaofelix

Copy link
Copy Markdown
Collaborator Author

PR Review Advisor findings on d39e842

All four P1 findings are fixed in 19bec2fa0. They had three causes.

  • Two owners of the origin policy (architecture, reduction): the config generator no longer repeats the rules. The managed startup profile validates origins with parseDashboardOrigins before it maps them to NEMOCLAW_DASHBOARD_ORIGINS, and the profile is the only producer of that variable. The generator now only refuses an entry that is not a bare origin, so a malformed value cannot widen allowedOrigins. Its tests now cover that narrower job.
  • Clone dropped the origins (migration): the clone handoff now records the rebound profile's extraOrigins as dashboardOrigins on the clone's registry entry, so a later rebuild of the clone keeps them. New test: src/lib/onboard/managed-workload-clone-dashboard-origins.test.ts, which failed before the fix. Nothing in production calls this handoff yet.
  • Removal docs (documentation): the procedure now says to unset NEMOCLAW_DASHBOARD_ORIGINS as well as dropping --dashboard-origin. The CLI error messages already named both.

d39e842 also refreshed both Pi qualification receipts and the reviewed bundle pin, because Pi images copy the regenerated startup bundle. The receipts come from the Pi candidate contracts of workflow run 38661431968, attempt 1, for 1e1ee70e6. Later commits do not change Pi image inputs.

…nored

Rebuild replays the dashboard origins recorded at onboarding. An exported
NEMOCLAW_DASHBOARD_ORIGINS was ignored without a word, unlike CHAT_UI_URL.
Print the same kind of warning when the export names different origins,
with the onboard command that changes them. Equivalent spellings of the
recorded origins stay quiet.

Refs #13177
Address the second PR Review Advisor pass on #13218:
- Onboarding refuses --dashboard-origin and NEMOCLAW_DASHBOARD_ORIGINS for
  agents other than OpenClaw before it changes state. The startup profile
  builder refuses them too, instead of dropping them.
- parseDashboardOrigins rejects more than 16 origins, and the docs state
  the limit.
- The config generator enforces the same rules before it writes
  allowedOrigins: a bare http(s) origin, https unless loopback, and at
  most 16. It runs in the image without the shared module; tests keep
  the two in step.
- Regenerate the reviewed runtime bundle and update its pin. The Pi
  qualification receipts are refreshed in a following commit, once CI
  publishes Pi candidate images for this change.

Refs #13177
Pi images copy the managed startup runtime bundle, which changed in
db164d1. Refresh both Pi qualification receipts from the AMD64 and ARM64
Pi candidate contracts published by workflow run 38713442902, attempt 1,
for db164d1, and update the candidate authority to their exact SHA-256
digests.

Refs #13177
@kaofelix

Copy link
Copy Markdown
Collaborator Author

PR Review Advisor findings on 3fbe888

The second pass reported five P1 findings with three causes. All are fixed in db164d105. 72d5eb4f3 refreshes the Pi receipts for that change.

  • Other agents silently dropped the setting (customer value, documentation): resolveOnboardOptions now refuses --dashboard-origin and NEMOCLAW_DASHBOARD_ORIGINS for any agent other than OpenClaw before onboarding changes state. The startup profile builder refuses them too, so a direct caller cannot drop them. New tests cover Hermes, Deep Agents Code, and the variable on its own.
  • The generator accepted origins that onboarding refuses (reduction, verification): the generator now enforces the same rules before it writes allowedOrigins: a bare http(s) origin, https unless the host is loopback, and at most 16 entries. It cannot import parseDashboardOrigins because the image does not ship that module, and adding it would grow the root Dockerfile past its budget. Its tests now cover remote http, a non-http scheme, user information, and 17 origins. Three of them failed against the previous generator.
  • The 16-origin limit was undocumented (documentation): parseDashboardOrigins now rejects more than 16 origins for the flag and the variable, not only for a recorded profile. docs/reference/commands.mdx states the limit.

The reviewed runtime bundle changed again, so its pin is updated. Both Pi qualification receipts now come from the Pi candidate contracts of workflow run 38713442902, attempt 1, for db164d105.

Address the third PR Review Advisor pass on #13218:
- The config generator now normalizes origins the same way
  parseDashboardOrigins does, so a trailing slash, uppercase scheme or
  host, or a default port that onboarding accepts no longer fails the
  image build. A test compares the generator output with the shared
  parser.
- The docs say --dashboard-origin is refused with --from-image as well as
  --from and the Dockerfile fallback.

Refs #13177
@kaofelix

kaofelix commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator Author

PR Review Advisor findings on 72d5eb4, and a question about live E2E

Two of the three findings are fixed in 800f8a374:

  • Docs: the restriction now says --dashboard-origin is refused with --from, --from-image, and the Dockerfile fallback.
  • Generator vs. onboarding: the generator rejected an origin that onboarding accepts, such as a trailing slash or an uppercase host. It now normalizes origins the same way as parseDashboardOrigins, and a test compares the two; that test failed before the fix. The generator still has its own copy of the checks: it runs inside the image, which doesn't ship src/lib/dashboard/url.ts, and the root Dockerfile size budget refuses new COPY lines.

Open: should this PR add live E2E coverage?

The third finding asks to extend the dashboard-remote-bind live E2E so it:

  1. onboards managed OpenClaw with an HTTPS origin on its own port,
  2. checks that the running sandbox's gateway.controlUi.allowedOrigins contains it,
  3. rebuilds, and checks again.

The decision on #13177 lists one live onboard-and-rebuild check in its validation plan. I ran that check by hand on this branch; the evidence is in the earlier comment. Unit and integration tests cover parsing, the registry, the startup profile, the generated config, and rebuild replay. Only a live run shows that the managed image applies the recorded origins.

The live case would install NemoClaw for real, needs the hosted inference secret, and runs only on the E2E runners.

Options:

  • A. Add an opt-in case to dashboard-remote-bind in this PR and validate it with one dispatched E2E run.
  • B. Track it as a follow-up issue and rely on the manual evidence for this PR.
  • C. No live coverage beyond the manual run.

Which do you recommend?

Address the PR Review Advisor findings on #13198:
- Test that a failed inner onboard still receives the recorded dashboard
  origin and that the ambient CHAT_UI_URL is restored afterwards.
- Document that changing or clearing CHAT_UI_URL for an existing
  sandbox takes effect only after a rebuild.

Refs #13177
Address the PR Review Advisor findings on #13218:
- Canonicalize NEMOCLAW_AGENT before the OpenClaw-only dashboard-origin
  check, so an alias such as nemoclaw is accepted and nemohermes is
  still refused.
- The config generator names a rejected NEMOCLAW_DASHBOARD_ORIGINS entry
  by position instead of echoing it, so user information is not printed.
- Document that origins added or changed for an existing sandbox apply
  only after a rebuild.

Refs #13177
@kaofelix

Copy link
Copy Markdown
Collaborator Author

PR Review Advisor findings on 800f8a3

Fixed in 4e4638a03:

  • Agent alias: onboarding now maps an OpenClaw alias such as NEMOCLAW_AGENT=nemoclaw to openclaw before the OpenClaw-only check. nemohermes is still refused. Tests cover both.
  • Generator error: a rejected NEMOCLAW_DASHBOARD_ORIGINS entry is named by position (entry 2) instead of echoed, so user information in it is not printed. A test checks that the user name and password are absent.
  • Docs: origins added or changed when you onboard an existing sandbox again apply only after nemoclaw <name> rebuild.

Not changed:

The branch also includes 39bcf1bde from #13198.

The image config generator kept its own copy of the dashboard-origin
rules, and the copy already differed: it accepted control characters and
over-long values that parseDashboardOrigins refuses. The generator now
imports parseDashboardOrigins, so onboarding, the startup profile, and
the generator share one owner.

- Copy src/lib/dashboard/url.ts and its two core imports into the image
  and the local build context. This adds two root Dockerfile lines; the
  growth exception for this PR is recorded separately on main.
- Keep naming a rejected entry by position, so user information in it is
  not printed.
- Test that control characters and over-long values are refused like
  parseDashboardOrigins refuses them.

Refs #13177
@kaofelix

Copy link
Copy Markdown
Collaborator Author

Root Dockerfile growth approved for this PR

Maintainer decision: approve root Dockerfile growth for #13218 up to 2,494 lines and 216,495 bytes (2 lines and 132 bytes over main).

1a68ff15a makes the OpenClaw config generator use parseDashboardOrigins instead of its own copy of the dashboard-origin rules. The copy had already drifted: it accepted control characters and over-long values that the shared parser refuses. The image needs two new COPY lines for src/lib/dashboard/url.ts and its two src/lib/core imports.

The guardrail reads exceptions only from the base branch, so the exception goes to main in a separate PR. Remove it after this PR merges.

main now runs dashboard-remote-bind for OpenClaw and Hermes. The merged test
keeps that coverage: the Hermes API-isolation phases stay as main has them, and
the dashboard-origin assertions run only for OpenClaw using each agent's
generated sandbox name. The OpenClaw phase order, contracts, and rebuild checks
from this branch are preserved, and the timeout note reflects the shared target.

Generated files take main's copies and are regenerated: the assertion budget,
the startup bundle and its pin, and this PR's assertion exception entry with the
approved digest, which is unchanged against main. The Pi receipts are refreshed
from this commit's CI run.
The merge with main changed Pi image inputs. Both receipts come from the
managed-images run for a6a71e9, collected with the reviewed collector from
main, and the candidate authority lists their SHA-256 digests.
…dget

main's platform-vitest-main workflow contract budgets this test's
TEST_TIMEOUT_MS inside WSL shard 1. A 60-minute value exceeded the shard
budget, so the value returns to main's 50 minutes. The per-step budgets stay
as ceilings; live runs on this target finish in 6 to 8 minutes.
@kaofelix

kaofelix commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

Revision-specific disposition for the conflict resolution

The conflicts are resolved and the revision is validated. The PR is now MERGEABLE.

Revisions

  • a6a71e9e0: merge of main (a68a94675). Resolved generated-file conflicts by regenerating the assertion budget, the startup bundle and its pin, and this PR's assertion exception entry (approved digest unchanged). Source conflicts were limited to the E2E test and its catalogue entries.
  • add9ebd7b: Pi qualification receipts from the managed-images run for a6a71e9e0, collected with the reviewed collector from main.
  • b95f6a5c3: the dashboard test timeout returns to main's 50 minutes, because test/automation/e2e/platform-vitest-main-workflow.test.ts budgets that value inside WSL shard 1. This supersedes the earlier 60- and 75-minute values.

Merge behavior for the shared target

main now runs dashboard-remote-bind for OpenClaw and Hermes. The merged test keeps that coverage: the Hermes API-isolation phases stay as main has them, and the dashboard-origin assertions run only for OpenClaw, using each agent's generated sandbox name. The OpenClaw audit and rebuild-origin assertions remain, in main's six declared phases.

Validation on b95f6a5c3

  • CI: all 59 checks pass.
  • dashboard-remote-bind live E2E: https://github.com/NVIDIA/NemoClaw/actions/runs/41483365825 passed both scenarios. OpenClaw ran 6m26s including the rebuild-origin assertions; Hermes ran 1m40s. Managed images came from this commit's image workflow.
  • Review Advisor on this revision: no P0/P1 findings. Its one remaining E2E recommendation asked for this live run, which now exists.
  • Conflict resolution was validated in a container without host credentials: formatting, lint, the assertion census, the pinned bundle contract, the CLI typecheck, and the affected cli and e2e-support suites.

Not done: no new live run on the earlier d33862449 revision, and no review request.

Signed-off-by: Kao Félix <me@kaofelix.dev>
@kaofelix
kaofelix marked this pull request as draft November 3, 2026 15:06
@kaofelix
kaofelix marked this pull request as ready for review November 3, 2026 17:10
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
@wscurran wscurran added area: cli Command line interface, flags, terminal UX, or output area: docs Documentation, examples, guides, or docs build area: e2e End-to-end tests, nightly failures, or validation infrastructure area: networking DNS, proxy, TLS, ports, host aliases, or connectivity area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery labels Nov 3, 2026
@kaofelix
kaofelix requested a review from rsliter November 6, 2026 10:09
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit 4c6e5f1. Include the Advisor findings in the complete PR feedback collection. Verify and group valid findings before repair.

Request review only when Require no Advisor blockers is green.

All previous runs

This branch has not been deployed

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

Labels

area: cli Command line interface, flags, terminal UX, or output area: docs Documentation, examples, guides, or docs build area: e2e End-to-end tests, nightly failures, or validation infrastructure area: networking DNS, proxy, TLS, ports, host aliases, or connectivity area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality integration: openclaw OpenClaw integration behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants