Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR uses source compatibility floors for explicit Git-main installations while retaining stricter admission for npm and pinned Git refs. Example: Install current main with SQLite-capable Node 24.21.0 using --install-method git --version main.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — suspected predecessor, not a causality claim: source commit Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 3 items remain Keep this PR open: it repairs a verified installer regression, but incorrectly admits runtimes for retained older checkouts and prints incomplete Node version requirements. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Bash installer resolves runtime requirements before selecting Node and preparing the Git checkout, then passes the chosen runtime to dependency installation and the build. flowchart TD
A[Installer options] --> B[Resolve Node requirements]
B --> C[Check version and SQLite]
C --> D[Retain or provision Node]
D --> E[Select or retain Git checkout]
E --> F[Install dependencies and build]
Technical reviewBest possible solution: Use the compatibility contract of the source actually selected or retained through the existing admission owner, and print complete Node version requirements. Do we have a high-confidence way to reproduce the issue? Current main deterministically applies the strict npm fallback to Git main, and the linked issue supplies a real-runtime standalone reproduction; this read-only review executed no target code. Is this the best way to solve the issue? Target-aware admission is the right focused repair, but the requested ref name alone does not establish the engine contract of an existing checkout that the installer retains. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3f1e9b42591a. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests +34, Other +9. Total +43 across 2 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 29, 2026, 7:49 AM ET / 11:49 UTC. |
Fixes #187613
What Problem This Solves
A Git install of
main(--install-method git --version main) upgrades a Node runtime that already satisfies the checked source's engine and SQLite requirements.resolve_node_package_enginereturns early for every non-npm install, soNODE_PACKAGE_ENGINEkeeps the published-package fallback (>=24.22.1 <25 || >=26.12.1), andnode_binary_is_supportedapplies it unconditionally. Node 24.21.0 is therefore rejected for a main checkout that declares>=24.16.0 <25 || >=26.1.0, and the installer tries to provision a new runtime.Why This Change Was Made
For
git+main, runtime admission now uses the checked source's own floors, built from the installer's existingNODE_24_MIN_*/NODE_26_MIN_*constants, instead of the published-package fallback. Pinned Git refs keep the fallback on purpose: theirenginesmay still be stricter than main's, so the installer must not assume every ref is relaxed. The npm path is untouched and still resolves the selected package's requirement.User Impact
A Git main install on Node 24.16–24.21 no longer triggers an unnecessary Homebrew or nvm Node upgrade. npm installs and pinned Git release refs keep enforcing the published engines.
Evidence
Observed result first — the new regression test fails on the base installer and passes with the fix:
The test sources the real
scripts/install.shand callsresolve_node_package_engine+node_binary_is_supportedwith a fake node reporting24.21.0; the SQLite probe is stubbed because the decision under test is engine admission, not the capability probe. The pinned-ref case is the control that keeps the published floor.Full file:
223 passed | 1 skipped | 1 failed. The one failure (does not emit before args when npmrc min-release-age computes a before cutoff) fails identically on the unmodified base checkout and is unrelated to this change.What was not tested: a full installer run against real Homebrew/nvm, and the PowerShell installer path.
AI Assistance
This PR is AI-assisted. Used grep, git show, and the installer test harness to trace the runtime-admission path and reproduce the rejection. The implementer understands the code: Git main admission now derives its engine range from the same source floors the installer already declares, while pinned refs and npm keep the published-package requirement. All evidence above comes from real local runs.