Repository navigation
fix(ci): preserve published plugin bytes in upgrade fixtures - #154374
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. Reviewed September 20, 2026, 11:58 PM ET / September 21, 2026, 03:58 UTC. ClawSweeper reviewWhat this changesThe upgrade test fixture retains published Discord and MSTeams archives across registry phases, verifies the selected archive, and adds regression coverage and documentation. Merge readiness✅ Ready for maintainer review Keep open: current main still contains the fixture defect, and this focused repair preserves integrity enforcement. No actionable correctness or security finding was identified. Priority: P2 Review scores
Verification
How this fits togetherThe upgrade-survivor harness installs a published OpenClaw release and exercises its updater against a prepared candidate. Its local npm registry supplies plugin archives, and installation assertions determine whether the upgrade qualification passes. flowchart TD
A[Published plugin archive] --> C[Fixture registry]
B[Prepared candidate archive] --> C
C --> D{Same plugin version?}
D -->|Yes| E[Retain published bytes]
D -->|No| F[Select candidate bytes]
E --> G[Published updater]
F --> G
G --> H[Verify installed identity and integrity]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +245, Docs +15, Other +23. Total +283 across 5 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep published package identities immutable in the fixture and qualify changed plugin bytes under a distinct version while retaining all installation integrity checks. Do we have a high-confidence way to reproduce the issue? Yes: current-main registry construction explains the same-version integrity mismatch, and the captured body reports a matching failing published-updater control. This read-only review did not execute the harness. Is this the best way to solve the issue? Yes: retaining the already-acquired archive fixes the fixture's package identity at its owner while preserving candidate selection for new versions and strict integrity rejection. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 632917180583. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Fixes the published-updater fixture rejecting a same-version core candidate because its registry serves different Discord package bytes under an already-installed version.
Related: #154133.
User Impact
No product behavior changes. Same-version updater qualification now models npm's immutable package versions, while the existing integrity guard continues to reject changed bytes.
Why This Change Was Made
The baseline phase acquired the published companion archive, but the candidate phase dropped that registry override. When both versions were
2026.9.5, the registry replaced the published archive with the locally rebuilt candidate at the same package/version. The updater correctly rejected its changed integrity.Retain the published companion archive across both phases for the Discord and MSTeams scenarios, and verify installation against that selected archive. A genuinely different companion version still selects and verifies the prepared candidate. No published version, package integrity policy, timeout, or retry behavior changes.
This is a shared main-side fixture defect, introduced by #141146, not an agents-core change. Pinned main
a667c541c1eb3e2e5fc02844af9d04e0e00197e1reproduces the exact same expected/actual Discord integrity mismatch. It affects this same-version qualification path; it does not fail every ordinary PR job, since some use older baselines or do not run this cell.Evidence
node scripts/check-changed.mjs: passed in 172.460 seconds. Targeted typed lint,oxfmt --check,git diff --check, and Bash/Node syntax checks passed. Fresh P2 Codex autoreview: scoped-clean, no actionable findings.0452022b4fa4f4c11473456c0244830927bfa4ee: canonical preparation passed in 353.196 seconds; the full cell passed in 317.559 seconds (301-second lane), one attempt. Fixed Testbox session. Plugin convergence, Doctor, and backup/rollback assertions passed;updateRestartSourceisbaseline-update.2026.9.5-0452022b4fa4-2026-09-21T03-28-18.168Z. Package SHA-256:8331ac1adaecd704ee1904c19c6b0bfea5375ad0ec84505b7253c1775a75edbd.The main control and repair used the same cell inputs after canonical
--prepare-onlypackage preparation:All substantial proof ran on Linux Testbox. Neither this PR nor the related agents-core PR has been landed.