Skip to content

feat(launcher): support managed npx startup and upgrade migration - #220

Merged
abruption merged 4 commits into
mainfrom
feat/219-managed-npx-launcher
Nov 24, 2026
Merged

abruption merged 4 commits into
mainfrom
feat/219-managed-npx-launcher

Conversation

@abruption

@abruption abruption commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Changes

  • Add explicit managed npx for Codex and Claude Code on macOS and Linux. Reuse the verified immutable Aptly snapshot and bundled npm from a trusted Node.js 24+ installation. Start the exact Aptly version offline in a private per-process npm directory. Existing direct and stable launchers retain their behavior.
  • Keep credential references, policies, ledgers and owned statistics Hooks in the existing transactional migration. The local installation is the trust anchor. Startup has no npm registry dependency, and the source still includes a local immutable package snapshot.
  • On macOS and Linux, plain aptly update runs the freshly installed CLI to migrate each existing unchanged Aptly-owned Codex and Claude Code launcher to managed npx. It reports each host separately, skips unowned, custom and absent registrations, and retains the package update when a migration fails. Windows plain update still updates the package only. The explicit --client codex|claude --launcher npx pair still selects a single host.
  • Align four-language configuration guides. Host restart and native Codex Hook trust review remain explicit steps.

Verification

  • Mac mini and KR/US Ubuntu arm64: all six managed host combinations returned real stdio MCP fixture responses after removal of the original test Node and global Aptly paths. On the Mac, the replacement was Node 26.13.1. On Linux, a relocated Node 24.22.1 distribution was used with permissions normalized on the isolated copy. All six confirmed the private npm workspace and a statistics observer event. macOS Claude Code also reported the managed MCP connected.
  • Real loopback npm testing started with released 0.1.21, an owned Codex stable registration and an owned Claude direct registration. The old CLI's first plain update installed the candidate without changing either registration. The new CLI's second plain update migrated both with no setup command. Repeated updates left the registrations byte-identical, custom launchers were preserved, and missing host homes were skipped without writes.
  • On Windows 10, pinned public npx under native Codex returned an MCP tool result. Native Claude Code connected, and the same registration returned a fixture result through separate stdio. Windows is outside the managed launcher's support scope in this PR.
  • 890 tests passed, 18 skipped in the default workspace suite. The managed shutdown test passed separately from a filesystem path with supported ownership. Type, documentation, release and installed-package checks passed. The physical candidate archive SHA-256 was 49011401730349a5a1c2f86918f0c093147295bb6f215111392f2c074ac7f32a. The final usage wording was refined afterwards.
  • Claude Opus 5.5 and Gemini 4 Neon Medium independently reviewed the implementation, launcher follow-up and automatic update delta. Gemini 4 Hydrogen Medium reviewed the multilingual wording. The product verification used the fixture provider, without paid Decisions requests or real credentials.

Ubuntu CI follow-up

The runner-provided Node/npm tree is under the shared writable tool cache. Managed launcher qualification rejects that ancestry. The four npx tests now use private copies of the runner's real Node and npm, and the runtime test verifies that writable npm ancestry is rejected. The production trust policy is unchanged. Issue #219 now describes the intentional automatic migration of existing owned registrations on plain update.

Closed #219

@abruption
abruption marked this pull request as ready for review November 24, 2026 01:06
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T01:17:54.644166Z b294e2b New commits
🔒 Security Review ✅ Completed 2026-11-24T01:24:23.767706Z b294e2b New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 99d453cd55

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/stable-runtime.ts Resolved
Comment thread src/update.ts Resolved
@abruption
abruption merged commit d0fdca6 into main Nov 24, 2026
19 checks passed
@abruption
abruption deleted the feat/219-managed-npx-launcher branch November 24, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(launcher): support managed npx startup and automatic update migration

1 participant