Repository navigation
test(e2e): prove security posture parity for both agents - #6010
Conversation
Signed-off-by: Carlos Villela <[email protected]>
Signed-off-by: Carlos Villela <[email protected]>
Signed-off-by: Carlos Villela <[email protected]>
📝 WalkthroughWalkthroughAdds a security posture E2E fixture, integrates it into both live scenarios, adds workflow validation tests, and wires a new CI job into PR reporting. ChangesSecurity Posture E2E Feature
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in the Show a code coverage summary of the most covered files.
TypeScript / code-coverage/cliThe overall coverage in the Show a code coverage summary of the most covered files.
Updated |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
Vitest E2E Scenario RecommendationRequired Vitest E2E scenarios: Dispatch required Vitest E2E scenarios:
Full Vitest E2E advisor summaryVitest E2E Scenario AdvisorBase: Required Vitest E2E scenarios
Optional Vitest E2E scenarios
Relevant changed files
|
PR Review Advisor (Nemotron Ultra) — Changes requestedMerge posture: Do not merge yet Action checklist
Findings index
🚨 Required before mergeAddress these before merging unless a maintainer explicitly overrides the advisor with rationale.
|
PR Review Advisor — Changes requestedMerge posture: Do not merge yet Action checklist
Findings index
Review findings by urgency: 0 required fixes, 1 item to resolve/justify, 0 in-scope improvements
|
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (1)
test/e2e-scenario/support-tests/security-posture-workflow-boundary.test.ts (1)
22-27: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winPrefer structural workflow mutation over raw YAML text replacement.
This helper makes the test depend on exact indentation and block formatting, so harmless YAML reshuffles can fail the test without changing the boundary contract. Mutate the parsed workflow object, then serialize it back for validation instead.
As per path instructions, "Prefer observable outcomes through the public boundary over source-text, private-shape, or mock-call assertions."
Also applies to: 55-64
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@test/e2e-scenario/support-tests/security-posture-workflow-boundary.test.ts` around lines 22 - 27, The helper validateCentralWorkflowMutation currently mutates raw YAML text, making the security posture boundary test brittle to formatting changes. Update validateCentralWorkflowMutation and the related test setup to parse the workflow into a structured object, apply mutations to that object, then serialize it back before calling readSecurityPostureWorkflow and validateSecurityPostureWorkflow. Keep the assertion focused on the observable workflow boundary rather than source-text formatting.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/e2e-vitest-scenarios.yaml:
- Around line 3335-3366: Add an explicit least-privilege permissions block to
the security-posture-vitest job so it does not inherit the default GITHUB_TOKEN
scope. Update the job definition identified by security-posture-vitest in the
workflow to declare only the minimal read access it needs, while leaving the
step-scoped inference secret handling unchanged. Keep the job’s security posture
tight by ensuring any values remain passed as data, not expanded into shell
commands.
In `@test/e2e-scenario/fixtures/security-posture.ts`:
- Around line 119-130: The security posture assertions in
securityPostureModeEnv()/the PID 1 checks are reading process.env directly, so
the default enabled posture can be skipped when only
NEMOCLAW_E2E_SECURITY_POSTURE is set. Centralize the expectation defaults by
routing these checks through the same helper-backed mode resolution used for
child commands, and update the non-root/capability/NoNewPrivs branches
(including the non-root-host default at the referenced helper call site) to
honor that resolved default instead of raw env flags.
In `@test/e2e-scenario/support-tests/security-posture.test.ts`:
- Around line 15-20: The afterEach in security-posture.test.ts restores two
environment variables with branching, which triggers the growth guardrail.
Update the env cleanup to be linear and branch-free by using a direct restore
pattern for the originalSecurityPosture and originalExpectNonRootHost values
inside afterEach, while keeping the same behavior in the security-posture test
setup.
---
Nitpick comments:
In `@test/e2e-scenario/support-tests/security-posture-workflow-boundary.test.ts`:
- Around line 22-27: The helper validateCentralWorkflowMutation currently
mutates raw YAML text, making the security posture boundary test brittle to
formatting changes. Update validateCentralWorkflowMutation and the related test
setup to parse the workflow into a structured object, apply mutations to that
object, then serialize it back before calling readSecurityPostureWorkflow and
validateSecurityPostureWorkflow. Keep the assertion focused on the observable
workflow boundary rather than source-text formatting.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 2c8658f8-23ea-442d-8e5a-23e30587c99c
📒 Files selected for processing (7)
.github/workflows/e2e-vitest-scenarios.yamltest/e2e-scenario/fixtures/security-posture.tstest/e2e-scenario/live/full-e2e.test.tstest/e2e-scenario/live/hermes-e2e.test.tstest/e2e-scenario/support-tests/security-posture-workflow-boundary.test.tstest/e2e-scenario/support-tests/security-posture.test.tstools/e2e-scenarios/security-posture-workflow-boundary.mts
Signed-off-by: Carlos Villela <[email protected]>
Signed-off-by: Carlos Villela <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/e2e-scenario/fixtures/security-posture.ts`:
- Line 90: The host probe in assertSecurityPosture still unconditionally checks
for a non-root user, which ignores the opt-out supported by
securityPostureExpectations() and securityPostureModeEnv(). Update
assertSecurityPosture() to only enforce the id -u != 0 failure when
expectations.nonRootHost is true, and keep the existing expectations wiring in
securityPostureExpectations() / securityPostureModeEnv() so
NEMOCLAW_E2E_EXPECT_NON_ROOT_HOST=0 is honored consistently.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: ab9dd8a8-de0e-4957-95a4-d8f34d3ccb17
📒 Files selected for processing (5)
.github/workflows/e2e-vitest-scenarios.yamltest/e2e-scenario/fixtures/security-posture.tstest/e2e-scenario/support-tests/security-posture-workflow-boundary.test.tstest/e2e-scenario/support-tests/security-posture.test.tstools/e2e-scenarios/security-posture-workflow-boundary.mts
🚧 Files skipped from review as they are similar to previous changes (4)
- test/e2e-scenario/support-tests/security-posture.test.ts
- .github/workflows/e2e-vitest-scenarios.yaml
- tools/e2e-scenarios/security-posture-workflow-boundary.mts
- test/e2e-scenario/support-tests/security-posture-workflow-boundary.test.ts
| enabled, | ||
| noNewPrivileges: enabled && truthy(env.NEMOCLAW_E2E_EXPECT_NO_NEW_PRIVS), | ||
| nonRootEntrypoint: enabled && truthy(env.NEMOCLAW_E2E_EXPECT_NON_ROOT_ENTRYPOINT), | ||
| nonRootHost: enabled && truthy(env.NEMOCLAW_E2E_EXPECT_NON_ROOT_HOST ?? "1"), |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Honor the nonRootHost expectation in the host probe.
securityPostureExpectations() and securityPostureModeEnv() allow NEMOCLAW_E2E_EXPECT_NON_ROOT_HOST=0, but assertSecurityPosture() still unconditionally requires id -u != 0. Gate only the failure on expectations.nonRootHost, or remove the opt-out if root-host runs should never be supported.
Proposed fix
- requireSuccess("non-root host user", hostUser);
+ if (expectations.nonRootHost) {
+ requireSuccess("non-root host user", hostUser);
+ }Also applies to: 100-100, 112-122
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@test/e2e-scenario/fixtures/security-posture.ts` at line 90, The host probe in
assertSecurityPosture still unconditionally checks for a non-root user, which
ignores the opt-out supported by securityPostureExpectations() and
securityPostureModeEnv(). Update assertSecurityPosture() to only enforce the id
-u != 0 failure when expectations.nonRootHost is true, and keep the existing
expectations wiring in securityPostureExpectations() / securityPostureModeEnv()
so NEMOCLAW_E2E_EXPECT_NON_ROOT_HOST=0 is honored consistently.
Signed-off-by: Carlos Villela <[email protected]>
|
Fresh security-posture runtime validation is in progress on head Advisor dispositions:
|
Vitest E2E Scenario Results — ❌ Some jobs failedRun: 28397462103
|
<!-- markdownlint-disable MD041 --> ## Summary Fix the shared Vitest E2E sandbox client after the exact-head security-posture run proved that current OpenShell rejects newline-bearing command arguments. Multiline trusted scripts are now base64-encoded into one shell argument at the client boundary instead of requiring every scenario to invent its own minifier. ## Related Issue Contributes to #5919. Follow-up to merged #6010 and failed live run [28397462103](https://github.com/NVIDIA/NemoClaw/actions/runs/28397462103). ## Changes - Preserve direct single-line `sh -lc` arguments. - Encode multiline trusted scripts as a single newline-free `eval` argument and decode inside the sandbox. - Reject NUL-bearing scripts before process construction. - Add a round-trip contract test for the exact command argument. ## Type of Change - [x] 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 - [x] Tests added or updated for changed behavior - [ ] Existing tests cover changed behavior — justification: - [ ] Tests not applicable — justification: - [ ] Docs updated for user-facing behavior changes - [x] Docs not applicable — justification: internal E2E transport compatibility only; no user-facing product behavior changes. - [x] 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: pending independent review. - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## Verification - [x] PR description includes the DCO sign-off declaration and every commit appears as `Verified` in GitHub - [x] Git hooks passed during commit and push, or `npx prek run --from-ref main --to-ref HEAD` passes - [x] Targeted tests pass for changed behavior - [ ] Full `npm test` passes (broad runtime changes only) - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) Targeted verification: - `VITEST_MAX_WORKERS=16 npx vitest run --project e2e-vitest-support test/e2e-scenario/support-tests/e2e-clients.test.ts test/e2e-scenario/support-tests/security-posture.test.ts` - `npm run typecheck:cli` - `make check` - normal signed commit and push hooks --- Signed-off-by: Carlos Villela <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved handling of trusted sandbox shell scripts so multiline scripts are safely passed without raw line breaks. * Added stricter script validation to reject empty scripts and scripts containing NUL characters. * Updated shell execution behavior to reduce the risk of malformed command arguments when running scripts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Carlos Villela <[email protected]>
## Summary Refreshes the v0.0.70 release docs from the release announcement and the `v0.0.69..v0.0.70` commit range. It also documents the `channels start` policy restoration behavior that was missing from the shared OpenClaw and Hermes command references, and bumps the Fern CLI version used for docs validation. ## Changes - Replaced the stale `v0.0.70` release-notes entry with the actual release themes, including CLI, onboarding, inference, messaging, Windows, documentation, and release-validation changes. - Documented that `channels start` reapplies the matching built-in network policy preset before rebuild and rolls back to disabled if policy restoration fails. - Bumped `fern/fern.config.json` from `5.55.0` to `5.59.0` for the docs refresh. - Source summary: - #5754 -> `docs/about/release-notes.mdx`: Notes Docker Desktop gateway bridge retry behavior during onboarding. - #5930 -> `docs/about/release-notes.mdx`: Links `nemoclaw use` default sandbox selection to the command reference. - #5948 -> `docs/about/release-notes.mdx`: Links reasoning-compatible endpoint validation to inference documentation. - #5950 -> `docs/about/release-notes.mdx`: Links Windows bootstrap WSL recovery behavior to Windows preparation and troubleshooting docs. - #5856 -> `docs/about/release-notes.mdx`: Notes rebuilt policy preset registry repair. - #5882 and #5949 -> `docs/about/release-notes.mdx`: Notes Hermes stale base-image state repair. - #6016 -> `docs/reference/commands.mdx`, `docs/reference/commands-nemohermes.mdx`, and `docs/manage-sandboxes/messaging-channels.mdx`: Documents channel policy restoration and rollback on `channels start`. - #5859 -> `docs/about/release-notes.mdx`: Links quickstart network approval guidance. - #5863 -> `docs/about/release-notes.mdx`: Links Teams allowlist guidance in the messaging page. - #5756, #5926, #6010, and #6011 -> `docs/about/release-notes.mdx`: Summarizes the Vitest E2E validation cutover. ## Type of Change - [ ] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [x] 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: - [x] Tests not applicable — justification: doc-only prose refresh with no runtime behavior change. - [x] Docs updated for user-facing behavior changes - [ ] Docs not applicable — justification: - [ ] 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: - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## Verification - [x] PR description includes the DCO sign-off declaration and every commit appears as `Verified` in GitHub - [x] Git hooks passed during commit and push, or `npx prek run --from-ref main --to-ref HEAD` passes - [ ] Targeted tests pass for changed behavior - [ ] Full `npm test` passes (broad runtime changes only) - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [x] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) `npm run docs` exited 0 and Fern reported one existing light-mode accent contrast warning. `fern check --warnings` confirmed the warning is the site theme contrast ratio, not content introduced by this PR. --- Signed-off-by: Miyoung Choi <[email protected]>
<!-- markdownlint-disable MD041 --> ## Summary Promote the frozen security-posture checks into a dedicated two-agent Vitest lane before the legacy E2E retirement. This gives OpenClaw and Hermes the same non-root, capability, policy, and secret-boundary proof under one reviewable workflow contract. ## Related Issue Contributes to NVIDIA#5919. ## Changes - Extract shared security-posture assertions into a typed E2E fixture. - Exercise the assertions from the OpenClaw and Hermes live tests. - Add a default-enabled, two-agent workflow matrix with isolated artifacts and step-scoped inference credentials. - Add focused support tests and a workflow mutation ratchet for agent coverage, mode configuration, action pinning, and credential scope. ## Type of Change - [x] 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 - [x] Tests added or updated for changed behavior - [ ] Existing tests cover changed behavior — justification: - [ ] Tests not applicable — justification: - [ ] Docs updated for user-facing behavior changes - [x] Docs not applicable — justification: internal E2E coverage and workflow wiring only; no product behavior or user-facing interface changes. - [x] Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging) - [x] Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: the new job withholds Docker credentials, scopes NVIDIA_INFERENCE_API_KEY to the live test step, sanitizes the OpenShell install environment, pins actions by full SHA, and uploads only its isolated artifact roots. - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## Verification - [x] PR description includes the DCO sign-off declaration and every commit appears as `Verified` in GitHub - [x] Git hooks passed during commit and push, or `npx prek run --from-ref main --to-ref HEAD` passes - [x] Targeted tests pass for changed behavior - [ ] Full `npm test` passes (broad runtime changes only) - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) Targeted verification: - `VITEST_MAX_WORKERS=16 npx vitest run --project e2e-vitest-support test/e2e-scenario/support-tests/security-posture.test.ts test/e2e-scenario/support-tests/security-posture-workflow-boundary.test.ts` - `npm run typecheck:cli` - normal commit and push hooks --- Signed-off-by: Carlos Villela <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added security posture validation to supported agent end-to-end runs, with posture results included in scenario reporting. * Introduced a dedicated security-posture Vitest job that runs for both agent variants and uploads agent-specific artifacts. * **Bug Fixes** * Strengthened checks to ensure host/sandbox posture and runtime guard behavior are correctly enforced when enabled. * **Tests** * Added new end-to-end security posture fixtures and unit coverage for posture helper behavior and env normalization. * Added workflow boundary tests to verify the security-posture job is correctly dispatched and securely configured. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Carlos Villela <[email protected]>
<!-- markdownlint-disable MD041 --> ## Summary Fix the shared Vitest E2E sandbox client after the exact-head security-posture run proved that current OpenShell rejects newline-bearing command arguments. Multiline trusted scripts are now base64-encoded into one shell argument at the client boundary instead of requiring every scenario to invent its own minifier. ## Related Issue Contributes to NVIDIA#5919. Follow-up to merged NVIDIA#6010 and failed live run [28397462103](https://github.com/NVIDIA/NemoClaw/actions/runs/28397462103). ## Changes - Preserve direct single-line `sh -lc` arguments. - Encode multiline trusted scripts as a single newline-free `eval` argument and decode inside the sandbox. - Reject NUL-bearing scripts before process construction. - Add a round-trip contract test for the exact command argument. ## Type of Change - [x] 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 - [x] Tests added or updated for changed behavior - [ ] Existing tests cover changed behavior — justification: - [ ] Tests not applicable — justification: - [ ] Docs updated for user-facing behavior changes - [x] Docs not applicable — justification: internal E2E transport compatibility only; no user-facing product behavior changes. - [x] 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: pending independent review. - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## Verification - [x] PR description includes the DCO sign-off declaration and every commit appears as `Verified` in GitHub - [x] Git hooks passed during commit and push, or `npx prek run --from-ref main --to-ref HEAD` passes - [x] Targeted tests pass for changed behavior - [ ] Full `npm test` passes (broad runtime changes only) - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) Targeted verification: - `VITEST_MAX_WORKERS=16 npx vitest run --project e2e-vitest-support test/e2e-scenario/support-tests/e2e-clients.test.ts test/e2e-scenario/support-tests/security-posture.test.ts` - `npm run typecheck:cli` - `make check` - normal signed commit and push hooks --- Signed-off-by: Carlos Villela <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved handling of trusted sandbox shell scripts so multiline scripts are safely passed without raw line breaks. * Added stricter script validation to reject empty scripts and scripts containing NUL characters. * Updated shell execution behavior to reduce the risk of malformed command arguments when running scripts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Carlos Villela <[email protected]>
## Summary Refreshes the v0.0.70 release docs from the release announcement and the `v0.0.69..v0.0.70` commit range. It also documents the `channels start` policy restoration behavior that was missing from the shared OpenClaw and Hermes command references, and bumps the Fern CLI version used for docs validation. ## Changes - Replaced the stale `v0.0.70` release-notes entry with the actual release themes, including CLI, onboarding, inference, messaging, Windows, documentation, and release-validation changes. - Documented that `channels start` reapplies the matching built-in network policy preset before rebuild and rolls back to disabled if policy restoration fails. - Bumped `fern/fern.config.json` from `5.55.0` to `5.59.0` for the docs refresh. - Source summary: - NVIDIA#5754 -> `docs/about/release-notes.mdx`: Notes Docker Desktop gateway bridge retry behavior during onboarding. - NVIDIA#5930 -> `docs/about/release-notes.mdx`: Links `nemoclaw use` default sandbox selection to the command reference. - NVIDIA#5948 -> `docs/about/release-notes.mdx`: Links reasoning-compatible endpoint validation to inference documentation. - NVIDIA#5950 -> `docs/about/release-notes.mdx`: Links Windows bootstrap WSL recovery behavior to Windows preparation and troubleshooting docs. - NVIDIA#5856 -> `docs/about/release-notes.mdx`: Notes rebuilt policy preset registry repair. - NVIDIA#5882 and NVIDIA#5949 -> `docs/about/release-notes.mdx`: Notes Hermes stale base-image state repair. - NVIDIA#6016 -> `docs/reference/commands.mdx`, `docs/reference/commands-nemohermes.mdx`, and `docs/manage-sandboxes/messaging-channels.mdx`: Documents channel policy restoration and rollback on `channels start`. - NVIDIA#5859 -> `docs/about/release-notes.mdx`: Links quickstart network approval guidance. - NVIDIA#5863 -> `docs/about/release-notes.mdx`: Links Teams allowlist guidance in the messaging page. - NVIDIA#5756, NVIDIA#5926, NVIDIA#6010, and NVIDIA#6011 -> `docs/about/release-notes.mdx`: Summarizes the Vitest E2E validation cutover. ## Type of Change - [ ] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [x] 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: - [x] Tests not applicable — justification: doc-only prose refresh with no runtime behavior change. - [x] Docs updated for user-facing behavior changes - [ ] Docs not applicable — justification: - [ ] 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: - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## Verification - [x] PR description includes the DCO sign-off declaration and every commit appears as `Verified` in GitHub - [x] Git hooks passed during commit and push, or `npx prek run --from-ref main --to-ref HEAD` passes - [ ] Targeted tests pass for changed behavior - [ ] Full `npm test` passes (broad runtime changes only) - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [x] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) `npm run docs` exited 0 and Fern reported one existing light-mode accent contrast warning. `fern check --warnings` confirmed the warning is the site theme contrast ratio, not content introduced by this PR. --- Signed-off-by: Miyoung Choi <[email protected]>
Summary
Promote the frozen security-posture checks into a dedicated two-agent Vitest lane before the legacy E2E retirement. This gives OpenClaw and Hermes the same non-root, capability, policy, and secret-boundary proof under one reviewable workflow contract.
Related Issue
Contributes to #5919.
Changes
Type of Change
Quality Gates
Verification
Verifiedin GitHubnpx prek run --from-ref main --to-ref HEADpassesnpm testpasses (broad runtime changes only)npm run docsbuilds without warnings (doc changes only)Targeted verification:
VITEST_MAX_WORKERS=16 npx vitest run --project e2e-vitest-support test/e2e-scenario/support-tests/security-posture.test.ts test/e2e-scenario/support-tests/security-posture-workflow-boundary.test.tsnpm run typecheck:cliSigned-off-by: Carlos Villela [email protected]
Summary by CodeRabbit