Repository navigation
[Bug]: Debian npm update tells the operator to restore the pacman database - #173122
sunlit-deng wants to merge 1 commit into
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 maintainer review before merge. What this changesThis PR identifies a missing package-manager executable instead of recommending repair of its database. Example: Run openclaw update on Debian 12 without pacman installed.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a current updater diagnostic, preserves the documented ownership policy, and has no actionable findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherCLI, Gateway, and package-replacement paths share a native package-ownership inspector that checks installation paths, warns when inspection is unavailable, and refuses replacement when ownership is confirmed. flowchart TD
A[Update request] --> B[Shared ownership inspector]
B --> C[Native package query]
C --> D[Missing executable]
D --> E[Corrected warning and continuation]
C --> F[Confirmed package ownership]
F --> G[Replacement refused]
Technical reviewBest possible solution: Land one focused correction in the existing inspector while preserving unavailable-inspection warnings and confirmed-owner refusal. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically maps a missing pacman launch to database-restoration guidance, matching the linked reporter's Debian beta-update transcript; this review executed no target code. Is this the best way to solve the issue? Correcting the existing diagnostic addresses the reported failure without distribution detection, additional processes, or changes to ownership protection. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 801d463f8921. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +28. Total +30 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 HistoryReview history (1 earlier review cycle)
Reviewed October 15, 2026, 10:16 AM ET / 14:16 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 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)
What Problem This Solves
Fixes the pacman ownership warning telling Debian operators to restore a database when the pacman executable is missing during an npm-global update.
Why This Change Was Made
An
ENOENTfrom the package ownership query means the executable could not be found. The diagnostic now reports that condition separately; other ownership database failures keep their current recovery guidance.User Impact
Debian npm-global updates no longer direct operators to repair an unrelated pacman database. Ownership inspection still warns and continues, while confirmed package ownership still blocks replacement.
Evidence
Testing
node_modules/.bin/vitest run src/infra/update-freebsd-pkg-ownership.test.ts --maxWorkers=1(12 tests passed).pacmanranopenclaw update --channel beta --yes --no-restart --jsonfrom PR head615ef0e757fade741b8fede739970171a3d3cfda. It printed the corrected missing-executable warning, continued into npm installation of[email protected], completed candidate checks and Doctor, and exited 0. The npm debug log showed the target install exiting 0; the candidate report marked config, database schema, Node runtime, and plugin availabilityok. Temporary state/config paths caused service management to be skipped.distunchanged. To work around a container registry reset while resolving npm metadata, it localized only the workspace@openclaw/aipackage reference and the[email protected]dependency to local tarballs; the updater's beta target install ran through npm.node_modules/.bin/tsx proof-smoke.mts <repo-root>exercisedcreateSystemPackageOwnershipInspection().assertUnownedthroughrunCommandBufferedto a real pacman launch. Both runs used Linux platform selection with no pacman executable; the pinned base and exact head were tested with identical inputs. The confirmed-owner negative control stayed blocking.docs/cli/update.mdsays failed ownership inspection warns and continues; only confirmed package ownership prevents replacement.The CLI exited 0. Its npm debug log showed
npm i --global ... [email protected]ending with exit 0. Service management was skipped because the container used a temporary state/config path.Production proof source
AI-assisted: built with Codex
Closes #173084