Repository navigation
fix(plugins): keep captured dependency manifests independently readable - #160519
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: blocked before merge. Reviewed September 28, 2026, 1:30 PM ET / 17:30 UTC (Revision 7). ClawSweeper reviewWhat this changesThe branch copies dependency package manifests into retained plugin runtimes while keeping native payloads linked, and adds capture and updater regression coverage. Merge readiness⛔ Blocked before merge - 4 items remain Current main still has the reported manifest hardlink behavior, so this focused PR remains useful. The remaining merge question is whether installations with earlier persisted native receipts must recover before the fresh-capture fix ships. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw captures installed plugin files into retained runtimes so plugins can survive updates and host changes. Capture chooses which files share an inode; plugin loading and peer-link repair later read those files. flowchart LR
A[Installed plugin] --> B[Dependency inventory]
B --> C{File classification}
C -->|Package manifest| D[Independent copy]
C -->|Native payload| E[Retained link]
D --> F[Retained runtime]
E --> F
F --> G[Plugin loading and peer repair]
Decision needed
Why: Source proves that those receipts retain the old classification, while the latest identified stable release predates native namespaces; deciding whether preview-state recovery is required is a maintainer support boundary. Before merge
Agent review detailsSecurityNone. PR surfaceSource +2, Tests +65. Total +67 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the shared capture classifier, establish the supported receipt boundary, repair earlier receipts if they are supported, and verify the integrated candidate through the published updater. Do we have a high-confidence way to reproduce the issue? Yes, from source: capture a managed native plugin dependency, then have peer repair read its installed manifest while a retained capture exists. This read-only review did not execute that path. Is this the best way to solve the issue? Yes for new captures: the shared classifier gives manifests independent inodes without weakening strict readers or copying native payloads. Existing receipt handling still needs a support decision. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7e6dd89766ce. LabelsLabel changes: No label changes. Label 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
HistoryReview history (6 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
What Problem This Solves
Capturing a native dependency tree hardlinks ordinary
package.jsonfiles into the retained namespace. The increased link count then makes strict peer audit/relink reject those manifests.User Impact
New native dependency captures remain independently readable during peer repair and host succession. Native payloads retain hardlink sharing; strict readers and ownership checks are unchanged.
Why This Change Was Made
The existing capture classifier now copies every ordinary package manifest. Persisted-capture, reload, and host-succession tests cover the resulting independent files. The complete change is three files: production +2/-0, tests +66/-1.
This prevents new bad captures. Pre-fix unreleased preview receipts retain their previous classification on reuse and host succession; this PR does not migrate them. Named follow-up: reclassify/rebuild pre-existing native namespace receipts before peer repair. Stable 2026.9.4 predates native namespace receipts, so its upgrade proof cannot cover that preview-only repair. No schema or persisted record shape changes.
Evidence
Exact candidate:
dff8edaf444e5cace7ddd6ce8e6469a45709144e.openclaw/ci-gatepassed on the exact head. Actual test merge80ba5571a4bb2b0205383eff4b160ff0456cf035contains the candidate and canonical main fixes.dff8edaf444e5cace7ddd6ce8e6469a45709144e; trusted toolingce27cdb74759e4cf7c17cf828d49ac6c62f2f832; tarball SHA-256be3b2f1368238401506790bd38cd4b4610aa7f8df7bc7013d9272e3808ae0b41.The separate first-hop post-core child exit snapshot was unavailable; the successful overall updater outcome remains proven. An earlier predecessor packaging run hit process-group cleanup failure after UI build; a scoped strict-closure diagnostic and subsequent packaging succeeded, but the original transient cause remains unresolved. This current candidate's packaging and acceptance passed without a retry.