Repository navigation
Description
What happens
A git install that resolves OPENCLAW_VERSION=latest through the npm latest dist-tag can land on a correction release that has no matching GitHub tag. Checkout should fail closed instead of silently installing a different ref.
Dirty checkouts and --no-git-update should install the prepared tree without running npm tag resolve. Detection must treat a git worktree as a git checkout (.git is a file, so -d .git is false).
After checkout, package.json version should match the requested v* ref. Main already has Could not resolve requested git ref via #130907 (git_install_lockfile_flag). The remaining gap is an explicit checkout-vs-ref assert (assert_git_checkout_matches_ref) plus worktree-safe .git detection so a dirty worktree is not treated as a GitHub clone path.
How to see it (from reading the installer, not a live curl|bash run)
- Request
OPENCLAW_VERSION=latestwhen npm latest is a correction release with no matching git tag. - Or install from a dirty git worktree (
.gitis a file).-d "$repo_dir/.git"is false, so the installer can take the GitHub clone path instead of the local dirty-skip path.
Expected
- Missing exact tag: fail closed, no silent downgrade.
- Dirty /
--no-git-update: install the prepared tree, do not resolve npm latest. - Worktree
.gitfile: same dirty / local-checkout paths as a normal.gitdirectory. - After a
v*checkout: package.json matches the requested ref.
Candidate PR
#112754 is a candidate. It is not merge-ready (Claw budget-close / silver). Keep this issue open if that PR is closed to free a barnacle slot.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
SebTardif commentedon Sep 10, 2026
Candidate PR is #112754. The PR body uses Ref so this issue stays open if that PR is closed unmerged to free a barnacle slot.
clawsweeper commentedon Sep 10, 2026
Codex review: this still needs some work.
Summary
Keep open with narrower scope: main fixes worktree recognition and rejects unresolved refs, but dirty checkouts still perform unnecessary npm resolution, and the remaining selector requirements need a compatibility decision.
Reproducibility: Source proves the unused dirty-checkout npm lookup; no live installer reproduction ran, and current main does not support the alleged general silent downgrade.
Root-cause cluster
Relationship:
canonicalCanonical: #144191
Summary: This issue retains the remaining acceptance criteria after the original candidate closed; subsequent merged PRs cover parts of the request.
Members:
partial_overlap: fix(install): fail closed on missing git tags, never silent-downgrade #112754 - Closed unmerged candidate explicitly left its outstanding requirements here.partial_overlap: fix(installer): avoid checking out the wrong Git ref during pinned installs #130907 - Merged qualified-ref selection and failure handling while preserving branch fallback.partial_overlap: fix(install): support linked Git worktree checkouts #172934 - Merged the worktree-recognition and occupied-branch repair without implementing all remaining requirements.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Maintainer decision needed
Next step
Confirm compatibility-preserving scope, then establish a failing installer regression for dirty-checkout npm resolution before repairing both entry points.
Review details
Best possible solution:
Remove unused dirty-checkout resolution and define release-only validation separately from supported branch and commit selection.
Do we have a high-confidence way to reproduce the issue?
Source proves the unused dirty-checkout npm lookup; no live installer reproduction ran, and current main does not support the alleged general silent downgrade.
Is this the best way to solve the issue?
Worktree recognition is already repaired; a narrow dirty-checkout lookup change is appropriate, while blanket version assertions and prepared-tree no-update semantics require an explicit compatibility decision.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against d821a7fd1dc8.
Label changes
Label changes:
No label changes.
Label justifications:
P2: The remaining behavior affects an advanced source-install workflow with limited scope.impact:ux-friction: Dirty source checkouts perform unnecessary npm metadata resolution before preserving their existing tree.Evidence reviewed
What I checked:
scripts/install.sh:2895, d821a7fd1dc8)scripts/install-policy.sh:426, d821a7fd1dc8)scripts/install-policy.sh:4, 04296fd25a0a)docs/install/installer.md:274, d821a7fd1dc8)test/scripts/install-git-fixtures.ts:34, d821a7fd1dc8)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed October 28, 2026, 8:30 PM ET / October 29, 2026, 00:30 UTC.
openclaw-barnacle commentedon Oct 28, 2026
This issue has been automatically marked as stale after 7 days without qualifying human activity.
Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.
openclaw-barnacle commentedon Nov 5, 2026
Closing as not planned after the inactivity notice and full retest/update grace. This is an administrative close; the reported problem has not been confirmed fixed. Please reopen with current reproduction details if it still occurs.