Skip to content

fix(e2e): add reviewed OpenShell 0.1.9 MCP provenance - #14642

Merged
sandl99 merged 1 commit into
mainfrom
codex/openshell-019-mcp-prerequisite
Nov 20, 2026
Merged

sandl99 merged 1 commit into
mainfrom
codex/openshell-019-mcp-prerequisite

Conversation

@prekshivyas

@prekshivyas prekshivyas commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

Trusted manual E2E can resolve the reviewed OpenShell 0.1.9 MCP runtime identities after this prerequisite lands. Current main rejects that release before live execution with “no reviewed MCP runtime provenance.”

Reason

PR #12603 targets OpenShell 0.1.9, but its candidate-only mapping cannot replace trusted preflight code. The default qualification run stopped at this boundary. The mapping needs independent acceptance on main before the upgrade can qualify its four MCP coverage rows.

Approved-candidate reachability

The base runtime remains 0.0.116. The existing approved-candidate branch can select a separately approved candidate's 0.1.9 sources when its registry is not covered by the base registry. It returns approved.selected.releaseVersion before the base-registry fallback. The trusted E2E workflow then looks up the selected MCP runtime. PR #12603 is the current upgrade consumer; this prerequisite preserves its admission checks.

The existing semantic CLI helper was exercised on this unchanged commit in the credential-free, network-denied sandbox. An offline synthetic approved 0.1.9 candidate selected 0.1.9, exited 0, and emitted the independent fixture's supervisor image and complete source/binary provenance. The same candidate with approved: false exited 1 with an approval error and emitted no artifact. This proves selector reachability; it does not establish live MCP qualification or independent technical approval. Counterevidence and original Advisor finding.

Related issues

Refs #12603.

Changes

  • Add the reviewed 0.1.9 source commit, supervisor image digest, and three binary digests to the existing MCP runtime catalogue.
  • Retain independent 0.1.7 evidence and add the verified 0.1.9 release fixture as a separate oracle.
  • Extend the existing installer and altered-binary tables to cover 0.1.9 for both MCP consumers and their supported binary-selection paths.

Verification

  • node node_modules/vitest/vitest.mjs run --project e2e-support test/e2e/support/candidate-openshell-version.test.ts --maxWorkers=1 — 69 passed in an isolated checkout using main’s SDK 0.0.116; no network or contributor-host credentials.
  • Oxfmt and git diff --check — passed.
  • Actual installed post-checkout, pre-commit, commit-msg, and pre-push hooks — passed through the credential-free isolation boundary. Publication validation and all three compiler checks passed. GitHub verified the published commit signature.
  • The diff contains no secrets, API keys, or credentials. No live MCP qualification is claimed by these deterministic tests.

Review notes

Sensitive path: tools/e2e/candidate-openshell-version.mts in NVIDIA/NemoClaw, commit 58fdbdfac9098156d6ddb4bc3b060d02c436687e. Self-review checked the trusted preflight callers, upstream fixture identities, retained release coverage, and rejection paths. No independent pre-publication review of this commit exists; the draft awaits independent acceptance. The fixture records its verification limits, including unverified OCI signatures and pending runtime qualification.

This prerequisite does not grant a candidate installer or SDK approval. The upgrade’s existing admission and qualification requirements still apply. No merge has been performed or authorized.


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

Summary by CodeRabbit

  • Tests
    • Added end-to-end coverage for OpenShell 0.1.9 runtime evidence, including provenance recording and rejection of altered binaries.
    • Recorded release artifact identities and verification status for the 0.1.9 runtime.

@copy-pr-bot

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

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

OpenShell 0.1.9 runtime provenance is added to the reviewed version mapping. End-to-end tests now cover its evidence fixture, provenance recording, and altered-binary rejection.

Changes: OpenShell runtime provenance

Layer / File(s) Summary
Release evidence and runtime mapping
test/e2e/fixtures/openshell-runtime-provenance-v0.1.9.json, tools/e2e/candidate-openshell-version.mts
Adds a 0.1.9 evidence fixture with release metadata, artifact identities, and verification statuses. The reviewed runtime mapping includes the release source SHA and artifact digests.
Provenance and binary test coverage
test/e2e/support/candidate-openshell-version.test.ts
Builds expected runtime data from release evidence. Extends evidence, provenance-recording, and altered-binary rejection tests to cover 0.1.9.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: brandonpelfrey, apurvvkumaria

Merge Risk: Minimal · up to 58fdb

This adds OpenShell 0.1.9 runtime provenance to the reviewed E2E mapping and extends its tests. It does not authorize an installer release or change upgrade admission. No actionable merge-blocking risk was found.

Security architecture risk: Minimal · up to 58fdb

The change adds fixed identities for one release while preserving independent upgrade approval, rejection of unknown versions, and installed-binary checks. No introduced security or failure-containment regression was established. This does not establish that the release has passed live qualification.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The direct exposure expansion is allowing an otherwise accepted 0.1.9 candidate to proceed into the existing MCP qualification jobs instead of stopping for missing runtime identities. The lookup does not itself grant installer admission or take candidate-supplied image URLs or binary hashes.

Trust Boundaries and Controls

  • observed — Candidate release data outside trusted coverage still passes through independent maintainer approval and installer-source validation. Admission checks immutable PR identities and rechecks the approval decision around source acquisition. The new runtime entry does not modify these controls.

Resilience and Maintainability Implications

  • observed — Both existing consumers install first, hash all three selected binaries, and fail on a mismatch before writing provenance or starting the subsequent live-test step. This ordering is reused for 0.1.9; it is not a new rollback mechanism or a guarantee of atomic artifact writes after interruption.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(e2e): add reviewed OpenShell 0.1.9 MCP provenance" matches the main change. The PR adds reviewed OpenShell 0.1.9 runtime provenance (source SHA, supervisor digest, CLI, gateway, and sta…
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): add reviewed OpenShell 0.1.9 MCP provenance" matches the main change. The PR adds reviewed OpenShell 0.1.9 runtime provenance (source SHA, supervisor digest, CLI, gateway, and standalone sandbox digests) to the MCP runtime catalogue and the e2e test fixtures, so trusted manual E2E can resolve 0.1.9 identities. The title is specific and concise, and it names the scope (e2e) and the version. It does not mention the 0.1.7 retention or the altered-binary test extensions, but those are secondary details.

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 6f36fef and 58fdbdf.

Files selected for processing: 3

  • test/e2e/fixtures/openshell-runtime-provenance-v0.1.9.json
  • test/e2e/support/candidate-openshell-version.test.ts
  • tools/e2e/candidate-openshell-version.mts

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 / Codex CLI 0.163.0-alpha.11.1 Authoring-session metadata; desktop source is vscode.
Skills partial 8 complete current-byte entries: nemoclaw-contributor-create-pr, nemoclaw-contributor-implement-issue, nemoclaw-contributor-onboard, nemoclaw-maintainer-audit-e2e-assertions, nemoclaw-maintainer-classify-ci-failure, nemoclaw-maintainer-e2e, nemoclaw-maintainer-find-review-pr, nemoclaw-maintainer-security-code-review Lower bound from complete skill text in the authoring record. Earlier instruction versions and fragmented or truncated reads do not all match current bytes.
Instruction files partial 16 complete current-byte entries: .agents/references/development.md, .agents/references/e2e-authoring.md, .agents/skills/_shared/documentation-writing-review.md, .agents/skills/_shared/git-github-hard-stop.md, .agents/skills/_shared/implementation-discovery.md, .agents/skills/_shared/pr-follow-up.md, .agents/skills/_shared/root-cause-and-state-checks.md, .agents/skills/_shared/security-rubric.md, .agents/skills/_shared/task-continuation.md, .agents/skills/nemoclaw-maintainer-day/RISKY-AREAS.md, .github/PULL_REQUEST_TEMPLATE.md, .github/SESSION_REPORT_TEMPLATE.md, AGENTS.md, CONTRIBUTING.md, WRITING.md, docs/CONTRIBUTING.md; user global GitHub workflow instructions (injected) Exact complete-text matches after decoding tool outputs; earlier versions and partial reads remain outside this lower bound.
Tool calls partial 1484 exec wrapper calls; 79 direct sleep calls Attempted calls, including failures, at the recorded Codex tool layer. Nested invocations are not fully observable in wrapper output and are not added to these counts.
Session window recorded 2026-11-18T18:40:16.936Z to 2026-11-19T05:36:25.971Z; 10h 56m 9.035s Whole chat through cutoff, including earlier upgrade work and idle time; these are not prerequisite-only totals. The draft extracts earlier mapping and release evidence from this chat.
Compactions recorded 8 Explicit compaction events in the current authoring record through cutoff.
Models recorded gpt-6.1-sol 39 recorded turn contexts through cutoff; not inferred from current defaults.
Reasoning levels recorded medium Recorded effort history through cutoff; not inferred from current defaults.

@github-code-quality

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

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/plugin

main 63002cd codex/openshell-019-... 58fdbdf +/-
96% 97% +1%
View coverage of the 10 most impacted files.
File main 63002cd codex/openshell-019-... 58fdbdf +/-
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/openshell-019-... 58fdbdf +/-
84% 86% +2%
View coverage of the 10 most impacted files.
File main 63002cd codex/openshell-019-... 58fdbdf +/-
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 19, 2026 06:26 UTC

@prekshivyas

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 19, 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

Copy link
Copy Markdown
Collaborator Author

Disposition for F-customer-value-behavior-07de6fa3cebf713e029b on 58fdbdfac9098156d6ddb4bc3b060d02c436687e: false positive; source unchanged.

The finding assumes the base registry is the only way to select an OpenShell release. The existing approved-candidate branch handles a candidate registry that is not covered by the base registry. It calls reviewedCandidateOpenShellTrust and returns approved.selected.releaseVersion before the fallback base verifier. This PR preserves those admission checks.

The current consumer is upgrade PR #12603. Its trusted qualification run stopped at the missing MCP runtime mapping. Keeping the base runtime pin unchanged is intentional: this mapping must become trusted before that upgrade can run its four MCP coverage rows. Combining the runtime upgrade into this prerequisite would retain that dependency cycle.

I reproduced the selection boundary on the unchanged commit with the existing runCandidateOpenShellCli semantic helper:

  • runCandidateOpenShellCli({ upgradeVersion: "0.1.9" }) selected 0.1.9, exited 0, and emitted the reviewed supervisor image and complete source/binary provenance from the independent v0.1.9 fixture.
  • runCandidateOpenShellCli({ upgradeVersion: "0.1.9", approved: false }) exited 1, reported the missing approval, and produced no output artifact.

This was an offline proof with the helper's synthetic candidate and approval records. It ran in the credential-free, network-denied sandbox using main's SDK 0.0.116. It did not change source, admission, checks, or limits. It is not live MCP qualification or independent technical approval.

All nine specialist outputs, summaries, and E2E recommendations were collected. The other eight specialists were clear. The original Advisor failure remains recorded; this comment does not waive its blocker gate. The new counterevidence will be supplied to one bounded Advisor reevaluation.

@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit 58fdbdf. 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 marked this pull request as ready for review November 19, 2026 07:07
@wscurran wscurran added area: e2e End-to-end tests, nightly failures, or validation infrastructure area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance labels Nov 19, 2026

@sandl99 sandl99 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.

Reviewed commit 58fdbdfac9098156d6ddb4bc3b060d02c436687e; no actionable code findings.

The 69 focused support tests passed. Independently verified the upstream source commit, three release archive and binary hashes, and supervisor image digest. Existing candidate approval checks and unknown-release rejection remain intact.

E2E evidence: PASS for target main. Trusted manual run 44694109652, attempt 1 completed successfully, including Relevant E2E and all required Docker executions:

Candidate: 58fdbdfac9098156d6ddb4bc3b060d02c436687e
Base: 6f36feffb7a0f448194eafef3042e7ad47faa0de
Trusted workflow: 74ccd7a55b3ec8c1d5ecd2d7e8218afbf7e5585f

Verified the dispatch and result artifact digests and their run/attempt identities: dispatch artifact 14610371207 (e2e-dispatch-44694109652-1), result artifact 14610797270 (review-queue-e2e-result-44694109652-1). The receipts match the current candidate, base, workflow, and required selectors cloud-onboard,full-e2e,security-posture. Relevant cleanup steps passed. Hardware and staging opt-ins were disabled.

Required PR checks pass. Advisor run 44472249532, attempt 2, remains successful with all nine specialists clear. Additional MCP recommendations remain unaccepted and do not expand this approval gate. This run qualifies the prerequisite PR; it does not establish live OpenShell 0.1.9 MCP qualification for upgrade PR #12603.

@sandl99
sandl99 merged commit da99bc8 into main Nov 20, 2026
114 checks passed
@sandl99
sandl99 deleted the codex/openshell-019-mcp-prerequisite branch November 20, 2026 07:42
@github-actions github-actions Bot added the v0.0.146 Release target label Nov 20, 2026
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 chore Build, CI, dependency, or tooling maintenance v0.0.146 Release target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants