Skip to content

fix(npm): give missing native executables exact recovery advice - #8243

Merged
EffortlessSteven merged 1 commit into
mainfrom
fix/npm-missing-native-recovery
Oct 17, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
fix/npm-missing-native-recovery

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

When an installed exact-version native package resolves but lacks its executable, the npm launcher now offers matching-native-tarball restoration or exact-version launcher reinstall advice in the owning npm environment with optional dependencies enabled. Typed code/cause, package/version/path, stderr-only rendering and exit 1 remain intact.

The production change is one diagnostic string in resolveNativeExecutable, accompanied by three mandatory Node controls, README/SPEC-0212 and a changelog fragment. Package pins, resolution, platform admission and spawn contracts are unchanged. Governing bounded finding: #4491 comment6209115205; broader #4491 stays open. No npm package, release or deployment publication.

Proof retained: independent source and packed-consumer review5544272790, local qualification continuation5544683593, and Node20/24 run38866114040 (30 tests, zero skips, 17 mandatory controls each). Packed consumer uses synthetic native metadata/Node executable bytes; it does not establish native Windows/RIPR functionality or registry qualification. Rollback this diagnostic, controls and accompanying docs/changelog together.

Owner / governing claim: current Codex delivery session takes over this stale bounded repair under the user's checked-takeover instruction. Current PR/issue/review/run reads show no later owner, hold, competing candidate or active qualification; last substantive activity was 2026-10-16 08:02 UTC.
Candidate: head8e3c1b5e3c91c700b81f768720303421d301de29; reviewed tree9c73b0ac437fec02c8c6ffc108124f548fffcc4b. Current fetched mergef9b712a777436420e4e407d165acb9724bc65748 has parentsa1ea790e923ae6036efdd9457ffc16ea2ad93348 + candidate, tree5d9edb2fc3bf62d4f45bcf7bb344aeebb32020b5.
Review: unchanged six-file patch retains independent source/oracle review applicability; one inline thread confirmed resolved, zero unresolved. Current readiness inspection5555208219 finds no source/oracle repair needed; merge disposition remains REVIEW_INCOMPLETE pending required proof.
Validation: successful Node evidence retained. Prior local qualification is recorded by the linked review; underlying local artifacts are unavailable in this new environment and are not claimed as newly verified. Advisory38866114042 wrapper success is incomplete sensor evidence (cargo-test101, rejected/unsupported requests and absent proof receipts); actual failure cause NOT_ESTABLISHED because native artifact transfer returns HTTP403, including with approved network access. Raw ZIP bytes were not obtained; #8245 does not establish this run's historical cause. No advisory rerun.
Dependency: #8245 fixture-preparation repair is landed in the observed merge basis; current main does not change the npm seam.
Validation transition: normal Draft-to-Ready succeeded at2026-10-17 00:57:39UTC. Required Routed Rust Small38988749454, attempt1, pull_request event, exact candidate head, is IN_PROGRESS; router117266156654 passed, docs detector117266156467 started checkout. This is request/launch evidence, not an executed Rust checkout or test pass.
Next / owner: delivery owner resumes when run38988749454 terminates, inspects actual checkout/parents/tree and executed denominators, refreshes current head/reviews/threads/checks/protections, posts earned REVIEW_READY and uses normal squash merge with expected head8e3c1b5e3c91c700b81f768720303421d301de29 if permitted. Preserve the running qualification; do not re-toggle Ready or duplicate CI. Current state WAITING_REQUIRED_CHECKS / REVIEW_INCOMPLETE; no auto-merge or merge performed.
Remaining access boundary: advisory cargo-test cause needs sensors/cargo-test stdout/stderr/status from existing artifact12031927988 through a capable authorized reader. Wrapper101 alone supplies no source-defect classification. Classic protection read remains403; active main ruleset was read and requires PR/thread resolution with zero approval quota and no bypass.
Resource closeout: this session's detached inspection worktree was clean and removed. No local build/test processes were started; decoded existing Node/advisory logs and review snapshots are retained for continuation. No candidate source changed.

@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available. Your 52 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 91d5ada0-7090-4954-9729-a4116e61849d
📥 Commits

Reviewing files that changed from the base of the PR and between 1a572a6 and 8e3c1b5.

📒 Files selected for processing: 6
  • changelog.d/4491-npm-missing-native-recovery.md
  • docs/specs/RIPR-SPEC-0212-npm-native-launcher-boundary.md
  • packaging/npm/launcher/README.md
  • packaging/npm/launcher/lib/launcher.cjs
  • packaging/npm/launcher/test/launcher.test.cjs
  • packaging/npm/launcher/test/run-tests.test.cjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Independent candidate review

Disposition: REVIEW_INCOMPLETE. No actionable source or oracle finding emitted.

  • reviewed_head_sha: 8e3c1b5e3c91c700b81f768720303421d301de29
  • reviewed_tree: 9c73b0ac437fec02c8c6ffc108124f548fffcc4b
  • integration_basis: e00018da7d224bd13b4c4e3466d1e626ca0b15f6
  • timestamp: 2026-10-16 UTC
  • candidate: fix/npm-missing-native-recovery, assigned swarm claim #4491
  • claim_boundary: Add recovery advice only when an admitted exact-version native package lacks its executable. Preserve typed reason/cause, native package/version/path, blank stdout, exit 1, optional-dependency and owning-environment advice. Unsupported targets retain failure without unsupported reinstall advice.

Inspected the complete six-file diff; resolveNativeExecutable, selectPlatform, manifest/executable validation, launch, runNative, public bin/ripr.cjs, npm manifest/files/test scripts, README, changelog, SPEC-0212, existing traceability, non-Rust allowance, Rust package/test-runner validators, and npm workflow. The only production delta is one diagnostic string in the existing lstat failure branch. The public bin renders the same error through its established stderr/exit projection. No Rust, launcher routing, dependency, lifecycle, signal, workflow, credential, setting or publication changes occur in the candidate.

Live connector reads observed the open canonical swarm #4491 and all five comments, including the native Windows residual at comment 6209115205 and the current single writer at comment 6210085170. All-state PR search for 4491 returned ten existing related or incidental PRs and no same-claim candidate. Parent separately reports narrower all-state searches and a fresh source-premise check; those are reported context, not this review's independently executed evidence. Native gh read routes returned Forbidden; connector reads succeeded.

Independently observed proof

Executed timeout 60s node /workspace/npm-recovery-review-evidence/packed-consumer.cjs in a separately owned detached exact-head worktree. Exit 0. Node v24.19.0, npm 11.9.0, Linux x64/glibc. One synchronous child at a time; public invocations have 5 second deadlines and packing/install 20 second deadlines. No Cargo or native rebuild ran.

The experiment recorded 25 bounded subprocess invocations, which are not a claim of 25 tests or 25 native qualifications:

  • Candidate: two npm preparation invocations, 16 public launcher invocations, and two direct-Node comparison invocations.
  • Wrong-repair control: one Git diff capture, two npm preparation invocations, and two public launcher invocations.

Candidate packing used actual npm pack --json --ignore-scripts; inventory was exactly six declared runtime/notice files. Its actual tarball was installed offline with --ignore-scripts --omit=optional --no-audit --no-fund --no-package-lock. npm created a POSIX .bin/ripr symlink. Installed package/library/bin bytes matched the reviewed source. Native manifests were manually supplied fixtures, not installed or qualified native npm payload tarballs.

The 16 candidate public invocations comprised:

  • Five missing-executable probes through the installed packed public bin, one for every registered target. Foreign target identity was explicitly simulated through a preload.
  • Six host probes before/after moving the npm installation through space/Unicode paths: actual npm shim missing-file failure, wrong-version rejection before missing-file handling, and restoration using synthetic Node executable bytes. Restored argv, cwd, environment, stdout, stderr and exit 29 matched direct Node baselines.
  • Five explicitly simulated unsupported probes: musl, unknown Linux libc, Windows arm64, AIX ppc64, and Linux riscv64/glibc. Each exited 1 with blank stdout and no restore/reinstall advice.

Missing cases retained exact native identity, version, executable and correct recovery advice. A foreign cwd version 99.99.99 and an executable PATH decoy were ignored; the decoy's side-effect marker never appeared. Mismatch cases retained their own reason without misleading restoration advice.

Independent oracle challenge: in the review-owned tree only, deliberately changed the restoration path to hardcoded bin/ripr, then packed and installed that wrong repair. The Linux missing-file case still satisfied the recovery oracle; the simulated Windows case was rejected because restoration advice lost .exe, despite the preceding native identity retaining bin/ripr.exe. This demonstrates discrimination beyond merely finding the right filename somewhere in stderr. Candidate source was untouched; experimental source bytes were restored, and the review tree was clean at the original head afterward.

Observed git diff --check passed on the exact candidate diff. The author's serial 30/30 and guarded 17-control results are reported evidence; this reviewer did not rerun the suite or claim those as independent observations.

Findings and remaining proof

  • blocking_findings: none observed in this bounded source/public-consumer review.
  • non_blocking_suggestions: none.
  • refuted_or_stale_findings: the old no-action diagnostic is removed at this head; its current renderer includes matching-native-tarball and exact-version launcher reinstall advice.
  • proof_and_ci_observed: exact-head source/diff, actual local npm pack/offline install/shim observations, 16 candidate public invocations, two synthetic direct baselines, discriminating wrong-repair rejection, clean diff and worktree.
  • proof_or_review_missing: exact-head hosted checks/artifacts, Rust-owned policy/precommit proof, Node 20 execution, native Windows and broader native installed-product qualification. No REVIEW_READY or merge eligibility is established.
  • affected_currentness_dimensions: production implementation, test stimulus/oracle, public claim, generated relationships and candidate head inspected; hosted/integration execution remains unavailable in this pass. Unrelated main movement alone does not invalidate the unchanged reviewed bytes.
  • residual_assumptions_and_non_claims: Node bytes prove transport only. Foreign platforms/libc are simulated. The local launcher tarball/offline install does not prove a local registry journey, native payload identity, RIPR 0.11 functionality, native Windows behavior, package publication, source/build/install equivalence, process teardown across supported hosts, or completion of parent #4491.

Parent reports Draft publication at #8243 with readback head exactly 8e3c1b5e3c91c700b81f768720303421d301de29, base 1a572a6e9d1b931b472dc9cc9af40f8e30260571, and the same six-file 137-addition/1-deletion scope. This review does not independently claim hosted proof from that publication. Parent owns attaching this inspection as a COMMENT and retaining the policy/hosted gaps. Resume published-head review when required exact-head checks/artifacts and policy evidence are available; keep Draft until then. Publication alone does not turn this candidate review into REVIEW_READY.

Retained evidence and resources

Retain packed-consumer.cjs, packed-consumer-results.json, pack-identity.json, wrong-repair.diff, both small npm tarballs and artifact-hashes.json for the parent/maintainer proof consumer. The results include every actual child status, stdout, stderr and invocation. Source admission observed 31,659,716,608 bytes free before experiment, with a 10 GiB reserve and less than 1 GiB peak additional allocation. The detached tree used approximately 150 MiB and fixtures remained bounded.

The experiment reaped all synchronous children and removed its installed fixtures, copied Node bytes, foreign cwd, PATH decoy and preload. Task-only npm cache/temp are disposable after the recorded pass. The detached review source is released after exact-head/clean-tree verification; the candidate/common Git store remain owned by their existing writer. There are no remaining running consumers of this review tree.

Published-head verification by delivery owner: connector readback identifies the same exact head, Draft=true and the same six-file diff. Fetched GitHub merge subject 03f2b51292733e427e7cababc618d6509890944d has ordered parents 1a572a6e9d1b931b472dc9cc9af40f8e30260571 + reviewed head and tree 4217ab0a20af1175d79b4db3984a8f548d536c03. No candidate-owned path differs from the reviewed head. This establishes remote source composition only, not an executed Actions checkout. The CodeRabbit quota notice is missing provider review, not a clean review. Automatic npm Launcher run 38866114040 and CI run 38866114021 were observed in progress; no required qualification was manually requested. Final disposition remains REVIEW_INCOMPLETE pending required proof, with no blocking source/oracle finding in the completed independent pass.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request adds matching-tarball restoration or exact-version reinstall advice when an installed native package lacks its executable, updating the launcher's error messages, documentation, and changelog. It also introduces comprehensive tests to verify this recovery behavior across different platforms and directory moves. Feedback on the tests suggests using Object.defineProperty to mock process.report more robustly, preventing potential TypeErrors in environments where process.report is undefined or read-only.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Qualification continuation on unchanged exact head 8e3c1b5e3c91c700b81f768720303421d301de29 / accepted base e00018da7d224bd13b4c4e3466d1e626ca0b15f6. The independent source/oracle/packed-consumer inspection in review5544272790 remains applicable: no source byte changed, all six paths and consumers retain their reviewed identities, and no new actionable source/oracle finding was established. Gemini's optional mock robustness suggestion has an evidence reply and verified resolved thread.

Observed current-source local qualification is now complete. An isolated swarm-origin clone corrected the prior source-origin mismatch; strict check-fast verifies six paths and all seven expected gates. The current npm distribution validator passes. Full current xtask precommit returned native exit0 in354.375s, complete six-record v2 receipt, report digest sha256:d2c1a01af98a165032fa204f0fd181700841ad7ae5bb2c0eeec3cc5ba25327bb; underlying reports, native terminal log and resource receipt were read. Current tooling is pinned Rust1.95.0, one Cargo job/one test thread, unchanged dev profile/features, incremental off and task-owned target. Full precommit's five no-run warmups and15 listings validate22 nonzero applicable coverage rows; the Windows-only row is not enumerated. This is compilation/listing, not executed Rust tests. Impact-selected Clippy is correctly not applicable and is not called pass. No stale binary, wrong-origin selector, gate bypass or OOM/disconnect inference was used. The same supervised precommit process survived the connection interruption and finished; no duplicate compile or live descendant remains.

Integration source inspection still observes GitHub merge03f2b51292733e427e7cababc618d6509890944d, parents1a572a6e9d1b931b472dc9cc9af40f8e30260571 + reviewed head, tree4217ab0a20af1175d79b4db3984a8f548d536c03. The actual Node20/24 logs qualify that Node checkout with30/30 tests and17 mandatory controls each. Newer main97b2d224's three additional code/test changes plus contributor docs do not alter the npm owner or add a prerequisite to this repair. No behind-only restack or full native/Rust combined-tree execution is asserted.

Advisory ub-review38866114042 wrapper SUCCESS is not clean proof: the decoded front panel records cargo-test failed101, tokmd six receipts, six requests rejected before planning, four unsupported intents, no proof receipts, portfolio subjectHEAD/not current-head qualification, failed posting and advisory enforcement off. The raw cargo-test cause remains unclassified. Artifact12031927988's download action returned a file reference, but native content materialization was denied HTTP403; that route is stopped, with no raw ZIP custody/digest claim. These advisory gaps remain explicit and do not replace the successful independent direct recovery controls. No redundant advisory CI was requested.

Disposition remains REVIEW_INCOMPLETE for required hosted combined-tree qualification and remaining advisory content visibility, not for unrun local policies. The candidate remains Draft in this bounded handoff. Parent delivery owner can inspect the sensor artifact through an available authorized route and complete the ordinary expected-green Draft-to-Ready admission for the unchanged head, then inspect actual hosted checkout/parents/tree and test denominators before REVIEW_READY. No package publication, source/build/install equivalence or broader #4491 completion is established. Full proof paths, hashes, resource admission and limitations are in the refreshed PR body.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REVIEW_INCOMPLETE for merge; source/readiness prerequisites satisfied for one ordinary Draft-to-Ready qualification request. No actionable source or oracle finding emitted.

reviewed_head_sha: 8e3c1b5
reviewed_tree: 9c73b0ac437fec02c8c6ffc108124f548fffcc4b
integration_basis: fetched main a1ea790; GitHub merge f9b712a, ordered parents [basis, reviewed head], tree5d9edb2fc3bf62d4f45bcf7bb344aeebb32020b5.
claim_boundary: actionable recovery advice for an admitted exact-version native package with an absent executable; broader #4491/native distribution remains open.

Changed surfaces and semantic owners inspected: complete six-file diff, resolveNativeExecutable and all preceding package/version/target/path admission, LauncherError cause/code, launch/runNative and public bin stderr/exit projection, manifest bin/files/exact optional pins, platform/libc selection, README/SPEC-0212/changelog, mandatory runner admission, Rust distribution validator, policy and traceability consumers, npm workflow and Ready-triggered Rust route. The only production change is the diagnostic string. No resolver, install lifecycle, spawn, dependency, download or PATH fallback behavior changes. Current merge preserves every npm/changed contract blob; current-main traceability additions concern other specs. Distribution validator and required Rust route are unchanged. No restack warranted.

Existing independent review5544272790 remains source-applicable: it inspected this exact tree and executed actual npm pack, scripts-disabled offline install and npm-created POSIX shim with missing/mismatched/restored synthetic payloads, relocation/foreign-CWD/PATH controls, five simulated target identities and unsupported cases. Its wrong POSIX-only restoration path passes Linux but fails the Windows .exe-specific oracle. No candidate edit followed, so no delta review is necessary. Those are retained execution observations in the independent review; its raw local scripts/results and earlier local-policy receipts are absent from this new environment and have not been relabelled as newly observed.

Observed hosted proof: decoded Node20 job116859212878 and Node24 job116859213040 in run38866114040 each execute30 tests,30passed,0failed,0skipped and17 mandatory controls; package inventory includes only the six expected runtime/notice files. Actual checkout03f2b51292733e427e7cababc618d6509890944d composed then-base1a572a6e + reviewed head. Relevant paths are byte-identical in current merge. No redundant Node/advisory run requested. Exact candidate diff whitespace passes. Previous current-source precommit/release-target/local policy results remain reported by review5544683593 at the unchanged head, rather than a new local execution.

Advisory38866114042 is incomplete sensor evidence, not clean success: outer log confirms cargo-test failed101/not timed out, rejected/unsupported requests and absent proof receipts. The actual cargo-test failure cause is NOT_ESTABLISHED: artifact12031927988 download resolves to a file reference but native ZIP transfer returns HTTP403 even with approved network escalation. No artifact bytes/digest custody or missing-fixture root cause is asserted. #8245 is independently landed in current merge ancestry; its repair alone does not prove the historical cause of this different run. This access gap is not a demonstrated candidate source defect or a substitute for required Rust qualification. No advisory retry or gate waiver.

Findings: one inline suggestion has a source/runtime-backed reply and remains confirmed resolved; complete thread inventory has one resolved/zero unresolved. CodeRabbit quota is missing provider review, not approval. No changed source/public claim/oracle/integration conflict requires repair.
Protection: active default-branch ruleset18845973 read: PR plus thread resolution, zero approval quota, no bypass actors. Classic protection GET403 remains an explicit visibility gap; normal server merge enforcement must be honored without bypass.

Remaining proof: one normal Ready-triggered Rust qualification and actual checkout/parents/tree, executed test denominators, terminal required Result and cumulative REVIEW_READY. The separate main-only vscode failure does not lie on the PR's required Rust path; this candidate does not touch the extension. No known applicable deterministic gate failure was established. Green is reasonably expected for the unchanged scoped candidate.
Residuals/nonclaims: synthetic Node bytes and simulated platforms are transport proof, not native Windows teardown, real RIPR payloads, registry journeys, package publication or parent completion. No release/deployment/credential action. Takeover checks found no later owner/hold or active PR qualification (>3h stale).
Next: mark Ready once after final live head/thread/run readback (performed unchanged immediately before this record), retain resulting run, inspect its executed subject/results before merge.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 17, 2026 00:57
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

Qualification closeout: required run 38988749454 completed successfully. Producer 117266230466 logs verify actual checkout f9b712a, composing head 8e3c1b5 with base a1ea790. Nextest: 16,533 passed, 3 skipped; doctests: 2 passed, 1 ignored. Required policy, checks, Clippy, contracts, corpora and PR evidence passed; aggregate 117276705996 succeeded.

Review 5555208219 remains applicable to unchanged head and scoped npm changes. Live reconciliation found no unresolved review threads or holds and clean mergeability. Subsequent main changes do not touch the npm scope, validator or workflows; no claim that the latest main was the executed checkout. Normal expected-head squash merge may proceed under repository protections. Advisory cargo-test exit 101 remains unclassified because the original artifact was inaccessible; this is not a diagnosis or a required-check waiver.

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.

1 participant