Repository navigation
Conversation
A missing pacman executable is not a database outage. Linux npm updates now say pacman is not installed and continue. A pacman query that runs and fails still asks the operator to restore the database. Refs: openclaw#173084
|
🦞👀 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 changes before merge. What this changesDistinguishes a missing package-manager executable from a failed database query in update warnings. Example: Run openclaw update --dry-run --no-restart --yes on Debian without pacman.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Needs changes before merge - 1 item remains This PR fixes a current misleading updater warning without changing admission behavior. The newly supplied CLI transcripts resolve the previous proof blocker, and no actionable correctness or security defect was found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe shared package-ownership inspector receives installation paths and package-manager query results, then either rejects confirmed package ownership or warns and allows update admission to continue. flowchart TD
A[Update CLI or Gateway] --> B[Shared ownership inspector]
B --> C[Buffered package manager query]
C --> D[Classify query result]
D --> E[Confirmed owner blocks replacement]
D --> F[Unavailable inspection warns and continues]
Technical reviewBest possible solution: Correct missing-executable guidance in the existing shared inspector while retaining warning-and-continue and confirmed-owner refusal. Do we have a high-confidence way to reproduce the issue? Current main deterministically turns a Linux pacman launch ENOENT into database-restoration guidance, matching the supplied Debian transcript; this review executed no target code. Is this the best way to solve the issue? The focused change classifies the launch failure at its existing owner and preserves all admission outcomes, avoiding distribution detection or a parallel ownership mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c8260d933e58. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +7, Tests +40. Total +47 across 2 files. Added test files: 0. View PR surface stats
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 HistoryReviewed October 15, 2026, 11:51 AM ET / 15:51 UTC (Revision 3). |
|
@clawsweeper re-review Added the dry-run transcripts to the PR body. Installed beta.4 still says to restore the pacman database and then continues ( |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review The PR body now includes the isolated command transcripts for reviewed revision 90de1e1: absent pacman, the corrected warning, exit 0, and the continued dry-run plan ( |
|
🦞👀 Re-review progress:
|
…abase-restore advice (#173293) A Debian npm update told the operator to restore the pacman database: when a system package manager's executable is absent (ENOENT), the ownership inspector reused its database-restoration advice. It now says the executable was not found and that ownership could not be verified; confirmed-owner refusal and continuation are unchanged. Supersedes #173118, #173122, #173144, thanks @wangmiao0668000666, @sunlit-deng, @DonnieFi. Fixes #173084 Co-authored-by: wangmiao0668000666 <[email protected]> Co-authored-by: sunlit-deng <[email protected]> Co-authored-by: Donnie Fiander <[email protected]>
…abase-restore advice (openclaw#173293) A Debian npm update told the operator to restore the pacman database: when a system package manager's executable is absent (ENOENT), the ownership inspector reused its database-restoration advice. It now says the executable was not found and that ownership could not be verified; confirmed-owner refusal and continuation are unchanged. Supersedes openclaw#173118, openclaw#173122, openclaw#173144, thanks @wangmiao0668000666, @sunlit-deng, @DonnieFi. Fixes openclaw#173084 Co-authored-by: wangmiao0668000666 <[email protected]> Co-authored-by: sunlit-deng <[email protected]> Co-authored-by: Donnie Fiander <[email protected]>
…abase-restore advice (#173293) A Debian npm update told the operator to restore the pacman database: when a system package manager's executable is absent (ENOENT), the ownership inspector reused its database-restoration advice. It now says the executable was not found and that ownership could not be verified; confirmed-owner refusal and continuation are unchanged. Supersedes #173118, #173122, #173144, thanks @wangmiao0668000666, @sunlit-deng, @DonnieFi. Fixes #173084 Co-authored-by: wangmiao0668000666 <[email protected]> Co-authored-by: sunlit-deng <[email protected]> Co-authored-by: Donnie Fiander <[email protected]> (cherry picked from commit 92280e2) Co-authored-by: RomneyDa <[email protected]>
…abase-restore advice (#173293) A Debian npm update told the operator to restore the pacman database: when a system package manager's executable is absent (ENOENT), the ownership inspector reused its database-restoration advice. It now says the executable was not found and that ownership could not be verified; confirmed-owner refusal and continuation are unchanged. Supersedes #173118, #173122, #173144, thanks @wangmiao0668000666, @sunlit-deng, @DonnieFi. Fixes #173084 Co-authored-by: wangmiao0668000666 <[email protected]> Co-authored-by: sunlit-deng <[email protected]> Co-authored-by: Donnie Fiander <[email protected]> (cherry picked from commit 92280e2)
Closes #173084
What Problem This Solves
Fixes: a Debian npm update tells the operator to restore the pacman database when pacman is not installed.
User Impact
User impact: Linux hosts without pacman get a warning that pacman is not installed and that its database was not queried. The update still continues. A pacman query that runs and fails still says to restore the database, and a confirmed package-owned install is still refused.
Why This Change Was Made
Launch ENOENT is a missing executable, not a database outage. Query failures, timeouts, and owned installs keep their existing messages.
Evidence
pnpm test src/infra/update-freebsd-pkg-ownership.test.ts src/cli/update-cli/update-command-freebsd-pkg.test.ts --maxWorkers=1passed (13 ownership tests, 11 admission tests).git diff --checkpassed.Reviewed revision:
90de1e114a83d96f4bf4d5f6de06a60b977f1d5b.Host check recorded before both runs: Debian,
process.platformlinux,pacmannot onPATH, and/usr/bin/pacmanabsent. Both runs used an isolated state directory and temp directory,--dry-run --no-restart --yes, and did not restart the gateway. A non-dry-run update was not performed. Root paths and report paths are omitted below.Before, the installed CLI
OpenClaw 2026.10.5-beta.4 (6b4b2a9):Exit 0. Stderr contained this line three times:
Stdout then reached the end of the dry-run:
After, the same flags on this revision.
node openclaw.mjsexits first on a source tree with nodist/entry.js, so this run used a localqaRuntimebuild that wrote gitignoreddist/only. The built launcher containsis not installed, so its package database was not queried.Exit 0. Complete stderr:
Stdout continued through the dry-run plan. Install kind is git because the command was this source checkout, not the npm-global install: