Repository navigation
fix(ci): authorize stable OpenShell supervisor binding - #11292
Conversation
Signed-off-by: Prekshi Vyas <[email protected]>
|
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe v0.0.116 trusted supervisor runtime template allowlist now includes the digest for the stable supervisor override binding. ChangesSupervisor runtime allowlist
Priority: ⚪ Not assessed Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to 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: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit 20727ee in the TypeScript / code-coverage/cliThe overall line coverage in commit 20727ee in the Show a line coverage summary of the most impacted files.
Updated |
Signed-off-by: Prekshi Vyas <[email protected]>
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
PR Review Advisor finished for commit |
cjagwani
left a comment
There was a problem hiding this comment.
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.
## 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>
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-hashwithout 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 onmain.Related issues
Relates to #11251.
Changes
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 installednemoclawdependencies. 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 --checkand 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