Skip to content

fix(ci): authorize stable OpenShell supervisor binding - #11292

Merged
prekshivyas merged 2 commits into
mainfrom
codex/openshell-0.0.116-supervisor-trust
Sep 9, 2026
Merged

prekshivyas merged 2 commits into
mainfrom
codex/openshell-0.0.116-supervisor-trust

Conversation

@prekshivyas

@prekshivyas prekshivyas commented Sep 9, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

The installer trust boundary authorizes the exact reviewed OpenShell 0.0.116 supervisor template used by #11251. The activation PR can therefore pass check-hash without authorizing its own operational template.

Reason

NemoClaw intentionally requires supervisor runtime-template hashes to land through a separate base-trust change. The current #11251 template hash, 56c0cdf06734b45b235b7426de260245b03a6806a3d09a328d9bbd9161733d3e, is not yet present on main.

Related issues

Relates to #11251.

Changes

  • Add the exact fix(openshell): complete 0.0.116 cutover #11251 OpenShell 0.0.116 supervisor template hash to the existing 0.0.116 allowlist.
  • Leave the active runtime template, release pins, installer behavior, and all prior trusted hashes unchanged.

Verification

  • npx vitest run --project integration test/install/installer-supervisor-manifest-trust.test.ts test/install/installer-hash-check.test.ts — 101 tests passed.
  • NEMOCLAW_INSTALLER_HASH_REPO_ROOT=<11251 checkout> scripts/check-installer-hash.sh — all OpenShell 0.0.116 release assets and the exact candidate supervisor template passed.
  • npm run validate:pr — passed after building the existing plugin package artifacts required by the CLI typecheck.
  • npm run check — executed; the broad local coverage gate did not pass because unrelated unchanged tests timed out or failed under local resource pressure, and five plugin suites initially lacked the separately installed nemoclaw dependencies. After installing those dependencies, 134/136 focused plugin tests passed; the two remaining migration-state restore failures are outside this one-file trust diff. CI remains authoritative for the broad gate.
  • git diff --check and secret review — passed; the diff contains one public SHA-256 value and no credentials.

Review notes

This is a sensitive scripts/checks/** trust-boundary change and is intentionally opened as a draft. No independent pre-publication approval was available; maintainer review is requested before merge. The change authorizes only the exact already-reviewed #11251 template and cannot alter runtime behavior by itself.


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

Summary by CodeRabbit

  • Chores
    • Updated release metadata to support verification of the stable runtime configuration.
    • Improved consistency and trust checks for the OpenShell v0.0.116 release record.

@copy-pr-bot

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

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 25d2a3ba-b6e6-4895-869a-0c2aceed82b6

📥 Commits

Reviewing files that changed from the base of the PR and between 729aecc and afaea12.

📒 Files selected for processing (1)
  • scripts/checks/extract-installer-pins.mts

Included review availability: Your plan provides up to 12 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The v0.0.116 trusted supervisor runtime template allowlist now includes the digest for the stable supervisor override binding.

Changes

Supervisor runtime allowlist

Layer / File(s) Summary
Add supervisor override digest
scripts/checks/extract-installer-pins.mts
The v0.0.116 allowlist now includes the stable supervisor override binding digest.

Priority: ⚪ Not assessed

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to afaea

This change authorizes the stable OpenShell supervisor template digest for v0.0.116 without changing installer behavior or release pins. No current merge-blocking risk is identified.

Suggested reviewers: apurvvkumaria, cv, rsliter

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.
Title check ✅ Passed The title clearly and concisely describes the main change: authorizing the stable OpenShell supervisor binding for CI.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/openshell-0.0.116-supervisor-trust

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

@prekshivyas
prekshivyas requested a review from cjagwani September 9, 2026 12:30
@prekshivyas

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Sep 9, 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.

@github-code-quality

github-code-quality Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall line coverage in commit 20727ee in the codex/openshell-0.0.... branch remains at 96%, unchanged from commit 729aecc in the main branch.

TypeScript / code-coverage/cli

The overall line coverage in commit 20727ee in the codex/openshell-0.0.... branch remains at 83%, unchanged from commit 729aecc in the main branch.

Show a line coverage summary of the most impacted files.
File main 729aecc codex/openshell-0.0.... 20727ee +/-
src/lib/actions...-diagnostics.ts 81% 67% -14%
src/lib/state/o...config-merge.ts 92% 85% -7%
src/lib/actions...ard-recovery.ts 91% 87% -4%
src/lib/inferen...anaged-state.ts 84% 81% -3%
src/lib/actions...ess-recovery.ts 84% 82% -2%
src/lib/actions...eway-restart.ts 94% 92% -2%
src/lib/actions...ard-recovery.ts 95% 96% +1%
src/lib/adapter...ward-service.ts 76% 78% +2%
src/lib/actions...e-validation.ts 84% 88% +4%
src/lib/actions...ridge-output.ts 88% 95% +7%

Updated September 09, 2026 12:51 UTC

@prekshivyas
prekshivyas requested review from cjagwani and removed request for cjagwani September 9, 2026 12:35
@prekshivyas

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Sep 9, 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 September 9, 2026 12:43
@prekshivyas
prekshivyas requested review from cjagwani and removed request for cjagwani September 9, 2026 12:43
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

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

All previous runs

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

The exact #11251 supervisor runtime template is now authorized without changing runtime behavior. I independently verified the base-trusted checker against #11251 at ae305b3, and all OpenShell 0.0.116 release assets plus the supervisor template passed. The two focused trust suites pass 101/101, the nine security categories are clear, all required repository gates pass, DCO is present, and both commits are GitHub Verified.

@prekshivyas
prekshivyas merged commit f37694a into main Sep 9, 2026
77 of 81 checks passed
@prekshivyas
prekshivyas deleted the codex/openshell-0.0.116-supervisor-trust branch September 9, 2026 13:06
@wscurran wscurran added the chore Build, CI, dependency, or tooling maintenance label Sep 9, 2026
prekshivyas added a commit that referenced this pull request Sep 11, 2026
## Outcome

NemoClaw now performs a focused, full cutover from OpenShell `0.0.106`
to exactly `0.0.116`. Active selectors, installers, runtime images, the
TypeScript SDK, credential-boundary evidence, and directly affected
tests agree on `0.0.116`; static credential consumers accept its stable
`s<64 lowercase hex>` handles. The obsolete NemoClaw OpenAI
endpointless-profile workaround is removed because ai-openshell/openshell#2862
is an ancestor of the exact `0.0.116` tag, while ordinary OpenAI
provider support remains intact.

## Reason

The earlier dependency upgrade pretrusted OpenShell `0.0.116` artifacts
but did not activate them across NemoClaw. OpenShell `0.0.116`
introduces stable credential handles and a main-process spec and already
includes the upstream static-credential classification repair from
ai-openshell/openshell#2862. Retaining `0.0.106` selectors or NemoClaw's
pre-#2862 OpenAI profile shim would leave the cutover internally
inconsistent.

### Related issues

Fixes #11229

## Changes

- Pin the supported OpenShell window, installers, workflows, managed
runtimes, and SDK dependency to exactly `0.0.116`, using the reviewed
release hashes and manifests.
- Replace the `0.0.106` child-visible credential evidence with the
`0.0.116` manifest and bind it to the current NemoClaw credential
consumers.
- Accept legacy revision handles where backward parsing remains
required, while requiring stable `s[a-f0-9]{64}` handles in
exact-`0.0.116` static-credential runtime proofs.
- Preserve a stable handle across same-authorization token refreshes and
require a new handle after key removal, provider detach/re-add, or
another authorization-epoch change. The credential-generation-window and
MCP provider readiness tests protect this behavior.
- Remove the obsolete automatic OpenAI compatibility-profile import,
validation, checked-in profile, and profile-specific fixtures now that
`0.0.116` contains ai-openshell/openshell#2862. Keep the ordinary OpenAI
provider type and the separate endpointless `nemoclaw-mcp-v1` profile.
- Fail closed on any recovery or omitted-blueprint path that would
select a release other than exactly `0.0.116`; legacy `0.0.106`
supervisor selection is removed.
- Honor the `0.0.116` main-process spec and perform managed Docker
replacement while the OpenShell sandbox is deliberately stopped, then
restart through OpenShell authority only after protected bootstrap
completion and durable shared-state commit.
- Require a post-update wire-level authorization proof before
registering an MCP adapter when OpenShell retains the same stable
credential handle.
- Compare the external gateway's complete release token exactly, keep
child supervision below the enclosing sandbox timeout, and preserve
credential redaction in messaging diagnostics.
- Rebuild the reviewed MCP tool-discovery bundles and update directly
affected documentation and test fixtures.

## Verification

- Post-review OpenAI-removal and merged-main focused matrix — 360 tests
across 20 files passed.
- `npm run typecheck:cli` — passed.
- Live E2E assertion census regenerated from the merged tree; `npm run
e2e:assertions:check` passed with 1,795 direct expect calls across 86
files.
- Managed-bootstrap and provider-profile suite — 314 tests across 18
files passed.
- Earlier full `npm run validate:pr` — passed, including the strict
source build, plugin/JS/CLI typechecks, formatting, lint, schemas,
repository checks, E2E semantic phases, source-shape budget, growth
guardrails, and commit validation. Final exact-head validation will run
after the required Pi receipt refresh.
- Focused OpenShell/MCP/stable-credential Vitest suite — 206 tests
passed.
- Review-focused activation suite — 97 tests across 7 files passed.
- Base-trust transition and installer suite — 111 tests across 4 files
passed.
- `npm run docs` — passed with 0 errors.
- `npm --prefix tools/mcp-tool-discovery-runtime run
bundle:reviewed:check` — passed.
- `npm --prefix tools/mcp-tool-discovery-runtime test` — passed.
- `npm --prefix tools/mcp-tool-discovery-runtime run typecheck` —
passed.
- `npx vitest run --project installer-integration
test/installer-integration/install-hermes-portable-active.test.ts
--testTimeout=120000` — 3 tests passed against the committed manifest.
- Base-controlled SDK and installer authorization landed in #11253. The
final exact supervisor template authority landed separately in #11292
after independent maintainer approval and exact candidate verification.
- The diff contains no secrets, API keys, or raw credentials.

## Review notes

This PR changes contributor-sensitive workflow, installer,
agent-runtime, sandbox, credential, messaging, and E2E enforcement
paths. Review covered the full cutover diff, current-main conflict
resolution, base-trust separation, and the focused checks listed above.

Removing the obsolete checked-in OpenAI profile changes a Pi
managed-image input. Exact-head CI must publish the AMD64 and ARM64 Pi
candidates from one cohort; the checked-in qualification receipts will
then be refreshed from those authoritative contracts before merge. No
receipt is synthesized locally.

---

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

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added support for stable credential handles that persist across
refreshes and provider updates.
* Improved sandbox lifecycle recovery, restart, rollback, and
process-command handling.
  * Managed images now default to the non-root `sandbox` user.

* **Security & Reliability**
* OpenShell installations now require the exact stable `0.0.116` release
with verified artifacts.
  * Development builds and channels are rejected.
* Credential authorization is revalidated before preserving unchanged
handles.

* **Documentation**
* Updated setup, troubleshooting, security, and lifecycle guidance for
OpenShell `0.0.116`.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Prekshi Vyas <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: security Security controls, permissions, secrets, or hardening labels Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants