Skip to content

fix(e2e): verify OpenShell 0.1.10 upgrade inputs - #14838

Merged
prekshivyas merged 3 commits into
mainfrom
codex/e2e-openshell0110-trust
Nov 24, 2026
Merged

prekshivyas merged 3 commits into
mainfrom
codex/e2e-openshell0110-trust

Conversation

@prekshivyas

@prekshivyas prekshivyas commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

Allow independently approved OpenShell 0.1.10 candidates to use the trusted installer verifier, MCP runtime mapping, and protected runtime setup. The default OpenShell pin remains 0.0.116.

Reason

PR #12603 is moving to OpenShell 0.1.10. That release uses ai-openshell/openshell, Quay images, and a compatibility SDK that re-exports @ai-openshell/sdk. The trusted controllers otherwise reject these inputs before runtime qualification.

Changes

  • Bind the new release and supervisor origins to version 0.1.10. Preserve historical origins, artifact identities, template checks, and independent candidate admission.
  • Add the verified 0.1.10 source commit, supervisor index, and three binary hashes to the MCP runtime mapping. An independent inert fixture checks the mapping.
  • Project only the reviewed five-package 0.1.10 SDK graph into the protected controller. Preserve trusted scripts and unrelated dependencies. Reject substituted identities, metadata, and nested packages. Changes to this graph invalidate retained approvals.
  • Recognize 0.1.10 native workload labels, network isolation, container selection, and pagination in the protected harness. Existing workload identity checks remain required.

Verification

Commit under review: e606fe4b16feba281565971f496e54b286397d96. Canonical base: b796c6174c9285c29cb2f00faa3126c31a55b298.

  • Origin, MCP, installer hash, and supervisor trust tests: 258 passed across candidate-openshell-version, candidate-openshell-trust, installer-hash-check, installer-hash-origins, and installer-supervisor-manifest-trust.
  • Protected projection, workspace, native identity, retained admission, and SDK installation tests: 217 passed across protected-openshell-projection, protected-openshell-workspace, managed-image-legacy-container-contract, candidate-upgrade-admission, and openshell-sdk-install.
  • Native projection classification: node node_modules/vitest/vitest.mjs run test/onboarding/onboard-openshell-version.test.ts passes all 43 tests after correcting the existing 0.1.10 expectation to true. Production behavior and the other version cases are unchanged.
  • Both batches used node node_modules/vitest/vitest.mjs run with the named test files in credential-free, network-denied isolation.
  • The actual 0.1.10 candidate SDK manifest and lockfile project onto the trusted 0.0.116 baseline. npm install --package-lock-only --ignore-scripts --offline --include=optional --@nvidia:registry=https://npm.pkg.github.com passes for that projection without semantic lockfile changes.
  • Actual isolated pre-commit, commit-message, and pre-push hooks pass for the correction, including publication validation, CLI typechecking, repository checks, growth guardrails, and secret scanning. Plugin and checked-JavaScript hooks were not selected for this test-only change; all three TypeScript checks passed for the initial prerequisite. The diff contains no secrets, API keys, or credentials.
  • The initial commit passed managed-image CI, all AMD64/ARM64 and rootless Podman activation jobs, and self-hosted qualification. Its source CI failed on the stale 0.1.10 expectation, with downstream aggregate failures. That failure and review finding are preserved; required CI and independent review for the correction remain pending.
  • npm run check did not pass in the restricted local sandbox. Loopback and private temporary-directory operations were denied; CLI coverage was interrupted before the final patch, and snapshot plugin tests also failed. This is not a broad validation pass. Required CI remains pending.

Review notes

The implementing agent reviewed all 19 changed files in NVIDIA/NemoClaw at 4c7069c004236f5d041f7ef1baffa5f9a230f4be, including installer trust under scripts/checks/, scripts/check-installer-hash.sh, admission and projection under tools/e2e/, and src/lib/onboard/openshell-version.ts. The review traced 94 source predicates and callers against the security rubric. It found no blocking source issue; this is self-review, not independent approval.

The follow-up self-review at e606fe4b16feba281565971f496e54b286397d96 covered the classification test and verified that the 19 earlier files retain their reviewed bytes. It changes one existing expectation; the focused 43-case suite passes. This is self-review, not independent approval.

Release archive checksums, extracted binary hashes, and the OCI index bytes were verified. OCI signatures and reproducible binary builds were not independently verified. This prerequisite does not establish live 0.1.10 qualification. The original 79-row requirement for #12603 remains pending on its final candidate. Required CI and independent maintainer review must complete before readiness.


Signed-off-by: Prekshi Vyas [email protected]

Summary by CodeRabbit

  • New Features
    • Added support for OpenShell 0.1.10, including its reviewed SDK dependencies and native runtime projection.
  • Bug Fixes
    • Installer and release validation now recognizes the appropriate source repository and supervisor image for OpenShell 0.1.10, while preserving existing validation for other versions.

@copy-pr-bot

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

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

This change adds OpenShell 0.1.10 support across release-origin validation, runtime provenance mapping, and protected SDK dependency projection. It selects version-specific GitHub and supervisor-image origins, records runtime and package evidence, and adds tests for origin validation, runtime selection, and SDK graph projection.

Changes: OpenShell 0.1.10 support

Layer / File(s) Summary
Version-specific release origins
scripts/check-installer-hash.sh, scripts/checks/extract-installer-pins.mts, scripts/checks/openshell-trust-data.mts, test/helpers/candidate-openshell-trust.ts, test/e2e/support/candidate-openshell-trust.test.ts, test/install/installer-hash-origins.test.ts
Release formula URLs, supervisor images, installer downloads, and extracted pins use origins selected by OpenShell version. Tests cover accepted and mismatched origins.
OpenShell 0.1.10 runtime evidence
tools/e2e/candidate-openshell-version.mts, test/e2e/fixtures/openshell-runtime-provenance-v0.1.10.json, src/lib/onboard/openshell-version.ts, scripts/checks/managed-image-protected-runtime-contract.ts, test/e2e/support/candidate-openshell-version.test.ts, test/e2e/support/managed-image-legacy-container-contract.test.ts, test/onboarding/onboard-openshell-version.test.ts
Runtime provenance and version checks include 0.1.10. Tests cover candidate selection, installer provenance, altered binaries, and native-isolation identity.
Reviewed SDK graph projection
tools/e2e/openshell-sdk-0110-graph.mts, tools/e2e/protected-openshell-projection.mts, test/e2e/fixtures/openshell-sdk-v0.1.10-lock.json, test/e2e/support/protected-openshell-projection.test.ts, test/e2e/support/candidate-upgrade-admission.test.ts, test/e2e/support/protected-openshell-workspace.test.ts, tools/e2e/candidate-review-scope.mts
The protected projection uses a pinned SDK 0.1.10 dependency graph. Tests cover graph integrity, archive admission, package shadowing, and policy-path checks.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Suggested reviewers: rsliter, cv, cjagwani

Merge Risk: Minimal · up to e606f

This change adds OpenShell 0.1.10 trust, runtime mapping, and SDK projection support while the default pin stays at 0.0.116. The review found no concrete merge-blocking defect. Required CI and independent maintainer review should still complete before merging.

Security architecture risk: Minimal · up to e606f

OpenShell 0.1.10 becomes eligible for protected testing without changing the default version. The additional release sources and SDK packages are pinned, independent approval remains required, and the protected job verifies the prepared files before using them. The reviewed changes did not establish a weaker security or recovery guarantee.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • observed — The changed trust surface covers installer asset verification, MCP runtime identity, and the reviewed SDK staged into the protected controller. Version eligibility expands, but candidates do not gain discretion to select arbitrary origins or dependency records.

Trust Boundaries and Controls

  • observed — Matching the version-specific origin does not confer approval: candidate registry data must be covered by trusted base data or pass reviewed admission with an exact approved-byte match. Supervisor pin extraction still checks the normalized operational template against trusted hashes.
  • observed — The new SDK graph definition is a governed input for retained approval. Protected archive preparation requires the trusted controller as its target and verifies projected files and admission before and after archive validation.

Resilience and Maintainability Implications

  • inferred — The projection is not a single filesystem transaction. An interruption can leave a partially prepared checkout, but the inspected install path requires verification of the projected state, and recovery restores trusted revision bytes rather than treating the receipt as executable content.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(e2e): verify OpenShell 0.1.10 upgrade inputs" names the main change. The changeset adds reviewed OpenShell 0.1.10 trust data (release origins, supervisor images, runtime identities, and…
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 "fix(e2e): verify OpenShell 0.1.10 upgrade inputs" names the main change. The changeset adds reviewed OpenShell 0.1.10 trust data (release origins, supervisor images, runtime identities, and hashes), an SDK dependency graph projection, and tests for these. The title is specific and concise. Its prefix "fix(e2e)" is a minor mismatch, since much of the change is in scripts and runtime code, not only e2e tests. The objectives also state that the PR lets 0.1.10 candidates pass installer verification and protected setup, which the title covers.

Finishing Touches

Generate unit tests (beta)

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

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4c7069c and e606fe4.

Files selected for processing: 1

  • test/onboarding/onboard-openshell-version.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

@prekshivyas

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Codex Desktop / CLI 0.163.0-alpha.11.1 Persisted session metadata; repository and feature-branch activity matched.
Skills recorded nemoclaw-maintainer-audit-e2e-assertions, nemoclaw-maintainer-classify-ci-failure, nemoclaw-maintainer-e2e, nemoclaw-contributor-create-pr, nemoclaw-maintainer-security-code-review, nemoclaw-contributor-implement-issue Complete current skill text matched retained reads. Listed skills without full text were excluded.
Instruction files partial AGENTS.md; WRITING.md; PR and opening-report templates; user-provided GitHub workflow Complete retained reads or injected instructions. Additional messaging guidance appeared in truncated output and is excluded from complete-read counts.
Tool calls partial Wrappers: exec: 599; sleep: 15; wait: 3; request_user_input_async: 1. Separately, at least 786 nested command/poll results. Attempted wrapper calls include failures. Nested counts use distinct returned chunk identities; other nested calls are not fully established. Counts are not summed.
Session window recorded 2026-11-24T05:27:32.621Z to 2026-11-24T18:15:42.277Z; 12h 48m Whole current chat, including idle time and earlier 0.1.9 triage. Other-chat inherited work is excluded from these activity counts.
Compactions recorded 3 Persisted compaction events through cutoff.
Models recorded gpt-6.1-sol Retained turn contexts through cutoff.
Reasoning levels recorded medium Retained turn contexts through cutoff.

@github-code-quality

github-code-quality Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/plugin

main 63002cd codex/e2e-openshell0... e606fe4 +/-
96% 97% +1%
View coverage of the 10 most impacted files.
File main 63002cd codex/e2e-openshell0... e606fe4 +/-
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 codex/e2e-openshell0... e606fe4 +/-
84% 86% +2%
View coverage of the 10 most impacted files.
File main 63002cd codex/e2e-openshell0... e606fe4 +/-
src/lib/onboard.ts 62% 50% -12%
src/lib/actions...ess-recovery.ts 65% 83% +18%
src/lib/inferen...ollama/proxy.ts 41% 64% +23%
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 24, 2026 19:47 UTC

@prekshivyas

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@prekshivyas
prekshivyas marked this pull request as ready for review November 24, 2026 18:33

@rsliter rsliter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking on commit 4c7069c: usesOpenShellNativeProjection("0.1.10") now returns true, but test/onboarding/onboard-openshell-version.test.ts:84 still expects false. Exact-head CLI shard 9 fails on that assertion, and the required checks gate is red. Please update the existing expectation to match the intended native 0.1.10 contract, run the focused test, and let required CI complete on the resulting commit. I found no separate security regression in the version-bound release origins or protected SDK graph; this review does not qualify the 0.1.10 runtime or bypass its independent admission.

@rsliter rsliter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review approval for commit e606fe4 against base b796c61. The follow-up changes only the stale OpenShell 0.1.10 native-projection test expectation; CLI shard 9 now passes. The previously reviewed release-origin, provenance, and protected SDK-graph code is unchanged. I found no remaining code or security blocker. This approval is contingent on all remaining CI jobs, required automated reviews, and any applicable Advisor-recommended E2E evidence passing before merge. It does not qualify the OpenShell 0.1.10 runtime or waive the separate #12603 qualification requirements.

@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit e606fe4. 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

@prekshivyas
prekshivyas merged commit dbdb0ba into main Nov 24, 2026
128 checks passed
@prekshivyas
prekshivyas deleted the codex/e2e-openshell0110-trust branch November 24, 2026 20:22
@github-actions github-actions Bot added the v0.0.146 Release target label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v0.0.146 Release target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants