Repository navigation
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Companion sync of openclaw/openclaw#112754. npm latest can be a republish version (2026.7.1-2) without a matching GitHub tag; git install smoke was failing with "Requested git version not found". Signed-off-by: Sebastien Tardif <[email protected]>
714a467 to
1498037
Compare
|
Rewrote this PR after the openclaw.ai#218 close review. Removed: silent Now:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Tracking openclaw.ai companion (wait for this PR; new PR after progress, not reopen #218): https://github.com/openclaw/openclaw.ai/issues/219 |
|
Codex review: needs real behavior proof before merge. Reviewed September 10, 2026, 12:39 PM ET / 16:39 UTC. ClawSweeper reviewWhat this changesThe POSIX installers add missing-tag guidance, validate checked-out versions, recognize Git worktrees, and skip npm version resolution for dirty checkouts. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 8 items remain Keep open: useful worktree and version-validation changes remain distinct from current main, and the same-author issue remains open. Two previously identified compatibility defects are still present. Priority: P2 Review scores
Verification
How this fits togetherThe installers turn a requested version and local checkout into a built OpenClaw command. Git ref selection determines which source is built and whether pnpm may update its lockfile. flowchart TD
A[Requested version and checkout] --> B{Local changes present?}
B -->|Yes| C[Preserve checkout]
B -->|No| D[Resolve and check out Git ref]
D --> E[Validate release version]
C --> F[Select lockfile policy]
E --> F
F --> G[Install dependencies and build command]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +130, Other +70. Total +200 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve recorded ref mutability, validate actual release tags using existing version readers, and retain the documented update-flag behavior; mirrored validation is justified by the standalone installers, but duplicate parsing is avoidable. Do we have a high-confidence way to reproduce the issue? Yes, from source: a dirty attached branch with changed dependencies receives a frozen install, and a clean v2-hotfix branch reaches an invalid version-equality check. These patch failures were not executed during this read-only review. Is this the best way to solve the issue? No. The installer already records whether the selected ref is moving or immutable; the new validation should consume that fact instead of inferring a release solely from its name. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 93f424ebe327. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
48b7de3 to
3121f28
Compare
|
@clawsweeper re-review Follow-up: when GIT_UPDATE=0, bind git_ref to the prepared checkout branch/HEAD (do not resolve npm latest or run exact-tag assert against an unrelated release). Updated PR body with 124 install unit tests + prepared-checkout control-flow proof. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Refreshed live install helper transcript on current head:
Also empty-committed to re-run the secrets isolation timeout flake. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Addressed the dirty-checkout P1:
Head: dirty-checkout skip-resolve fix. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review Refreshed PR context/evidence for the dirty-checkout path: porcelain non-empty skips Please re-evaluate proof labels at current head. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
6d194ca to
51c4e34
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
51c4e34 to
8f8575e
Compare
8f8575e to
0b8bb57
Compare
Signed-off-by: Sebastien Tardif <[email protected]>
0b8bb57 to
3c2f896
Compare
|
Freeing this author slot for a Discord CDN SSRF inherit fix. Most of the fail-closed installer work already landed via #130907. The leftover unique pieces ( This close is not a product reject. A later PR can finish issue 144191 after every acceptance criterion is met. |
What Problem This Solves
Git installs resolve
OPENCLAW_VERSION=latestvia the npmlatestdist-tag. When that version is an npm correction release but GitHub has no matching tag, checkout must fail closed (never silent-downgrade). Dirty checkouts and--no-git-updatemust install the prepared tree without npm tag resolve. Detection must work for both normal.gitdirectories and git worktrees (.gitis a file).Ref #144191
Evidence
Dirty checkout on a real git worktree at tip
856ee6448eb2(after-fix install path;-e .gitworktree detection):Before the worktree fix, the same command printed
Installing OpenClaw from GitHuband calledresolve_git_openclaw_refbecause-d .gitis false for worktrees.Real behavior proof
--no-git-updateskip npm tag resolve; worktree checkouts count as git checkouts./tmp/oc-112754-freshon PR tip856ee6448eb2; real dirty tree via proof marker file.scripts/install.shwithOPENCLAW_INSTALL_SH_NO_RUN=1; call productioninstall_openclaw_from_giton the dirty worktree.curl | bashagainst production GitHub; publishing a real correction tag.Summary
v*refs after checkout--no-git-updateskip npm tag resolve-e .gitso git worktrees hit the same pathsRelated
Hosted-installer sync (if still needed) is a separate follow-up on the docs/install mirror. This PR does not close that tracker.