Repository navigation
fix(ci): reject stale payloads in legacy upgrade checks - #190798
Conversation
Extend the existing source-pinned package identity checks to legacy operator-state upgrades, including equal-version candidates. Preserve the deferred 2026.9.2 Doctor observation before installed payload verification. Grant 30 test lines for stale same-version payloads, selected-source rejection, valid installation, and deferred-Doctor ordering regressions.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review Please review current head d40fc4c. The PR body records the exact focused proof and complete source review; full candidate upgrade qualification remains separate. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR extends existing source and installed-payload identity checks to legacy operator-state upgrade tests. Example: A legacy upgrade selects an openclaw 2026.10.9 tarball but leaves different application bytes installed under the same version and build metadata.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs a source-confirmed gap in legacy upgrade verification, with no introduced defect found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe upgrade-survivor harness takes a published baseline and selected candidate tarball, runs the updater, and produces upgrade qualification artifacts. flowchart TD
A[Published baseline] --> C[Legacy survivor flow]
B[Selected candidate tarball] --> D[Candidate identity check]
D --> C
C --> E[Published updater]
E --> F[Deferred Doctor observation when applicable]
F --> G[Installed payload identity check]
G --> H[Remaining survivor checks]
Technical reviewBest possible solution: Extend the two existing identity gates to the legacy scenario while preserving deferred Doctor ordering and the generic no-baseline-receipt contract. Do we have a high-confidence way to reproduce the issue? Current-main conditions visibly omit legacy-operator-state from both identity gates; the supplied regression harness demonstrates how equal-version stale bytes reach that gap, but this read-only review ran no target code. Is this the best way to solve the issue? The two condition changes are the smallest complete repair using the existing identity owner, and the added cases cover distinct admission, payload, success, and ordering failures. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c8f87b2e5163. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +30, Docs +4, Other +3. Total +37 across 4 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 Reviewed November 1, 2026, 9:35 PM ET / November 2, 2026, 02:35 UTC. |
|
Merged via squash.
|
Extend the existing source-pinned package identity checks to legacy operator-state upgrades, including equal-version candidates. Preserve the deferred 2026.9.2 Doctor observation before installed payload verification. Grant 30 test lines for stale same-version payloads, selected-source rejection, valid installation, and deferred-Doctor ordering regressions.
Related: #186506
What Problem This Solves
Legacy upgrade checks could pass after an updater left stale application files installed, including when the baseline and candidate had the same version and build metadata.
User Impact
The legacy upgrade proof now rejects an installed package whose application bytes differ from the selected candidate tarball. This changes the test harness only; it does not change the updater, package version, or operator data.
Why This Change Was Made
Extend the existing candidate and installed package identity checks to
legacy-operator-state. The canonical checker already binds the candidate to the selected source, rechecks the tarball hash, and comparespackage.json,openclaw.mjs, and the completedistinventory. Reusing it avoids a second identity implementation.The manual 2026.9.2 flow still observes the deferred-schema Doctor result before checking installed identity. The existing
baseandsqlite-volumegates remain covered. Production harness LOC is net zero; tests add 30 lines with the matching allocation, and documentation adds four lines.Evidence
d40fc4cc43e2b988fdd19300b614974d84b2915f, compared with18e52ca69eae4607807568b1ee6750b7213209c6.440d8171a7a3066d27e835b48356cc9fc0972be8transported the frozen source; workflow admission baselinea24c7aaffeefe723ed761520495519675807eb23is separate from the source comparison base above.Fresh complete source review of the exact commit passed with no findings; all source and process-settlement guards passed. This is focused harness proof; full candidate Docker upgrade witnesses, current-head CI/security, and native landing gates remain separate.
At the same head, both required
openclaw/ci-gateresults passed, and the completed check rollup contains no failed or pending checks. ClawSweeper's exact-head review reports no findings and no before-merge actions. The optional aggregate CodeQL check is neutral: 18 main-branch configurations are absent from this PR's comparison, so it does not establish alert-delta coverage for those configurations. Native final head, security, and merge admission still govern landing.