Repository navigation
fix: plugin update validation selects stale compatibility chunks - #157608
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: blocked before merge. Reviewed September 24, 2026, 5:55 PM ET / 21:55 UTC. ClawSweeper reviewWhat this changesThe branch makes first-hop release fixtures select compatibility chunks from the candidate package’s recorded inventory when present, retains a fallback for older candidates, and updates fixture tests. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 5 items remain Keep open. The fix addresses the reported release-validation staging failure, but the documented explicit-source negative control can no longer demonstrate its expected failure, and the second-hop receipt can report an incorrect result. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw release validation takes a frozen candidate package and published updater packages, creates modified package fixtures, then runs upgrade checks in Docker. Those checks produce evidence used to assess whether older installations can update. flowchart LR
A[Candidate package] --> B{Recorded inventory?}
B -->|Yes| C[Recorded chunks]
B -->|No| D[Legacy chunk names]
C --> E[Update fixtures]
D --> E
E --> F[Docker upgrade checks]
F --> G[Release evidence]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +15, Other +2. Total +17 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep recorded chunks authoritative for normal candidate fixtures, make the explicit legacy-source negative control remove its expected alias when present, and report actual future-package contents in the release receipt. Do we have a high-confidence way to reproduce the issue? Yes, from source: an explicit 2026.8.2 package selects shared-Y6bNiw2w.js as its missing-chunk control, while a recorded candidate retains that file. This read-only review did not execute the Docker lane. Is this the best way to solve the issue? No. The recorded-inventory selection fixes normal candidate staging, but the negative fixture also needs to account for the explicit source’s expected missing chunk, and the receipt must describe the package it produced. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1ab1bb09789a. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What 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
|
What Problem This Solves
Fixes: plugin-update validation can select a stale legacy chunk name even when the frozen candidate records its actual first-hop compatibility chunks.
User Impact
User impact: release validation exercises the compatibility chunks shipped by the candidate instead of failing while staging a nonexistent legacy fixture.
Why This Change Was Made
Treat the candidate's recorded compatibility inventory as authoritative when present. Keep the legacy static names only for older candidates that have no recorded inventory.
Evidence
OPENCLAW_VITEST_MAX_WORKERS=1 pnpm test test/scripts/update-first-hop-package-fixtures.test.ts— 32/32 passed.