Skip to content

fix(e2e): strip launch authority from OpenShell - #9267

Closed
prekshivyas wants to merge 2 commits into
mainfrom
agent/strip-openclaw-launch-authority
Closed

prekshivyas wants to merge 2 commits into
mainfrom
agent/strip-openclaw-launch-authority

Conversation

@prekshivyas

@prekshivyas prekshivyas commented Aug 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

OpenClaw E2E launch helpers could forward launch authority to the real OpenShell process through the shim or direct session-evidence route. This change captures required command values first, then removes the exact OpenShell command names and both launch-authority prefixes before every real OpenShell execution. It follows the security finding on #9258.

Changes

  • Remove NEMOCLAW_OPENSHELL_BIN, NEMOCLAW_OPENSHELL_COMMAND, every NEMOCLAW_LAUNCH_* variable, and every OPENSHELL_NEMOCLAW_LAUNCH_* variable from shim pass-through and intercepted calls.
  • Apply the same removal before direct session-evidence and cleanup calls.
  • Record shim and evidence OpenShell calls in the support fixture and reject any retained authority name, including future names under either prefix.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification: The change is confined to internal E2E launch infrastructure and does not change a public CLI, configuration, default, supported workflow, error, or product behavior.
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: The nine-category security review for 59d8ecf51 found no residual authority forwarding. Focused negative evidence covers shim pass-through, shim interception, direct evidence, and evidence cleanup calls. The change addresses fix(e2e): preserve OpenClaw shim authority #9258 (comment).
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Documentation Writer Review

  • Documentation writer subagent reviewed the completed changes
  • Result: no-docs-needed
  • Evidence: test/e2e/live/launch-agent-turn.ts and test/e2e/support/launch-agent-turn.test.ts change internal E2E launch sanitization and regression coverage only; no public CLI, configuration, default, supported workflow, error, or product behavior changes.
  • Agent: Codex Desktop

DGX Station Hardware Evidence

  • Tested on DGX Station
  • Tested commit: Not applicable
  • Station profile/scenario: Not applicable
  • Result: Not applicable
  • Supporting evidence: Not applicable

Verification

  • PR description includes a Signed-off-by: line and every commit appears as Verified in GitHub
  • Normal pre-commit, commit-msg, and pre-push hooks passed, or npm run validate:pr passed after refreshing origin/main when hooks were skipped or unavailable
  • Targeted behavior tests pass for the current change set, or tests are marked not applicable above — npx vitest run --project e2e-support test/e2e/support/launch-agent-turn.test.ts passed on the tree now at 59d8ecf51: 9 passed, 0 failed, and 21 intentional Linux-only skips on macOS. The generated Bash script passed bash -n; npm run checks:repository, npm run typecheck:cli, Oxfmt, and the conditional-count scan also passed.
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — command/result:
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Signed-off-by: Prekshi Vyas prekshiv@nvidia.com

Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
@prekshivyas prekshivyas self-assigned this Aug 16, 2026
@copy-pr-bot

copy-pr-bot Bot commented Aug 16, 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 Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: e6b06eee-2df0-423f-94c1-8ba2ffbfc8ce

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage in commit 59d8ecf in the agent/strip-openclaw... branch remains at 96%, unchanged from commit 2d03922 in the main branch.

TypeScript / code-coverage/cli

The overall coverage in commit 59d8ecf in the agent/strip-openclaw... branch remains at 82%, unchanged from commit 6f28b97 in the main branch.

Show a code coverage summary of the most impacted files.
File main 6f28b97 agent/strip-openclaw... 59d8ecf +/-
src/lib/messagi...onfig-parser.ts 100% 75% -25%
src/lib/messagi...parser-utils.ts 95% 86% -9%
src/lib/messagi...onfig-parser.ts 100% 93% -7%
src/lib/messagi...ate-resolver.ts 100% 95% -5%
src/lib/securit...ntial-filter.ts 88% 84% -4%
src/lib/messagi...els/metadata.ts 100% 100% 0%
src/lib/messagi...nes/template.ts 100% 100% 0%
src/lib/sandbox...rce-identity.ts 86% 86% 0%
src/lib/tunnel/services.ts 81% 81% 0%
src/lib/messagi...ate-resolver.ts 87% 100% +13%

Updated August 17, 2026 00:20 UTC

@github-actions

github-actions Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor — No blocking findings reported

Advisor assessment: No blocking advisor findings reported
Next action: No advisor follow-up needed.
Findings: 0 blockers · 0 warnings · 0 suggestions

Model lanes

  • GPT-5.6 Terra (primary): Completed · high confidence · 0 blockers · 0 warnings · 0 suggestions
  • Nemotron 3 Ultra (second opinion): Failed

Second-opinion terminology and E2E selections are advisory. Live E2E does not run automatically for pull requests.

2 semantic terminology decisions

Terminology decisions are advisory. They affect the assessment only when a separate finding identifies concrete semantic impact.

  • established — launch authority at test/e2e/support/launch-agent-turn.test.ts:821: Keep `launch authority` for these environment values.
  • justified — direct evidence at test/e2e/support/launch-agent-turn.test.ts:821: Keep `direct evidence` to distinguish the evidence route from the shim route.

E2E guidance

Advisory only. A maintainer can dispatch the default E2E suite for the commit under review.

Recommended E2E: None

Manual-only E2E: cloud-onboard, security-posture, cloud-inference
The manual PR workflow does not run these selectors for the commit under review. Run them from reviewed code on main.

1 optional E2E recommendation
  • openclaw-tui-chat-correlation

Workflow run details

This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge.

Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
@cv

cv commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Dupe of #9266

@cv cv closed this Aug 17, 2026
@wscurran wscurran added area: e2e End-to-end tests, nightly failures, or validation infrastructure area: security Security controls, permissions, secrets, or hardening integration: openclaw OpenClaw integration behavior labels Nov 16, 2026
@cv
cv deleted the agent/strip-openclaw-launch-authority branch November 21, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: e2e End-to-end tests, nightly failures, or validation infrastructure area: security Security controls, permissions, secrets, or hardening integration: openclaw OpenClaw integration behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants